Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Datebook::MainWindow Class Reference

#include </home/clem/local/src/opie/core/pim/datebook2/mainwindow.h>

Inheritance diagram for Datebook::MainWindow:

Inheritance graph
[legend]
Collaboration diagram for Datebook::MainWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MainWindow ()
 ~MainWindow ()

Protected Slots

void populate ()
void doSetDocument (const QString &str)
void flush ()
void reload ()
int create ()
bool remove (int uid)
void beam (int uid)
void show (int uid)
void edit (int uid)
void edit ()
void add (const OPimRecord &)

Private Slots

void initUI ()
void initConfig ()
void initView ()
void initManagers ()
void raiseCurrentView ()
void slotGoToNow ()
void slotFind ()
void slotConfigure ()
void slotClockChanged (bool)
void slotWeekChanged (bool)
void slotAppMessage (const QCString &, const QByteArray &)
void slotReceive (const QCString &, const QByteArray &)
void slotAction (QAction *)
void slotConfigureLocs ()
void slotConfigureDesc ()
void slotConfigureTemp ()
void slotNewFromTemplate (int)
void setTemplateMenu ()

Private Member Functions

QToolBar * toolbar ()
QPopupMenu * viewMenu ()
QPopupMenu * settingsMenu ()
QPopupMenu * templateMenu ()
ViewcurrentView ()
BookManagermanager ()
TemplateManager templateManager ()
LocationManager locationManager ()
DescriptionManager descriptionManager ()
void setLocationManager (const LocationManager &)
void setDescriptionManager (const DescriptionManager &)
ShoweventShow ()
Editoreditor ()
void hideShow ()
void viewPopup (int)
void viewAdd (const QDate &date)
void viewAdd (const QDateTime &, const QDateTime &)
bool viewAP () const
bool viewStartMonday () const

Private Attributes

QList< Viewm_view
QWidgetStack * m_stack
QToolBar * m_toolBar
QPopupMenu * m_popView
QPopupMenu * m_popSetting
QPopupMenu * m_popTemplate
BookManagerm_manager
TemplateManager m_tempMan
DescriptionManager m_descMan
LocationManager m_locMan
Showm_show
Editorm_edit

Friends

class Show
class View
class Editor

Constructor & Destructor Documentation

MainWindow::MainWindow  ) 
 

Definition at line 25 of file mainwindow.cpp.

References initConfig(), initManagers(), initUI(), initView(), Resource::loadPixmap(), populate(), and slotReceive().

MainWindow::~MainWindow  ) 
 

Definition at line 44 of file mainwindow.cpp.

References m_descMan, m_locMan, m_manager, m_tempMan, manager(), Datebook::StringManager::save(), and Datebook::TemplateManager::save().


Member Function Documentation

void MainWindow::add const OPimRecord  )  [protected, virtual, slot]
 

make a copy of it!

Implements OPimMainWindow.

Definition at line 75 of file mainwindow.cpp.

References manager().

void MainWindow::beam int  uid  )  [protected, virtual, slot]
 

beam the record with UID = uid

Implements OPimMainWindow.

Definition at line 68 of file mainwindow.cpp.

int MainWindow::create  )  [protected, virtual, slot]
 

create a new Records and return the uid

Implements OPimMainWindow.

Definition at line 61 of file mainwindow.cpp.

Referenced by initUI().

ViewBase * MainWindow::currentView  )  [private]
 

Definition at line 184 of file mainwindow.cpp.

Referenced by edit(), and slotNewFromTemplate().

DescriptionManager MainWindow::descriptionManager  )  [private]
 

Definition at line 214 of file mainwindow.cpp.

References m_descMan.

Referenced by Datebook::Editor::descriptions(), and slotConfigureDesc().

void MainWindow::doSetDocument const QString str  )  [protected, virtual, slot]
 

Reimplemented from OPimMainWindow.

Definition at line 52 of file mainwindow.cpp.

void MainWindow::edit  )  [protected, slot]
 

Definition at line 78 of file mainwindow.cpp.

References currentView().

Referenced by initUI(), and slotNewFromTemplate().

void MainWindow::edit int  uid  )  [protected, virtual, slot]
 

edit the record

Implements OPimMainWindow.

Definition at line 81 of file mainwindow.cpp.

Referenced by View::edit().

Editor * MainWindow::editor  )  [private]
 

Definition at line 300 of file mainwindow.cpp.

References m_edit.

Referenced by slotConfigureTemp(), and slotNewFromTemplate().

Show * MainWindow::eventShow  )  [private]
 

Definition at line 223 of file mainwindow.cpp.

References m_show.

Referenced by show().

void MainWindow::flush  )  [protected, virtual, slot]
 

