diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-28 04:09:06 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-01-30 12:59:11 -0200 |
commit | 5beff29a3df7097cc4d256b27888ee730b1a45d0 (patch) | |
tree | cdc2d5f30e82db0f7415c2998bbb75cd5beba78f /ScreensPanel.h | |
parent | d1219abc558141a96ea25aa1db1c2dd3171c5132 (diff) |
Add support for multiple screens, switchable using Tab
Diffstat (limited to 'ScreensPanel.h')
-rw-r--r-- | ScreensPanel.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/ScreensPanel.h b/ScreensPanel.h index 35842a95..f1c80647 100644 --- a/ScreensPanel.h +++ b/ScreensPanel.h @@ -10,7 +10,10 @@ in the source distribution for its full text. */ #include "Panel.h" +#include "ScreenManager.h" +#include "ColumnsPanel.h" #include "Settings.h" +#include "ListItem.h" #ifndef SCREEN_NAME_LEN #define SCREEN_NAME_LEN 20 @@ -18,8 +21,10 @@ in the source distribution for its full text. typedef struct ScreensPanel_ { Panel super; - + + ScreenManager* scr; Settings* settings; + ColumnsPanel* columns; char buffer[SCREEN_NAME_LEN + 1]; char* saved; int cursor; @@ -27,8 +32,15 @@ typedef struct ScreensPanel_ { bool renaming; } ScreensPanel; +typedef struct ScreenListItem_ { + ListItem super; + ScreenSettings* ss; +} ScreenListItem; + + +extern ObjectClass ScreenListItem_class; -void startRenaming(Panel* super); +ScreenListItem* ScreenListItem_new(const char* value, int key, ScreenSettings* ss); extern PanelClass ScreensPanel_class; |