kpilot

datebookWidget.h

Go to the documentation of this file.
00001 #ifndef _KPILOT_DATEBOOKWIDGET_H
00002 #define _KPILOT_DATEBOOKWIDGET_H
00003 /* datebookWidget.h     KPilot
00004 **
00005 ** Copyright (C) 2003 by Dan Pilone.
00006 **  Authored by Adriaan de Groot
00007 **
00008 ** This is the viewer widget for viewing datebook entries in
00009 ** a marginally useful form.
00010 */
00011 
00012 /*
00013 ** This program is free software; you can redistribute it and/or modify
00014 ** it under the terms of the GNU General Public License as published by
00015 ** the Free Software Foundation; either version 2 of the License, or
00016 ** (at your option) any later version.
00017 **
00018 ** This program is distributed in the hope that it will be useful,
00019 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00020 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021 ** GNU General Public License for more details.
00022 **
00023 ** You should have received a copy of the GNU General Public License
00024 ** along with this program in a file called COPYING; if not, write to
00025 ** the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
00026 ** MA 02110-1301, USA.
00027 */
00028 
00029 /*
00030 ** Bug reports and questions can be sent to kde-pim@kde.org
00031 */
00032 
00033 #include "pilotComponent.h"
00034 
00035 class KDatePicker;
00036 class QPushButton;
00037 class KListView;
00038 
00039 class DatebookWidget : public PilotComponent
00040 {
00041 Q_OBJECT
00042 
00043 public:
00044     DatebookWidget(QWidget* parent, const QString& dbpath);
00045     virtual ~DatebookWidget();
00046 
00047     // Pilot component methods
00048     void hideComponent();
00049     void showComponent();
00050 
00051 protected slots:
00052     void slotDayChanged();
00053     void slotAddEvent();
00054     void slotEditEvent();
00055     void slotDeleteEvent();
00056 
00057 private:
00058     KDatePicker*fDatePicker;
00059     QPushButton*fAddButton;
00060     QPushButton*fEditButton;
00061     QPushButton*fDeleteButton;
00062     KListView*fEventList;
00063 };
00064 
00065 
00066 #endif