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