aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2014-01-20 16:35:38 (GMT)
committerChristoph Cullmann <cullmann@kde.org>2014-01-20 16:35:38 (GMT)
commitde6e3f794309c3a01d0f78a4250d51afe9c453fd (patch)
treeab9396a8e66f99aa79ec21e1f960a1ea3b7c9852
parenta3242e7d7c1d2956816e534398b86e9950967f05 (diff)
the world hates the tip of the day for an advanced editor ;)
-rw-r--r--kate/app/kateapp.cpp4
-rw-r--r--kate/app/katemainwindow.cpp10
-rw-r--r--kate/app/katemainwindow.h2
-rw-r--r--kate/data/CMakeLists.txt2
-rw-r--r--kate/data/tips121
5 files changed, 1 insertions, 138 deletions
diff --git a/kate/app/kateapp.cpp b/kate/app/kateapp.cpp
index 84df8b2..e7d8e27 100644
--- a/kate/app/kateapp.cpp
+++ b/kate/app/kateapp.cpp
@@ -28,7 +28,6 @@
#include "katedebug.h"
#include <KConfig>
-#include <ktip.h>
#include <KMessageBox>
#include <KStartupInfo>
#include <KLocalizedString>
@@ -268,9 +267,6 @@ bool KateApp::startupKate ()
if (nav && activeKateMainWindow()->viewManager()->activeView ())
activeKateMainWindow()->viewManager()->activeView ()->setCursorPosition (KTextEditor::Cursor (line, column));
- // show the nice tips
- KTipDialog::showTip(activeKateMainWindow());
-
activeKateMainWindow()->setAutoSaveSettings();
qCDebug(LOG_KATE) << "KateApplication::init finished successful";
diff --git a/kate/app/katemainwindow.cpp b/kate/app/katemainwindow.cpp
index a0e872a..ce0b721 100644
--- a/kate/app/katemainwindow.cpp
+++ b/kate/app/katemainwindow.cpp
@@ -45,7 +45,6 @@
#include <KStandardAction>
#include <KMimeTypeTrader>
#include <KMultiTabBar>
-#include <ktip.h>
#include <khelpclient.h>
#include <KRun>
#include <KRecentFilesAction>
@@ -344,10 +343,6 @@ void KateMainWindow::setupActions()
QAction* settingsConfigure = KStandardAction::preferences(this, SLOT(slotConfigure()), actionCollection());
settingsConfigure->setWhatsThis(i18n("Configure various aspects of this application and the editing component."));
- // tip of the day :-)
- actionCollection()->addAction( KStandardAction::TipofDay, this, SLOT(tipOfTheDay()) )
- ->setWhatsThis(i18n("This shows useful tips on the use of this application."));
-
if (KatePluginManager::self()->pluginList().count() > 0)
{
a = actionCollection()->addAction( QLatin1String("help_plugins_contents") );
@@ -808,11 +803,6 @@ void KateMainWindow::aboutEditor()
ad.exec();
}
-void KateMainWindow::tipOfTheDay()
-{
- KTipDialog::showTip( /*0*/this, QString(), true );
-}
-
void KateMainWindow::slotFullScreen(bool t)
{
KToggleFullScreenAction::setFullScreen(this, t);
diff --git a/kate/app/katemainwindow.h b/kate/app/katemainwindow.h
index c336b7c..115989a 100644
--- a/kate/app/katemainwindow.h
+++ b/kate/app/katemainwindow.h
@@ -196,8 +196,6 @@ class KateMainWindow : public KateMDI::MainWindow, virtual public KParts::PartBa
void slotPreQuickOpen ();
void slotQuickOpen ();
- void tipOfTheDay();
-
/* to update the caption */
void slotDocumentCreated (KTextEditor::Document *doc);
void updateCaption (KTextEditor::Document *doc);
diff --git a/kate/data/CMakeLists.txt b/kate/data/CMakeLists.txt
index dc71fd7..9dd6d14 100644
--- a/kate/data/CMakeLists.txt
+++ b/kate/data/CMakeLists.txt
@@ -1,4 +1,4 @@
# desktop files and co
install( PROGRAMS kate.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
install( FILES katerc DESTINATION ${CONFIG_INSTALL_DIR} )
-install( FILES tips kateui.rc DESTINATION ${DATA_INSTALL_DIR}/kate )
+install( FILES kateui.rc DESTINATION ${DATA_INSTALL_DIR}/kate )
diff --git a/kate/data/tips b/kate/data/tips
deleted file mode 100644
index 497fb55..0000000
--- a/kate/data/tips
+++ /dev/null
@@ -1,121 +0,0 @@
-<tip category="Kate|app">
-<html>
-<p>Kate comes with a nice set of plugins, providing simple
-and advanced features of all sorts.</p>
-<p>You can enable/disable plugins to suit your needs in the configuration dialog,
-choose <strong>Settings -&gt;configure</strong> to launch that.</p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>You can swap the characters on each side of the cursor just by pressing
-<strong>Ctrl+T</strong></p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>You can export the current document as a HTML file, including
-syntax highlighting.</p>
-<p>Just choose <strong>File -&gt; Export -&gt; HTML...</strong></p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>You can split the Kate editor as many times as you like and
-in either direction. Each frame has its own status bar and
-can display any open document.</p>
-<p>Just choose <br><strong>View -&gt; Split View -&gt; Split [ Horizontal | Vertical ]</strong></p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>You can move the Tool views to any side of the main window through the
-context menu.</p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>Kate has a built-in terminal emulator, just click on <strong>"Terminal"</strong> at
-the bottom to show or hide it as you desire.</p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>Kate can highlight the current line with a
-<table bgcolor="yellow" border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td>different
-background color.<strong>|</strong></td></tr></table></p>
-<p>You can set the color in the <em>Colors</em> page of the configuration
-dialog.</p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>You can open the currently edited file in any other application from within
-Kate.</p>
-<p>Choose <strong>File -&gt; Open With</strong> for the list of programs
-configured
-for the document type. There is also an option <strong>Other...</strong> to
-choose any application on your system.</p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>You can configure the editor to always display the line numbers and/or
-bookmark panes when started from the <strong>Appearance</strong> page of the
-configuration dialog.</p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>You can download new or updated <em>Syntax highlight definitions</em> from
-the <strong>Open/Save</strong> page in the configuration dialog.</p>
-<p>Just click the <em>Download...</em> button on the <em>Open/Save -&gt; Modes &amp; Filetypes</em>
-tab (You have to be online, of course...).</p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>You can cycle through all open documents by pressing <strong>Alt+Left</strong>
-or <strong>Alt+Right</strong>. The next/previous document will immediately be displayed
-in the active frame.</p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>You can do cool sed-like regular expression replacements using <em>Command Line</em>.</p>
-<p>For example, press <strong>F7</strong> and enter <code>s /oldtext/newtext/g</code>
-to replace &quot;oldtext&quot; with &quot;newtext&quot; throughout the current
-line.</p>
-</html>
-</tip>
-<tip category="Kate|part">
-<html>
-<p>You can repeat your last search by just pressing <strong>F3</strong>, or
-<strong>Shift+F3</strong> if you want to search backwards.</p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>You can filter the files displayed in the <em>Filesystem Browser</em> tool view.
-</p>
-<p>Simply enter your filter in the filter entry at the bottom, for example:
-<code>*.html *.php</code> if you only want to see HTML and PHP files in the
-current folder.</p>
-<p>The Filesystem Browser will even remember your filters for you.</p>
-</html>
-</tip>
-<tip category="Kate|app">
-<html>
-<p>You can have two views - or even more - of the same document in Kate. Editing
-in either will be reflected in both.</p>
-<p>So if you find yourself scrolling up and down to look at text at the other
-end of a document, just press <strong>Ctrl+Shift+T</strong> to split
-horizontally.</p>
-</html>
-</tip>
-<tip category="kate|app">
-<html>
-<p>Press <strong>F8</strong> or <strong>Shift+F8</strong> to switch to the
-next/previous frame.</p>
-</html>
-</tip>