-rw-r--r-- | korganizer/koeditorgeneral.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/korganizer/koeditorgeneral.h b/korganizer/koeditorgeneral.h index b10a5d4..45f26fd 100644 --- a/korganizer/koeditorgeneral.h +++ b/korganizer/koeditorgeneral.h | |||
@@ -10,69 +10,70 @@ | |||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef KOEDITORGENERAL_H | 23 | #ifndef KOEDITORGENERAL_H |
24 | #define KOEDITORGENERAL_H | 24 | #define KOEDITORGENERAL_H |
25 | 25 | ||
26 | #include <qframe.h> | 26 | #include <q3frame.h> |
27 | #include <qlabel.h> | 27 | #include <qlabel.h> |
28 | #include <qcheckbox.h> | 28 | #include <qcheckbox.h> |
29 | #include <qpushbutton.h> | 29 | #include <qpushbutton.h> |
30 | #include <qpopupmenu.h> | 30 | #include <q3popupmenu.h> |
31 | #include <qgroupbox.h> | 31 | #include <q3groupbox.h> |
32 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qlistview.h> | 34 | #include <q3listview.h> |
35 | #include <qradiobutton.h> | 35 | #include <qradiobutton.h> |
36 | #include <qlayout.h> | 36 | #include <qlayout.h> |
37 | #include <qspinbox.h> | 37 | #include <qspinbox.h> |
38 | #include <qcombobox.h> | 38 | #include <qcombobox.h> |
39 | #include <Q3BoxLayout> | ||
39 | 40 | ||
40 | #include <ktextedit.h> | 41 | #include <ktextedit.h> |
41 | #include <krestrictedline.h> | 42 | #include <krestrictedline.h> |
42 | 43 | ||
43 | #include <libkcal/incidence.h> | 44 | #include <libkcal/incidence.h> |
44 | 45 | ||
45 | #include "ktimeedit.h" | 46 | #include "ktimeedit.h" |
46 | 47 | ||
47 | class KDateEdit; | 48 | class KDateEdit; |
48 | class KOLocationBox; | 49 | class KOLocationBox; |
49 | using namespace KCal; | 50 | using namespace KCal; |
50 | 51 | ||
51 | class KOEditorGeneral : public QObject | 52 | class KOEditorGeneral : public QObject |
52 | { | 53 | { |
53 | Q_OBJECT | 54 | Q_OBJECT |
54 | public: | 55 | public: |
55 | KOEditorGeneral (QObject* parent=0,const char* name=0); | 56 | KOEditorGeneral (QObject* parent=0,const char* name=0); |
56 | virtual ~KOEditorGeneral(); | 57 | virtual ~KOEditorGeneral(); |
57 | void setFocusOn( int i ); | 58 | void setFocusOn( int i ); |
58 | void initHeader(QWidget *,QBoxLayout *); | 59 | void initHeader(QWidget *,Q3BoxLayout *); |
59 | void initDescription(QWidget *,QBoxLayout *); | 60 | void initDescription(QWidget *,Q3BoxLayout *); |
60 | void initSecrecy(QWidget *,QBoxLayout *); | 61 | void initSecrecy(QWidget *,Q3BoxLayout *); |
61 | void initCategories(QWidget *,QBoxLayout *); | 62 | void initCategories(QWidget *,Q3BoxLayout *); |
62 | void initAlarm(QWidget *,QBoxLayout *); | 63 | void initAlarm(QWidget *,Q3BoxLayout *); |
63 | 64 | ||
64 | /** Set widgets to default values */ | 65 | /** Set widgets to default values */ |
65 | void setDefaults(bool allDay); | 66 | void setDefaults(bool allDay); |
66 | /** Read event object and setup widgets accordingly */ | 67 | /** Read event object and setup widgets accordingly */ |
67 | void readIncidence(Incidence *); | 68 | void readIncidence(Incidence *); |
68 | /** Write event settings to event object */ | 69 | /** Write event settings to event object */ |
69 | void writeIncidence(Incidence *); | 70 | void writeIncidence(Incidence *); |
70 | 71 | ||
71 | /** Check if the input is valid. */ | 72 | /** Check if the input is valid. */ |
72 | bool validateInput() { return true; } | 73 | bool validateInput() { return true; } |
73 | 74 | ||
74 | void enableAlarm( bool enable ); | 75 | void enableAlarm( bool enable ); |
75 | void setSecrecy( int num ); | 76 | void setSecrecy( int num ); |
76 | int getCalendarID(); | 77 | int getCalendarID(); |
77 | public slots: | 78 | public slots: |
78 | void setCategories(const QString &); | 79 | void setCategories(const QString &); |
@@ -102,24 +103,24 @@ class KOEditorGeneral : public QObject | |||
102 | KOLocationBox *mLocationEdit; | 103 | KOLocationBox *mLocationEdit; |
103 | QComboBox *mCalendarBox; | 104 | QComboBox *mCalendarBox; |
104 | QLabel *mAlarmBell; | 105 | QLabel *mAlarmBell; |
105 | QCheckBox *mAlarmButton; | 106 | QCheckBox *mAlarmButton; |
106 | QSpinBox *mAlarmTimeEdit; | 107 | QSpinBox *mAlarmTimeEdit; |
107 | QPushButton *mAlarmSoundButton; | 108 | QPushButton *mAlarmSoundButton; |
108 | QPushButton *mAlarmProgramButton; | 109 | QPushButton *mAlarmProgramButton; |
109 | QComboBox *mAlarmIncrCombo; | 110 | QComboBox *mAlarmIncrCombo; |
110 | KTextEdit *mDescriptionEdit; | 111 | KTextEdit *mDescriptionEdit; |
111 | QLabel *mOwnerLabel; | 112 | QLabel *mOwnerLabel; |
112 | QComboBox *mSecrecyCombo; | 113 | QComboBox *mSecrecyCombo; |
113 | QCheckBox *mCancelBox; | 114 | QCheckBox *mCancelBox; |
114 | QPushButton *mCategoriesButton; | 115 | QPushButton *mCategoriesButton; |
115 | QPushButton *mCategoriesLabel; | 116 | QPushButton *mCategoriesLabel; |
116 | 117 | ||
117 | private: | 118 | private: |
118 | QPopupMenu * mCatPopup; | 119 | Q3PopupMenu * mCatPopup; |
119 | QString getFittingPath( const QString &) ; | 120 | QString getFittingPath( const QString &) ; |
120 | QString mAlarmSound; | 121 | QString mAlarmSound; |
121 | QString mAlarmProgram; | 122 | QString mAlarmProgram; |
122 | QString mAlarmMessage; | 123 | QString mAlarmMessage; |
123 | }; | 124 | }; |
124 | 125 | ||
125 | #endif | 126 | #endif |