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

GTaskView


Data Structures

struct  _GTaskTaskIter
struct  GTaskGetTaskFoo

Typedefs

typedef _GTaskTaskIter GTaskTaskIter

Enumerations

enum  {
  COL_TASK, COL_TITLE, COL_CATEGORY, COL_STATUS_MESSAGE,
  COL_ERROR_MESSAGE, COL_PROGRESS, COL_TIME_LEFT, COL_ACTIVITY_STATE,
  COL_OLD_THUMB_URI, COL_THUMBNAIL, COL_IS_THUMBNAIL, N_TASK_COLUMNS
}
enum  { PROP_0, PROP_VIEW_MODE }

Functions

void gtask_task_iter_free (GTaskTaskIter *iter)
void gtask_view_init (GTaskView *view, gpointer g_class)
void gtask_view_class_init (GTaskViewClass *klass)
void gtask_view_destroy (GtkObject *obj)
void gtask_view_finalize (GObject *obj)
void gtask_view_create_basic_mode (GTaskView *view)
void gtask_view_create_list_mode (GTaskView *view)
void gtask_view_create_task_model (GTaskView *view)
void gtask_view_update_task (GTaskView *view, GTaskTaskIter *iter)
gboolean gtask_view_button_press (GtkWidget *list, GdkEventButton *event, gpointer data)
void gtask_view_open_file (GObject *obj, gpointer *data)
void gtask_view_open_dir (GObject *obj, gpointer *data)
void gtask_view_set_property (GObject *object, guint param_id, const GValue *value, GParamSpec *pspec)
void gtask_view_get_property (GObject *object, guint param_id, GValue *value, GParamSpec *pspec)
GType gtask_view_mode_get_type ()
GType gtask_view_get_type ()
gboolean gtask_view_filter_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
void test_close_not (gpointer data, GClosure *closure)
GtkWidget * gtask_view_create_file_menu_subitem (GTaskView *view, GTaskFile *file, guint bound)
GtkMenuItem * gtask_view_create_file_menu_item (GTaskView *view, GTaskFileListInfo *file_info, guint bound)
GtkMenuItem * gtask_view_create_dir_menu_item (GTaskView *view, GTaskFileListInfo *file_info)
void close_error_window (GtkDialog *dialog, gint arg1, gpointer data)
GTaskViewgtask_view_new ()
void gtask_view_set_view_mode (GTaskView *view, GTaskViewMode mode)
GTaskViewMode gtask_view_get_view_mode (GTaskView *view)
void gtask_view_add_task (GTaskView *view, GTaskGenericTask *task)
void gtask_view_update_task_thumbnail (GTaskView *view, GTaskTaskIter *task_iter)
gboolean remove_task (gpointer key, gpointer value, gpointer user_data)
void gtask_view_clear_tasks (GTaskView *view, GTaskActivityState with_state)
void gtask_view_set_filter_string (GTaskView *view, const gchar *str)
const gchar * gtask_view_get_filter_string (GTaskView *view)
void sum_tasks (gpointer key, gpointer value, gpointer user_data)
guint gtask_view_get_number_of_tasks (GTaskView *view, GTaskActivityState with_state)

Variables

gpointer parent_class

Typedef Documentation

typedef struct _GTaskTaskIter GTaskTaskIter
 

Todo:
replace this

Referenced by gtask_task_iter_free(), gtask_view_add_task(), gtask_view_update_task(), gtask_view_update_task_thumbnail(), remove_task(), and sum_tasks().


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
COL_TASK 
COL_TITLE 
COL_CATEGORY 
COL_STATUS_MESSAGE 
COL_ERROR_MESSAGE 
COL_PROGRESS 
COL_TIME_LEFT 
COL_ACTIVITY_STATE 
COL_OLD_THUMB_URI 
COL_THUMBNAIL 
COL_IS_THUMBNAIL 
N_TASK_COLUMNS 

Definition at line 28 of file gtask-view.c.

anonymous enum
 

Enumeration values:
PROP_0 
PROP_VIEW_MODE 

Definition at line 48 of file gtask-view.c.


Function Documentation

void close_error_window GtkDialog *  dialog,
gint  arg1,
gpointer  data
[static]
 

Definition at line 835 of file gtask-view.c.

