Commit 51992940 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Remove deprecated tip-of-the-date

Startup notification is already deactivated since some time and
important tips are covered by handbook.
parent d57097ac
......@@ -144,7 +144,6 @@ add_subdirectory( docs )
add_subdirectory( src )
add_subdirectory( icons )
add_subdirectory( themes )
add_subdirectory( tipofday )
if(HAVE_LIBXSLT)
add_subdirectory( xslt )
......
......@@ -8,42 +8,36 @@
*/
#include "parleymainwindow.h"
#include "dashboard/dashboard.h"
#include "editor/editor.h"
#include "parleyactions.h"
#include "practice/configure/configurepracticedialog.h"
#include "practice/guifrontend.h"
#include "practice/practicesummarycomponent.h"
#include "prefs.h"
#include "settings/parleyprefs.h"
#include "statistics/statisticsmainwindow.h"
#include <config-parley.h>
#include "parleyactions.h"
#include "dashboard/dashboard.h"
#include "prefs.h"
#include <KActionCollection>
#include <KMessageBox>
#include <KRecentFilesAction>
#include <KTipDialog>
#include <KToolBar>
#include <KXMLGUIFactory>
#include <QMenuBar>
#include <QTimer>
#include <config-parley.h>
using namespace Editor;
ParleyMainWindow *ParleyMainWindow::s_instance = 0;
ParleyMainWindow *ParleyMainWindow::s_instance = nullptr;
ParleyMainWindow *ParleyMainWindow::instance()
{
return s_instance;
}
ParleyMainWindow::ParleyMainWindow(const QUrl &filename)
: KXmlGuiWindow(0)
: KXmlGuiWindow(nullptr)
, m_currentComponent(NoComponent)
, m_currentComponentWindow(0)
, m_currentComponentWindow(nullptr)
, m_sessionManager(this)
{
s_instance = this;
......@@ -84,9 +78,6 @@ ParleyMainWindow::ParleyMainWindow(const QUrl &filename)
connect(this, &ParleyMainWindow::preferencesChanged, this, &ParleyMainWindow::slotApplyPreferences);
menuBar()->show();
// finally show tip-of-day (if the user wants it)
// QTimer::singleShot( 0, this, SLOT(startupTipOfDay()) );
}
ParleyMainWindow::~ParleyMainWindow()
......@@ -206,16 +197,6 @@ QSize ParleyMainWindow::sizeHint() const
return QSize(800, 600).expandedTo(KXmlGuiWindow::minimumSizeHint());
}
void ParleyMainWindow::tipOfDay()
{
KTipDialog::showTip(this, QStringLiteral("parley/tips"), true);
}
void ParleyMainWindow::startupTipOfDay()
{
KTipDialog::showTip(this, QStringLiteral("parley/tips"));
}
void ParleyMainWindow::slotFileNew()
{
m_document->slotFileNew();
......@@ -243,8 +224,6 @@ void ParleyMainWindow::initActions()
ParleyActions::create(ParleyActions::FileClose, this, SLOT(slotCloseDocument()), actionCollection());
ParleyActions::create(ParleyActions::FileQuit, this, SLOT(close()), actionCollection());
ParleyActions::create(ParleyActions::Preferences, this, SLOT(slotGeneralOptions()), actionCollection());
actionCollection()->addAction(KStandardAction::TipofDay, QStringLiteral("help_tipofday"), this, SLOT(tipOfDay()));
}
void ParleyMainWindow::showDashboard()
......
......@@ -91,16 +91,6 @@ public slots:
void showPracticeSummary();
void practiceFinished();
/**
* Show the tip of the day (force it to be shown)
*/
void tipOfDay();
/**
* Show the tip of the day - the startup version that can be disabled
*/
void startupTipOfDay();
void showDashboard();
void showEditor();
void showPractice();
......
......@@ -16,9 +16,6 @@
<Merge/>
<Menu name="settings" >
</Menu>
<Menu name="help"><text>&amp;Help</text>
<Action name="help_tipofday"/>
</Menu>
</MenuBar>
<ToolBar noMerge="true" noEdit="true" deleted="true" name="mainToolBar">
<text>Main Toolbar</text>
......
install(FILES
tips
DESTINATION ${KDE_INSTALL_DATADIR}/parley)
<tip category="Parley">
<html>
<p>Parley enables you to edit many additional properties of the words you enter.</p>
<p>Use "View -> ..." check boxes to enable different information that will help you set additional information for your vocabulary. These include Image, Sound, Word Types and many more. Choose the ones you like.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>To <em>search</em> for a word, simply type it into the search bar.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>If you want to see all words of a certain word type (e.g. nouns), simply select the word type in the list.</p>
<p>To show the word type list, use "View -> Word Types" check box.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>You can drag and drop your lessons to change their order or even make a lesson a child of another lesson.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>You can simply drag a word into the word types list to change its type.</p>
<p>You can even select multiple words at the same time.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p><em>Setting Images</em></p>
<p>A fast way to set an image for a word is to simply drop it onto the image dock.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p><em>Word Types</em></p>
<p>You can set a special tag to some word types to let Parley know their grammatical meaning.</p>
<p>For verbs for example you can then enter conjugations.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p><em>Multiple Choice</em></p>
<p>For some vocabularies multiple choice tests work best. You can add choices to a word that will always be displayed in Multiple Choice mode. Otherwise random choices are generated from the other entries in the document. (Use the Multiple Choice tool for that.)</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>Want to enter pronunciation symbols quickly? <em>Double-click</em> the symbol you need to directly add it.</p>
</html>
</tip>
<tip category="Parley">
<html>
<p>You can use the "Download New Vocabulary" dialog or visit the website listing many vocabulary documents:
<a href="https://edu.kde.org/contrib/kvtml2.php">https://edu.kde.org/contrib/kvtml2.php</a>.</p>
</html>
</tip>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment