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

parley

ParleyApp Class Reference

#include <parley.h>

Inheritance diagram for ParleyApp:

Inheritance graph
[legend]

List of all members.


Detailed Description

This Class is the base class for your application.

It sets up the main window and reads the config file as well as providing a menubar, toolbar and statusbar. For the main view, an instance of class kvoctrainView is created which creates your view.

Definition at line 61 of file parley.h.


Public Slots

void slotUpdateWindowCaption ()
void slotSaveSelection ()
void slotCancelSelection ()
void slotSelectAll ()
void slotProgress (KEduVocDocument *, int)
void slotCleanVocabulary ()
void slotEditLanguages ()
bool queryClose ()
bool queryExit ()
void slotGeneralOptions ()
void slotApplyPreferences ()
void slotLanguageProperties ()
void slotDocumentProperties ()
void slotShowStatistics ()
void startPractice ()
void configurePractice ()
void slotTimeOutBackup ()
void slotFileNew ()
void slotFileOpen ()
void slotFileOpenRecent (const KUrl &url)
void slotFileOpenExample ()
void slotGHNS ()
void loadFileFromPath (const KUrl &, bool addRecent=true)
void slotFileMerge ()
void slotFileSave ()
void slotFileSaveAs ()
void slotFilePrint ()
void slotFileQuit ()
void slotEditCopy ()
void slotNewEntry ()
void slotCutEntry ()
void slotDeleteEntry ()
void slotEditPaste ()
void slotConfigShowSearch ()
void removeEntryDlg ()

Signals

void progressChanged (KEduVocDocument *, int curr_percent)

Public Member Functions

 ParleyApp (const QString &appName, QWidget *parent=0)
 ~ParleyApp ()
void initActions ()
void initStatusBar ()
void initDoc ()
void initModel ()
QWidget * initLessonList (QWidget *parent)
void initView ()
void saveOptions ()
void updateTableFilter ()
void makeLessonVisibleInTable (int lessonIndex)
virtual void saveProperties (KConfigGroup &)
virtual void readProperties (const KConfigGroup &)
void removeProgressBar ()
void prepareProgressBar ()

Constructor & Destructor Documentation

ParleyApp::ParleyApp ( const QString &  appName,
QWidget *  parent = 0 
)

construtor

Definition at line 55 of file kva_init.cpp.

ParleyApp::~ParleyApp (  ) 

destructor

Definition at line 141 of file parley.cpp.


Member Function Documentation

void ParleyApp::initActions (  ) 

Todo:
merging files is horribly broken

Todo:
tooltip

Todo:
better icon

Definition at line 94 of file kva_init.cpp.

void ParleyApp::initStatusBar (  ) 

setup the statusbar

Definition at line 393 of file kva_init.cpp.

void ParleyApp::initDoc (  ) 

setup the main document

Definition at line 410 of file kva_init.cpp.

void ParleyApp::initModel (  ) 

setup the main model

Definition at line 440 of file kva_init.cpp.

QWidget * ParleyApp::initLessonList ( QWidget *  parent  ) 

setup the lesson list and its buttons

Initialize the lesson list.

New lesson selected

this is a little general, but at least we get notified of the changes

Todo:
add a separator here

Todo:
add a separator here

Definition at line 451 of file kva_init.cpp.

void ParleyApp::initView (  ) 

setup the main view

This initializes the main widgets, splitter and table.

Parent of all

Splitter to divide lessons and table.

List of lessons

Table view

Filter proxy

Definition at line 517 of file kva_init.cpp.

void ParleyApp::saveOptions (  ) 

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

Definition at line 75 of file parley.cpp.

void ParleyApp::updateTableFilter (  ) 

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

void ParleyApp::makeLessonVisibleInTable ( int  lessonIndex  ) 

Make sure, the lesson is visible - if combo is set to 1.

all, no problem 2. in query -> if current not in query change combo? 3. current -> make the lesson current

Definition at line 311 of file parley.cpp.

void ParleyApp::saveProperties ( KConfigGroup &  config  )  [virtual]

saves the window properties for each open window during session end to the session config file, including saving the currently opened file by a temporary filename provided by KApplication.

See also:
KXmlGuiWindow::saveProperties

Definition at line 96 of file parley.cpp.

void ParleyApp::readProperties ( const KConfigGroup &  config  )  [virtual]

reads the session config file and restores the application's state including the last opened files and documents by reading the temporary files saved by saveProperties()

See also:
KXmlGuiWindow::readProperties

Definition at line 111 of file parley.cpp.

void ParleyApp::removeProgressBar (  ) 

Definition at line 394 of file kva_io.cpp.

void ParleyApp::prepareProgressBar (  ) 

Definition at line 385 of file kva_io.cpp.

