summaryrefslogtreecommitdiffstats
path: root/Panel.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-09-08 16:45:11 +1000
committerNathan Scott <nathans@redhat.com>2020-09-08 16:45:11 +1000
commiteede79b29af116bc568c7f7a1be319f0c1dfd311 (patch)
treeb271a1980e4b48a5178d60b8aed1efa6987e4e3d /Panel.c
parent85ff6960ed5c1312f9d773e695418fdbfffd5303 (diff)
parent7758ffcdeae26f47f4ad6ec847fb8292fd5ceee3 (diff)
Merge branch 'noheadergen' of https://github.com/zevweiss/htop into zevweiss-noheadergen
Diffstat (limited to 'Panel.c')
-rw-r--r--Panel.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/Panel.c b/Panel.c
index 348fd238..297dc89c 100644
--- a/Panel.c
+++ b/Panel.c
@@ -21,60 +21,6 @@ in the source distribution for its full text.
//#link curses
-/*{
-#include "Object.h"
-#include "Vector.h"
-#include "FunctionBar.h"
-
-typedef struct Panel_ Panel;
-
-typedef enum HandlerResult_ {
- HANDLED = 0x01,
- IGNORED = 0x02,
- BREAK_LOOP = 0x04,
- REDRAW = 0x08,
- RESCAN = 0x10,
- SYNTH_KEY = 0x20,
-} HandlerResult;
-
-#define EVENT_SET_SELECTED -1
-
-#define EVENT_HEADER_CLICK(x_) (-10000 + x_)
-#define EVENT_IS_HEADER_CLICK(ev_) (ev_ >= -10000 && ev_ <= -9000)
-#define EVENT_HEADER_CLICK_GET_X(ev_) (ev_ + 10000)
-
-typedef HandlerResult(*Panel_EventHandler)(Panel*, int);
-
-typedef struct PanelClass_ {
- const ObjectClass super;
- const Panel_EventHandler eventHandler;
-} PanelClass;
-
-#define As_Panel(this_) ((PanelClass*)((this_)->super.klass))
-#define Panel_eventHandlerFn(this_) As_Panel(this_)->eventHandler
-#define Panel_eventHandler(this_, ev_) As_Panel(this_)->eventHandler((Panel*)(this_), ev_)
-
-struct Panel_ {
- Object super;
- int x, y, w, h;
- WINDOW* window;
- Vector* items;
- int selected;
- int oldSelected;
- int selectedLen;
- void* eventHandlerState;
- int scrollV;
- short scrollH;
- bool needsRedraw;
- FunctionBar* currentBar;
- FunctionBar* defaultBar;
- RichString header;
- int selectionColor;
-};
-
-#define Panel_setDefaultBar(this_) do{ (this_)->currentBar = (this_)->defaultBar; }while(0)
-
-}*/
#ifndef MIN
#define MIN(a,b) ((a)<(b)?(a):(b))

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