summaryrefslogtreecommitdiffstats
path: root/src/simplemainwindow.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2014-05-29 23:11:55 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2014-05-29 23:11:55 +0900
commit9224e8b4900db127dfbb7203e43b2f38479e3ce6 (patch)
treea4e25f2879ead191a9a2ec9aff15a97577f08235 /src/simplemainwindow.cpp
parentb69b8e3496743ae693ad1a2c3755d3bc7f6ba41e (diff)
downloadtdevelop-9224e8b4900db127dfbb7203e43b2f38479e3ce6.tar.gz
tdevelop-9224e8b4900db127dfbb7203e43b2f38479e3ce6.zip
Added TDevelop Programming Handbook to TDevelop help menu just after the TDevelop Handbook entry. This resolves bug 1860.
Diffstat (limited to 'src/simplemainwindow.cpp')
-rw-r--r--src/simplemainwindow.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp
index 3c9db000..6ca92ef8 100644
--- a/src/simplemainwindow.cpp
+++ b/src/simplemainwindow.cpp
@@ -89,6 +89,17 @@ void SimpleMainWindow::init()
m_mainWindowShare->init();
setupWindowMenu();
+
+ // Add TDE Programming handbook to Help menu
+ TQMenuBar *mbar = menuBar();
+ TDEPopupMenu *help_menu = dynamic_cast<TDEPopupMenu*>
+ (menuBar()->findItem(mbar->idAt(mbar->count()-1))->popup());
+ if (help_menu)
+ {
+ help_menu->insertItem(SmallIconSet("contents"), i18n("TDevelop &Programming Handbook"),
+ TQT_TQOBJECT(this), TQT_SLOT(slotProgrammingHandbook()), NULL, -1, 1);
+ }
+
menuBar()->setEnabled( false );
//FIXME: this checks only for global offers which is not quite correct because
@@ -1006,6 +1017,11 @@ void SimpleMainWindow::projectClosed()
DMainWindow::setCaption(TQString());
}
+void SimpleMainWindow::slotProgrammingHandbook()
+{
+ kapp->invokeHelp(TQString::null, "tde_app_devel");
+}
+
#include "simplemainwindow.moc"
// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on