You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdewebdev/kxsldbg/kxsldbg.h

87 lines
1.7 KiB

#ifndef KXSLDBG_H
#define KXSLDBG_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <tdeapplication.h>
#include <tdeparts/mainwindow.h>
#include <dcopobject.h>
#include <dcopclient.h>
#include "kxsldbgif.h"
class TDEToggleAction;
/**
* This is the application "Shell". It has a menubar, toolbar, and
* statusbar but relies on the "Part" to do all the real work.
*
* @short Application Shell
* @author Keith Isdale <k_isdale@tpg.com.au>
* @version 0.4
*/
class KXsldbg : public KParts::MainWindow, public KXsldbgIf
{
Q_OBJECT
public:
/**
* Default Constructor
*/
KXsldbg();
/**
* Default Destructor
*/
virtual ~KXsldbg();
/**
KxsldbgIf implementation
*/
void newCursorPosition(const TQString &file, int lineNumber, int columnNumber=0);
void newDebuggerPosition(const TQString & file, int lineNumber);
protected:
/**
* This method is called when it is time for the app to save its
* properties for session management purposes.
*/
void saveProperties(TDEConfig *);
/**
* This method is called when this app is restored. The TDEConfig
* object points to the session management config file that was saved
* with @ref saveProperties
*/
void readProperties(TDEConfig *);
virtual bool closeURL();
public slots:
void quit();
void showXSLDbgHelp();
private slots:
void optionsShowToolbar();
void optionsShowStatusbar();
void optionsConfigureKeys();
void optionsConfigureToolbars();
void applyNewToolbarConfig();
private:
void setupAccel();
void setupActions();
private:
KParts::ReadOnlyPart *m_part;
TDEToggleAction *m_toolbarAction;
TDEToggleAction *m_statusbarAction;
};
#endif // KXSLDBG_H