Implements OPimMainWindow.

Definition at line 55 of file mainwindow.cpp.

References manager().

void MainWindow::hideShow  )  [private]
 

Definition at line 251 of file mainwindow.cpp.

Referenced by Datebook::Show::hideMe().

void MainWindow::initConfig  )  [private, slot]
 

Definition at line 156 of file mainwindow.cpp.

Referenced by MainWindow().

void MainWindow::initManagers  )  [private, slot]
 

Definition at line 162 of file mainwindow.cpp.

References Datebook::StringManager::load(), Datebook::TemplateManager::load(), m_descMan, m_locMan, m_manager, m_tempMan, and setTemplateMenu().

Referenced by MainWindow().

void MainWindow::initUI  )  [private, slot]
 

Definition at line 87 of file mainwindow.cpp.

References OPimMainWindow::appMessage(), create(), edit(), Resource::loadPixmap(), m_popSetting, m_popTemplate, m_popView, m_stack, m_toolBar, QString::null, qApp, slotAppMessage(), slotClockChanged(), slotConfigure(), slotConfigureDesc(), slotConfigureLocs(), slotConfigureTemp(), slotFind(), slotGoToNow(), slotNewFromTemplate(), slotWeekChanged(), tr, and TRUE.

Referenced by MainWindow().

void MainWindow::initView  )  [private, slot]
 

Definition at line 159 of file mainwindow.cpp.

Referenced by MainWindow().

LocationManager MainWindow::locationManager  )  [private]
 

Definition at line 211 of file mainwindow.cpp.

References m_locMan.

Referenced by Datebook::Editor::locations(), and slotConfigureLocs().

ProfileManager * MainWindow::manager  )  [private]
 

Definition at line 205 of file mainwindow.cpp.

References m_manager.

Referenced by add(), flush(), populate(), reload(), remove(), show(), slotNewFromTemplate(), View::allEvents(), View::event(), View::events(), View::records(), and ~MainWindow().

void MainWindow::populate  )  [protected, slot]
 

Definition at line 177 of file mainwindow.cpp.

References manager().

Referenced by MainWindow().

void MainWindow::raiseCurrentView  )  [private, slot]
 

Definition at line 171 of file mainwindow.cpp.

Referenced by slotNewFromTemplate().

void MainWindow::reload  )  [protected, virtual, slot]
 

Implements OPimMainWindow.

Definition at line 58 of file mainwindow.cpp.

References manager().

bool MainWindow::remove int  uid  )  [protected, virtual, slot]
 

remove a record with UID == uid

Implements OPimMainWindow.

Definition at line 64 of file mainwindow.cpp.

References manager().

Referenced by View::remove().

void MainWindow::setDescriptionManager const DescriptionManager  )  [private]
 

Definition at line 220 of file mainwindow.cpp.

References m_descMan.

Referenced by Datebook::Editor::setDescriptions(), and slotConfigureDesc().

void MainWindow::setLocationManager const LocationManager  )  [private]
 

Definition at line 217 of file mainwindow.cpp.

References m_locMan.

Referenced by Datebook::Editor::setLocations(), and slotConfigureLocs().

void MainWindow::setTemplateMenu  )  [private, slot]
 

Definition at line 268 of file mainwindow.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), list, m_popTemplate, and templateManager().

Referenced by initManagers(), and slotConfigureTemp().

QPopupMenu* Datebook::MainWindow::settingsMenu  )  [private]
 

void MainWindow::show int  uid  )  [protected, virtual, slot]
 

show the record with UID == uid

Implements OPimMainWindow.

Definition at line 71 of file mainwindow.cpp.

References eventShow(), and manager().

void MainWindow::slotAction QAction *   )  [private, slot]
 

Definition at line 226 of file mainwindow.cpp.

void MainWindow::slotAppMessage const QCString ,
const QByteArray
[private, slot]
 

Definition at line 199 of file mainwindow.cpp.

Referenced by initUI().

void MainWindow::slotClockChanged bool   )  [private, slot]
 

Definition at line 193 of file mainwindow.cpp.

Referenced by initUI().

void MainWindow::slotConfigure  )  [private, slot]
 

Definition at line 190 of file mainwindow.cpp.

Referenced by initUI().

void MainWindow::slotConfigureDesc  )  [private, slot]
 

Definition at line 236 of file mainwindow.cpp.

References descriptionManager(), QPEApplication::execDialog(), setDescriptionManager(), and tr.

Referenced by initUI().

void MainWindow::slotConfigureLocs  )  [private, slot]
 

Definition at line 229 of file mainwindow.cpp.

References QPEApplication::execDialog(), locationManager(), setLocationManager(), and tr.

Referenced by initUI().

