-
-
Notifications
You must be signed in to change notification settings - Fork 421
Expand file tree
/
Copy pathcode_generator_widget.h
More file actions
33 lines (27 loc) · 887 Bytes
/
code_generator_widget.h
File metadata and controls
33 lines (27 loc) · 887 Bytes
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
#ifndef CODE_GENERATOR_WIDGET_H
#define CODE_GENERATOR_WIDGET_H
#include <string>
#include "ui_code_generator_widget.h"
#include "syntaxhighlighter.h"
#include "databasemodel.h"
#include "operationlist.h"
#include "base_code_generator.h"
#include "base_logger.h"
class CodeGeneratorWidget: public QDialog, public Ui::CodeGeneratorWidget, public BaseLogger {
private:
Q_OBJECT
SyntaxHighlighter *code_hl;
DatabaseModel *model;
OperationList *op_list;
BaseCodeGenerator *generator;
public:
CodeGeneratorWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
void setGenerator(BaseCodeGenerator *generator);
void log(std::string text);
public slots:
void show(DatabaseModel *model, OperationList *op_list);
private slots:
void doClearCode(void);
void doGenerateCode(void);
};
#endif