Referenced by gtask_view_open_dir(), and gtask_view_open_file().

void gtask_task_iter_free GTaskTaskIter iter  )  [static]
 

Definition at line 69 of file gtask-view.c.

References GTaskTaskIter, and _GTaskTaskIter::task.

Referenced by gtask_view_init().

void gtask_view_add_task GTaskView view,
GTaskGenericTask *  task
 

Todo:
store row references not iters!

right now tasks send all their data across the line each time this may change in the future

Definition at line 1000 of file gtask-view.c.

References COL_ACTIVITY_STATE, GTASK_IS_VIEW, GTASK_VIEW_GET_CLASS, gtask_view_update_task(), GTaskTaskIter, GTaskView, GTaskViewPrivate, _GTaskTaskIter::iter, _GTaskView::private, and _GTaskTaskIter::task.

Referenced by gtask_window_add_task().

gboolean gtask_view_button_press GtkWidget *  list,
GdkEventButton *  event,
gpointer  data
[static]
 

Todo:
eventually we need to check if the node that we clicked on was a group title or not

render a piece of text in pango to determine the size that we need to scale our icons to

Definition at line 751 of file gtask-view.c.

References COL_TASK, gtask_ui_get_file_list_info(), GTASK_VIEW, gtask_view_create_dir_menu_item(), gtask_view_create_file_menu_item(), GTaskFileListInfo, GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by gtask_view_create_basic_mode(), and gtask_view_create_list_mode().

void gtask_view_class_init GTaskViewClass klass  )  [static]
 

Definition at line 218 of file gtask-view.c.

References gtask_marshal_VOID__POINTER, gtask_view_destroy(), gtask_view_finalize(), gtask_view_get_property(), GTASK_VIEW_MODE_BASIC, GTASK_VIEW_MODE_TYPE, gtask_view_set_property(), GTaskViewClass, parent_class, PROP_VIEW_MODE, _GTaskViewClass::tasks_added_signal_id, _GTaskViewClass::tasks_removed_signal_id, and _GTaskViewClass::tasks_updated_signal_id.

Referenced by gtask_view_get_type().

void gtask_view_clear_tasks GTaskView view,
GTaskActivityState  with_state
 

Todo:
emit tasks-removed signal here add some option to specify the activity state to filter out or perhaps another function

Definition at line 1242 of file gtask-view.c.

References GTASK_IS_VIEW, GTASK_VIEW_GET_CLASS, GTaskView, GTaskViewPrivate, _GTaskView::private, remove_task(), GTaskGetTaskFoo::tasks, GTaskGetTaskFoo::view, GTaskGetTaskFoo::with_active, GTaskGetTaskFoo::with_completed, and GTaskGetTaskFoo::with_inactive.

void gtask_view_create_basic_mode GTaskView view  )  [static]
 

Definition at line 422 of file gtask-view.c.

References COL_ACTIVITY_STATE, COL_IS_THUMBNAIL, COL_PROGRESS, COL_STATUS_MESSAGE, COL_THUMBNAIL, COL_TIME_LEFT, COL_TITLE, gtask_cell_renderer_basic_new(), gtask_view_button_press(), GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by gtask_view_init().

GtkMenuItem* gtask_view_create_dir_menu_item GTaskView view,
GTaskFileListInfo file_info
[static]
 

Todo:
link up the directory menu thumbnail (from nautilus)

Definition at line 697 of file gtask-view.c.

References gtask_view_open_dir(), GTaskFileListInfo, GTaskView, _GTaskFileListInfo::num_unique_directories, test_close_not(), and _GTaskFileListInfo::unique_directories.

Referenced by gtask_view_button_press().

GtkMenuItem* gtask_view_create_file_menu_item GTaskView view,
GTaskFileListInfo file_info,
guint  bound
[static]
 

Definition at line 644 of file gtask-view.c.

References _GTaskFileListInfo::files, gtask_view_create_file_menu_subitem(), gtask_view_open_file(), GTaskFileListInfo, GTaskView, _GTaskFileListInfo::num_files, and test_close_not().

Referenced by gtask_view_button_press().

GtkWidget* gtask_view_create_file_menu_subitem GTaskView view,
GTaskFile *  file,
guint  bound
[static]
 

