1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
/***************************************************************************
knowitpref.h - description
-------------------
begin : czw lis 28 2002
copyright : (C) 2002-2004 by Micha³ Rudolf
email : mrudolf@tdewebdev.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 <tqstring.h>
#include <kdialogbase.h>
class TQCheckBox;
class TQSpinBox;
class TQToolButton;
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;
TQString defaultName;
bool alternateTree;
TQString alternateColor;
bool autoCollapse;
/* Links */
bool firstLink;
/* Editor */
bool wordwrap;
bool enterBreakLine;
bool tabfocus;
bool customColors;
TQString backEditColor;
TQString foreEditColor;
bool customFont;
TQString fontFamily;
int fontSize;
/* Date format */
TQString 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:
TQCheckBox *docked, *reopen, *horizontalSplit, *multipleInstances, *backup;
TQCheckBox *unconditionalSave;
TQCheckBox *wordwrap, *tabfocus, *customColors;
KDualColorButton* editColors;
TQCheckBox *enterBreakLine;
KLineEdit *defaultName;
TQCheckBox *alternateTree;
KColorButton *alternateColor;
TQCheckBox* autoCollapse;
TQCheckBox* customFont;
KComboBox *fontFamily, *fontSize;
KComboBox *linkFormat;
KLineEdit *insertDateFormatEdit;
KColorButton *insertDateColorButton;
TQLabel *insertDatePreview;
TQSpinBox* autosave;
TQToolButton *insertDateItalicButton, *insertDateBoldButton, *insertDateUnderlineButton;
bool firstLink;
int exportFlags;
public:
KnowitPreferences();
void setOptions(const KnowitOptions& Options);
KnowitOptions getOptions() const;
public slots:
void slotUpdateDatePreview();
};
#endif
|