korganizer Library API Documentation

koeditorgeneral.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., 675 Mass Ave, Cambridge, MA 02139, 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 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
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Oct 18 02:47:31 2003 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001