diff options
| author | Leandro Pereira <leandro@hardinfo.org> | 2010-01-04 22:29:04 -0200 | 
|---|---|---|
| committer | Leandro Pereira <leandro@hardinfo.org> | 2010-01-04 22:29:04 -0200 | 
| commit | 148870bd0d9197dc4cfc08acf6be0c756d0f06bc (patch) | |
| tree | 9beecf5980fa8796234363f92bb8e3a6a969fedb /hardinfo2/shell.h | |
| parent | ddf6c3314585b3aacc7c93ab7bc1cab2e73d5fc3 (diff) | |
Implement the graphical summary view in the shell, and do a proof of concept implementation for computer.so module.
Diffstat (limited to 'hardinfo2/shell.h')
| -rw-r--r-- | hardinfo2/shell.h | 13 | 
1 files changed, 13 insertions, 0 deletions
diff --git a/hardinfo2/shell.h b/hardinfo2/shell.h index a3bb6033..2eb9e6d2 100644 --- a/hardinfo2/shell.h +++ b/hardinfo2/shell.h @@ -27,6 +27,7 @@ typedef struct _Shell			Shell;  typedef struct _ShellTree		ShellTree;  typedef struct _ShellInfoTree		ShellInfoTree;  typedef struct _ShellNote		ShellNote; +typedef struct _ShellSummary		ShellSummary;  typedef struct _ShellModule		ShellModule;  typedef struct _ShellModuleMethod	ShellModuleMethod; @@ -51,6 +52,7 @@ typedef enum {      SHELL_VIEW_LOAD_GRAPH,      SHELL_VIEW_PROGRESS,      SHELL_VIEW_PROGRESS_DUAL, +    SHELL_VIEW_SUMMARY,      SHELL_VIEW_N_VIEWS  } ShellViewType; @@ -86,6 +88,7 @@ struct _Shell {      ShellModule		*selected_module;      ShellModuleEntry	*selected;      ShellNote		*note; +    ShellSummary	*summary;      LoadGraph		*loadgraph;      GtkActionGroup	*action_group; @@ -102,6 +105,14 @@ struct _Shell {      HelpViewer		*help_viewer;  }; +struct _ShellSummary { +    GtkWidget		*header; +    GtkWidget		*scroll; +    GtkWidget		*view; +     +    GSList		*items; +}; +  struct _ShellTree {      GtkWidget		*scroll;      GtkWidget		*view; @@ -129,7 +140,9 @@ struct _ShellModule {      gchar		*name;      GdkPixbuf		*icon;      GModule		*dll; +      gpointer		(*aboutfunc) (); +    gchar		*(*summaryfunc) ();      void		(*deinit) ();      guchar		 weight;  | 
