diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-28 04:09:06 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-26 20:13:09 -0300 |
commit | b815e4c7a3cdcc64e3c5a28414ef2450bc9d5ebd (patch) | |
tree | 664a7c3d8366b13e48410cd11df55aa0ccd641a3 /Settings.h | |
parent | 4791050ceaf24a32e08505015faf07c43580763c (diff) |
Add support for multiple screens, switchable using Tab
Diffstat (limited to 'Settings.h')
-rw-r--r-- | Settings.h | 27 |
1 files changed, 19 insertions, 8 deletions
@@ -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 |