kpilot

todoEditor.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 /* todoEditor.h     KPilot
00003 **
00004 ** Copyright (C) 1998-2000 by Dan Pilone
00005 **
00006 ** This is a dialog window that is used to edit a single todo record.
00007 */
00008 
00009 /*
00010 ** This program is free software; you can redistribute it and/or modify
00011 ** it under the terms of the GNU General Public License as published by
00012 ** the Free Software Foundation; either version 2 of the License, or
00013 ** (at your option) any later version.
00014 **
00015 ** This program is distributed in the hope that it will be useful,
00016 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00017 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00018 ** GNU General Public License for more details.
00019 **
00020 ** You should have received a copy of the GNU General Public License
00021 ** along with this program in a file called COPYING; if not, write to
00022 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00023 ** MA 02110-1301, USA.
00024 */
00025 
00026 /*
00027 ** Bug reports and questions can be sent to kde-pim@kde.org
00028 */
00029 
00030 #ifndef _KPILOT_TODOEDITOR_H
00031 #define _KPILOT_TODOEDITOR_H
00032 
00033 #include <kdialogbase.h>
00034 
00035 class PilotTodoEntry;
00036 struct ToDoAppInfo;
00037 
00038 class QComboBox;
00039 class QTextEdit;
00040 class QCheckBox;
00041 class KDateWidget;
00042 class TodoEditorBase;
00043 
00044 class TodoEditor : public KDialogBase
00045 {
00046     Q_OBJECT
00047 
00048 
00049 public:
00050     TodoEditor(PilotTodoEntry *todo,
00051         struct ToDoAppInfo *appInfo,
00052         QWidget *parent, const char *name=0L);
00053     ~TodoEditor();
00054 
00055 
00056 signals:
00057     void recordChangeComplete ( PilotTodoEntry* );
00058 
00059 public slots:
00060     void slotOk();
00061     void slotCancel();
00062     void updateRecord(PilotTodoEntry *);
00063 
00064 private:
00065     TodoEditorBase*fWidget;
00066     bool fDeleteOnCancel;
00067 
00068     PilotTodoEntry* fTodo;
00069     struct ToDoAppInfo *fAppInfo;
00070 
00071     void fillFields();
00072 };
00073 #endif
00074