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-17 15:30:15 -0200
commit187a035a769fb490318091fee2b0051d9b188ad5 (patch)
treead74fe0bfe51adb320f2f2bbb8ce45fcd335f960 /Settings.h
parentece89b8df0db61b8caaf53679afbe00e1c2ef22f (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

© 2014-2024 Faster IT GmbH | imprint | privacy policy