• 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.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 1997, 1998, 1999 Preston Brown <preston.brown@yale.edu>
5  Fester Zigterman <F.J.F.ZigtermanRustenburg@student.utwente.nl>
6  Ian Dawes <iadawes@globalserve.net>
7  Laszlo Boloni <boloni@cs.purdue.edu>
8 
9  Copyright (c) 2000-2003 Cornelius Schumacher <schumacher@kde.org>
10  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
11 
12  This program is free software; you can redistribute it and/or modify
13  it under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16 
17  This program is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  GNU General Public License for more details.
21 
22  You should have received a copy of the GNU General Public License along
23  with this program; if not, write to the Free Software Foundation, Inc.,
24  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
25 
26  As a special exception, permission is given to link this program
27  with any edition of Qt, and distribute the resulting executable,
28  without including the source code for Qt in the source distribution.
29 */
30 #ifndef KORG_KORGANIZER_H
31 #define KORG_KORGANIZER_H
32 
33 #include "korganizer/mainwindow.h"
34 #include "korganizer/part.h"
35 
36 #include <KParts/MainWindow>
37 
38 class CalendarView;
39 
40 // Workaround for moc workaround for visual c++ 6.0 sucking
41 typedef KOrg::MainWindow KOrgMainWindow;
42 typedef KParts::MainWindow KPartsMainWindow;
43 
52 class KOrganizer : public KPartsMainWindow, public KOrgMainWindow
53 {
54  Q_OBJECT
55  public:
56  KOrganizer();
57  virtual ~KOrganizer();
58 
59  void init( bool hasDocument );
60 
61  KOrg::CalendarViewBase *view() const;
62  ActionManager *actionManager() { return mActionManager; }
63  KActionCollection *getActionCollection() const { return actionCollection(); }
64 
74  bool openURL( const KUrl &url, bool merge = false );
75 
77  bool saveURL();
78 
80  bool saveAsURL( const KUrl &kurl );
81 
83  KUrl getCurrentURL() const;
84 
85  virtual KXMLGUIFactory *mainGuiFactory() { return factory(); }
86  virtual KXMLGUIClient *mainGuiClient() { return this; }
87  virtual QWidget *topLevelWidget() { return this; }
88 
89  public slots:
91  void showStatusMessage( const QString & );
92 
93  protected slots:
94 
98  void readSettings();
99 
101  void writeSettings();
102 
103  void statusBarPressed( int id );
104 
106  void setTitle();
107 
108  void newMainWindow( const KUrl & );
109 
110  void slotEditKeys();
111 
112  protected:
113  void initActions();
114 // void initViews();
115 
117  bool queryClose();
118  bool queryExit();
119 
120  /* Session management */
121  void saveProperties( KConfigGroup & );
122  void readProperties( const KConfigGroup & );
123 
124  private:
125  CalendarView *mCalendarView; // Main view widget
126  KOrg::Part::List mParts; // List of parts loaded
127 
128  // status bar ids
129  enum {
130  ID_HISTORY,
131  ID_GENERAL,
132  ID_ACTIVE,
133  ID_MESSAGES_IN,
134  ID_MESSAGES_OUT
135  };
136  ActionManager *mActionManager;
137 };
138 
139 #endif
KOrganizer::saveURL
bool saveURL()
Save calendar file to URL of current calendar.
Definition: korganizer.cpp:210
KOrganizer::getActionCollection
KActionCollection * getActionCollection() const
Return actionCollection of this main window.
Definition: korganizer.h:63
QWidget
KOrganizer::getCurrentURL
KUrl getCurrentURL() const
Get current URL.
Definition: korganizer.cpp:220
KOrganizer::setTitle
void setTitle()
Sets title of window according to filename and modification state.
Definition: korganizer.cpp:240
KOrganizer
This is the main class for KOrganizer.
Definition: korganizer.h:52
KPartsMainWindow
KParts::MainWindow KPartsMainWindow
Definition: korganizer.h:42
KOrg::Part::List
QList< Part * > List
Definition: part.h:47
CalendarView
This is the main calendar widget.
Definition: calendarview.h:99
KOrganizer::slotEditKeys
void slotEditKeys()
Definition: korganizer.cpp:166
KOrganizer::topLevelWidget
virtual QWidget * topLevelWidget()
Return widget whcih represents this main window.
Definition: korganizer.h:87
mainwindow.h
KOrganizer::saveProperties
void saveProperties(KConfigGroup &)
Definition: korganizer.cpp:225
KOrganizer::queryExit
bool queryExit()
Definition: korganizer.cpp:187
KOrg::MainWindow
interface for korganizer main window
Definition: mainwindow.h:44
KOrganizer::actionManager
ActionManager * actionManager()
Return ActionManager of this main window.
Definition: korganizer.h:62
KOrg::MainWindow::hasDocument
bool hasDocument() const
Definition: mainwindow.cpp:44
KOrganizer::writeSettings
void writeSettings()
write current state to config file.
Definition: korganizer.cpp:141
KOrganizer::newMainWindow
void newMainWindow(const KUrl &)
Definition: korganizer.cpp:113
KOrganizer::showStatusMessage
void showStatusMessage(const QString &)
show status message
Definition: korganizer.cpp:200
KOrganizer::readProperties
void readProperties(const KConfigGroup &)
Definition: korganizer.cpp:230
KOrganizer::KOrganizer
KOrganizer()
Definition: korganizer.cpp:48
ActionManager
The ActionManager creates all the actions in KOrganizer.
Definition: actionmanager.h:66
KOrganizer::readSettings
void readSettings()
using the KConfig associated with the kapp variable, read in the settings from the config file...
Definition: korganizer.cpp:129
KOrganizer::saveAsURL
bool saveAsURL(const KUrl &kurl)
Save calendar file to URL.
Definition: korganizer.cpp:215
KOrganizer::queryClose
bool queryClose()
supplied so that close events close calendar properly.
Definition: korganizer.cpp:172
KOrgMainWindow
KOrg::MainWindow KOrgMainWindow
Definition: korganizer.h:38
KPartsMainWindow
KOrganizer::initActions
void initActions()
Definition: korganizer.cpp:151
KOrganizer::init
void init(bool hasDocument)
Definition: korganizer.cpp:73
KOrganizer::~KOrganizer
virtual ~KOrganizer()
Definition: korganizer.cpp:66
KOrganizer::mainGuiClient
virtual KXMLGUIClient * mainGuiClient()
Return XML GUI client of this main window.
Definition: korganizer.h:86
KOrg::CalendarViewBase
interface for main calendar view widget
Definition: calendarviewbase.h:35
KOrganizer::openURL
bool openURL(const KUrl &url, bool merge=false)
Open calendar file from URL.
Definition: korganizer.cpp:205
KOrganizer::mainGuiFactory
virtual KXMLGUIFactory * mainGuiFactory()
Return XML GUI factory of this main window.
Definition: korganizer.h:85
KOrganizer::statusBarPressed
void statusBarPressed(int id)
Definition: korganizer.cpp:195
part.h
KOrganizer::view
KOrg::CalendarViewBase * view() const
Definition: korganizer.cpp:235
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