summaryrefslogtreecommitdiffstats
path: root/src/knowitpref.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 02:48:30 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-02-17 02:48:30 +0000
commite1481e0a7c066357dfb67136f331b5f069d94f3c (patch)
tree19599adc9a54e8295402ceb25d6f2ea42edea439 /src/knowitpref.h
downloadknowit-e1481e0a7c066357dfb67136f331b5f069d94f3c.tar.gz
knowit-e1481e0a7c066357dfb67136f331b5f069d94f3c.zip
Added abandoned KDE3 version of knowit
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knowit@1091582 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knowitpref.h')
-rw-r--r--src/knowitpref.h104
1 files changed, 104 insertions, 0 deletions
diff --git a/src/knowitpref.h b/src/knowitpref.h
new file mode 100644
index 0000000..bc74398
--- /dev/null
+++ b/src/knowitpref.h
@@ -0,0 +1,104 @@
+/***************************************************************************
+ knowitpref.h - description
+ -------------------
+ begin : czw lis 28 2002
+ copyright : (C) 2002-2004 by Micha³ Rudolf
+ email : mrudolf@kdewebdev.org
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ ***************************************************************************/
+
+#ifndef KNOWITPREF_H
+#define KNOWITPREF_H
+
+#include <qstring.h>
+#include <kdialogbase.h>
+
+class QCheckBox;
+class QSpinBox;
+class QToolButton;
+class KLineEdit;
+class KColorButton;
+class KDualColorButton;
+class KConfig;
+class KComboBox;
+
+class KnowitOptions
+{
+public:
+ /* General */
+ bool docked;
+ bool reopen;
+ int autosave;
+ bool unconditionalSave;
+ bool multipleInstances;
+ bool backup;
+ /* GUI */
+ bool horizontalSplit;
+ int linkFormat;
+ QString defaultName;
+ bool alternateTree;
+ QString alternateColor;
+ bool autoCollapse;
+ /* Links */
+ bool firstLink;
+ /* Editor */
+ bool wordwrap;
+ bool enterBreakLine;
+ bool tabfocus;
+ bool customColors;
+ QString backEditColor;
+ QString foreEditColor;
+ bool customFont;
+ QString fontFamily;
+ int fontSize;
+ /* Date format */
+ QString insertDateFormat, insertDateColor;
+ bool insertDateBold, insertDateItalic, insertDateUnderline;
+ void save(KConfig* config) const;
+ void read(KConfig* config);
+ /* Export */
+ int exportFlags;
+};
+
+
+class KnowitPreferences : public KDialogBase
+{
+Q_OBJECT
+private:
+ QCheckBox *docked, *reopen, *horizontalSplit, *multipleInstances, *backup;
+ QCheckBox *unconditionalSave;
+ QCheckBox *wordwrap, *tabfocus, *customColors;
+ KDualColorButton* editColors;
+ QCheckBox *enterBreakLine;
+ KLineEdit *defaultName;
+ QCheckBox *alternateTree;
+ KColorButton *alternateColor;
+ QCheckBox* autoCollapse;
+ QCheckBox* customFont;
+ KComboBox *fontFamily, *fontSize;
+ KComboBox *linkFormat;
+ KLineEdit *insertDateFormatEdit;
+ KColorButton *insertDateColorButton;
+ QLabel *insertDatePreview;
+ QSpinBox* autosave;
+ QToolButton *insertDateItalicButton, *insertDateBoldButton, *insertDateUnderlineButton;
+ bool firstLink;
+ int exportFlags;
+public:
+ KnowitPreferences();
+ void setOptions(const KnowitOptions& Options);
+ KnowitOptions getOptions() const;
+ public slots:
+ void slotUpdateDatePreview();
+};
+
+#endif
+