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

gtask-ui-util.h File Reference

#include <glib.h>
#include <gnome.h>
#include <gtask/gtask-generic-task.h>
#include <gtask/gtask-file.h>

Go to the source code of this file.

Data Structures

struct  _GTaskFileListInfo
struct  _GTaskPreview

Typedefs

typedef _GTaskPreview GTaskPreview
typedef _GTaskFileListInfo GTaskFileListInfo

Functions

GTaskFileListInfogtask_ui_get_file_list_info (GList *file_list)
void gtask_ui_file_list_info_free (GTaskFileListInfo *info)
GSList * gtask_ui_get_task_preview_options (GTaskGenericTask *task)
GSList * gtask_ui_get_file_preview_options (GTaskFile *file)
GTaskPreviewgtask_preview_new (gchar *uri, gboolean is_thumbnail)
void gtask_preview_free (GTaskPreview *preview)
void gtask_preview_list_free (GSList *list)
GdkPixbuf * gtask_preview_get_pixbuf (GTaskPreview *preview, GnomeThumbnailFactory *factory)
void gtask_ui_draw_progressbar (GtkWidget *widget, GdkWindow *window, GdkRectangle *area, float progress, GTaskActivityState state, int x, int y, int width, int height)


Typedef Documentation

typedef struct _GTaskFileListInfo GTaskFileListInfo
 

Definition at line 10 of file gtask-ui-util.h.

Referenced by gtask_ui_file_list_info_free(), gtask_ui_get_file_list_info(), gtask_view_button_press(), gtask_view_create_dir_menu_item(), and gtask_view_create_file_menu_item().

typedef struct _GTaskPreview GTaskPreview
 

Definition at line 9 of file gtask-ui-util.h.

Referenced by gtask_preview_free(), gtask_preview_get_pixbuf(), gtask_preview_new(), gtask_view_create_file_menu_subitem(), and gtask_view_update_task_thumbnail().


Function Documentation

void gtask_preview_free GTaskPreview preview  ) 
 

Definition at line 215 of file gtask-ui-util.c.

References GTaskPreview, and _GTaskPreview::uri.

Referenced by gtask_preview_list_free().

GdkPixbuf* gtask_preview_get_pixbuf GTaskPreview preview,
GnomeThumbnailFactory *  factory
 

Definition at line 240 of file gtask-ui-util.c.

References GTaskPreview, _GTaskPreview::is_thumbnail, and _GTaskPreview::uri.

Referenced by gtask_view_create_file_menu_subitem(), and gtask_view_update_task_thumbnail().

void gtask_preview_list_free GSList *  list  ) 
 

Definition at line 222 of file gtask-ui-util.c.

References gtask_preview_free().

Referenced by gtask_view_create_file_menu_subitem(), and gtask_view_update_task_thumbnail().

GTaskPreview* gtask_preview_new gchar *  uri,
gboolean  is_thumbnail
 

Definition at line 79 of file gtask-ui-util.c.

References GTaskPreview, _GTaskPreview::is_thumbnail, and _GTaskPreview::uri.

Referenced by gtask_ui_get_file_preview_options(), and gtask_ui_get_task_preview_options().

void gtask_ui_draw_progressbar GtkWidget *  widget,
GdkWindow *  window,
GdkRectangle *  area,
float  progress,
GTaskActivityState  state,
int  x,
int  y,
int  width,
int  height
 

Todo:
we need to make sure that we respect the size of the drawing area that is given to us

Todo:
we need to swap around some colors here not sure how complete this is right now

Definition at line 298 of file gtask-ui-util.c.

Referenced by gtask_cell_renderer_basic_render(), and gtask_cell_renderer_progress_render().

void gtask_ui_file_list_info_free GTaskFileListInfo info  ) 
 

Definition at line 69 of file gtask-ui-util.c.

References _GTaskFileListInfo::files, GTaskFileListInfo, and _GTaskFileListInfo::unique_directories.

GTaskFileListInfo* gtask_ui_get_file_list_info GList *  file_list  ) 
 

Todo:
how to sort files -- sort by description, then file name?

Definition at line 21 of file gtask-ui-util.c.

References agg_file_list(), _GTaskFileListInfo::files, GTaskFileListInfo, _GTaskFileListInfo::num_completed_files, _GTaskFileListInfo::num_files, _GTaskFileListInfo::num_unique_directories, and _GTaskFileListInfo::unique_directories.

Referenced by gtask_view_button_press().

GSList* gtask_ui_get_file_preview_options GTaskFile *  file  ) 
 

Definition at line 133 of file gtask-ui-util.c.

References gtask_preview_new(), and valid_uri.

Referenced by gtask_ui_get_task_preview_options(), and gtask_view_create_file_menu_subitem().

GSList* gtask_ui_get_task_preview_options GTaskGenericTask *  task  ) 
 

Definition at line 89 of file gtask-ui-util.c.

References gtask_preview_new(), gtask_ui_get_file_preview_options(), and valid_uri.

Referenced by gtask_view_update_task_thumbnail().


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