summaryrefslogtreecommitdiffabout
path: root/korganizer/koeditorgeneral.h
authorzautrix <zautrix>2004-06-26 19:01:18 (UTC)
committer zautrix <zautrix>2004-06-26 19:01:18 (UTC)
commitb9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff)
tree2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /korganizer/koeditorgeneral.h
downloadkdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz
kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2
Initial revision
Diffstat (limited to 'korganizer/koeditorgeneral.h') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeditorgeneral.h112
1 files changed, 112 insertions, 0 deletions
diff --git a/korganizer/koeditorgeneral.h b/korganizer/koeditorgeneral.h
new file mode 100644
index 0000000..c58335e
--- a/dev/null
+++ b/korganizer/koeditorgeneral.h
@@ -0,0 +1,112 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4
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
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
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
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution.
22*/
23#ifndef KOEDITORGENERAL_H
24#define KOEDITORGENERAL_H
25
26#include <qframe.h>
27#include <qlabel.h>
28#include <qcheckbox.h>
29#include <qpushbutton.h>
30#include <qgroupbox.h>
31#include <qlineedit.h>
32#include <qcombobox.h>
33#include <qlistview.h>
34#include <qradiobutton.h>
35#include <qlayout.h>
36#include <qspinbox.h>
37
38#include <ktextedit.h>
39#include <krestrictedline.h>
40
41#include <libkcal/incidence.h>
42
43#include "ktimeedit.h"
44
45class KDateEdit;
46class KOLocationBox;
47using namespace KCal;
48
49class KOEditorGeneral : public QObject
50{
51 Q_OBJECT
52 public:
53 KOEditorGeneral (QObject* parent=0,const char* name=0);
54 virtual ~KOEditorGeneral();
55 void setFocusOn( int i );
56 void initHeader(QWidget *,QBoxLayout *);
57 void initDescription(QWidget *,QBoxLayout *);
58 void initSecrecy(QWidget *,QBoxLayout *);
59 void initCategories(QWidget *,QBoxLayout *);
60 void initAlarm(QWidget *,QBoxLayout *);
61
62 /** Set widgets to default values */
63 void setDefaults(bool allDay);
64 /** Read event object and setup widgets accordingly */
65 void readIncidence(Incidence *);
66 /** Write event settings to event object */
67 void writeIncidence(Incidence *);
68
69 /** Check if the input is valid. */
70 bool validateInput() { return true; }
71
72 void enableAlarm( bool enable );
73 void setSecrecy( int num );
74 public slots:
75 void setCategories(const QString &);
76 void editCategories();
77
78 protected slots:
79 void enableAlarmEdit( bool enable );
80 void disableAlarmEdit( bool disable );
81 void alarmDisable( bool disable );
82 void pickAlarmSound();
83 void pickAlarmProgram();
84
85 signals:
86 void openCategoryDialog();
87 void allAccepted();
88
89 protected:
90 //QLineEdit *mSummaryEdit;
91 //QLineEdit *mLocationEdit;
92 KOLocationBox *mSummaryEdit;
93 KOLocationBox *mLocationEdit;
94 QLabel *mAlarmBell;
95 QCheckBox *mAlarmButton;
96 QSpinBox *mAlarmTimeEdit;
97 QPushButton *mAlarmSoundButton;
98 QPushButton *mAlarmProgramButton;
99 QComboBox *mAlarmIncrCombo;
100 KTextEdit *mDescriptionEdit;
101 QLabel *mOwnerLabel;
102 QComboBox *mSecrecyCombo;
103 QCheckBox *mCancelBox;
104 QPushButton *mCategoriesButton;
105 QLabel *mCategoriesLabel;
106
107 private:
108 QString mAlarmSound;
109 QString mAlarmProgram;
110};
111
112#endif