void MainWindow::slotConfigureTemp  )  [private, slot]
 

Definition at line 243 of file mainwindow.cpp.

References editor(), QPEApplication::execDialog(), m_tempMan, setTemplateMenu(), templateManager(), and tr.

Referenced by initUI().

void MainWindow::slotFind  )  [private, slot]
 

Definition at line 187 of file mainwindow.cpp.

Referenced by initUI().

void MainWindow::slotGoToNow  )  [private, slot]
 

Definition at line 181 of file mainwindow.cpp.

Referenced by initUI().

void MainWindow::slotNewFromTemplate int   )  [private, slot]
 

Definition at line 280 of file mainwindow.cpp.

References currentView(), edit(), editor(), m_popTemplate, manager(), name, raiseCurrentView(), OPimRecord::setUid(), and templateManager().

Referenced by initUI().

void MainWindow::slotReceive const QCString ,
const QByteArray
[private, slot]
 

Definition at line 202 of file mainwindow.cpp.

Referenced by MainWindow().

void MainWindow::slotWeekChanged bool   )  [private, slot]
 

Definition at line 196 of file mainwindow.cpp.

Referenced by initUI().

TemplateManager * MainWindow::templateManager  )  [private]
 

Definition at line 208 of file mainwindow.cpp.

References m_tempMan.

Referenced by setTemplateMenu(), slotConfigureTemp(), and slotNewFromTemplate().

QPopupMenu* Datebook::MainWindow::templateMenu  )  [private]
 

QToolBar* Datebook::MainWindow::toolbar  )  [private]
 

void MainWindow::viewAdd const QDateTime ,
const QDateTime
[private]
 

Definition at line 260 of file mainwindow.cpp.

void MainWindow::viewAdd const QDate date  )  [private]
 

Definition at line 257 of file mainwindow.cpp.

Referenced by View::add().

bool MainWindow::viewAP  )  const [private]
 

Definition at line 263 of file mainwindow.cpp.

Referenced by View::isAP().

QPopupMenu* Datebook::MainWindow::viewMenu  )  [private]
 

void MainWindow::viewPopup int   )  [private]
 

Definition at line 254 of file mainwindow.cpp.

Referenced by View::popup().

bool MainWindow::viewStartMonday  )  const [private]
 

Definition at line 265 of file mainwindow.cpp.

Referenced by View::weekStartOnMonday().


Friends And Related Function Documentation

friend class Editor [friend]
 

Definition at line 25 of file mainwindow.h.

friend class Show [friend]
 

Definition at line 22 of file mainwindow.h.

friend class View [friend]
 

Definition at line 24 of file mainwindow.h.


Member Data Documentation

DescriptionManager Datebook::MainWindow::m_descMan [private]
 

Definition at line 100 of file mainwindow.h.

Referenced by descriptionManager(), initManagers(), setDescriptionManager(), and ~MainWindow().

Editor* Datebook::MainWindow::m_edit [private]
 

Definition at line 103 of file mainwindow.h.

Referenced by editor().

LocationManager Datebook::MainWindow::m_locMan [private]
 

Definition at line 101 of file mainwindow.h.

Referenced by initManagers(), locationManager(), setLocationManager(), and ~MainWindow().

BookManager* Datebook::MainWindow::m_manager [private]
 

Definition at line 98 of file mainwindow.h.

Referenced by initManagers(), manager(), and ~MainWindow().

QPopupMenu* Datebook::MainWindow::m_popSetting [private]
 

Definition at line 96 of file mainwindow.h.

Referenced by initUI().

QPopupMenu* Datebook::MainWindow::m_popTemplate [private]
 

Definition at line 97 of file mainwindow.h.

Referenced by initUI(), setTemplateMenu(), and slotNewFromTemplate().

QPopupMenu* Datebook::MainWindow::m_popView [private]
 

Definition at line 95 of file mainwindow.h.

Referenced by initUI().

Show* Datebook::MainWindow::m_show [private]
 

Definition at line 102 of file mainwindow.h.

Referenced by eventShow().

QWidgetStack* Datebook::MainWindow::m_stack [private]
 

Definition at line 93 of file mainwindow.h.

Referenced by initUI().

TemplateManager Datebook::MainWindow::m_tempMan [private]
 

Definition at line 99 of file mainwindow.h.

Referenced by initManagers(), slotConfigureTemp(), templateManager(), and ~MainWindow().

QToolBar* Datebook::MainWindow::m_toolBar [private]
 

Definition at line 94 of file mainwindow.h.

Referenced by initUI().

QList<View> Datebook::MainWindow::m_view [private]
 

Definition at line 92 of file mainwindow.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:58:44 2005 for OPIE by  doxygen 1.4.2