summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am2
-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)bin46091 -> 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)bin16708 -> 16708 bytes
-rw-r--r--src/simplemainwindow.cpp16
-rw-r--r--src/simplemainwindow.h3
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
index adbadb35..adbadb35 100644
--- a/doc/kde_app_devel/appwizard.png
+++ b/doc/tde_app_devel/appwizard.png
Binary files differ
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
index 1591b3cf..1591b3cf 100644
--- a/doc/kde_app_devel/kscribblefiles.png
+++ b/doc/tde_app_devel/kscribblefiles.png
Binary files differ
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();