diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2011-11-05 04:19:47 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-11-05 04:19:47 +0000 |
commit | e204861de57b18b889ff7147e64ed64434a81947 (patch) | |
tree | b426fb57fd395ea64ec151e52a4eec12155657cd /SignalsPanel.h | |
parent | 4c4cceee5d691e4ac99fc6730b6bb7655dbba7cd (diff) |
Allow typing to select items in various panels (sort, user, signal).
Factored code from the SignalsPanel to apply to all selections from main screen.
Closes feature request #3425304.
Diffstat (limited to 'SignalsPanel.h')
-rw-r--r-- | SignalsPanel.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/SignalsPanel.h b/SignalsPanel.h index 34ef472f..0032cc7c 100644 --- a/SignalsPanel.h +++ b/SignalsPanel.h @@ -4,7 +4,7 @@ #define HEADER_SignalsPanel #include "Panel.h" -#include "SignalItem.h" +#include "ListItem.h" #include "RichString.h" #include "debug.h" @@ -15,12 +15,14 @@ typedef struct SignalsPanel_ { Panel super; - - int state; - Signal** signals; + ListItem** signals; } SignalsPanel; +#ifndef SIGNAL_COUNT +#define SIGNAL_COUNT 34 +#endif + SignalsPanel* SignalsPanel_new(int x, int y, int w, int h); void SignalsPanel_reset(SignalsPanel* this); |