• 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
koeventpopupmenu.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2000,2001 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_KOEVENTPOPUPMENU_H
27 #define KORG_KOEVENTPOPUPMENU_H
28 
29 #include <QDate>
30 #include <QMenu>
31 
32 #include <Akonadi/Item>
33 #include <Akonadi/Calendar/ETMCalendar>
34 
38 class KOEventPopupMenu : public QMenu
39 {
40  Q_OBJECT
41  public:
42  explicit KOEventPopupMenu( Akonadi::ETMCalendar * , QWidget *parent = 0 );
43  void setCalendar( const Akonadi::ETMCalendar::Ptr &calendar );
44 
45  public slots:
46  void showIncidencePopup( const Akonadi::Item &, const QDate & );
47 
48  protected slots:
49  void popupShow();
50  void popupEdit();
51  void popupPaste();
52  void print();
53  void printPreview();
54  void popupDelete();
55  void popupCut();
56  void popupCopy();
57  void toggleAlarm();
58  void toggleTodoCompleted();
59  void dissociateOccurrences();
60  void forward();
61 
62  signals:
63  void configChanged();
64  void editIncidenceSignal( const Akonadi::Item & );
65  void showIncidenceSignal( const Akonadi::Item & );
66  void deleteIncidenceSignal( const Akonadi::Item & );
67  void cutIncidenceSignal( const Akonadi::Item & );
68  void copyIncidenceSignal( const Akonadi::Item & );
69  void pasteIncidenceSignal();
70  void toggleAlarmSignal( const Akonadi::Item & );
71  void toggleTodoCompletedSignal( const Akonadi::Item & );
72  void copyIncidenceToResourceSignal( const Akonadi::Item &, const QString & );
73  void moveIncidenceToResourceSignal( const Akonadi::Item &, const QString & );
74  void dissociateOccurrencesSignal( const Akonadi::Item &, const QDate & );
75 
76  private:
77  void print( bool previous );
78 
79  Akonadi::ETMCalendar::Ptr mCalendar;
80  Akonadi::Item mCurrentIncidence;
81  QDate mCurrentDate;
82 
83  bool mHasAdditionalItems;
84  QList<QAction *> mEditOnlyItems;
85  QList<QAction *> mTodoOnlyItems;
86  QList<QAction *> mRecurrenceItems;
87  QAction *mDissociateOccurrences;
88  QAction *mToggleReminder;
89 };
90 
91 #endif
KOEventPopupMenu::editIncidenceSignal
void editIncidenceSignal(const Akonadi::Item &)
KOEventPopupMenu::popupEdit
void popupEdit()
Definition: koeventpopupmenu.cpp:146
KOEventPopupMenu::forward
void forward()
Definition: koeventpopupmenu.cpp:218
QWidget
KOEventPopupMenu::printPreview
void printPreview()
Definition: koeventpopupmenu.cpp:173
KOEventPopupMenu::pasteIncidenceSignal
void pasteIncidenceSignal()
KOEventPopupMenu::toggleAlarm
void toggleAlarm()
Definition: koeventpopupmenu.cpp:204
KOEventPopupMenu::popupCut
void popupCut()
Definition: koeventpopupmenu.cpp:185
KOEventPopupMenu::popupDelete
void popupDelete()
Definition: koeventpopupmenu.cpp:178
KOEventPopupMenu::print
void print()
Definition: koeventpopupmenu.cpp:153
KOEventPopupMenu::toggleTodoCompletedSignal
void toggleTodoCompletedSignal(const Akonadi::Item &)
KOEventPopupMenu::configChanged
void configChanged()
KOEventPopupMenu::popupShow
void popupShow()
Definition: koeventpopupmenu.cpp:139
KOEventPopupMenu::showIncidenceSignal
void showIncidenceSignal(const Akonadi::Item &)
KOEventPopupMenu::setCalendar
void setCalendar(const Akonadi::ETMCalendar::Ptr &calendar)
Definition: koeventpopupmenu.cpp:241
KOEventPopupMenu::dissociateOccurrencesSignal
void dissociateOccurrencesSignal(const Akonadi::Item &, const QDate &)
KOEventPopupMenu::KOEventPopupMenu
KOEventPopupMenu(Akonadi::ETMCalendar *, QWidget *parent=0)
Definition: koeventpopupmenu.cpp:40
KOEventPopupMenu::toggleTodoCompleted
void toggleTodoCompleted()
Definition: koeventpopupmenu.cpp:234
KOEventPopupMenu
Context menu for event views with standard event actions.
Definition: koeventpopupmenu.h:38
QMenu
KOEventPopupMenu::cutIncidenceSignal
void cutIncidenceSignal(const Akonadi::Item &)
KOEventPopupMenu::popupCopy
void popupCopy()
Definition: koeventpopupmenu.cpp:192
KOEventPopupMenu::moveIncidenceToResourceSignal
void moveIncidenceToResourceSignal(const Akonadi::Item &, const QString &)
KOEventPopupMenu::dissociateOccurrences
void dissociateOccurrences()
Definition: koeventpopupmenu.cpp:211
KOEventPopupMenu::copyIncidenceSignal
void copyIncidenceSignal(const Akonadi::Item &)
KOEventPopupMenu::showIncidencePopup
void showIncidencePopup(const Akonadi::Item &, const QDate &)
Definition: koeventpopupmenu.cpp:93
KOEventPopupMenu::toggleAlarmSignal
void toggleAlarmSignal(const Akonadi::Item &)
KOEventPopupMenu::popupPaste
void popupPaste()
Definition: koeventpopupmenu.cpp:199
KOEventPopupMenu::deleteIncidenceSignal
void deleteIncidenceSignal(const Akonadi::Item &)
KOEventPopupMenu::copyIncidenceToResourceSignal
void copyIncidenceToResourceSignal(const Akonadi::Item &, const QString &)
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