void ParleyApp::progressChanged ( KEduVocDocument *  ,
int  curr_percent 
) [signal]

void ParleyApp::slotUpdateWindowCaption (  )  [slot]

Definition at line 232 of file parley.cpp.

void ParleyApp::slotSaveSelection (  )  [slot]

select an entry

Todo:
I doubt this words. If it's not checked, better not enable it.

Definition at line 332 of file kva_io.cpp.

void ParleyApp::slotCancelSelection (  )  [slot]

Definition at line 148 of file parley.cpp.

void ParleyApp::slotSelectAll (  )  [slot]

Definition at line 154 of file parley.cpp.

void ParleyApp::slotProgress ( KEduVocDocument *  curr_doc,
int  percent 
) [slot]

Definition at line 114 of file kva_io.cpp.

void ParleyApp::slotCleanVocabulary (  )  [slot]

Definition at line 338 of file parley.cpp.

void ParleyApp::slotEditLanguages (  )  [slot]

append language to vocabulary - creates a new column

Todo:

Definition at line 540 of file parley.cpp.

bool ParleyApp::queryClose (  )  [slot]

Definition at line 67 of file kva_io.cpp.

bool ParleyApp::queryExit (  )  [slot]

overloaded for Message box on last window exit

Definition at line 76 of file kva_io.cpp.

void ParleyApp::slotGeneralOptions (  )  [slot]

set up options

Definition at line 358 of file parley.cpp.

void ParleyApp::slotApplyPreferences (  )  [slot]

Definition at line 366 of file parley.cpp.

void ParleyApp::slotLanguageProperties (  )  [slot]

Definition at line 219 of file parley.cpp.

void ParleyApp::slotDocumentProperties (  )  [slot]

Definition at line 550 of file parley.cpp.

void ParleyApp::slotShowStatistics (  )  [slot]

Definition at line 331 of file parley.cpp.

void ParleyApp::startPractice (  )  [slot]

Definition at line 574 of file parley.cpp.

void ParleyApp::configurePractice (  )  [slot]

Definition at line 564 of file parley.cpp.

void ParleyApp::slotTimeOutBackup (  )  [slot]

Definition at line 54 of file kva_io.cpp.

void ParleyApp::slotFileNew (  )  [slot]

open a new application window

Definition at line 122 of file kva_io.cpp.

void ParleyApp::slotFileOpen (  )  [slot]

open a document

Definition at line 130 of file kva_io.cpp.

void ParleyApp::slotFileOpenRecent ( const KUrl &  url  )  [slot]

opens a file from the recent files menu

Definition at line 142 of file kva_io.cpp.

void ParleyApp::slotFileOpenExample (  )  [slot]

open a sample document

Definition at line 183 of file kva_io.cpp.

void ParleyApp::slotGHNS (  )  [slot]

download new vocabularies

Definition at line 200 of file kva_io.cpp.

void ParleyApp::loadFileFromPath ( const KUrl &  url,
bool  addRecent = true 
) [slot]

Definition at line 152 of file kva_io.cpp.

void ParleyApp::slotFileMerge (  )  [slot]

merge a document

Definition at line 223 of file kva_io.cpp.

void ParleyApp::slotFileSave (  )  [slot]

save a document

Definition at line 253 of file kva_io.cpp.

void ParleyApp::slotFileSaveAs (  )  [slot]

save a document under a different filename

Definition at line 287 of file kva_io.cpp.

void ParleyApp::slotFilePrint (  )  [slot]

Definition at line 392 of file parley.cpp.

void ParleyApp::slotFileQuit (  )  [slot]

Definition at line 108 of file kva_io.cpp.

void ParleyApp::slotEditCopy (  )  [slot]

put the marked text/object into the clipboard

Definition at line 404 of file parley.cpp.

void ParleyApp::slotNewEntry (  )  [slot]

Create a new entry.

Definition at line 291 of file parley.cpp.

void ParleyApp::slotCutEntry (  )  [slot]

Cut an entry.

Definition at line 239 of file parley.cpp.

void ParleyApp::slotDeleteEntry (  )  [slot]

Delete an entry.

Definition at line 265 of file parley.cpp.

void ParleyApp::slotEditPaste (  )  [slot]

paste the clipboard into the document

Todo:
make the pasted stuff visible by making the corresponding lesson visible, if it is not (?)

Definition at line 436 of file parley.cpp.

void ParleyApp::slotConfigShowSearch (  )  [slot]

change the status message to text

change the status message of the whole statusbar temporary

Definition at line 532 of file parley.cpp.

void ParleyApp::removeEntryDlg (  )  [slot]

Close the entry dialog.

Definition at line 208 of file parley.cpp.


The documentation for this class was generated from the following files:
  • parley.h
  • kva_init.cpp
  • kva_io.cpp
  • parley.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"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
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