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

parley

Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Friends | List of all members
ParleyMainWindow Class Reference

#include <parleymainwindow.h>

Inheritance diagram for ParleyMainWindow:
Inheritance graph
[legend]

Public Types

enum  Component {
  NoComponent, DashboardComponent, EditorComponent, ConfigurePracticeComponent,
  PracticeComponent, PracticeSummary
}
 

Public Slots

void configurePractice ()
 
void documentUpdated (KEduVocDocument *doc)
 
void practiceFinished ()
 
bool queryClose ()
 
void removeRecentFile (const KUrl &url)
 
void setVisibleToolbar (const QString &name)
 
void showDashboard ()
 
void showDocumentActions (bool open, bool edit)
 
void showEditor ()
 
void showPractice ()
 
void showPracticeConfiguration ()
 
void showPracticeSummary ()
 
QSize sizeHint () const
 
void slotApplyPreferences ()
 
void slotCloseDocument ()
 
void slotFileNew ()
 
void slotGeneralOptions ()
 
void slotUpdateWindowCaption ()
 
void startPractice ()
 
void startupTipOfDay ()
 
void switchComponent (Component component)
 
void tipOfDay ()
 

Signals

void preferencesChanged ()
 
void recentFilesChanged ()
 

Public Member Functions

 ~ParleyMainWindow ()
 
void addRecentFile (const KUrl &url, const QString &name)
 
Component currentComponent ()
 
void initActions ()
 
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 41 of file parleymainwindow.h.

Member Enumeration Documentation

enum ParleyMainWindow::Component

enum for the different components that can be displayed

Enumerator
NoComponent 
DashboardComponent 
EditorComponent 
ConfigurePracticeComponent 
PracticeComponent 
PracticeSummary 

Definition at line 51 of file parleymainwindow.h.

Constructor & Destructor Documentation

ParleyMainWindow::~ParleyMainWindow ( )

Definition at line 110 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 118 of file parleymainwindow.cpp.

void ParleyMainWindow::configurePractice ( )
slot

Definition at line 186 of file parleymainwindow.cpp.

ParleyMainWindow::Component ParleyMainWindow::currentComponent ( )

Definition at line 418 of file parleymainwindow.cpp.

void ParleyMainWindow::documentUpdated ( KEduVocDocument *  doc)
slot

Updates connections when the ParleyDocument pointer is changed to doc.

Definition at line 130 of file parleymainwindow.cpp.

void ParleyMainWindow::initActions ( )

setup the action (menus etc)

Definition at line 235 of file parleymainwindow.cpp.

ParleyMainWindow * ParleyMainWindow::instance ( )
static

Definition at line 55 of file parleymainwindow.cpp.

ParleyDocument * ParleyMainWindow::parleyDocument ( )

Return the ParleyDocument member object.

Returns
member m_document

Definition at line 413 of file parleymainwindow.cpp.

void ParleyMainWindow::practiceFinished ( )
slot

Definition at line 204 of file parleymainwindow.cpp.

void ParleyMainWindow::preferencesChanged ( )
signal
bool ParleyMainWindow::queryClose ( )
slot

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

Definition at line 209 of file parleymainwindow.cpp.

void ParleyMainWindow::recentFilesChanged ( )
signal
void ParleyMainWindow::removeRecentFile ( const KUrl &  url)
slot

remove an entry from the list of recent files

Definition at line 124 of file parleymainwindow.cpp.

void ParleyMainWindow::saveOptions ( )

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

Definition at line 146 of file parleymainwindow.cpp.

void ParleyMainWindow::setVisibleToolbar ( const QString &  name)
slot

Definition at line 402 of file parleymainwindow.cpp.

void ParleyMainWindow::showDashboard ( )
slot

Definition at line 262 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 384 of file parleymainwindow.cpp.

void ParleyMainWindow::showEditor ( )
slot

Definition at line 267 of file parleymainwindow.cpp.

void ParleyMainWindow::showPractice ( )
slot

Definition at line 277 of file parleymainwindow.cpp.

void ParleyMainWindow::showPracticeConfiguration ( )
slot

Definition at line 272 of file parleymainwindow.cpp.

void ParleyMainWindow::showPracticeSummary ( )
slot

Definition at line 282 of file parleymainwindow.cpp.

QSize ParleyMainWindow::sizeHint ( ) const
slot

Definition at line 214 of file parleymainwindow.cpp.

void ParleyMainWindow::slotApplyPreferences ( )
slot

Definition at line 172 of file parleymainwindow.cpp.

void ParleyMainWindow::slotCloseDocument ( )
slot

Definition at line 177 of file parleymainwindow.cpp.

void ParleyMainWindow::slotFileNew ( )
slot

Opens a dialog for a new collection.

Definition at line 229 of file parleymainwindow.cpp.

void ParleyMainWindow::slotGeneralOptions ( )
slot

set up options

Definition at line 165 of file parleymainwindow.cpp.

void ParleyMainWindow::slotUpdateWindowCaption ( )
slot

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

Definition at line 151 of file parleymainwindow.cpp.

void ParleyMainWindow::startPractice ( )
slot

Definition at line 192 of file parleymainwindow.cpp.

void ParleyMainWindow::startupTipOfDay ( )
slot

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

Definition at line 224 of file parleymainwindow.cpp.

void ParleyMainWindow::switchComponent ( Component  component)
slot
Todo:
trust the dirty bit

Definition at line 287 of file parleymainwindow.cpp.

void ParleyMainWindow::tipOfDay ( )
slot

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

Definition at line 219 of file parleymainwindow.cpp.

void ParleyMainWindow::updateRecentFilesModel ( )

update the list of recent files in the dashboard

Definition at line 141 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

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


The documentation for this class was generated from the following files:
  • parleymainwindow.h
  • parleymainwindow.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal