[go: up one dir, main page]

Menu

[d56ae5]: / sourceframe.h  Maximize  Restore  History

Download this file

120 lines (107 with data), 2.6 kB

  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
112
113
114
115
116
117
118
119
#ifndef SOURCEFRAME_H
#define SOURCEFRAME_H
#include <QtGui>
#include <QLabel>
#include <QTabBar>
#include "sourcewindow.h"
#include "types.h"
class CommandLine;
class TabWidget;
class SourceFrame: public QFrame
{
Q_OBJECT
public:
SourceFrame(QWidget *parent = 0);
void setFontHeightAndWidth(int height, int width);
void setLineNumbers(int nLines);
bool fileChanged();
void saveBeforeQuit();
void open(QString name, int index = -1);
void openInNewTab(QString name);
void closeTabs();
void saveIfChanged(QString file);
void setNextLine(QString &file, int &line);
void clearNextLine(QString file, int line);
QString buildDebugAsm(QString file);
int fontHeight;
int fontWidth;
bool filesSaved();
QLabel *cursorPosition;
void close(QString);
bool inAssembly;
bool definesStart;
QTabBar *tabBar;
public slots:
void tabContextMenu(const QPoint & pos );
void nextInstruction(QString file, int line);
void setCommandLineVisible(bool);
void changedTab(int index);
void open(bool);
void reopen();
void save();
void saveAs();
void close();
void run();
void next();
void step();
void Continue();
void stop();
void cut();
void copy();
void paste();
void undo();
void redo();
void selectAll();
void selectNone();
void comment();
void unComment();
void indent();
void unIndent();
void find();
void pageForward();
void pageBackward();
void center();
void gotoFirstLine();
void gotoLastLine();
void gotoTop();
void gotoBottom();
void gotoLine();
void prettify();
void newFile();
void templateC();
void templateCpp();
void templateAssembly();
void templateFortran();
void templateHal();
void updateCursorPosition();
void doTemplate(QAction*);
void insertFile(QString f);
void error(QString s);
signals:
void doRun(QString exe, QString options, QStringList files,
QList<StringSet> breakpoints, QStringList globals);
void doNext();
void doNextInstruction();
void doStepInstruction();
void doCall();
void doStep();
void doContinue();
void doStop();
private:
TabWidget *tab;
SourceWindow *source;
QPushButton *quitButton;
QPushButton *runButton;
QPushButton *nextButton;
QPushButton *stepButton;
QPushButton *continueButton;
QPushButton *stopButton;
CommandLine *commandLine;
};
class TabWidget: public QTabWidget
{
public:
QTabBar *bar();
TabWidget();
};
#endif