aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/report.h
diff options
context:
space:
mode:
authorLeandro Augusto Fogolin Pereira <leandro@zorg.(none)>2008-12-28 14:59:44 -0200
committerLeandro Augusto Fogolin Pereira <leandro@zorg.(none)>2008-12-28 14:59:44 -0200
commit6047a6efde91acd82a7415f780edbfd253c33479 (patch)
tree02e29bd7eb17e929f0246c36260e11ff50d985cc /hardinfo2/report.h
parent4631401306344b32c86cc355282ff577a3a70c93 (diff)
Begin adding support for multiple columns on reports
Diffstat (limited to 'hardinfo2/report.h')
-rw-r--r--hardinfo2/report.h25
1 files changed, 19 insertions, 6 deletions
diff --git a/hardinfo2/report.h b/hardinfo2/report.h
index 276c0196..782621cb 100644
--- a/hardinfo2/report.h
+++ b/hardinfo2/report.h
@@ -27,6 +27,14 @@ typedef enum {
N_REPORT_FORMAT
} ReportFormat;
+typedef enum {
+ REPORT_COL_PROGRESS = 1<<0,
+ REPORT_COL_VALUE = 1<<1,
+ REPORT_COL_EXTRA1 = 1<<2,
+ REPORT_COL_EXTRA2 = 1<<3,
+ REPORT_COL_TEXTVALUE= 1<<4
+} ReportColumn;
+
typedef struct _ReportDialog ReportDialog;
typedef struct _ReportContext ReportContext;
@@ -34,16 +42,21 @@ struct _ReportContext {
ShellModuleEntry *entry;
gchar *output;
- void (*header) (ReportContext *ctx);
- void (*footer) (ReportContext *ctx);
- void (*title) (ReportContext *ctx, gchar *text);
- void (*subtitle) (ReportContext *ctx, gchar *text);
- void (*subsubtitle) (ReportContext *ctx, gchar *text);
- void (*keyvalue) (ReportContext *ctx, gchar *key, gchar *value);
+ void (*header) (ReportContext *ctx);
+ void (*footer) (ReportContext *ctx);
+ void (*title) (ReportContext *ctx, gchar *text);
+ void (*subtitle) (ReportContext *ctx, gchar *text);
+ void (*subsubtitle) (ReportContext *ctx, gchar *text);
+ void (*keyvalue) (ReportContext *ctx, gchar *key, gchar *value);
ReportFormat format;
gboolean is_image_enabled;
+ gboolean first_table;
+
+ gboolean show_column_headers;
+ guint columns;
+ GHashTable *column_titles;
};
struct _ReportDialog {