~ubuntu-branches/debian/sid/kdevelop/sid

« back to all changes in this revision

Viewing changes to languages/cpp/debugger/disassemblewidget.h

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2006-05-23 18:39:42 UTC
  • Revision ID: james.westby@ubuntu.com-20060523183942-hucifbvh68k2bwz7
Tags: upstream-3.3.2
Import upstream version 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
    begin                : Sun Aug 8 1999
 
3
    copyright            : (C) 1999 by John Birch
 
4
    email                : jbb@kdevelop.org
 
5
 ***************************************************************************/
 
6
 
 
7
/***************************************************************************
 
8
 *                                                                         *
 
9
 *   This program is free software; you can redistribute it and/or modify  *
 
10
 *   it under the terms of the GNU General Public License as published by  *
 
11
 *   the Free Software Foundation; either version 2 of the License, or     *
 
12
 *   (at your option) any later version.                                   *
 
13
 *                                                                         *
 
14
 ***************************************************************************/
 
15
 
 
16
#ifndef _DISASSEMBLEWIDGET_H_
 
17
#define _DISASSEMBLEWIDGET_H_
 
18
 
 
19
#include <qtextedit.h>
 
20
 
 
21
/***************************************************************************/
 
22
/***************************************************************************/
 
23
/***************************************************************************/
 
24
 
 
25
namespace GDBDebugger
 
26
{
 
27
 
 
28
class Breakpoint;
 
29
 
 
30
class DisassembleWidget : public QTextEdit
 
31
{
 
32
    Q_OBJECT
 
33
 
 
34
public:
 
35
    DisassembleWidget( QWidget *parent=0, const char *name=0 );
 
36
    virtual ~DisassembleWidget();
 
37
 
 
38
public slots:
 
39
    void slotDisassemble(char *buf);
 
40
    void slotActivate(bool activate);
 
41
    void slotShowStepInSource(const QString &fileName, int lineNum, const QString &address);
 
42
    void slotBPState(const Breakpoint& BP);
 
43
 
 
44
signals:
 
45
    void disassemble(const QString &start, const QString &end);
 
46
 
 
47
private:
 
48
    virtual void showEvent(QShowEvent*);
 
49
    virtual void hideEvent(QHideEvent*);
 
50
 
 
51
    bool displayCurrent();
 
52
    void getNextDisplay();
 
53
 
 
54
    bool    active_;
 
55
    unsigned long    lower_;
 
56
    unsigned long    upper_;
 
57
    unsigned long    address_;
 
58
    QString currentAddress_;
 
59
};
 
60
 
 
61
}
 
62
 
 
63
/***************************************************************************/
 
64
/***************************************************************************/
 
65
/***************************************************************************/
 
66
 
 
67
#endif