• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

parley

ParleyMainWindow Class Reference

#include <parleymainwindow.h>

Inheritance diagram for ParleyMainWindow:
Inheritance graph
[legend]

List of all members.

Public Types

enum  Component { NoComponent, WelcomeComponent, EditorComponent, PracticeComponent }

Public Slots

void configurePractice ()
bool queryClose ()
bool queryExit ()
void showDocumentActions (bool open, bool edit)
void showEditor ()
void showPractice ()
void showWelcomeScreen ()
QSize sizeHint () const
void slotApplyPreferences ()
void slotCloseDocument ()
void slotGeneralOptions ()
void slotShowStatistics ()
void slotUpdateWindowCaption ()
void startPractice ()
void startupTipOfDay ()
void switchComponent (Component component)
void tipOfDay ()

Signals

void documentChanged ()

Public Member Functions

 ~ParleyMainWindow ()
void addRecentFile (const KUrl &url, const QString &name)
Editor * editor ()
void initActions ()
void initWelcomeScreen ()
ParleyDocument * parleyDocument ()
void saveOptions ()
void updateRecentFilesModel ()
void updateTableFilter ()

Static Public Member Functions

static ParleyMainWindow * instance ()

Friends

int main (int argc, char *argv[])

Detailed Description

Definition at line 54 of file parleymainwindow.h.


Member Enumeration Documentation

enum ParleyMainWindow::Component

enum for the different components that can be displayed

Enumerator:
NoComponent 
WelcomeComponent 
EditorComponent 
PracticeComponent 

Definition at line 64 of file parleymainwindow.h.


Constructor & Destructor Documentation

ParleyMainWindow::~ParleyMainWindow (  ) 

Definition at line 100 of file parleymainwindow.cpp.


Member Function Documentation

void ParleyMainWindow::addRecentFile ( const KUrl &  url,
const QString &  name 
)

add a new entry to the list of recent files

Definition at line 106 of file parleymainwindow.cpp.

void ParleyMainWindow::configurePractice (  )  [slot]

Definition at line 178 of file parleymainwindow.cpp.

void ParleyMainWindow::documentChanged (  )  [signal]
Editor * ParleyMainWindow::editor (  ) 

return the editor instance

Definition at line 488 of file parleymainwindow.cpp.

void ParleyMainWindow::initActions (  ) 

setup the action (menus etc)

Definition at line 271 of file parleymainwindow.cpp.

void ParleyMainWindow::initWelcomeScreen (  ) 

setup the welcome screen

Definition at line 370 of file parleymainwindow.cpp.

ParleyMainWindow * ParleyMainWindow::instance (  )  [static]

Definition at line 49 of file parleymainwindow.cpp.

ParleyDocument * ParleyMainWindow::parleyDocument (  ) 

Return the ParleyDocument member object.

Returns:
member m_document

Definition at line 483 of file parleymainwindow.cpp.

bool ParleyMainWindow::queryClose (  )  [slot]

When quitting, ask for confirmation if the doc has not been saved.

Definition at line 222 of file parleymainwindow.cpp.

bool ParleyMainWindow::queryExit (  )  [slot]

overloaded for Message box on last window exit

Definition at line 231 of file parleymainwindow.cpp.

void ParleyMainWindow::saveOptions (  ) 

save the app-specific options on slotAppExit or by an Options dialog

Todo:
save selection per document

Definition at line 117 of file parleymainwindow.cpp.

void ParleyMainWindow::showDocumentActions ( bool  open,
bool  edit 
) [slot]

Shows or hides actions that are only relevant when a document is opened.

Definition at line 467 of file parleymainwindow.cpp.

void ParleyMainWindow::showEditor (  )  [slot]

Definition at line 381 of file parleymainwindow.cpp.

void ParleyMainWindow::showPractice (  )  [slot]

Definition at line 386 of file parleymainwindow.cpp.

void ParleyMainWindow::showWelcomeScreen (  )  [slot]

Definition at line 376 of file parleymainwindow.cpp.

QSize ParleyMainWindow::sizeHint (  )  const [slot]

Definition at line 258 of file parleymainwindow.cpp.

void ParleyMainWindow::slotApplyPreferences (  )  [slot]

Definition at line 156 of file parleymainwindow.cpp.

void ParleyMainWindow::slotCloseDocument (  )  [slot]

Definition at line 166 of file parleymainwindow.cpp.

void ParleyMainWindow::slotGeneralOptions (  )  [slot]

set up options

Definition at line 149 of file parleymainwindow.cpp.

void ParleyMainWindow::slotShowStatistics (  )  [slot]

Definition at line 143 of file parleymainwindow.cpp.

void ParleyMainWindow::slotUpdateWindowCaption (  )  [slot]

Update the title bar of the main window with the current document.

Definition at line 129 of file parleymainwindow.cpp.

void ParleyMainWindow::startPractice (  )  [slot]

Definition at line 184 of file parleymainwindow.cpp.

void ParleyMainWindow::startupTipOfDay (  )  [slot]

Show the tip of the day - the startup version that can be disabled.

Definition at line 267 of file parleymainwindow.cpp.

void ParleyMainWindow::switchComponent ( Component  component  )  [slot]

Definition at line 391 of file parleymainwindow.cpp.

void ParleyMainWindow::tipOfDay (  )  [slot]

Show the tip of the day (force it to be shown).

Definition at line 263 of file parleymainwindow.cpp.

void ParleyMainWindow::updateRecentFilesModel (  ) 

update the list of recent files in the welcome screen

Definition at line 112 of file parleymainwindow.cpp.

void ParleyMainWindow::updateTableFilter (  ) 

This will look at the lesson list and also the combo box to determine what should be displayed in the table.


Friends And Related Function Documentation

int main ( int  argc,
char *  argv[] 
) [friend]

Todo:
make --practice command line argument work with a file name

Definition at line 34 of file src/main.cpp.


The documentation for this class was generated from the following files:
  • parleymainwindow.h
  • parleymainwindow.cpp

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal