summaryrefslogtreecommitdiffabout
path: root/korganizer/koeditorgeneral.h
Unidiff
Diffstat (limited to 'korganizer/koeditorgeneral.h') (more/less context) (show 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
@@ -2,85 +2,86 @@
2 This file is part of KOrganizer. 2 This file is part of KOrganizer.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
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 <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 );
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 &);
79 void editCategories(); 80 void editCategories();
80 81
81 protected slots: 82 protected slots:
82 void enableAlarmEdit( bool enable ); 83 void enableAlarmEdit( bool enable );
83 void disableAlarmEdit( bool disable ); 84 void disableAlarmEdit( bool disable );
84 void alarmDisable( bool disable ); 85 void alarmDisable( bool disable );
85 void pickAlarmSound(); 86 void pickAlarmSound();
86 void pickAlarmProgram(); 87 void pickAlarmProgram();
@@ -94,32 +95,32 @@ class KOEditorGeneral : public QObject
94 void dateTimesChanged(QDateTime,QDateTime); 95 void dateTimesChanged(QDateTime,QDateTime);
95 96
96 protected: 97 protected:
97 void fillCalCombo( int setToID = 0 ); 98 void fillCalCombo( int setToID = 0 );
98 int mNextFocus; 99 int mNextFocus;
99 //QLineEdit *mSummaryEdit; 100 //QLineEdit *mSummaryEdit;
100 //QLineEdit *mLocationEdit; 101 //QLineEdit *mLocationEdit;
101 KOLocationBox *mSummaryEdit; 102 KOLocationBox *mSummaryEdit;
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