• 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
korganizer_part.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2000,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_KORGANIZER_PART_H
27 #define KORG_KORGANIZER_PART_H
28 
29 #include "korganizer/mainwindow.h"
30 
31 #include <KParts/Part>
32 
33 class CalendarView;
34 
35 namespace Akonadi {
36  class Item;
37 }
38 
39 namespace KParts {
40  class StatusBarExtension;
41 }
42 
43 class KOrganizerPart: public KParts::ReadOnlyPart,
44  public KOrg::MainWindow
45 {
46  Q_OBJECT
47  public:
48  KOrganizerPart( QWidget *parentWidget, QObject *parent, const QVariantList & );
49  virtual ~KOrganizerPart();
50 
51  virtual KOrg::CalendarViewBase *view() const;
52 
62  virtual bool openURL( const KUrl &url, bool merge = false );
63 
65  virtual bool saveURL();
66 
68  virtual bool saveAsURL( const KUrl &kurl );
69 
71  virtual KUrl getCurrentURL() const;
72 
73  virtual KXMLGUIFactory *mainGuiFactory() { return factory(); }
74  virtual KXMLGUIClient *mainGuiClient() { return this; }
75  virtual QWidget *topLevelWidget();
76  virtual ActionManager *actionManager();
77  virtual KActionCollection *getActionCollection() const { return actionCollection(); }
78  virtual void showStatusMessage( const QString &message );
79 
80  void setTitle();
81 
82  public slots:
83  void slotChangeInfo( const Akonadi::Item &, const QDate &date );
84 
85  protected:
86  virtual bool openFile();
87 
88  private:
89  CalendarView *mView;
90  ActionManager *mActionManager;
91  KParts::StatusBarExtension *mStatusBarExtension;
92  QWidget *mTopLevelWidget;
93 
94  signals:
95  void textChanged( const QString & );
96 };
97 
98 #endif
KOrganizerPart::topLevelWidget
virtual QWidget * topLevelWidget()
Return widget whcih represents this main window.
Definition: korganizer_part.cpp:127
KOrganizerPart::mainGuiFactory
virtual KXMLGUIFactory * mainGuiFactory()
Return XML GUI factory of this main window.
Definition: korganizer_part.h:73
KOrganizerPart::openFile
virtual bool openFile()
Definition: korganizer_part.cpp:170
QWidget
KOrganizerPart::setTitle
void setTitle()
Set window title.
Definition: korganizer_part.cpp:177
QObject
KOrganizerPart::view
virtual KOrg::CalendarViewBase * view() const
Definition: korganizer_part.cpp:145
KOrganizerPart::getActionCollection
virtual KActionCollection * getActionCollection() const
Return actionCollection of this main window.
Definition: korganizer_part.h:77
KOrganizerPart::actionManager
virtual ActionManager * actionManager()
Return ActionManager of this main window.
Definition: korganizer_part.cpp:132
KOrganizerPart::textChanged
void textChanged(const QString &)
CalendarView
This is the main calendar widget.
Definition: calendarview.h:99
mainwindow.h
KOrganizerPart::saveURL
virtual bool saveURL()
Save calendar file to URL of current calendar.
Definition: korganizer_part.cpp:155
KOrg::MainWindow
interface for korganizer main window
Definition: mainwindow.h:44
KOrganizerPart::openURL
virtual bool openURL(const KUrl &url, bool merge=false)
Load calendar file from URL and merge it into the current calendar.
Definition: korganizer_part.cpp:150
KOrganizerPart::getCurrentURL
virtual KUrl getCurrentURL() const
Get current URL.
Definition: korganizer_part.cpp:165
KOrganizerPart::~KOrganizerPart
virtual ~KOrganizerPart()
Definition: korganizer_part.cpp:105
KOrganizerPart::showStatusMessage
virtual void showStatusMessage(const QString &message)
Show status message in status bar.
Definition: korganizer_part.cpp:137
ActionManager
The ActionManager creates all the actions in KOrganizer.
Definition: actionmanager.h:66
KOrganizerPart::slotChangeInfo
void slotChangeInfo(const Akonadi::Item &, const QDate &date)
Definition: korganizer_part.cpp:115
KOrganizerPart::KOrganizerPart
KOrganizerPart(QWidget *parentWidget, QObject *parent, const QVariantList &)
KOrganizerPart
Definition: korganizer_part.h:43
KOrg::CalendarViewBase
interface for main calendar view widget
Definition: calendarviewbase.h:35
KOrganizerPart::saveAsURL
virtual bool saveAsURL(const KUrl &kurl)
Save calendar file to URL.
Definition: korganizer_part.cpp:160
KOrganizerPart::mainGuiClient
virtual KXMLGUIClient * mainGuiClient()
Return XML GUI client of this main window.
Definition: korganizer_part.h:74
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