summaryrefslogtreecommitdiffstats
path: root/Header.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2015-01-23 03:08:21 -0200
committerHisham Muhammad <hisham@gobolinux.org>2015-01-23 03:08:21 -0200
commitc2108e5a482dfb8760849bb01264ed4bdb9f604f (patch)
tree29bd336760c5ca9cbebed5e4a1e007642064cbc4 /Header.h
parent3383d8e5561dfc6fb2b65e0a194df94ccb5e08af (diff)
Another mega-patch for the refactoring process.
Kinda runs, but functionality from the original main loop is still missing. Patience.
Diffstat (limited to 'Header.h')
-rw-r--r--Header.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/Header.h b/Header.h
index 11c04960..13811a9e 100644
--- a/Header.h
+++ b/Header.h
@@ -10,15 +10,16 @@ in the source distribution for its full text.
*/
#include "Meter.h"
+#include "Settings.h"
#include "Vector.h"
typedef struct Header_ {
Vector** columns;
+ Settings* settings;
struct ProcessList_* pl;
- int height;
- int pad;
int nrColumns;
- bool margin;
+ int pad;
+ int height;
} Header;
@@ -30,10 +31,12 @@ typedef struct Header_ {
#define Header_forEachColumn(this_, i_) for (int i_=0; i_ < this->nrColumns; i_++)
#endif
-Header* Header_new(struct ProcessList_* pl, int nrColumns);
+Header* Header_new(struct ProcessList_* pl, Settings* settings, int nrColumns);
void Header_delete(Header* this);
+void Header_populateFromSettings(Header* this);
+
MeterModeId Header_addMeterByName(Header* this, char* name, int column);
void Header_setMode(Header* this, int i, MeterModeId mode, int column);

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