Repository navigation
Expand file tree
/
Copy pathSqlExecutionArea.h
More file actions
59 lines (46 loc) · 1.42 KB
/
Copy pathSqlExecutionArea.h
File metadata and controls
59 lines (46 loc) · 1.42 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
#ifndef SQLEXECUTIONAREA_H
#define SQLEXECUTIONAREA_H
#include <QWidget>
class SqlTextEdit;
class SqliteTableModel;
class DBBrowserDB;
class ExtendedTableWidget;
namespace Ui {
class SqlExecutionArea;
}
class SqlExecutionArea : public QWidget
{
Q_OBJECT
public:
explicit SqlExecutionArea(DBBrowserDB& _db, QWidget* parent = nullptr);
~SqlExecutionArea();
QString getSql() const;
QString getSelectedSql() const;
QString fileName() const { return sqlFileName; }
void setFileName(const QString& filename) { sqlFileName = filename; }
SqliteTableModel* getModel() { return model; }
SqlTextEdit* getEditor();
ExtendedTableWidget *getTableResult();
public slots:
virtual void finishExecution(const QString& result, const bool ok);
virtual void saveAsCsv();
virtual void reloadSettings();
void fetchedData();
void setFindFrameVisibility(bool show);
private slots:
void findPrevious();
void findNext();
void findLineEdit_textChanged(const QString& text);
void hideFindFrame();
signals:
void findFrameVisibilityChanged(bool visible);
private:
void find(QString expr, bool forward);
DBBrowserDB& db;
SqliteTableModel* model;
QString sqlFileName;
Ui::SqlExecutionArea* ui;
bool m_columnsResized; // This is set to true if the columns of the table view were already adjusted to fit their contents
bool showErrorIndicators;
};
#endif