Execute SQL tab: Add search bar for SQL code #191

The find operations in QScintilla are used for implementing a find frame
in the SQL Editor of the main window. A checkable tool button is added
in the SQL Editor toolbar for showing and hiding this frame.

There are check boxes for Whole Words, Case Sensitive and Regular
Expressions. The QScintilla facilities in the findFirst method are used
for the implementation.
This commit is contained in:
mgr
2017-11-09 00:05:03 +01:00
committed by Martin Kleusberg
parent ed9fda28ea
commit 5b6cdf231e
6 changed files with 244 additions and 6 deletions
+8 -1
View File
@@ -29,15 +29,22 @@ public:
SqliteTableModel* getModel() { return model; }
SqlTextEdit* getEditor();
ExtendedTableWidget *getTableResult();
public slots:
virtual void finishExecution(const QString& result);
virtual void saveAsCsv();
virtual void saveAsView();
virtual void reloadSettings();
void fetchedData();
void setFindFrameVisibility(bool show);
private slots:
void findPrevious();
void findNext();
void findLineEdit_textChanged(const QString& text);
private:
void find(QString expr, bool forward);
DBBrowserDB& db;
SqliteTableModel* model;
QString sqlFileName;