parley
parleymainwindow.cpp
Go to the documentation of this file.
169 ConfigurePracticeDialog configurePracticeDialog(m_document->document(), this, "practice settings", Prefs::self());
202 int exit = KMessageBox::warningYesNoCancel(this, i18n("Vocabulary is modified.\n\nSave file before exit?\n"),
236 ParleyActions::create(ParleyActions::FileNew, m_document, SLOT(slotFileNew()), actionCollection());
237 ParleyActions::create(ParleyActions::FileOpen, m_document, SLOT(slotFileOpen()), actionCollection());
239 ParleyActions::create(ParleyActions::FileOpenDownloaded, m_document, SLOT(openGHNS()), actionCollection());
247 ParleyActions::create(ParleyActions::FileSaveAs, m_document, SLOT(saveAs()), actionCollection());
249 ParleyActions::create(ParleyActions::FileExport, m_document, SLOT(exportDialog()), actionCollection());
252 ParleyActions::create(ParleyActions::FileProperties, m_document, SLOT(documentProperties()), actionCollection());
254 ParleyActions::create(ParleyActions::FileClose, this, SLOT(slotCloseDocument()), actionCollection());
256 ParleyActions::create(ParleyActions::Preferences, this, SLOT(slotGeneralOptions()), actionCollection());
258 actionCollection()->addAction(KStandardAction::TipofDay, "help_tipofday", this, SLOT( tipOfDay() ));
290 StatisticsMainWindow *statisticsWidget = qobject_cast<StatisticsMainWindow*>(m_currentComponentWindow);
319 StatisticsMainWindow *statisticsWidget = new StatisticsMainWindow(m_document->document(), this);
333 Practice::PracticeMainWindow *practiceWindow = new Practice::PracticeMainWindow(&m_testEntryManager, this);
341 Practice::PracticeSummaryComponent* summary = new Practice::PracticeSummaryComponent(&m_testEntryManager, this);
void saveOptions()
save the app-specific options on slotAppExit or by an Options dialog
Definition: parleymainwindow.cpp:127
KAction * create(ParleyAction id, const QObject *recvr, const char *slot, QObject *parent)
Definition: parleyactions.cpp:62
Definition: parleyactions.h:24
static bool autoSave()
Get If true, vocabularies are automatically saved on close and exit.
Definition: prefs.h:160
bool queryClose()
When quitting, ask for confirmation if the doc has not been saved.
Definition: parleymainwindow.cpp:183
Definition: parleymainwindow.h:68
void setVisibleToolbar(const QString &name)
Definition: parleymainwindow.cpp:400
void showDocumentActions(bool open, bool edit)
Shows or hides actions that are only relevant when a document is opened.
Definition: parleymainwindow.cpp:382
void setDocument(KEduVocDocument *doc)
Definition: testentrymanager.cpp:50
Definition: parleyactions.h:25
static bool autoOpenLast()
Get If true, on each application start the last opened file will be loaded.
Definition: prefs.h:141
void switchComponent(Component component)
Definition: parleymainwindow.cpp:286
Definition: parleyactions.h:28
Definition: parleyactions.h:27
void slotApplyPreferences()
Definition: parleymainwindow.cpp:153
Definition: parleydocument.h:29
void preferencesChanged()
void showPracticeConfiguration()
Definition: parleymainwindow.cpp:271
Definition: statisticsmainwindow.h:30
Definition: parleyactions.h:29
Definition: parleyprefs.h:35
void enableAutoBackup(bool enable)
Definition: parleydocument.cpp:482
void updateDocument(KEduVocDocument *doc)
Set the current doc (after creating a new one or opening a file)
Definition: editor.cpp:98
Definition: parleyactions.h:26
void startupTipOfDay()
Show the tip of the day - the startup version that can be disabled.
Definition: parleymainwindow.cpp:229
KAction * createDownloadAction(const QObject *recvr, const char *slot, KActionCollection *collection)
Definition: parleyactions.cpp:181
KRecentFilesAction * createRecentFilesAction(const QObject *recvr, const char *slot, QObject *parent)
Definition: parleyactions.cpp:176
Definition: parleyactions.h:30
Definition: welcomescreen.h:30
void updateRecentFilesModel()
update the list of recent files in the welcome screen
Definition: parleymainwindow.cpp:122
Definition: parleyactions.h:26
Definition: parleyactions.h:29
static bool autoBackup()
Get If true, a backup is saved every BackupTime minutes.
Definition: prefs.h:198
Definition: editor.h:46
void startPractice()
Definition: practicemainwindow.cpp:150
void addRecentFile(const KUrl &url, const QString &name)
add a new entry to the list of recent files
Definition: parleymainwindow.cpp:116
void recentFilesChanged()
bool open(const KUrl &)
Opens the given url, displays an error message and returns false on failure.
Definition: parleydocument.cpp:182
ParleyDocument * parleyDocument()
Return the ParleyDocument member object.
Definition: parleymainwindow.cpp:412
void slotUpdateWindowCaption()
Update the title bar of the main window with the current document.
Definition: parleymainwindow.cpp:132
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.