• 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
  • agendaview
koagendaview.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 
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_KOAGENDAVIEW_H
27 #define KORG_VIEWS_KOAGENDAVIEW_H
28 
29 #include "koeventview.h"
30 
31 #include <calendarsupport/printing/calprinter.h>
32 
37 class KOAgendaView : public KOEventView
38 {
39  Q_OBJECT
40  public:
41  explicit KOAgendaView( QWidget *parent = 0, bool isSideBySide = false );
42  virtual ~KOAgendaView();
43 
45  virtual int maxDatesHint() const;
46 
48  virtual int currentDateCount() const;
49 
51  virtual Akonadi::Item::List selectedIncidences();
52 
54  virtual KCalCore::DateList selectedIncidenceDates();
55 
57  virtual bool eventDurationHint( QDateTime &startDt, QDateTime &endDt, bool &allDay );
58 
59  CalendarSupport::CalPrinter::PrintType printType() const;
60 
62  virtual QDateTime selectionStart();
63 
65  virtual QDateTime selectionEnd();
66 
68  bool selectedIsAllDay();
70  void deleteSelectedDateTime();
72  bool selectedIsSingleCell();
73 
74  /* reimp from BaseView */
75  virtual void setCalendar( const Akonadi::ETMCalendar::Ptr &cal );
76 
78  virtual void setTypeAheadReceiver( QObject *o );
79 
80  void setChanges( EventViews::EventView::Changes changes );
81 
83  void setDateRange( const KDateTime &start, const KDateTime &end,
84  const QDate &preferredMonth = QDate() );
85 
86  public slots:
87  virtual void updateView();
88  virtual void updateConfig();
89  virtual void showDates( const QDate &start, const QDate &end,
90  const QDate &preferredMonth = QDate() );
91  virtual void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
92 
93  void changeIncidenceDisplayAdded( const Akonadi::Item &incidence );
94  void changeIncidenceDisplay( const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType );
95 
96  void clearSelection();
97 
98  void readSettings();
99  void readSettings( KConfig * );
100  void writeSettings( KConfig * );
101 
102  void enableAgendaUpdate( bool enable );
103  void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
104 
105  void zoomInHorizontally( const QDate &date=QDate() );
106  void zoomOutHorizontally( const QDate &date=QDate() );
107 
108  void zoomInVertically( );
109  void zoomOutVertically( );
110 
111  void zoomView( const int delta, const QPoint &pos,
112  const Qt::Orientation orient = Qt::Horizontal );
113 
114  signals:
115  void zoomViewHorizontally( const QDate &, int count );
116  void timeSpanSelectionChanged();
117 
118  private:
119  class Private;
120  Private *const d;
121 };
122 
123 #endif
QWidget
KOAgendaView::writeSettings
void writeSettings(KConfig *)
Definition: koagendaview.cpp:269
KOAgendaView::eventDurationHint
virtual bool eventDurationHint(QDateTime &startDt, QDateTime &endDt, bool &allDay)
return the default start/end date/time for new events
Definition: koagendaview.cpp:208
KOAgendaView::zoomViewHorizontally
void zoomViewHorizontally(const QDate &, int count)
KOAgendaView::selectedIncidences
virtual Akonadi::Item::List selectedIncidences()
returns the currently selected events
Definition: koagendaview.cpp:198
KOAgendaView
KOAgendaView is the agenda-like view that displays events in a single or multi-day view...
Definition: koagendaview.h:37
KOAgendaView::updateView
virtual void updateView()
Definition: koagendaview.cpp:219
KOAgendaView::readSettings
void readSettings()
Definition: koagendaview.cpp:259
KOAgendaView::setChanges
void setChanges(EventViews::EventView::Changes changes)
Notifies the view that there are pending changes so a redraw is needed.
Definition: koagendaview.cpp:309
KOAgendaView::setTypeAheadReceiver
virtual void setTypeAheadReceiver(QObject *o)
reimpl
Definition: koagendaview.cpp:304
KOAgendaView::selectedIncidenceDates
virtual KCalCore::DateList selectedIncidenceDates()
returns the currently selected incidence's dates
Definition: koagendaview.cpp:203
KOAgendaView::showIncidences
virtual void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
Definition: koagendaview.cpp:234
QPoint
KOAgendaView::setCalendar
virtual void setCalendar(const Akonadi::ETMCalendar::Ptr &cal)
Definition: koagendaview.cpp:150
KOAgendaView::enableAgendaUpdate
void enableAgendaUpdate(bool enable)
Definition: koagendaview.cpp:182
KOEventView
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:54
KOAgendaView::printType
CalendarSupport::CalPrinter::PrintType printType() const
Definition: koagendaview.cpp:249
KOAgendaView::showDates
virtual void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth=QDate())
Definition: koagendaview.cpp:229
KOAgendaView::~KOAgendaView
virtual ~KOAgendaView()
Definition: koagendaview.cpp:145
KOAgendaView::updateConfig
virtual void updateConfig()
Definition: koagendaview.cpp:224
QObject
KOAgendaView::selectedIsAllDay
bool selectedIsAllDay()
returns true if selection is for whole day
Definition: koagendaview.cpp:299
koeventview.h
KOAgendaView::zoomInHorizontally
void zoomInHorizontally(const QDate &date=QDate())
Definition: koagendaview.cpp:167
QWidget::pos
QPoint pos() const
KOAgendaView::zoomOutVertically
void zoomOutVertically()
Definition: koagendaview.cpp:162
QDate
KOAgendaView::setIncidenceChanger
void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Definition: koagendaview.cpp:284
KOAgendaView::clearSelection
void clearSelection()
Definition: koagendaview.cpp:274
KOAgendaView::deleteSelectedDateTime
void deleteSelectedDateTime()
make selected start/end invalid
Definition: koagendaview.cpp:279
KOAgendaView::currentDateCount
virtual int currentDateCount() const
Returns number of currently shown dates.
Definition: koagendaview.cpp:193
KOAgendaView::zoomInVertically
void zoomInVertically()
Definition: koagendaview.cpp:157
KOrg::BaseView::changes
EventViews::EventView::Changes changes() const
Returns if there are pending changes and a redraw is needed.
Definition: baseview.cpp:234
KOAgendaView::setDateRange
void setDateRange(const KDateTime &start, const KDateTime &end, const QDate &preferredMonth=QDate())
reimpl
Definition: koagendaview.cpp:329
KOAgendaView::selectedIsSingleCell
bool selectedIsSingleCell()
returns if only a single cell is selected, or a range of cells
Definition: koagendaview.cpp:214
KOAgendaView::selectionEnd
virtual QDateTime selectionEnd()
end-datetime of selection
Definition: koagendaview.cpp:294
KOAgendaView::selectionStart
virtual QDateTime selectionStart()
start-datetime of selection
Definition: koagendaview.cpp:289
KOAgendaView::timeSpanSelectionChanged
void timeSpanSelectionChanged()
KOAgendaView::maxDatesHint
virtual int maxDatesHint() const
Returns maximum number of days supported by the koagendaview.
Definition: koagendaview.cpp:187
KOAgendaView::zoomOutHorizontally
void zoomOutHorizontally(const QDate &date=QDate())
Definition: koagendaview.cpp:172
KOAgendaView::KOAgendaView
KOAgendaView(QWidget *parent=0, bool isSideBySide=false)
Definition: koagendaview.cpp:60
KOAgendaView::zoomView
void zoomView(const int delta, const QPoint &pos, const Qt::Orientation orient=Qt::Horizontal)
Definition: koagendaview.cpp:177
QObject::parent
QObject * parent() const
KOAgendaView::changeIncidenceDisplay
void changeIncidenceDisplay(const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType)
Definition: koagendaview.cpp:244
QDateTime
KOAgendaView::changeIncidenceDisplayAdded
void changeIncidenceDisplayAdded(const Akonadi::Item &incidence)
Definition: koagendaview.cpp:239
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