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

korganizer

  • sources
  • kde-4.14
  • kdepim
  • korganizer
  • views
  • monthview
monthview.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (C) 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
5  Author: Sergio Martins <sergio.martins@kdab.com>
6 
7  This program is free software; you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License along
18  with this program; if not, write to the Free Software Foundation, Inc.,
19  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of Qt, and distribute the resulting executable,
23  without including the source code for Qt in the source distribution.
24 */
25 
26 #ifndef KORG_VIEWS_MONTHVIEW_H
27 #define KORG_VIEWS_MONTHVIEW_H
28 
29 #include "koeventview.h"
30 
31 namespace KOrg {
32 
33 class MonthView : public KOEventView
34 {
35  Q_OBJECT
36  public:
37  explicit MonthView( QWidget *parent = 0 );
38  ~MonthView();
39 
40  int currentDateCount() const;
41  int currentMonth() const;
42 
43  Akonadi::Item::List selectedIncidences();
44 
46  KCalCore::DateList selectedIncidenceDates();
47 
48  QDateTime selectionStart();
49 
50  QDateTime selectionEnd();
51  bool eventDurationHint( QDateTime &startDt, QDateTime &endDt, bool &allDay );
52 
56  QDate averageDate() const;
57 
58  bool usesFullWindow();
59 
60  bool supportsDateRangeSelection();
61 
62  CalendarSupport::CalPrinterBase::PrintType printType() const;
63 
64  int maxDatesHint() const;
65 
66  void setTypeAheadReceiver( QObject *o );
67 
68  void setDateRange( const KDateTime &start, const KDateTime &end,
69  const QDate &preferredMonth = QDate() );
70 
71  void setCalendar( const Akonadi::ETMCalendar::Ptr &cal );
72 
73  void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
74 
75  public slots:
76  void updateView();
77 
78  void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
79 
80  void changeIncidenceDisplay( const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType );
81 
82  void updateConfig();
83 
84  signals:
85  void fullViewChanged( bool enabled );
86 
87  private:
88  void showDates( const QDate &start, const QDate &end,
89  const QDate &preferredMonth = QDate() );
90 
91  class Private;
92  Private *const d;
93 };
94 
95 }
96 #endif
KOrg::MonthView::averageDate
QDate averageDate() const
Returns the average date in the view.
Definition: monthview.cpp:172
QWidget
KOrg::MonthView::currentMonth
int currentMonth() const
Definition: monthview.cpp:147
KOrg::MonthView
Definition: monthview.h:33
KOEventView
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:54
KOrg::MonthView::selectedIncidenceDates
KCalCore::DateList selectedIncidenceDates()
Returns dates of the currently selected events.
Definition: monthview.cpp:152
KOrg::MonthView::fullViewChanged
void fullViewChanged(bool enabled)
QWidget::enabled
enabled
KOrg::MonthView::MonthView
MonthView(QWidget *parent=0)
Definition: monthview.cpp:56
QObject
KOrg::MonthView::selectionEnd
QDateTime selectionEnd()
Returns the end of the selection, or an invalid QDateTime if there is no selection or the view doesn'...
Definition: monthview.cpp:162
KOrg::MonthView::eventDurationHint
bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay)
Sets the default start/end date/time for new events.
Definition: monthview.cpp:167
koeventview.h
KOrg::MonthView::selectedIncidences
Akonadi::Item::List selectedIncidences()
Definition: monthview.cpp:213
QDate
KOrg::MonthView::updateConfig
void updateConfig()
Definition: monthview.cpp:203
KOrg::MonthView::setDateRange
void setDateRange(const KDateTime &start, const KDateTime &end, const QDate &preferredMonth=QDate())
Show incidences for the given date range.
Definition: monthview.cpp:223
KOrg::MonthView::usesFullWindow
bool usesFullWindow()
returns whether this view should be displayed full window.
Definition: monthview.cpp:177
KOrg::MonthView::~MonthView
~MonthView()
Definition: monthview.cpp:132
KOrg::MonthView::setTypeAheadReceiver
void setTypeAheadReceiver(QObject *o)
Definition: monthview.cpp:218
KOrg::MonthView::setIncidenceChanger
void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Assign a new incidence change helper object.
Definition: monthview.cpp:236
KOrg::MonthView::showIncidences
void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
Definition: monthview.cpp:192
KOrg::MonthView::maxDatesHint
int maxDatesHint() const
provides a hint back to the caller on the maximum number of dates that the view supports.
Definition: monthview.cpp:208
KOrg::MonthView::updateView
void updateView()
Definition: monthview.cpp:187
KOrg::MonthView::currentDateCount
int currentDateCount() const
Returns the number of currently shown dates.
Definition: monthview.cpp:142
KOrg::MonthView::supportsDateRangeSelection
bool supportsDateRangeSelection()
returns whether this view supports date range selection Base implementation returns true...
Definition: monthview.cpp:182
QObject::parent
QObject * parent() const
KOrg::MonthView::changeIncidenceDisplay
void changeIncidenceDisplay(const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType)
Definition: monthview.cpp:197
KOrg::MonthView::printType
CalendarSupport::CalPrinterBase::PrintType printType() const
Definition: monthview.cpp:137
KOrg::MonthView::selectionStart
QDateTime selectionStart()
Returns the start of the selection, or an invalid QDateTime if there is no selection or the view does...
Definition: monthview.cpp:157
QDateTime
KOrg::MonthView::setCalendar
void setCalendar(const Akonadi::ETMCalendar::Ptr &cal)
Definition: monthview.cpp:229
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:59 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
  • 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