summaryrefslogtreecommitdiffstats
path: root/src/knowitpref.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-12-28 14:24:43 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-12-28 17:44:22 +0900
commitf793d1d31f12851284213c645d45276936bba2a3 (patch)
treea7206970a776bfccf32bbdae54816245281a61d3 /src/knowitpref.h
parentd05ea4d721a7b2d782cc6d20d22be46dd2a27603 (diff)
downloadknowit-f793d1d3.tar.gz
knowit-f793d1d3.zip
Add dockOnStart option to control window show status on startup.
Knowit could already be docked, but on startup the window would annoyingly show up minimized in the taskbar instead of being fully docked. The new option allows to choose the window status when starting up in docked mode: either the window shows in normal state or is fully docked. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 988a55785b3f7afa934eb7d5c7c4debd2fba8d0a)
Diffstat (limited to 'src/knowitpref.h')
-rw-r--r--src/knowitpref.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/knowitpref.h b/src/knowitpref.h
index c5ca0d1..21f3345 100644
--- a/src/knowitpref.h
+++ b/src/knowitpref.h
@@ -35,6 +35,7 @@ class KnowitOptions
public:
/* General */
bool docked;
+ bool dockOnStart;
bool reopen;
int autosave;
bool unconditionalSave;
@@ -74,7 +75,7 @@ class KnowitPreferences : public KDialogBase
TQ_OBJECT
private:
- TQCheckBox *docked, *reopen, *horizontalSplit, *multipleInstances, *backup;
+ TQCheckBox *docked, *dockOnStart, *reopen, *horizontalSplit, *multipleInstances, *backup;
TQCheckBox *unconditionalSave;
TQCheckBox *wordwrap, *tabfocus, *customColors;
KDualColorButton* editColors;
@@ -97,7 +98,8 @@ public:
KnowitPreferences();
void setOptions(const KnowitOptions& Options);
KnowitOptions getOptions() const;
- public slots:
+public slots:
+ void slotUpdateOptions();
void slotUpdateDatePreview();
};