summaryrefslogtreecommitdiffstats
path: root/src/calcurse.h
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-11-24 23:36:51 +0100
committerLukas Fleischer <calcurse@cryptocrack.de>2012-11-25 18:13:37 +0100
commit660eef88e4a0add913e8a147d97b9549162a921e (patch)
tree32bbcb608739f902f9d2d6a6044b77ff33027da7 /src/calcurse.h
parent69b5293c871af3500f7b80379a5d9d3f5e41d8ad (diff)
downloadcalcurse-660eef88e4a0add913e8a147d97b9549162a921e.tar.gz
calcurse-660eef88e4a0add913e8a147d97b9549162a921e.zip
Add configuration option to set a default panel
This allows for customizing the panel that is selected by default when calcurse is started. Note that this patch doesn't add any documentation. Also, this configuration option currently cannot be configured using the configuration menu. Implements FR#19. Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/calcurse.h')
-rw-r--r--src/calcurse.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/calcurse.h b/src/calcurse.h
index be18739..310b28d 100644
--- a/src/calcurse.h
+++ b/src/calcurse.h
@@ -233,6 +233,15 @@
#define MAX(x,y) ((x)>(y)?(x):(y))
#define MIN(x,y) ((x)<(y)?(x):(y))
+enum win {
+ CAL,
+ APP,
+ TOD,
+ NOT,
+ STA,
+ NBWINS
+};
+
/* General configuration variables. */
struct conf {
unsigned auto_save;
@@ -240,6 +249,7 @@ struct conf {
unsigned periodic_save;
unsigned confirm_quit;
unsigned confirm_delete;
+ enum win default_panel;
unsigned system_dialogs;
unsigned progress_bar;
const char *editor;
@@ -449,15 +459,6 @@ struct binding {
enum key action;
};
-enum win {
- CAL,
- APP,
- TOD,
- NOT,
- STA,
- NBWINS
-};
-
#define FLAG_CAL (1 << CAL)
#define FLAG_APP (1 << APP)
#define FLAG_TOD (1 << TOD)