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

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • planner
planner.h
Go to the documentation of this file.
1 /*
2  This file is part of Kontact.
3 
4  Copyright (c) 2003 Tobias Koenig <tokoe@kde.org>
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 
20  As a special exception, permission is given to link this program
21  with any edition of Qt, and distribute the resulting executable,
22  without including the source code for Qt in the source distribution.
23 */
24 
25 #ifndef PLANNERWIDGET_H
26 #define PLANNERWIDGET_H
27 
28 #include <KontactInterface/Summary>
29 
30 #include <KCal/Event>
31 #include <KCal/Todo>
32 
33 #include <QList>
34 
35 class SDEntry;
36 
37 namespace KABC {
38  class AddressBook;
39 }
40 using namespace KABC;
41 
42 namespace KCal {
43  class Calendar;
44 }
45 using namespace KCal;
46 
47 namespace KHolidays {
48  class HolidayRegion;
49 }
50 
51 namespace KontactInterface {
52  class Plugin;
53 }
54 
55 class QGridLayout;
56 class QLabel;
57 class QVBoxLayout;
58 
59 class Planner : public KontactInterface::Summary
60 {
61  Q_OBJECT
62 
63  public:
64  Planner( KontactInterface::Plugin *plugin, QWidget *parent );
65 
66  int summaryHeight() const { return 3; }
67  QStringList configModules() const;
68  void configUpdated();
69  void updateSummary( bool force = false )
70  {
71  Q_UNUSED( force );
72  updateView();
73  }
74 
75  protected:
76  virtual bool eventFilter( QObject *obj, QEvent *e );
77  virtual bool todoEventFilter( QObject *obj, QEvent *e );
78 
79  private slots:
80  void initTodoList( const QDate &date );
81  int showTodos( int counter, const QDate &date );
82  void initEventList( const QDate &date );
83  int showEvents( int counter, const QDate &date );
84  void initSdList( const QDate &date );
85  int showSd( int counter, const QDate &date );
86  void updateView();
87 
88  void eventPopupMenu( const QString &uid );
89  void viewEvent( const QString &uid );
90  void removeEvent( const QString &uid );
91  void todoPopupMenu( const QString &uid );
92  void viewTodo( const QString &uid );
93  void removeTodo( const QString &uid );
94  void completeTodo( const QString &uid );
95  void changePercentage( const QString &uid );
96 
97  bool inProgress( Todo *todo );
98  bool overdue( Todo *todo );
99  bool completed( Todo *todo );
100  bool openEnded( Todo *todo );
101  bool notStarted( Todo *todo );
102 
103  private:
104  bool mShowRecurrence;
105  bool mShowReminder;
106  bool mUnderline;
107  bool mTodo;
108  bool mSd;
109 
110  int mCustomDays;
111 
112  bool mHideCompleted;
113  bool mHideOpenEnded;
114  bool mHideNotStarted;
115  bool mHideInProgress;
116  bool mHideOverdue;
117 
118  bool initHolidays();
119  bool mBirthdayCal;
120  bool mBirthdayConList;
121  bool mAnniversariesCal;
122  bool mAnniversariesConList;
123  bool mHolidaysCal;
124  bool mSpecialOccasionsCal;
125 
126  bool mShowMyEventsOnly;
127  bool mShowMyTodosOnly;
128 
129  Event::List mEvents;
130  KontactInterface::Plugin *mPlugin;
131  QVBoxLayout *mLayout;
132  QGridLayout *mPlannerGrid;
133  QList<QLabel *> mLabels;
134 
135  KCal::Calendar *mCalendar;
136  AddressBook *mAddressBook;
137 
138  Todo::List mTodos;
139  QString initStateText( const Todo *todo, const QDate &date );
140  KHolidays::HolidayRegion *mHolidays;
141  QList<SDEntry> mDates;
142 };
143 
144 #endif
QEvent
QWidget
date
time_t date() const
QGridLayout
Planner::summaryHeight
int summaryHeight() const
Definition: planner.h:66
QObject
QVBoxLayout
QDate
QString
QList< QLabel * >
QStringList
Planner
Definition: planner.h:59
Planner::updateSummary
void updateSummary(bool force=false)
Definition: planner.h:69
QLabel
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal