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

gtask-window.h

Go to the documentation of this file.
00001 #ifndef GTASK_WINDOW_H
00002 #define GTASK_WINDOW_H
00003 
00004 #include <gtk/gtkwindow.h>
00005 #include <gconf/gconf-client.h>
00006 
00007 #include <gtask/gtask-generic-task.h>
00008 
00009 #include <gtask-ui/gtask-view.h>
00010 
00013 /* @( */
00014 
00015 typedef struct _GTaskWindow           GTaskWindow;
00016 typedef struct _GTaskWindowClass      GTaskWindowClass;
00017 typedef struct _GTaskWindowPrivate    GTaskWindowPrivate;
00018 
00020 #define GTASK_WINDOW_TYPE            (gtask_window_get_type())
00021 
00023 #define GTASK_WINDOW(obj)            (G_TYPE_CHECK_INSTANCE_CAST( (obj), \
00024                                       GTASK_WINDOW_TYPE, \
00025                                       GTaskWindow ))
00026 
00028 #define GTASK_WINDOW_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST( (klass), \
00029                                       GTASK_WINDOW_TYPE, \
00030                                       GTaskWindowClass ))
00031 
00036 #define GTASK_IS_WINDOW(obj)         (G_TYPE_CHECK_INSTANCE_TYPE( (obj), \
00037                                       GTASK_WINDOW_TYPE ))
00038 
00043 #define GTASK_IS_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE( (klass), \
00044                                       GTASK_WINDOW_TYPE ))
00045 
00046 #define GTASK_WINDOW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS( (obj), \
00047                                       GTASK_WINDOW_TYPE, \
00048                                       GTaskWindowClass ))
00049 
00050 struct _GTaskWindow {
00051     GtkWindow           parent;
00052     GTaskWindowPrivate *private;
00053 };
00054 
00055 struct _GTaskWindowPrivate {
00056     GTaskView   *task_view;
00057 
00058     GtkEntry    *filter_entry;
00059     GtkComboBox *view_combo;
00060 
00061     char        *name;
00062     char        *window_title;
00063 
00064     GConfClient *gconf_client;
00065 
00066     /* preferences to save */
00067     guint        save_prefs_timeout;
00068     gboolean     save_prefs;
00069 
00070     gint         x;
00071     gint         y;
00072     gint         width;
00073     gint         height;
00074 };
00075 
00076 struct _GTaskWindowClass {
00077     GtkWindowClass parent;
00078 };
00079 
00080 GType gtask_window_get_type( void );
00081 
00082 GTaskWindow *
00083 gtask_window_new_with_name( const char *name, const char *window_title );
00084 
00085 void
00086 gtask_window_add_task( GTaskWindow *window, GTaskGenericTask *task );
00087 
00088 GTaskView *
00089 gtask_window_get_view( GTaskWindow *window );
00090 
00091 #endif

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