summaryrefslogtreecommitdiffstats
path: root/kxsldbg/kxsldbgpart/qxsldbgdoc.h
blob: abc04448b3c0b574cfaee55dbf9c0fecd1d8ce1f (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 <tqptrlist.h>
#include <tqstring.h>
#include <tqguardedptr.h>
#include <ktexteditor/document.h>
#include <ktexteditor/view.h>

class QXsldbgDoc : public TQObject {

Q_OBJECT

 public:
  QXsldbgDoc(TQWidget *parent=0, KURL url=TQString::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:
  TQGuardedPtr<KTextEditor::Document> kDoc;
  TQGuardedPtr<KTextEditor::View> kView;
  bool locked;
};

#endif