diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-29 23:11:55 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2014-05-29 23:11:55 +0900 |
commit | 9224e8b4900db127dfbb7203e43b2f38479e3ce6 (patch) | |
tree | a4e25f2879ead191a9a2ec9aff15a97577f08235 | |
parent | b69b8e3496743ae693ad1a2c3755d3bc7f6ba41e (diff) | |
download | tdevelop-9224e8b4900db127dfbb7203e43b2f38479e3ce6.tar.gz tdevelop-9224e8b4900db127dfbb7203e43b2f38479e3ce6.zip |
Added TDevelop Programming Handbook to TDevelop help menu just after the TDevelop Handbook entry. This resolves bug 1860.
-rw-r--r-- | doc/Makefile.am | 2 | ||||
-rw-r--r-- | doc/tde_app_devel/CMakeLists.txt (renamed from doc/kde_app_devel/CMakeLists.txt) | 2 | ||||
-rw-r--r-- | doc/tde_app_devel/Makefile.am (renamed from doc/kde_app_devel/Makefile.am) | 1 | ||||
-rw-r--r-- | doc/tde_app_devel/appwizard.png (renamed from doc/kde_app_devel/appwizard.png) | bin | 46091 -> 46091 bytes | |||
-rw-r--r-- | doc/tde_app_devel/index.docbook (renamed from doc/kde_app_devel/index.docbook) | 2 | ||||
-rw-r--r-- | doc/tde_app_devel/kscribblefiles.png (renamed from doc/kde_app_devel/kscribblefiles.png) | bin | 16708 -> 16708 bytes | |||
-rw-r--r-- | src/simplemainwindow.cpp | 16 | ||||
-rw-r--r-- | src/simplemainwindow.h | 3 |
8 files changed, 21 insertions, 5 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am index 8275eb30..e8279dca 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1,2 +1,2 @@ -SUBDIRS = tdevelop std extras kde_app_devel kdevdesigner +SUBDIRS = tdevelop std extras tde_app_devel kdevdesigner diff --git a/doc/kde_app_devel/CMakeLists.txt b/doc/tde_app_devel/CMakeLists.txt index 243887d5..83e96ce9 100644 --- a/doc/kde_app_devel/CMakeLists.txt +++ b/doc/tde_app_devel/CMakeLists.txt @@ -9,4 +9,4 @@ # ################################################# -tde_create_handbook( DESTINATION kde_app_devel ) +tde_create_handbook( DESTINATION tde_app_devel ) diff --git a/doc/kde_app_devel/Makefile.am b/doc/tde_app_devel/Makefile.am index 41691557..171f575c 100644 --- a/doc/kde_app_devel/Makefile.am +++ b/doc/tde_app_devel/Makefile.am @@ -1,3 +1,2 @@ KDE_LANG = en KDE_DOCS = AUTO - diff --git a/doc/kde_app_devel/appwizard.png b/doc/tde_app_devel/appwizard.png Binary files differindex adbadb35..adbadb35 100644 --- a/doc/kde_app_devel/appwizard.png +++ b/doc/tde_app_devel/appwizard.png diff --git a/doc/kde_app_devel/index.docbook b/doc/tde_app_devel/index.docbook index 2d913c0b..60bae16a 100644 --- a/doc/kde_app_devel/index.docbook +++ b/doc/tde_app_devel/index.docbook @@ -1,6 +1,6 @@ <?xml version="1.0" ?> <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ - <!ENTITY tdevelop "<application>KDevelop</application>"> + <!ENTITY tdevelop "<application>TDevelop</application>"> <!ENTITY kappname "&tdevelop;"> <!ENTITY % addindex "INCLUDE"> <!ENTITY % English "INCLUDE" > <!-- change language only here --> diff --git a/doc/kde_app_devel/kscribblefiles.png b/doc/tde_app_devel/kscribblefiles.png Binary files differindex 1591b3cf..1591b3cf 100644 --- a/doc/kde_app_devel/kscribblefiles.png +++ b/doc/tde_app_devel/kscribblefiles.png 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 diff --git a/src/simplemainwindow.h b/src/simplemainwindow.h index 7dbf5695..cc7d86f4 100644 --- a/src/simplemainwindow.h +++ b/src/simplemainwindow.h @@ -101,7 +101,8 @@ private slots: void raiseRightDock(); void raiseDock(DDockWindow *dock); void lowerAllDocks(); - + void slotProgrammingHandbook(); + private: void createFramework(); void createActions(); |