diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-28 04:09:06 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-02-17 15:30:15 -0200 |
commit | 187a035a769fb490318091fee2b0051d9b188ad5 (patch) | |
tree | ad74fe0bfe51adb320f2f2bbb8ce45fcd335f960 /Settings.h | |
parent | ece89b8df0db61b8caaf53679afbe00e1c2ef22f (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 |