Definition at line 562 of file gtask-view.c.

References gtask_preview_get_pixbuf(), gtask_preview_list_free(), gtask_ui_get_file_preview_options(), gtask_view_open_file(), GTaskPreview, GTaskView, GTaskViewPrivate, _GTaskView::private, and test_close_not().

Referenced by gtask_view_create_file_menu_item().

void gtask_view_create_list_mode GTaskView view  )  [static]
 

Definition at line 474 of file gtask-view.c.

References COL_ACTIVITY_STATE, COL_CATEGORY, COL_PROGRESS, COL_STATUS_MESSAGE, COL_TITLE, gtask_cell_renderer_progress_new(), gtask_view_button_press(), GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by gtask_view_init().

void gtask_view_create_task_model GTaskView view  )  [static]
 

Definition at line 385 of file gtask-view.c.

References gtask_view_filter_func(), GTaskView, GTaskViewPrivate, N_TASK_COLUMNS, and _GTaskView::private.

Referenced by gtask_view_init().

void gtask_view_destroy GtkObject *  obj  )  [static]
 

Definition at line 283 of file gtask-view.c.

References parent_class.

Referenced by gtask_view_class_init().

gboolean gtask_view_filter_func GtkTreeModel *  model,
GtkTreeIter *  iter,
gpointer  data
[static]
 

Definition at line 305 of file gtask-view.c.

References _GTaskViewPrivate::filter_columns, GTASK_VIEW, GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by gtask_view_create_task_model().

void gtask_view_finalize GObject *  obj  )  [static]
 

Definition at line 291 of file gtask-view.c.

References _GTaskViewPrivate::filter_seed, _GTaskViewPrivate::filter_string, GTASK_VIEW, GTaskView, parent_class, and _GTaskView::private.

Referenced by gtask_view_class_init().

const gchar* gtask_view_get_filter_string GTaskView view  ) 
 

Definition at line 1340 of file gtask-view.c.

References _GTaskViewPrivate::filter_string, GTASK_IS_VIEW, GTaskView, and _GTaskView::private.

guint gtask_view_get_number_of_tasks GTaskView view,
GTaskActivityState  with_state
 

Definition at line 1374 of file gtask-view.c.

References GTASK_IS_VIEW, GTaskView, GTaskGetTaskFoo::num, _GTaskView::private, sum_tasks(), _GTaskViewPrivate::task_hash, GTaskGetTaskFoo::with_active, GTaskGetTaskFoo::with_completed, and GTaskGetTaskFoo::with_inactive.

void gtask_view_get_property GObject *  object,
guint  param_id,
GValue *  value,
GParamSpec *  pspec
[static]
 

Definition at line 933 of file gtask-view.c.

References GTASK_VIEW, gtask_view_get_view_mode(), GTaskView, and PROP_VIEW_MODE.

Referenced by gtask_view_class_init().

GType gtask_view_get_type void   ) 
 

Definition at line 144 of file gtask-view.c.

References gtask_view_class_init(), gtask_view_init(), GTaskView, and GTaskViewClass.

GTaskViewMode gtask_view_get_view_mode GTaskView view  ) 
 

Definition at line 993 of file gtask-view.c.

References GTASK_IS_VIEW, GTASK_VIEW_MODE_BASIC, GTaskView, _GTaskView::private, and _GTaskViewPrivate::view_mode.

Referenced by gtask_view_get_property(), and gtask_window_save_preferences().

void gtask_view_init GTaskView view,
gpointer  g_class
[static]
 

Definition at line 170 of file gtask-view.c.

References COL_CATEGORY, COL_ERROR_MESSAGE, COL_STATUS_MESSAGE, COL_TITLE, gtask_task_iter_free(), gtask_view_create_basic_mode(), gtask_view_create_list_mode(), gtask_view_create_task_model(), GTASK_VIEW_MODE_BASIC, GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by gtask_view_get_type().

GType gtask_view_mode_get_type void   ) 
 

Definition at line 128 of file gtask-view.c.

References GTASK_VIEW_MODE_BASIC, and GTASK_VIEW_MODE_LIST.

GTaskView* gtask_view_new void   ) 
 

Definition at line 950 of file gtask-view.c.

