-
Notifications
You must be signed in to change notification settings - Fork 0
/
macro.h
34 lines (29 loc) · 959 Bytes
/
macro.h
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
#ifndef MACRO_H
#define MACRO_H
#include <QDialog>
#include <QString>
#include <QStringList>
#include <sstream>
namespace Ui {
class Macro;
}
class Macro : public QDialog
{
Q_OBJECT
public:
explicit Macro(QWidget *parent = 0);
std::stringstream& getMacroText(); //get full macro as stringstream
void appendReport(std::stringstream& report); //append report from parsing macro to proper window
~Macro();
signals:
void parse(); //signal fired when Ok is clicked
public slots:
void macrosInfo(); //info about macro language
private slots:
void openMacro(); //open macro from file
void saveMacro(); //save macro to file
private:
std::stringstream macro; //full macro as stringstream
Ui::Macro *ui;
};
#endif // MACRO_H