parley
parleymainwindow.cpp
Go to the documentation of this file.
174 m_document->enableAutoBackup((m_currentComponent != DashboardComponent) && Prefs::autoBackup());
188 ConfigurePracticeDialog configurePracticeDialog(m_document->document(), this, "practice settings", Prefs::self());
196 i18n("You cannot start to practice when the known language is the same as the language to learn."),
238 ParleyActions::create(ParleyActions::FileOpen, m_document, SLOT(slotFileOpen()), actionCollection());
240 ParleyActions::create(ParleyActions::FileOpenDownloaded, m_document, SLOT(openGHNS()), actionCollection());
248 ParleyActions::create(ParleyActions::FileSaveAs, m_document, SLOT(saveAs()), actionCollection());
250 ParleyActions::create(ParleyActions::FileExport, m_document, SLOT(exportDialog()), actionCollection());
253 ParleyActions::create(ParleyActions::FileProperties, m_document, SLOT(documentProperties()), actionCollection());
255 ParleyActions::create(ParleyActions::FileClose, this, SLOT(slotCloseDocument()), actionCollection());
257 ParleyActions::create(ParleyActions::Preferences, this, SLOT(slotGeneralOptions()), actionCollection());
259 actionCollection()->addAction(KStandardAction::TipofDay, "help_tipofday", this, SLOT(tipOfDay()));
291 StatisticsMainWindow *statisticsWidget = qobject_cast<StatisticsMainWindow*>(m_currentComponentWindow);
320 StatisticsMainWindow *statisticsWidget = new StatisticsMainWindow(m_document->document(), this);
335 Practice::PracticeMainWindow *practiceWindow = new Practice::PracticeMainWindow(&m_sessionManager, this);
343 Practice::PracticeSummaryComponent* summary = new Practice::PracticeSummaryComponent(&m_sessionManager, this);
void saveOptions()
save the app-specific options on slotAppExit or by an Options dialog
Definition: parleymainwindow.cpp:146
KAction * create(ParleyAction id, const QObject *recvr, const char *slot, QObject *parent)
Definition: parleyactions.cpp:64
void removeRecentFile(const KUrl &url)
remove an entry from the list of recent files
Definition: parleymainwindow.cpp:124
Definition: parleyactions.h:25
bool queryClose()
When quitting, ask for confirmation if the doc has not been saved.
Definition: parleymainwindow.cpp:209
Definition: parleymainwindow.h:41
void setVisibleToolbar(const QString &name)
Definition: parleymainwindow.cpp:402
bool queryClose()
When quitting, ask for confirmation if the doc has not been saved.
Definition: parleydocument.cpp:264
void showDocumentActions(bool open, bool edit)
Shows or hides actions that are only relevant when a document is opened.
Definition: parleymainwindow.cpp:384
Definition: parleyactions.h:26
void clear()
static bool autoOpenLast()
Get If true, on each application start the last opened file will be loaded.
Definition: prefs.h:146
void switchComponent(Component component)
Definition: parleymainwindow.cpp:287
Definition: parleyactions.h:29
Definition: parleyactions.h:28
void slotApplyPreferences()
Definition: parleymainwindow.cpp:172
Definition: parleydocument.h:29
int allEntryCount() const
The number of entries available for the practice session.
Definition: sessionmanagerbase.cpp:172
void documentUpdated(KEduVocDocument *doc)
Updates connections when the ParleyDocument pointer is changed to doc.
Definition: parleymainwindow.cpp:130
void preferencesChanged()
void showPracticeConfiguration()
Definition: parleymainwindow.cpp:272
Definition: statisticsmainwindow.h:31
Definition: parleyactions.h:30
Definition: parleyprefs.h:35
void enableAutoBackup(bool enable)
Enable/disable the timed auto backup.
Definition: parleydocument.cpp:653
void updateDocument(KEduVocDocument *doc)
Set the current doc (after creating a new one or opening a file)
Definition: editor.cpp:104
Definition: parleyactions.h:27
void startupTipOfDay()
Show the tip of the day - the startup version that can be disabled.
Definition: parleymainwindow.cpp:224
virtual void setDocument(KEduVocDocument *doc)
Prepare for practice using the entries in this document.
Definition: sessionmanagerbase.cpp:55
Definition: dashboard.h:40
KAction * createDownloadAction(const QObject *recvr, const char *slot, KActionCollection *collection)
Definition: parleyactions.cpp:188
KRecentFilesAction * createRecentFilesAction(const QObject *recvr, const char *slot, QObject *parent)
Definition: parleyactions.cpp:183
Definition: parleyactions.h:31
void updateRecentFilesModel()
update the list of recent files in the dashboard
Definition: parleymainwindow.cpp:141
Definition: parleyactions.h:27
Definition: parleyactions.h:30
QSize expandedTo(const QSize &otherSize) const
static bool autoBackup()
Get If true, a backup is saved every BackupTime minutes.
Definition: prefs.h:203
Definition: editor.h:50
void startPractice()
Definition: practicemainwindow.cpp:155
void addRecentFile(const KUrl &url, const QString &name)
add a new entry to the list of recent files
Definition: parleymainwindow.cpp:118
void recentFilesChanged()
bool open(const KUrl &)
Opens the given url, displays an error message and returns false on failure.
Definition: parleydocument.cpp:191
ParleyDocument * parleyDocument()
Return the ParleyDocument member object.
Definition: parleymainwindow.cpp:413
void slotUpdateWindowCaption()
Update the title bar of the main window with the current document.
Definition: parleymainwindow.cpp:151
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.