blob: 61558bb1a7b50e72dff257e9e88519be564660d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
/***************************************************************************
* Copyright (C) 1999-2001 by John Birch *
* [email protected] *
* Copyright (C) 2001 by Bernd Gehrmann *
* [email protected] *
* *
* Adapted for ruby debugging *
* -------------------------- *
* begin : Mon Nov 1 2004 *
* copyright : (C) 2004 by Richard Dale *
* email : [email protected] *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef _DEBUGGERPART_H_
#define _DEBUGGERPART_H_
#include <tqguardedptr.h>
#include "kdevplugin.h"
#include "kdevcore.h"
namespace KParts { class Part; }
class TQLabel;
class TQPopupMenu;
class KDialogBase;
class ProcessWidget;
class ProcessLineMaker;
class KDevAppFrontend;
class KDevDebugger;
namespace RDBDebugger
{
class RDBBreakpointWidget;
class FramestackWidget;
class Breakpoint;
class DbgController;
class DbgToolBar;
class VariableWidget;
class RDBOutputWidget;
class RubyDebuggerPart : public KDevPlugin
{
Q_OBJECT
TQ_OBJECT
public:
RubyDebuggerPart( TQObject *parent, const char *name, const TQStringList & );
~RubyDebuggerPart();
virtual void restorePartialProjectSession(const TQDomElement* el);
virtual void savePartialProjectSession(TQDomElement* el);
private slots:
void guiClientAdded(KXMLGUIClient*);
void contextMenu(TQPopupMenu *popup, const Context *context);
void toggleBreakpoint();
void contextWatch();
void contextRubyInspect();
// void projectOpened();
void projectClosed();
void slotActivePartChanged(KParts::Part*);
void slotRun();
void slotStopDebugger();
void slotStop(KDevPlugin* which = 0);
void slotPause();
void slotRunToCursor();
void slotStepOver();
void slotStepInto();
void slotStepOut();
void slotRefreshBPState(const Breakpoint&);
void slottqStatus(const TQString &msg, int state);
void slotShowStep(const TQString &fileName, int lineNum);
void slotGotoSource(const TQString &fileName, int lineNum);
signals:
void rubyInspect(const TQString&);
private:
KDevAppFrontend *appFrontend();
KDevDebugger *debugger();
bool startDebugger();
void setupController();
TQGuardedPtr<VariableWidget> variableWidget;
TQGuardedPtr<RDBBreakpointWidget> rdbBreakpointWidget;
TQGuardedPtr<FramestackWidget> framestackWidget;
TQGuardedPtr<RDBOutputWidget> rdbOutputWidget;
DbgController *controller;
TQGuardedPtr<TQLabel> statusBarIndicator;
TQGuardedPtr<DbgToolBar> floatingToolBar;
ProcessLineMaker* procLineMaker;
ProcessLineMaker* rdbLineMaker;
TQString m_contextIdent;
TQCString m_drkonqi;
KDevDebugger *m_debugger;
};
}
#endif
|