From 148870bd0d9197dc4cfc08acf6be0c756d0f06bc Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 4 Jan 2010 22:29:04 -0200 Subject: Implement the graphical summary view in the shell, and do a proof of concept implementation for computer.so module. --- hardinfo2/shell.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'hardinfo2/shell.h') 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; -- cgit v1.2.3