summaryrefslogtreecommitdiffabout
path: root/korganizer/koeditorgeneral.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/koeditorgeneral.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'korganizer/koeditorgeneral.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeditorgeneral.h21
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
@@ -14,61 +14,62 @@
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
47class KDateEdit; 48class KDateEdit;
48class KOLocationBox; 49class KOLocationBox;
49using namespace KCal; 50using namespace KCal;
50 51
51class KOEditorGeneral : public QObject 52class 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 );
@@ -106,20 +107,20 @@ class KOEditorGeneral : public QObject
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