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

gtask-ui-util.c File Reference

#include "gtask-ui-util.h"
#include <string.h>
#include <glib.h>
#include <libgnomevfs/gnome-vfs-ops.h>
#include <gtask/gtask-file.h>
#include "gtask-internals.h"

Go to the source code of this file.

Defines

#define valid_uri(uri)   ( uri && strlen( uri ) > 0 )

Functions

void agg_file_list (gpointer key, gpointer value, gpointer data)
GTaskFileListInfogtask_ui_get_file_list_info (GList *file_list)
void gtask_ui_file_list_info_free (GTaskFileListInfo *info)
GTaskPreviewgtask_preview_new (gchar *uri, gboolean is_thumbnail)
GSList * gtask_ui_get_task_preview_options (GTaskGenericTask *task)
GSList * gtask_ui_get_file_preview_options (GTaskFile *file)
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)


Define Documentation

#define valid_uri uri   )     ( uri && strlen( uri ) > 0 )
 

Todo:
this should be a tad more stringent

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

Referenced by gtask_ui_get_file_preview_options(), and gtask_ui_get_task_preview_options().


Function Documentation

void agg_file_list gpointer  key,
gpointer  value,
gpointer  data
[static]
 

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

Referenced by gtask_ui_get_file_list_info().

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