korganizer Library API Documentation

KOrganizer Class Reference

This is the main class for KOrganizer. constructs a new main window for korganizer. More...

#include <korganizer.h>

Inheritance diagram for KOrganizer:

KOrg::MainWindow List of all members.

Public Slots

void showStatusMessage (const QString &)

Public Methods

 KOrganizer (const char *name=0)
virtual ~KOrganizer ()
void init (bool hasDocument)
KOrg::CalendarViewBaseview () const
ActionManageractionManager ()
bool openURL (const KURL &url, bool merge=false)
bool saveURL ()
bool saveAsURL (const KURL &kurl)
KURL getCurrentURL () const
bool openURL (QString url)
bool mergeURL (QString url)
bool saveAsURL (QString url)
void closeURL ()
QString getCurrentURLasString () const
virtual bool deleteEvent (QString uid)
bool eventRequest (QString request, QCString receiver, QString ical)
bool eventReply (QString ical)
virtual KXMLGUIFactory * mainGuiFactory ()
virtual KXMLGUIClient * mainGuiClient ()
virtual QWidgettopLevelWidget ()

Protected Slots

void readSettings ()
void writeSettings ()
void configureToolbars ()
void toggleStatusBar ()
void statusBarPressed (int)
void setTitle ()
void setNumIncoming (int)
void setNumOutgoing (int)
void newMainWindow (const KURL &)
void configureKeyBindings ()

Protected Methods

void initActions ()
bool queryClose ()
bool queryExit ()
void saveProperties (KConfig *)
void readProperties (KConfig *)

Detailed Description

This is the main class for KOrganizer. constructs a new main window for korganizer.

It extends the KDE KMainWindow. it provides the main view that the user sees upon startup, as well as menus, buttons, etc. etc.

Author:
Preston Brown

Definition at line 81 of file korganizer.h.


Constructor & Destructor Documentation

KOrganizer::KOrganizer const char *    name = 0
 

Constructs a new main window.

Parameters:
document  If true this window shows a calendar as document, if false the resource based backend is used.
name  Qt internal widget name

Definition at line 86 of file korganizer.cpp.


Member Function Documentation

ActionManager* KOrganizer::actionManager   [inline, virtual]
 

Return ActionManager of this main window.

Implements KOrg::MainWindow.

Definition at line 99 of file korganizer.h.

bool KOrganizer::openURL const KURL &    url,
bool    merge = false
[virtual]
 

Open calendar file from URL.

Merge into current calendar, if merge is true.

Implements KOrg::MainWindow.

Definition at line 307 of file korganizer.cpp.

References ActionManager::openURL().

bool KOrganizer::saveURL   [virtual]
 

Save calendar file to URL of current calendar.

Implements KOrg::MainWindow.

Definition at line 312 of file korganizer.cpp.

References ActionManager::saveURL().

bool KOrganizer::saveAsURL const KURL &    kurl [virtual]
 

Save calendar file to URL.

Implements KOrg::MainWindow.

Definition at line 317 of file korganizer.cpp.

References ActionManager::saveAsURL().

KURL KOrganizer::getCurrentURL   const [virtual]
 

Get current URL.

Implements KOrg::MainWindow.

Definition at line 322 of file korganizer.cpp.

References ActionManager::url().

bool KOrganizer::openURL QString    url
 

Open calendar file from URL.

Definition at line 393 of file korganizer.cpp.

References ActionManager::openURL().

bool KOrganizer::mergeURL QString    url
 

Open calendar file from URL.

Definition at line 398 of file korganizer.cpp.

References ActionManager::mergeURL().

bool KOrganizer::saveAsURL QString    url
 

Save calendar file to URL.

Definition at line 403 of file korganizer.cpp.

References ActionManager::saveAsURL().

void KOrganizer::closeURL  
 

Close calendar file opened from URL.

Definition at line 388 of file korganizer.cpp.

References ActionManager::closeURL().

QString KOrganizer::getCurrentURLasString   const
 

Get current URL as QString.

Definition at line 383 of file korganizer.cpp.

References ActionManager::getCurrentURLasString().

bool KOrganizer::deleteEvent QString    uid [virtual]
 

Delete event with the given unique id from current calendar.

Definition at line 337 of file korganizer.cpp.

References ActionManager::deleteEvent().

virtual KXMLGUIFactory* KOrganizer::mainGuiFactory   [inline, virtual]
 

Return XML GUI factory of this main window.

Implements KOrg::MainWindow.

Definition at line 129 of file korganizer.h.

virtual KXMLGUIClient* KOrganizer::mainGuiClient   [inline, virtual]
 

Return XML GUI client of this main window.

Implements KOrg::MainWindow.

Definition at line 130 of file korganizer.h.

virtual QWidget* KOrganizer::topLevelWidget   [inline, virtual]
 

Return widget whcih represents this main window.

Implements KOrg::MainWindow.

Definition at line 131 of file korganizer.h.

void KOrganizer::showStatusMessage const QString   [virtual, slot]
 

show status message.

Implements KOrg::MainWindow.

Definition at line 302 of file korganizer.cpp.

void KOrganizer::readSettings   [protected, slot]
 

using the KConfig associated with the kapp variable, read in the settings from the config file.

Definition at line 173 of file korganizer.cpp.

References ActionManager::readSettings().

void KOrganizer::writeSettings   [protected, slot]
 

write current state to config file.

Definition at line 193 of file korganizer.cpp.

References ActionManager::writeSettings().

Referenced by queryClose().

void KOrganizer::configureToolbars   [protected, slot]
 

Open toolbar configuration dialog.

Definition at line 265 of file korganizer.cpp.

void KOrganizer::setTitle   [protected, virtual, slot]
 

Sets title of window according to filename and modification state.

Implements KOrg::MainWindow.

Definition at line 358 of file korganizer.cpp.

References CalendarView::isModified(), CalendarView::isReadOnly(), and ActionManager::url().

bool KOrganizer::queryClose   [protected]
 

supplied so that close events close calendar properly.

Definition at line 244 of file korganizer.cpp.

References ActionManager::queryClose(), and writeSettings().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:32 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003