summaryrefslogtreecommitdiffstats
path: root/parts/tipofday
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit114a878c64ce6f8223cfd22d76a20eb16d177e5e (patch)
treeacaf47eb0fa12142d3896416a69e74cbf5a72242 /parts/tipofday
downloadtdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.tar.gz
tdevelop-114a878c64ce6f8223cfd22d76a20eb16d177e5e.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/tipofday')
-rw-r--r--parts/tipofday/Makefile.am24
-rw-r--r--parts/tipofday/README.dox8
-rw-r--r--parts/tipofday/hi16-action-ktip.pngbin0 -> 496 bytes
-rw-r--r--parts/tipofday/hi32-action-ktip.pngbin0 -> 1300 bytes
-rw-r--r--parts/tipofday/hi48-action-ktip.pngbin0 -> 1825 bytes
-rw-r--r--parts/tipofday/kdevpart_tipofday.rc8
-rw-r--r--parts/tipofday/kdevtipofday.desktop94
-rw-r--r--parts/tipofday/lo16-action-kdevelop_tip.pngbin0 -> 273 bytes
-rw-r--r--parts/tipofday/lo32-action-kdevelop_tip.pngbin0 -> 372 bytes
-rw-r--r--parts/tipofday/tipofday_part.cpp67
-rw-r--r--parts/tipofday/tipofday_part.h33
-rw-r--r--parts/tipofday/tips203
12 files changed, 437 insertions, 0 deletions
diff --git a/parts/tipofday/Makefile.am b/parts/tipofday/Makefile.am
new file mode 100644
index 00000000..14e3a349
--- /dev/null
+++ b/parts/tipofday/Makefile.am
@@ -0,0 +1,24 @@
+INCLUDES = -I$(top_srcdir)/lib/interfaces -I$(top_srcdir)/lib/util $(all_includes)
+
+kde_module_LTLIBRARIES = libkdevtipofday.la
+libkdevtipofday_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN)
+libkdevtipofday_la_LIBADD = $(top_builddir)/lib/libkdevelop.la
+
+libkdevtipofday_la_SOURCES = tipofday_part.cpp
+
+METASOURCES = AUTO
+KDE_ICON = AUTO
+
+servicedir = $(kde_servicesdir)
+service_DATA = kdevtipofday.desktop
+
+tip_DATA = tips
+tipdir = $(kde_datadir)/kdevtipofday
+
+rc_DATA = kdevpart_tipofday.rc
+rcdir = $(kde_datadir)/kdevtipofday
+
+messages: rc.cpp
+ $(PREPARETIPS) > tips.cc
+ $(XGETTEXT) *.cpp *.h tips.cc -o $(podir)/kdevtipofday.pot
+ rm -f tips.cc
diff --git a/parts/tipofday/README.dox b/parts/tipofday/README.dox
new file mode 100644
index 00000000..f953e258
--- /dev/null
+++ b/parts/tipofday/README.dox
@@ -0,0 +1,8 @@
+/** \class TipOfDayPart
+Shows a random "tip of the day" at KDevelop startup.
+
+\authors <a href="mailto:bernd AT kdevelop.org">Bernd Gehrmann</a>
+
+\feature Shows a random "tip of the day" at KDevelop startup
+
+*/
diff --git a/parts/tipofday/hi16-action-ktip.png b/parts/tipofday/hi16-action-ktip.png
new file mode 100644
index 00000000..1358de47
--- /dev/null
+++ b/parts/tipofday/hi16-action-ktip.png
Binary files differ
diff --git a/parts/tipofday/hi32-action-ktip.png b/parts/tipofday/hi32-action-ktip.png
new file mode 100644
index 00000000..4b38d5d6
--- /dev/null
+++ b/parts/tipofday/hi32-action-ktip.png
Binary files differ
diff --git a/parts/tipofday/hi48-action-ktip.png b/parts/tipofday/hi48-action-ktip.png
new file mode 100644
index 00000000..534eda5c
--- /dev/null
+++ b/parts/tipofday/hi48-action-ktip.png
Binary files differ
diff --git a/parts/tipofday/kdevpart_tipofday.rc b/parts/tipofday/kdevpart_tipofday.rc
new file mode 100644
index 00000000..43f7d1dc
--- /dev/null
+++ b/parts/tipofday/kdevpart_tipofday.rc
@@ -0,0 +1,8 @@
+<!DOCTYPE kpartgui>
+<kpartplugin name="tipofday" library="libtipofdayplugin" version="1">
+<MenuBar>
+ <Menu name="help"><Text>&amp;Help</Text>
+ <Action name="help_tipofday"/>
+ </Menu>
+</MenuBar>
+</kpartplugin>
diff --git a/parts/tipofday/kdevtipofday.desktop b/parts/tipofday/kdevtipofday.desktop
new file mode 100644
index 00000000..4c4f9ba2
--- /dev/null
+++ b/parts/tipofday/kdevtipofday.desktop
@@ -0,0 +1,94 @@
+[Desktop Entry]
+Type=Service
+Exec=blubb
+Comment=Tip of the Day
+Comment[br]=Lagadenn an deiz
+Comment[ca]=Consell del dia
+Comment[cy]=Awgrymiad y Dydd
+Comment[da]=Dagens vink
+Comment[de]=Tipp des Tages
+Comment[el]=Συμβουλή της ημέρας
+Comment[es]=Consejo del día
+Comment[et]=Päeva nõuanne
+Comment[eu]=Eguneko aholkua
+Comment[fa]=نکتۀ روز
+Comment[fr]=Astuce du jour
+Comment[ga]=Leid an Lae
+Comment[gl]=Consello do día
+Comment[hi]=टिप ऑफ द डे
+Comment[hu]=A nap tippje
+Comment[it]=Suggerimento del giorno
+Comment[ja]=今日の一言
+Comment[ms]=Tip Hari Ini
+Comment[nds]=Tipp för Vundaag
+Comment[ne]=आजको टिप
+Comment[nl]=Tip van de dag
+Comment[pa]=ਅੱਜ ਦਾ ਇਸ਼ਾਰਾ
+Comment[pl]=Podpowiedź dnia
+Comment[pt]=Dica do Dia
+Comment[pt_BR]=Dica do Dia
+Comment[ru]=Полезный совет
+Comment[sk]=Tip dňa
+Comment[sl]=Namig dneva
+Comment[sr]=Савет дана
+Comment[sr@Latn]=Savet dana
+Comment[sv]=Dagens tips
+Comment[ta]=இந்த நாளுக்கான யோசனை
+Comment[tg]=Маслиҳати фоиданок
+Comment[tr]=Günün İpucu
+Comment[zh_CN]=日积月累
+Comment[zh_TW]=本日小提示
+Name=KDevTipOfDay
+Name[da]=KDevelop Dagens vink
+Name[de]="Tipp des Tages"-Modul (KDevelop)
+Name[hi]=के-डेव-टिप-ऑफ-डे
+Name[nds]=KDevelop-"Tipp för Vundaag"
+Name[pl]=KDevPodpowiedźDnia
+Name[sk]=KDev tip dňa
+Name[sv]=KDevelop dagens tips
+Name[ta]=KDevஇந்த நாளுக்கான யோசனை
+Name[tg]=KDevЛуқмаи рӯз
+Name[zh_TW]=KDevelop 本日小提示
+GenericName=Tip of the Day
+GenericName[br]=Lagadenn an deiz
+GenericName[ca]=Consell del dia
+GenericName[cy]=Awgrymiad y Dydd
+GenericName[da]=Dagens vink
+GenericName[de]=Tipp des Tages
+GenericName[el]=Συμβουλή της ημέρας
+GenericName[es]=Consejo del día
+GenericName[et]=Päeva nõuanne
+GenericName[eu]=Eguneko aholkua
+GenericName[fa]=نکتۀ روز
+GenericName[fr]=Astuce du jour
+GenericName[ga]=Leid an Lae
+GenericName[gl]=Consello do día
+GenericName[hi]=टिप ऑफ द डे
+GenericName[hu]=A nap tippje
+GenericName[it]=Suggerimento del giorno
+GenericName[ja]=今日の一言
+GenericName[ms]=Tip Hari Ini
+GenericName[nds]=Tipp för Vundaag
+GenericName[ne]=आजको टिप
+GenericName[nl]=Tip van de dag
+GenericName[pa]=ਅੱਜ ਦਾ ਇਸ਼ਾਰਾ
+GenericName[pl]=Podpowiedź dnia
+GenericName[pt]=Dica do Dia
+GenericName[pt_BR]=Dica do Dia
+GenericName[ru]=Полезный совет
+GenericName[sk]=Tip dňa
+GenericName[sl]=Namig dneva
+GenericName[sr]=Савет дана
+GenericName[sr@Latn]=Savet dana
+GenericName[sv]=Dagens tips
+GenericName[ta]=இந்த நாளுக்கான யோசனை
+GenericName[tg]=Маслиҳати фоиданок
+GenericName[tr]=Günün İpucu
+GenericName[zh_CN]=日积月累
+GenericName[zh_TW]=本日小提示
+Icon=kdevelop
+ServiceTypes=KDevelop/Plugin
+X-KDE-Library=libkdevtipofday
+X-KDevelop-Version=5
+X-KDevelop-Scope=Core
+X-KDevelop-Properties=Documentation
diff --git a/parts/tipofday/lo16-action-kdevelop_tip.png b/parts/tipofday/lo16-action-kdevelop_tip.png
new file mode 100644
index 00000000..66c5766c
--- /dev/null
+++ b/parts/tipofday/lo16-action-kdevelop_tip.png
Binary files differ
diff --git a/parts/tipofday/lo32-action-kdevelop_tip.png b/parts/tipofday/lo32-action-kdevelop_tip.png
new file mode 100644
index 00000000..ea4a755a
--- /dev/null
+++ b/parts/tipofday/lo32-action-kdevelop_tip.png
Binary files differ
diff --git a/parts/tipofday/tipofday_part.cpp b/parts/tipofday/tipofday_part.cpp
new file mode 100644
index 00000000..fefdcd39
--- /dev/null
+++ b/parts/tipofday/tipofday_part.cpp
@@ -0,0 +1,67 @@
+#include "tipofday_part.h"
+
+#include <qcheckbox.h>
+#include <qpushbutton.h>
+#include <qwhatsthis.h>
+
+#include <kaboutdata.h>
+#include <kaction.h>
+#include <kapplication.h>
+#include <kconfig.h>
+#include <kdevgenericfactory.h>
+#include <kdevplugininfo.h>
+#include <kiconloader.h>
+#include <klocale.h>
+#include <kstandarddirs.h>
+#include <ktextbrowser.h>
+#include <ktip.h>
+
+#include "kdevapi.h"
+#include "kdevcore.h"
+
+static const KDevPluginInfo data("kdevtipofday");
+
+typedef KDevGenericFactory<TipOfDayPart> TipOfDayFactory;
+K_EXPORT_COMPONENT_FACTORY( libkdevtipofday, TipOfDayFactory( data ) )
+
+TipOfDayPart::TipOfDayPart(QObject *parent, const char *name, const QStringList &)
+ : KDevPlugin(&data, parent, name ? name : "TipOfDayPart")
+{
+ setInstance(TipOfDayFactory::instance());
+
+ setXMLFile("kdevpart_tipofday.rc");
+
+ KAction *action;
+
+ action = new KAction(i18n("&Tip of the Day"), "idea", 0,
+ this, SLOT(showTip()), actionCollection(), "help_tipofday");
+ action->setToolTip(i18n("A tip how to use KDevelop"));
+ action->setWhatsThis(i18n("<b>Tip of the day</b><p>"
+ "Will display another good tip \n"
+ "contributed by KDevelop users."));
+
+ connect(core(), SIGNAL(coreInitialized()), this, SLOT(showOnStart()));
+}
+
+
+QString TipOfDayPart::getFilename()
+{
+ KConfig * config = KApplication::kApplication()->config();
+ config->setGroup("Tip of day plugin");
+ return config->readEntry("TipsFile", "kdevtipofday/tips");
+}
+
+void TipOfDayPart::showTip()
+{
+ KTipDialog::showTip(getFilename(), true);
+}
+
+
+void TipOfDayPart::showOnStart()
+{
+ KTipDialog::showTip(getFilename());
+}
+
+
+
+#include "tipofday_part.moc"
diff --git a/parts/tipofday/tipofday_part.h b/parts/tipofday/tipofday_part.h
new file mode 100644
index 00000000..50eedadd
--- /dev/null
+++ b/parts/tipofday/tipofday_part.h
@@ -0,0 +1,33 @@
+/*
+ * Copyright (C) 2001 Matthias H�zer-Klpfel <mhk@caldera.de>
+ */
+
+
+#ifndef __KDEVPART_TIPOFDAY_H__
+#define __KDEVPART_TIPOFDAY_H__
+
+
+#include <kdevplugin.h>
+
+
+class TipOfDayPart : public KDevPlugin
+{
+ Q_OBJECT
+
+public:
+
+ TipOfDayPart(QObject *parent, const char *name, const QStringList &);
+
+
+public slots:
+
+ void showTip();
+ void showOnStart();
+
+private:
+ QString getFilename();
+
+};
+
+
+#endif
diff --git a/parts/tipofday/tips b/parts/tipofday/tips
new file mode 100644
index 00000000..ae79ae33
--- /dev/null
+++ b/parts/tipofday/tips
@@ -0,0 +1,203 @@
+<tip category="KDevelop|General">
+<html>
+<p>If you want to specify additional command-line options to your make program, you can set them in the <b>Project Options</b> dialog, <b>Make Options</b> tab.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you use functions of other libraries than the target is currently linked with, you can specify them in the <b>Target Options</b> dialog.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you want to change your application's version number, you can change it in the <b>Project Options</b> dialog, <b>General</b> tab, automatically updating your project.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you want to create a new project, choose "Project"->"New Project" from the menu.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you changed your applications' classes, you should update your API documentation by selecting "Build API Documentation" from the Build menu.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>You can save time if you select "Compile File" from the Build menu or the toolbar, to only compile your current implementation file.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you're searching for information on classes or classmembers, select "Search for Help on..." from the Help menu or use "Index" tab of the documentation tree.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you want to have info about something in the KDevelop window, select the "What's this?" button in the toolbar and click on the item you don't know about.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>Hint: You can search the documentation for a keyword by marking the word and select "Search in Documentation" in the right button popup menu.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>The KDevelop Team wishes you a nice day !
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you have found a bug in KDevelop, please let us know. Use KDE Bugzilla at http://bugs.kde.org/ or select "Help"->"Report Bug" from the menu.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you want to add your own documentation to the documentation tree use <b>Documentation Tree</b> tab in the <b>Configure KDevelop</b> dialog.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can create a new class with "New Class" from the "Project" menu?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>To open a project, select "Open Project" from the "Project" menu.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>If you compile your project and get an error, you can click on the error message to switch to the file and line where the error occurred.
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can debug your programs within KDevelop by selecting "Debug"->"Start" in the menu?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can switch between classes or namespaces by selecting the class or namespace combo in the toolbar?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can preview images and icons by selecting them in the file viewer's trees?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can set the compiler options in the <b>Project Options</b> dialog, <b>Configure Options</b> tab?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can copy text from the documentation browser to the clipboard and insert it into your sources?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you should keep your library documentation up to date after installing new libraries?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can configure the syntax-highlighting of the editor?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can access more internal debug functions selecting "Debug"->"Viewers"?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can move the cursor by words with Ctrl and left or right arrow?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that your source bookmarks are stored in the project?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that your documentation bookmarks are stored globally in KDevelop configuration?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can start grep search from inside editor with context menu?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can set the installation path in "Project"->"Project Options" "Configure Options" with just adding "--prefix=/install/path/" to the "Configure arguments"-list?
+</html>
+</tip>
+
+
+<tip category="KDevelop|General">
+<html>
+<p>...that you can compilie your project in "debug-mode" and "optimized-mode"?
+</html>
+</tip>
+
+