Added TDevelop Programming Handbook to TDevelop help menu just after the TDevelop Handbook entry. This resolves bug 1860.

pull/1/head
Michele Calgaro 11 years ago
parent b69b8e3496
commit 9224e8b490

@ -1,2 +1,2 @@
SUBDIRS = tdevelop std extras kde_app_devel kdevdesigner SUBDIRS = tdevelop std extras tde_app_devel kdevdesigner

@ -9,4 +9,4 @@
# #
################################################# #################################################
tde_create_handbook( DESTINATION kde_app_devel ) tde_create_handbook( DESTINATION tde_app_devel )

@ -1,3 +1,2 @@
KDE_LANG = en KDE_LANG = en
KDE_DOCS = AUTO KDE_DOCS = AUTO

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

@ -1,6 +1,6 @@
<?xml version="1.0" ?> <?xml version="1.0" ?>
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [ <!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 kappname "&tdevelop;">
<!ENTITY % addindex "INCLUDE"> <!ENTITY % addindex "INCLUDE">
<!ENTITY % English "INCLUDE" > <!-- change language only here --> <!ENTITY % English "INCLUDE" > <!-- change language only here -->

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -89,6 +89,17 @@ void SimpleMainWindow::init()
m_mainWindowShare->init(); m_mainWindowShare->init();
setupWindowMenu(); 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 ); menuBar()->setEnabled( false );
//FIXME: this checks only for global offers which is not quite correct because //FIXME: this checks only for global offers which is not quite correct because
@ -1006,6 +1017,11 @@ void SimpleMainWindow::projectClosed()
DMainWindow::setCaption(TQString()); DMainWindow::setCaption(TQString());
} }
void SimpleMainWindow::slotProgrammingHandbook()
{
kapp->invokeHelp(TQString::null, "tde_app_devel");
}
#include "simplemainwindow.moc" #include "simplemainwindow.moc"
// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on // kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on

@ -101,6 +101,7 @@ private slots:
void raiseRightDock(); void raiseRightDock();
void raiseDock(DDockWindow *dock); void raiseDock(DDockWindow *dock);
void lowerAllDocks(); void lowerAllDocks();
void slotProgrammingHandbook();
private: private:
void createFramework(); void createFramework();

Loading…
Cancel
Save