blob: ec126aa62119e3382d6e86df53a216f11a94761e (
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
|
/**
File : qxsldbgdoc.h
Author : Keith Isdale
Date : 19th April 2002
Description : The document to handle source and breakpoints
*/
#ifndef QXSLDBGDOC_H
#define QXSLDBGDOC_H
#include <kio/job.h>
#include <qptrlist.h>
#include <qstring.h>
#include <qguardedptr.h>
#include <ktexteditor/document.h>
#include <ktexteditor/view.h>
class QXsldbgDoc : public QObject {
Q_OBJECT
public:
QXsldbgDoc(QWidget *parent=0, KURL url=QString::null);
~QXsldbgDoc();
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:
QGuardedPtr<KTextEditor::Document> kDoc;
QGuardedPtr<KTextEditor::View> kView;
bool locked;
};
#endif
|