• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

navigatorbar.h

Go to the documentation of this file.
00001 /*
00002   This file is part of KOrganizer.
00003 
00004   Copyright (c) 2003 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 along
00017   with this program; if not, write to the Free Software Foundation, Inc.,
00018   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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 NAVIGATORBAR_H
00025 #define NAVIGATORBAR_H
00026 
00027 #include <kcal/incidencebase.h>
00028 
00029 #include <QLabel>
00030 #include <QMouseEvent>
00031 
00032 class QToolButton;
00033 
00034 class ActiveLabel : public QLabel
00035 {
00036   Q_OBJECT
00037   public:
00038     explicit ActiveLabel( QWidget *parent );
00039 
00040   signals:
00041     void clicked();
00042 
00043   protected:
00044     void mouseReleaseEvent ( QMouseEvent *e );
00045 };
00046 
00047 class NavigatorBar: public QWidget
00048 {
00049   Q_OBJECT
00050   public:
00051     explicit NavigatorBar( QWidget *parent = 0 );
00052     ~NavigatorBar();
00053 
00054     void showButtons( bool left, bool right );
00055 
00056   public slots:
00057     void selectDates( const KCal::DateList & );
00058 
00059   signals:
00060     void goNextMonth();
00061     void goPrevMonth();
00062     void goNextYear();
00063     void goPrevYear();
00064     void goMonth( int month );
00065     void goYear( int year );
00066 
00067   protected:
00068     QToolButton *createNavigationButton( const QString &icon,
00069                                          const QString &toolTip,
00070                                          const QString &whatsThis );
00071 
00072   private slots:
00073     void selectMonth();
00074     void selectYear();
00075 
00076   private:
00077     bool mHasMinWidth;
00078 
00079     QDate mDate;
00080 
00081     QToolButton *mPrevYear;
00082     QToolButton *mPrevMonth;
00083     ActiveLabel *mMonth;
00084     ActiveLabel *mYear;
00085     QToolButton *mNextMonth;
00086     QToolButton *mNextYear;
00087 };
00088 
00089 #endif

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal