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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
  • views
  • todoview
kotodoview.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2000,2001,2003 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6  Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net>
7  Copyright (c) 2008 Thomas Thrainer <tom_t@gmx.at>
8 
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License along
20  with this program; if not, write to the Free Software Foundation, Inc.,
21  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 
23  As a special exception, permission is given to link this program
24  with any edition of Qt, and distribute the resulting executable,
25  without including the source code for Qt in the source distribution.
26 */
27 #ifndef KORG_VIEWS_KOTODOVIEW_H
28 #define KORG_VIEWS_KOTODOVIEW_H
29 
30 #include "korganizer/baseview.h"
31 #include "printing/calprinter.h"
32 
33 #include <calendarsupport/utils.h>
34 #include <calendarviews/todo/todoview.h>
35 #include <QPointer>
36 
37 using namespace KOrg;
38 
39 class KOTodoView : public BaseView
40 {
41  Q_OBJECT
42  public:
43  KOTodoView( bool sidebarView, QWidget *parent );
44  ~KOTodoView();
45 
46  virtual void setCalendar( const Akonadi::ETMCalendar::Ptr & );
47 
48  virtual Akonadi::Item::List selectedIncidences();
49  virtual KCalCore::DateList selectedIncidenceDates();
50  virtual int currentDateCount() const { return 0; }
51 
52  void setDocumentId( const QString & ) {}
53  void saveLayout( KConfig *config, const QString &group ) const;
54  void restoreLayout( KConfig *config, const QString &group, bool minimalDefaults );
55 
57  void getHighlightMode( bool &highlightEvents,
58  bool &highlightTodos,
59  bool &highlightJournals );
60 
61  bool usesFullWindow();
62 
63  void saveViewState();
64  void restoreViewState();
65 
66  bool supportsDateRangeSelection() { return false; }
67  virtual KOrg::CalPrinterBase::PrintType printType() const;
68 
69  public Q_SLOTS:
70  void updateCategories();
71  virtual void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
72  virtual void showDates( const QDate &start, const QDate &end,
73  const QDate &preferredMonth = QDate() );
74  virtual void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
75  virtual void updateView();
76  virtual void changeIncidenceDisplay( const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType changeType );
77  virtual void updateConfig();
78  virtual void clearSelection();
79 
80  private Q_SLOTS:
81  void printTodo( bool );
82  void printTodo();
83  void printPreviewTodo();
84 
85  Q_SIGNALS:
86  void purgeCompletedSignal();
87  void unSubTodoSignal();
88  void unAllSubTodoSignal();
89  void configChanged();
90  void fullViewChanged( bool enabled );
91 
92  private:
93  EventViews::TodoView *mView;
94 };
95 
96 #endif /*KOTODOVIEW_H*/
KOTodoView::supportsDateRangeSelection
bool supportsDateRangeSelection()
returns whether this view supports date range selection Base implementation returns true...
Definition: kotodoview.h:66
baseview.h
QWidget
KOrg::BaseView
This class provides an interface for all views being displayed within the main calendar view...
Definition: baseview.h:51
KOTodoView::setDocumentId
void setDocumentId(const QString &)
Definition: kotodoview.h:52
KOTodoView
Definition: kotodoview.h:39
KOTodoView::currentDateCount
virtual int currentDateCount() const
Returns the number of currently shown dates.
Definition: kotodoview.h:50
calprinter.h
KOrg::CalPrinterBase::PrintType
PrintType
Definition: printplugin.h:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

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

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

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