• 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
  • 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 #include "calprinter.h"
31 
36 class KOAgendaView : public KOEventView
37 {
38  Q_OBJECT
39  public:
40  explicit KOAgendaView( QWidget *parent = 0, bool isSideBySide = false );
41  virtual ~KOAgendaView();
42 
44  virtual int maxDatesHint() const;
45 
47  virtual int currentDateCount() const;
48 
50  virtual Akonadi::Item::List selectedIncidences();
51 
53  virtual KCalCore::DateList selectedIncidenceDates();
54 
56  virtual bool eventDurationHint( QDateTime &startDt, QDateTime &endDt, bool &allDay );
57 
58  CalPrinter::PrintType printType() const;
59 
61  virtual QDateTime selectionStart();
62 
64  virtual QDateTime selectionEnd();
65 
67  bool selectedIsAllDay();
69  void deleteSelectedDateTime();
71  bool selectedIsSingleCell();
72 
73  /* reimp from BaseView */
74  virtual void setCalendar( const Akonadi::ETMCalendar::Ptr &cal );
75 
77  virtual void setTypeAheadReceiver( QObject *o );
78 
79  void setChanges( EventViews::EventView::Changes changes );
80 
82  void setDateRange( const KDateTime &start, const KDateTime &end,
83  const QDate &preferredMonth = QDate() );
84 
85  public slots:
86  virtual void updateView();
87  virtual void updateConfig();
88  virtual void showDates( const QDate &start, const QDate &end,
89  const QDate &preferredMonth = QDate() );
90  virtual void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
91 
92  void changeIncidenceDisplayAdded( const Akonadi::Item &incidence );
93  void changeIncidenceDisplay( const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType );
94 
95  void clearSelection();
96 
97  void readSettings();
98  void readSettings( KConfig * );
99  void writeSettings( KConfig * );
100 
101  void enableAgendaUpdate( bool enable );
102  void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
103 
104  void zoomInHorizontally( const QDate &date=QDate() );
105  void zoomOutHorizontally( const QDate &date=QDate() );
106 
107  void zoomInVertically( );
108  void zoomOutVertically( );
109 
110  void zoomView( const int delta, const QPoint &pos,
111  const Qt::Orientation orient = Qt::Horizontal );
112 
113  signals:
114  void zoomViewHorizontally( const QDate &, int count );
115  void timeSpanSelectionChanged();
116 
117  private:
118  class Private;
119  Private *const d;
120 };
121 
122 #endif
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:36
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::printType
CalPrinter::PrintType printType() const
Definition: koagendaview.cpp:249
KOAgendaView::setTypeAheadReceiver
virtual void setTypeAheadReceiver(QObject *o)
reimpl
Definition: koagendaview.cpp:304
QWidget
KOAgendaView::showIncidences
virtual void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
Definition: koagendaview.cpp:234
KOAgendaView::setCalendar
virtual void setCalendar(const Akonadi::ETMCalendar::Ptr &cal)
Definition: koagendaview.cpp:150
KOAgendaView::enableAgendaUpdate
void enableAgendaUpdate(bool enable)
Definition: koagendaview.cpp:182
QObject
KOEventView
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:54
KOAgendaView::showDates
virtual void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth=QDate())
Definition: koagendaview.cpp:229
KOAgendaView::selectedIncidenceDates
virtual KCalCore::DateList selectedIncidenceDates()
returns the currently selected incidence's dates
Definition: koagendaview.cpp:203
KOAgendaView::~KOAgendaView
virtual ~KOAgendaView()
Definition: koagendaview.cpp:145
KOAgendaView::updateConfig
virtual void updateConfig()
Definition: koagendaview.cpp:224
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
KOAgendaView::zoomOutVertically
void zoomOutVertically()
Definition: koagendaview.cpp:162
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
calprinter.h
KOAgendaView::changeIncidenceDisplay
void changeIncidenceDisplay(const Akonadi::Item &incidence, Akonadi::IncidenceChanger::ChangeType)
Definition: koagendaview.cpp:244
KOAgendaView::changeIncidenceDisplayAdded
void changeIncidenceDisplayAdded(const Akonadi::Item &incidence)
Definition: koagendaview.cpp:239
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