References GTASK_VIEW, and GTASK_VIEW_TYPE.

Referenced by gtask_window_init_ui().

void gtask_view_open_dir GObject *  obj,
gpointer *  data
[static]
 

Todo:
what if error is still NULL?

HIG this puppy up

Definition at line 882 of file gtask-view.c.

References close_error_window().

Referenced by gtask_view_create_dir_menu_item().

void gtask_view_open_file GObject *  obj,
gpointer *  data
[static]
 

Todo:
what if error is still NULL?

HIG this puppy up

Definition at line 840 of file gtask-view.c.

References close_error_window().

Referenced by gtask_view_create_file_menu_item(), and gtask_view_create_file_menu_subitem().

void gtask_view_set_filter_string GTaskView view,
const gchar *  str
 

Todo:
get the current PangoLanguage?

Definition at line 1272 of file gtask-view.c.

References GTASK_IS_VIEW, GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by filter_text_changed().

void gtask_view_set_property GObject *  object,
guint  param_id,
const GValue *  value,
GParamSpec *  pspec
[static]
 

Definition at line 916 of file gtask-view.c.

References GTASK_VIEW, gtask_view_set_view_mode(), GTaskView, and PROP_VIEW_MODE.

Referenced by gtask_view_class_init().

void gtask_view_set_view_mode GTaskView view,
GTaskViewMode  mode
 

Definition at line 955 of file gtask-view.c.

References GTASK_IS_VIEW, GTASK_VIEW_MODE_BASIC, GTaskView, GTaskViewPrivate, and _GTaskView::private.

Referenced by gtask_view_set_property(), gtask_window_restore_preferences(), and view_mode_changed().

void gtask_view_update_task GTaskView view,
GTaskTaskIter task_iter
[static]
 

Todo:
as of right now no more updates are done on completed tasks. Perhaps in the future we should allow for minor updates - ie, status, etc

Definition at line 1120 of file gtask-view.c.

References COL_ACTIVITY_STATE, COL_CATEGORY, COL_ERROR_MESSAGE, COL_PROGRESS, COL_STATUS_MESSAGE, COL_TASK, COL_TIME_LEFT, COL_TITLE, gtask_view_update_task_thumbnail(), GTaskTaskIter, GTaskView, GTaskViewPrivate, _GTaskTaskIter::iter, _GTaskView::private, and _GTaskTaskIter::task.

Referenced by gtask_view_add_task().

void gtask_view_update_task_thumbnail GTaskView view,
GTaskTaskIter task_iter
[static]
 

Definition at line 1061 of file gtask-view.c.

References COL_IS_THUMBNAIL, COL_OLD_THUMB_URI, COL_THUMBNAIL, gtask_preview_get_pixbuf(), gtask_preview_list_free(), gtask_ui_get_task_preview_options(), GTaskPreview, GTaskTaskIter, GTaskView, GTaskViewPrivate, _GTaskPreview::is_thumbnail, _GTaskTaskIter::iter, _GTaskView::private, _GTaskTaskIter::task, _GTaskViewPrivate::task_model, and _GTaskPreview::uri.

Referenced by gtask_view_update_task().

gboolean remove_task gpointer  key,
gpointer  value,
gpointer  user_data
[static]
 

Definition at line 1202 of file gtask-view.c.

References GTASK_VIEW, GTaskTaskIter, GTaskView, _GTaskTaskIter::iter, _GTaskView::private, _GTaskTaskIter::task, and _GTaskViewPrivate::task_model.

Referenced by gtask_view_clear_tasks().

void sum_tasks gpointer  key,
gpointer  value,
gpointer  user_data
[static]
 

Definition at line 1347 of file gtask-view.c.

References GTaskTaskIter, and _GTaskTaskIter::task.

Referenced by gtask_view_get_number_of_tasks().

void test_close_not gpointer  data,
GClosure *  closure
[static]
 

Definition at line 556 of file gtask-view.c.

Referenced by gtask_view_create_dir_menu_item(), gtask_view_create_file_menu_item(), and gtask_view_create_file_menu_subitem().


Variable Documentation

gpointer parent_class [static]
 

Definition at line 74 of file gtask-view.c.

Referenced by gtask_view_class_init(), gtask_view_destroy(), and gtask_view_finalize().


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