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 Member Functions

 KOrganizer (const char *name=0)
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
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 Member Functions

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 64 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 91 of file korganizer.cpp.

References KOrganizer().

Referenced by KOrganizer().


Member Function Documentation

ActionManager* KOrganizer::actionManager  )  [inline, virtual]
 

Return ActionManager of this main window.

Implements KOrg::MainWindow.

Definition at line 81 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 320 of file korganizer.cpp.

References ActionManager::openURL(), and openURL().

Referenced by openURL().

bool KOrganizer::saveURL  )  [virtual]
 

Save calendar file to URL of current calendar.

Implements KOrg::MainWindow.

Definition at line 325 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 330 of file korganizer.cpp.

References ActionManager::saveAsURL(), and saveAsURL().

Referenced by saveAsURL().

KURL KOrganizer::getCurrentURL  )  const [virtual]
 

Get current URL.

Implements KOrg::MainWindow.

Definition at line 335 of file korganizer.cpp.

References ActionManager::url().

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

Return XML GUI factory of this main window.

Implements KOrg::MainWindow.

Definition at line 95 of file korganizer.h.

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

Return XML GUI client of this main window.

Implements KOrg::MainWindow.

Definition at line 96 of file korganizer.h.

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

Return widget whcih represents this main window.

Implements KOrg::MainWindow.

Definition at line 97 of file korganizer.h.

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

show status message

Implements KOrg::MainWindow.

Definition at line 315 of file korganizer.cpp.

References showStatusMessage().

Referenced by showStatusMessage().

void KOrganizer::readSettings  )  [protected, slot]
 

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

Definition at line 186 of file korganizer.cpp.

References ActionManager::readSettings().

void KOrganizer::writeSettings  )  [protected, slot]
 

write current state to config file.

Definition at line 206 of file korganizer.cpp.

References ActionManager::writeSettings().

Referenced by queryClose().

void KOrganizer::configureToolbars  )  [protected, slot]
 

Open toolbar configuration dialog.

Definition at line 278 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 355 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 257 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.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Oct 21 19:46:58 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003