korganizer Library API Documentation

koeditorgeneralevent.h

00001 /*
00002     This file is part of KOrganizer.
00003     Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
00004 
00005     This program is free software; you can redistribute it and/or modify
00006     it under the terms of the GNU General Public License as published by
00007     the Free Software Foundation; either version 2 of the License, or
00008     (at your option) any later version.
00009 
00010     This program is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with this program; if not, write to the Free Software
00017     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00018 
00019     As a special exception, permission is given to link this program
00020     with any edition of Qt, and distribute the resulting executable,
00021     without including the source code for Qt in the source distribution.
00022 */
00023 #ifndef _KOEDITORGENERALEVENT_H
00024 #define _KOEDITORGENERALEVENT_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 <qmultilineedit.h>
00034 #include <qlistview.h>
00035 #include <qradiobutton.h>
00036 
00037 #include <krestrictedline.h>
00038 
00039 #include "koeditorgeneral.h"
00040 
00041 #include "ktimeedit.h"
00042 
00043 class KDateEdit;
00044 
00045 using namespace KCal;
00046 
00047 class KOEditorGeneralEvent : public KOEditorGeneral
00048 {
00049     Q_OBJECT
00050   public:
00051     KOEditorGeneralEvent (QObject* parent=0,const char* name=0);
00052     virtual ~KOEditorGeneralEvent();
00053 
00054     void initTime(QWidget *,QBoxLayout *);
00055     void initClass(QWidget *,QBoxLayout *);
00056 
00057     void finishSetup();
00058 
00060     void setDefaults(QDateTime from,QDateTime to,bool allDay);
00065     void readEvent( Event *, bool tmpl = false );
00067     void writeEvent(Event *);
00068 
00070     bool validateInput();
00071 
00072   public slots:
00073     void setDateTimes(QDateTime start, QDateTime end);
00074     void setDuration();
00075 
00076   protected slots:
00077     void timeStuffDisable(bool disable);
00078     void dontAssociateTime(bool noTime);
00079 
00080     void startTimeChanged(QTime);
00081     void startDateChanged(QDate);
00082     void endTimeChanged(QTime);
00083     void endDateChanged(QDate);
00084 
00085     void emitDateTimeStr();
00086 
00087   signals:
00088     void dateTimesChanged(QDateTime start,QDateTime end);
00089     void allDayChanged(bool);
00090     void dateTimeStrChanged(const QString &);
00091 
00092   private:
00093     QLabel                  *mStartDateLabel;
00094     QLabel                  *mEndDateLabel;
00095     KDateEdit               *mStartDateEdit;
00096     KDateEdit               *mEndDateEdit;
00097     KOTimeEdit              *mStartTimeEdit;
00098     KOTimeEdit              *mEndTimeEdit;
00099     QLabel                  *mDurationLabel;
00100     QCheckBox               *mNoTimeButton;
00101     QComboBox               *mFreeTimeCombo;
00102 
00103     // current start and end date and time
00104     QDateTime mCurrStartDateTime;
00105     QDateTime mCurrEndDateTime;
00106 };
00107 
00108 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:29 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003