Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

gtask-ui-util.h

Go to the documentation of this file.
00001 #ifndef GTASK_UI_UTIL_H
00002 #define GTASK_UI_UTIL_H
00003 
00004 #include <glib.h>
00005 #include <gnome.h>
00006 #include <gtask/gtask-generic-task.h>
00007 #include <gtask/gtask-file.h>
00008 
00009 typedef struct _GTaskPreview      GTaskPreview;
00010 typedef struct _GTaskFileListInfo GTaskFileListInfo;
00011 
00012 struct _GTaskPreview {
00013     gchar     *uri;
00014     gboolean   is_thumbnail;
00015 };
00016 
00017 struct _GTaskFileListInfo {
00018     guint  num_files;
00019     guint  num_completed_files;
00020 
00021     guint  num_unique_directories;
00022 
00023     GList *files;
00024     GList *unique_directories;
00025 };
00026 
00027 GTaskFileListInfo *
00028 gtask_ui_get_file_list_info( GList *file_list );
00029 
00030 void
00031 gtask_ui_file_list_info_free( GTaskFileListInfo *info );
00032 
00033 GSList *
00034 gtask_ui_get_task_preview_options( GTaskGenericTask *task );
00035 
00036 GSList *
00037 gtask_ui_get_file_preview_options( GTaskFile *file );
00038 
00039 GTaskPreview *
00040 gtask_preview_new( gchar *uri, gboolean is_thumbnail );
00041 
00042 void
00043 gtask_preview_free( GTaskPreview *preview );
00044 
00045 void
00046 gtask_preview_list_free( GSList *list );
00047 
00048 GdkPixbuf *
00049 gtask_preview_get_pixbuf( GTaskPreview *preview,
00050                           GnomeThumbnailFactory *factory );
00051 
00052 void
00053 gtask_ui_draw_progressbar( GtkWidget *widget,
00054                            GdkWindow *window,
00055                            GdkRectangle *area,
00056                            float progress,
00057                            GTaskActivityState state,
00058                            int x,
00059                            int y,
00060                            int width,
00061                            int height );
00062 
00063 
00064 #endif

Generated on Mon Feb 2 21:33:25 2004 for libgtask-ui by doxygen 1.3.4