summaryrefslogtreecommitdiffstats
path: root/Settings.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-01-28 04:09:06 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-26 20:13:09 -0300
commitb815e4c7a3cdcc64e3c5a28414ef2450bc9d5ebd (patch)
tree664a7c3d8366b13e48410cd11df55aa0ccd641a3 /Settings.h
parent4791050ceaf24a32e08505015faf07c43580763c (diff)
Add support for multiple screens, switchable using Tab
Diffstat (limited to 'Settings.h')
-rw-r--r--Settings.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/Settings.h b/Settings.h
index aed438eb..eccdae55 100644
--- a/Settings.h
+++ b/Settings.h
@@ -20,26 +20,33 @@ typedef struct {
int* modes;
} MeterColumnSettings;
+typedef struct {
+ char* name;
+ ProcessField* fields;
+ int flags;
+ int direction;
+ ProcessField sortKey;
+ bool treeView;
+} ScreenSettings;
+
typedef struct Settings_ {
char* filename;
- MeterColumnSettings columns[2];
+ MeterColumnSettings meterColumns[2];
- char** screens;
- int nScreens;
+ ScreenSettings** screens;
+ unsigned int nScreens;
+ unsigned int ssIndex;
+ ScreenSettings* ss;
- ProcessField* fields;
int flags;
int colorScheme;
int delay;
int cpuCount;
- int direction;
- ProcessField sortKey;
bool countCPUsFromZero;
bool detailedCPUTime;
- bool treeView;
bool showProgramPath;
bool hideThreads;
bool shadowOtherUsers;
@@ -61,12 +68,16 @@ typedef struct Settings_ {
#endif
+/*
+
+*/
+
void Settings_delete(Settings* this);
bool Settings_write(Settings* this);
Settings* Settings_new(int cpuCount);
-void Settings_invertSortOrder(Settings* this);
+void ScreenSettings_invertSortOrder(ScreenSettings* this);
#endif