korganizer Library API Documentation

datenavigatorcontainer.h

00001 /*
00002     This file is part of KOrganizer.
00003 
00004     Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00019 
00020     As a special exception, permission is given to link this program
00021     with any edition of Qt, and distribute the resulting executable,
00022     without including the source code for Qt in the source distribution.
00023 */
00024 #ifndef DATENAVIGATORCONTAINER_H
00025 #define DATENAVIGATORCONTAINER_H
00026 
00027 class KDateNavigator;
00028 
00029 class DateNavigatorContainer: public QWidget
00030 {
00031     Q_OBJECT
00032   public:
00033     DateNavigatorContainer( QWidget *parent = 0, const char *name = 0 );
00034     ~DateNavigatorContainer();
00035 
00039     void setCalendar( Calendar * );
00040 
00041     QSize minimumSizeHint() const;
00042     QSize sizeHint() const;
00043 
00044   public slots:
00045     void selectDates( const KCal::DateList & );
00046     void updateView();
00047     void updateConfig();
00048     void updateDayMatrix();
00049     void updateToday();
00050 
00051   signals:
00052     void datesSelected( const KCal::DateList & );
00053     void incidenceDropped( Incidence * );
00054     void incidenceDroppedMove( Incidence *, Incidence * );
00055     void weekClicked( const QDate &);
00056 
00057     void goPrevious();
00058     void goNext();
00059 
00060     void goNextMonth();
00061     void goPrevMonth();
00062     void goNextYear();
00063     void goPrevYear();
00064 
00065     void goMonth( int month );
00066 
00067   protected:
00068     void resizeEvent( QResizeEvent * );
00069 
00070     void setBaseDates();
00071     void connectNavigatorView( KDateNavigator *v );
00072 
00073   private:
00074     KDateNavigator *mNavigatorView;
00075 
00076     KCal::Calendar *mCalendar;
00077 
00078     QPtrList<KDateNavigator> mExtraViews;
00079 
00080     int mHorizontalCount;
00081     int mVerticalCount;
00082 };
00083 
00084 #endif
KDE Logo
This file is part of the documentation for korganizer Library Version 3.3.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 17 09:56:22 2007 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003