|
|
|
@ -17,6 +17,9 @@
|
|
|
|
|
#include <klibloader.h>
|
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
|
#include <kstatusbar.h>
|
|
|
|
|
#include <tdepopupmenu.h>
|
|
|
|
|
#include <tdemenubar.h>
|
|
|
|
|
#include <kiconloader.h>
|
|
|
|
|
|
|
|
|
|
KXsldbg::KXsldbg()
|
|
|
|
|
: DCOPObject("KXsldbg"), KParts::MainWindow( 0L, "kxsldbg" )
|
|
|
|
@ -54,8 +57,17 @@ KXsldbg::KXsldbg()
|
|
|
|
|
kapp->dcopClient()->attach();
|
|
|
|
|
connectDCOPSignal(0, 0, "debuggerPositionChanged(TQString,int)", "newDebuggerPosition(TQString,int)", false );
|
|
|
|
|
connectDCOPSignal(0, 0, "editorPositionChanged(TQString,int,int)", "newCursorPosition(TQString,int,int)", false );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Add xsldbg 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("&XSLDbg handbook"), TQT_TQOBJECT(this),
|
|
|
|
|
TQT_SLOT(showXSLDbgHelp()), NULL, -1, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -170,4 +182,9 @@ void KXsldbg::newDebuggerPosition(const TQString &file, int lineNumber)
|
|
|
|
|
newCursorPosition(file, lineNumber);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KXsldbg::showXSLDbgHelp()
|
|
|
|
|
{
|
|
|
|
|
kapp->invokeHelp(TQString(), "xsldbg");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#include "kxsldbg.moc"
|
|
|
|
|