Diffstat (limited to 'korganizer/koeditorgeneral.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneral.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/korganizer/koeditorgeneral.h b/korganizer/koeditorgeneral.h index a8f6443..c463403 100644 --- a/korganizer/koeditorgeneral.h +++ b/korganizer/koeditorgeneral.h | |||
@@ -6,48 +6,49 @@ | |||
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
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 <qframe.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 <qgroupbox.h> | 31 | #include <qgroupbox.h> |
31 | #include <qlineedit.h> | 32 | #include <qlineedit.h> |
32 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
33 | #include <qlistview.h> | 34 | #include <qlistview.h> |
34 | #include <qradiobutton.h> | 35 | #include <qradiobutton.h> |
35 | #include <qlayout.h> | 36 | #include <qlayout.h> |
36 | #include <qspinbox.h> | 37 | #include <qspinbox.h> |
37 | 38 | ||
38 | #include <ktextedit.h> | 39 | #include <ktextedit.h> |
39 | #include <krestrictedline.h> | 40 | #include <krestrictedline.h> |
40 | 41 | ||
41 | #include <libkcal/incidence.h> | 42 | #include <libkcal/incidence.h> |
42 | 43 | ||
43 | #include "ktimeedit.h" | 44 | #include "ktimeedit.h" |
44 | 45 | ||
45 | class KDateEdit; | 46 | class KDateEdit; |
46 | class KOLocationBox; | 47 | class KOLocationBox; |
47 | using namespace KCal; | 48 | using namespace KCal; |
48 | 49 | ||
49 | class KOEditorGeneral : public QObject | 50 | class KOEditorGeneral : public QObject |
50 | { | 51 | { |
51 | Q_OBJECT | 52 | Q_OBJECT |
52 | public: | 53 | public: |
53 | KOEditorGeneral (QObject* parent=0,const char* name=0); | 54 | KOEditorGeneral (QObject* parent=0,const char* name=0); |
@@ -61,56 +62,60 @@ class KOEditorGeneral : public QObject | |||
61 | 62 | ||
62 | /** Set widgets to default values */ | 63 | /** Set widgets to default values */ |
63 | void setDefaults(bool allDay); | 64 | void setDefaults(bool allDay); |
64 | /** Read event object and setup widgets accordingly */ | 65 | /** Read event object and setup widgets accordingly */ |
65 | void readIncidence(Incidence *); | 66 | void readIncidence(Incidence *); |
66 | /** Write event settings to event object */ | 67 | /** Write event settings to event object */ |
67 | void writeIncidence(Incidence *); | 68 | void writeIncidence(Incidence *); |
68 | 69 | ||
69 | /** Check if the input is valid. */ | 70 | /** Check if the input is valid. */ |
70 | bool validateInput() { return true; } | 71 | bool validateInput() { return true; } |
71 | 72 | ||
72 | void enableAlarm( bool enable ); | 73 | void enableAlarm( bool enable ); |
73 | void setSecrecy( int num ); | 74 | void setSecrecy( int num ); |
74 | public slots: | 75 | public slots: |
75 | void setCategories(const QString &); | 76 | void setCategories(const QString &); |
76 | void editCategories(); | 77 | void editCategories(); |
77 | 78 | ||
78 | protected slots: | 79 | protected slots: |
79 | void enableAlarmEdit( bool enable ); | 80 | void enableAlarmEdit( bool enable ); |
80 | void disableAlarmEdit( bool disable ); | 81 | void disableAlarmEdit( bool disable ); |
81 | void alarmDisable( bool disable ); | 82 | void alarmDisable( bool disable ); |
82 | void pickAlarmSound(); | 83 | void pickAlarmSound(); |
83 | void pickAlarmProgram(); | 84 | void pickAlarmProgram(); |
84 | void slotSetFocusOn(); | 85 | void slotSetFocusOn(); |
86 | void showCatPopup(); | ||
87 | void selectedCatPopup( int ); | ||
88 | |||
85 | signals: | 89 | signals: |
86 | void openCategoryDialog(); | 90 | void openCategoryDialog(); |
87 | void allAccepted(); | 91 | void allAccepted(); |
88 | void dateTimesChanged(QDateTime,QDateTime); | 92 | void dateTimesChanged(QDateTime,QDateTime); |
89 | 93 | ||
90 | protected: | 94 | protected: |
91 | int mNextFocus; | 95 | int mNextFocus; |
92 | //QLineEdit *mSummaryEdit; | 96 | //QLineEdit *mSummaryEdit; |
93 | //QLineEdit *mLocationEdit; | 97 | //QLineEdit *mLocationEdit; |
94 | KOLocationBox *mSummaryEdit; | 98 | KOLocationBox *mSummaryEdit; |
95 | KOLocationBox *mLocationEdit; | 99 | KOLocationBox *mLocationEdit; |
96 | QLabel *mAlarmBell; | 100 | QLabel *mAlarmBell; |
97 | QCheckBox *mAlarmButton; | 101 | QCheckBox *mAlarmButton; |
98 | QSpinBox *mAlarmTimeEdit; | 102 | QSpinBox *mAlarmTimeEdit; |
99 | QPushButton *mAlarmSoundButton; | 103 | QPushButton *mAlarmSoundButton; |
100 | QPushButton *mAlarmProgramButton; | 104 | QPushButton *mAlarmProgramButton; |
101 | QComboBox *mAlarmIncrCombo; | 105 | QComboBox *mAlarmIncrCombo; |
102 | KTextEdit *mDescriptionEdit; | 106 | KTextEdit *mDescriptionEdit; |
103 | QLabel *mOwnerLabel; | 107 | QLabel *mOwnerLabel; |
104 | QComboBox *mSecrecyCombo; | 108 | QComboBox *mSecrecyCombo; |
105 | QCheckBox *mCancelBox; | 109 | QCheckBox *mCancelBox; |
106 | QPushButton *mCategoriesButton; | 110 | QPushButton *mCategoriesButton; |
107 | QLabel *mCategoriesLabel; | 111 | QPushButton *mCategoriesLabel; |
108 | 112 | ||
109 | private: | 113 | private: |
114 | QPopupMenu * mCatPopup; | ||
110 | QString getFittingPath( const QString ) ; | 115 | QString getFittingPath( const QString ) ; |
111 | QString mAlarmSound; | 116 | QString mAlarmSound; |
112 | QString mAlarmProgram; | 117 | QString mAlarmProgram; |
113 | QString mAlarmMessage; | 118 | QString mAlarmMessage; |
114 | }; | 119 | }; |
115 | 120 | ||
116 | #endif | 121 | #endif |