• 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
  • listview
kolistview.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 1999 Preston Brown <pbrown@kde.org>
5  Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
6  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License along
19  with this program; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 
22  As a special exception, permission is given to link this program
23  with any edition of Qt, and distribute the resulting executable,
24  without including the source code for Qt in the source distribution.
25 */
26 
27 #ifndef KORG_VIEWS_KOLISTVIEW_H
28 #define KORG_VIEWS_KOLISTVIEW_H
29 
30 #include "koeventview.h"
31 
32 #include <KCalCore/Incidence> //for KCalCore::DateList typedef
33 
34 namespace EventViews {
35  class ListView;
36 }
37 
38 namespace Akonadi {
39  class IncidenceChanger;
40 }
41 
42 class QModelIndex;
43 
44 class KOListView : public KOEventView
45 {
46  Q_OBJECT
47  public:
48  explicit KOListView( const Akonadi::ETMCalendar::Ptr &calendar,
49  QWidget *parent = 0, bool nonInteractive = false );
50  ~KOListView();
51 
52  virtual int maxDatesHint() const;
53  virtual int currentDateCount() const;
54  virtual Akonadi::Item::List selectedIncidences();
55  virtual KCalCore::DateList selectedIncidenceDates();
56 
57  // Shows all incidences of the calendar
58  void showAll();
59 
60  void readSettings( KConfig *config );
61  void writeSettings( KConfig *config );
62 
63  void clear();
64  QSize sizeHint() const;
65 
66  void setCalendar( const Akonadi::ETMCalendar::Ptr &cal );
67  void setIncidenceChanger( Akonadi::IncidenceChanger *changer );
68 
69  virtual KOrg::CalPrinterBase::PrintType printType() const;
70 
71  public slots:
72  virtual void updateView();
73  virtual void showDates( const QDate &start, const QDate &end,
74  const QDate &preferredMonth = QDate() );
75  virtual void showIncidences( const Akonadi::Item::List &incidenceList, const QDate &date );
76 
77  void clearSelection();
78 
79  void changeIncidenceDisplay( const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType );
80 
81  void defaultItemAction( const QModelIndex & );
82  void defaultItemAction( const Akonadi::Item::Id id );
83 
84  void popupMenu( const QPoint & );
85 
86  private:
87  KOEventPopupMenu *mPopupMenu;
88  EventViews::ListView *mListView;
89 };
90 
91 #endif
KOListView::setCalendar
void setCalendar(const Akonadi::ETMCalendar::Ptr &cal)
Definition: kolistview.cpp:215
KOListView::~KOListView
~KOListView()
Definition: kolistview.cpp:118
KOListView::updateView
virtual void updateView()
Definition: kolistview.cpp:144
KOListView::popupMenu
void popupMenu(const QPoint &)
Definition: kolistview.cpp:180
QWidget
KOListView::changeIncidenceDisplay
void changeIncidenceDisplay(const Akonadi::Item &, Akonadi::IncidenceChanger::ChangeType)
Definition: kolistview.cpp:164
KOListView::currentDateCount
virtual int currentDateCount() const
Returns the number of currently shown dates.
Definition: kolistview.cpp:129
KOListView::writeSettings
void writeSettings(KConfig *config)
Definition: kolistview.cpp:190
KOListView::selectedIncidenceDates
virtual KCalCore::DateList selectedIncidenceDates()
Returns a list of the dates of selected events.
Definition: kolistview.cpp:139
KOEventView
KOEventView is the abstract base class from which all other calendar views for event data are derived...
Definition: koeventview.h:54
KOListView::defaultItemAction
void defaultItemAction(const QModelIndex &)
Definition: kolistview.cpp:170
KOListView::printType
virtual KOrg::CalPrinterBase::PrintType printType() const
Definition: kolistview.cpp:205
KOListView::showDates
virtual void showDates(const QDate &start, const QDate &end, const QDate &preferredMonth=QDate())
Definition: kolistview.cpp:149
KOListView::maxDatesHint
virtual int maxDatesHint() const
provides a hint back to the caller on the maximum number of dates that the view supports.
Definition: kolistview.cpp:124
KOListView::KOListView
KOListView(const Akonadi::ETMCalendar::Ptr &calendar, QWidget *parent=0, bool nonInteractive=false)
Definition: kolistview.cpp:37
koeventview.h
KOListView
Definition: kolistview.h:44
KOListView::selectedIncidences
virtual Akonadi::Item::List selectedIncidences()
Definition: kolistview.cpp:134
KOrg::BaseView::calendar
virtual Akonadi::ETMCalendar::Ptr calendar()
Return calendar object of this view.
Definition: baseview.cpp:80
KOEventPopupMenu
Context menu for event views with standard event actions.
Definition: koeventpopupmenu.h:38
KOListView::readSettings
void readSettings(KConfig *config)
Definition: kolistview.cpp:185
KOListView::showAll
void showAll()
Definition: kolistview.cpp:154
KOListView::sizeHint
QSize sizeHint() const
Definition: kolistview.cpp:210
KOListView::clearSelection
void clearSelection()
Definition: kolistview.cpp:195
KOListView::setIncidenceChanger
void setIncidenceChanger(Akonadi::IncidenceChanger *changer)
Assign a new incidence change helper object.
Definition: kolistview.cpp:222
KOListView::clear
void clear()
Definition: kolistview.cpp:200
KOListView::showIncidences
virtual void showIncidences(const Akonadi::Item::List &incidenceList, const QDate &date)
Definition: kolistview.cpp:159
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