blob: 0f19da1bc48e25492fa6c10c28292dcdf0041c96 (
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
|
/**
File : qxsldbgdoc.h
Author : Keith Isdale
Date : 19th April 2002
Description : The document to handle source and breakpoints
*/
#ifndef TQXSLDBGDOC_H
#define TQXSLDBGDOC_H
#include <kio/job.h>
#include <tqptrlist.h>
#include <tqstring.h>
#include <tqguardedptr.h>
#include <ktexteditor/document.h>
#include <ktexteditor/view.h>
class TQXsldbgDoc : public TQObject {
Q_OBJECT
TQ_OBJECT
public:
TQXsldbgDoc(TQWidget *tqparent=0, KURL url=TQString());
~TQXsldbgDoc();
void enableBreakPoint(uint lineNumber, bool state);
void addBreakPoint(uint lineNumber, bool enabled);
void deleteBreakPoint(uint lineNumber);
void selectBreakPoint(uint lineNumberbool, bool reachedBreakPoint);
bool isSelected(uint lineNumberbool);
void clearMarks(bool allMarkTypes);
KURL url() const;
KTextEditor::Document *kateDoc() {return kDoc;};
KTextEditor::View *kateView() {return kView;};
bool isLocked() {return locked;};
void refresh();
signals:
void docChanged();
private slots:
void slotResult( KIO::Job *job );
void lockDoc();
void unlockDoc();
private:
TQGuardedPtr<KTextEditor::Document> kDoc;
TQGuardedPtr<KTextEditor::View> kView;
bool locked;
};
#endif
|