koeditorgeneral.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KOEDITORGENERAL_H
00024 #define KOEDITORGENERAL_H
00025
00026 #include <qframe.h>
00027 #include <qlabel.h>
00028 #include <qcheckbox.h>
00029 #include <qpushbutton.h>
00030 #include <qgroupbox.h>
00031 #include <qlineedit.h>
00032 #include <qcombobox.h>
00033 #include <qlistview.h>
00034 #include <qradiobutton.h>
00035
00036 #include <ktextedit.h>
00037 #include <krestrictedline.h>
00038
00039 #include <libkcal/incidence.h>
00040
00041 #include "ktimeedit.h"
00042
00043 class KDateEdit;
00044
00045 using namespace KCal;
00046
00047 class KOEditorGeneral : public QObject
00048 {
00049 Q_OBJECT
00050 public:
00051 KOEditorGeneral (QObject* parent=0,const char* name=0);
00052 virtual ~KOEditorGeneral();
00053
00054 void initHeader(QWidget *,QBoxLayout *);
00055 void initDescription(QWidget *,QBoxLayout *);
00056 void initSecrecy(QWidget *,QBoxLayout *);
00057 void initCategories(QWidget *,QBoxLayout *);
00058 void initAlarm(QWidget *,QBoxLayout *);
00059
00061 void setDefaults(bool allDay);
00063 void readIncidence(Incidence *);
00065 void writeIncidence(Incidence *);
00066
00068 bool validateInput() { return true; }
00069
00070 void enableAlarm( bool enable );
00071
00072 public slots:
00073 void setCategories(const QString &);
00074
00075 protected slots:
00076 void enableAlarmEdit( bool enable );
00077 void disableAlarmEdit( bool disable );
00078 void alarmDisable( bool disable );
00079 void pickAlarmSound();
00080 void pickAlarmProgram();
00081
00082 signals:
00083 void openCategoryDialog();
00084
00085 protected:
00086 QLineEdit *mSummaryEdit;
00087 QLineEdit *mLocationEdit;
00088 QLabel *mAlarmBell;
00089 QCheckBox *mAlarmButton;
00090 KRestrictedLine *mAlarmTimeEdit;
00091 QPushButton *mAlarmSoundButton;
00092 QPushButton *mAlarmProgramButton;
00093 QComboBox *mAlarmIncrCombo;
00094 KTextEdit *mDescriptionEdit;
00095 QLabel *mOwnerLabel;
00096 QComboBox *mSecrecyCombo;
00097 QPushButton *mCategoriesButton;
00098 QLabel *mCategoriesLabel;
00099
00100 private:
00101 QString mAlarmSound;
00102 QString mAlarmProgram;
00103 };
00104
00105 #endif
This file is part of the documentation for kdelibs Version 3.1.4.