mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
SQL and JSON text editor classes have been refactored. A new parent class for both editors have been added for the common logic implementable without depending on the specific lexer. The only visible effect of this change should be that the JSON editor (issue #1173) now has the same find/replace dialog as the SQL editor. This prepares for the implementation of the XML editor (issue #1253).
43 lines
791 B
C++
43 lines
791 B
C++
#ifndef FindReplaceDialog_H
|
|
#define FindReplaceDialog_H
|
|
|
|
#include <ExtendedScintilla.h>
|
|
|
|
#include <QDialog>
|
|
#include <QAbstractButton>
|
|
|
|
namespace Ui {
|
|
class FindReplaceDialog;
|
|
}
|
|
|
|
class FindReplaceDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit FindReplaceDialog(QWidget* parent = nullptr);
|
|
~FindReplaceDialog();
|
|
void setExtendedScintilla(ExtendedScintilla* scintilla);
|
|
void show();
|
|
|
|
private slots:
|
|
bool findNext();
|
|
void replace();
|
|
void findAll();
|
|
void replaceAll();
|
|
void help();
|
|
void close();
|
|
void reject();
|
|
void buttonBox_clicked(QAbstractButton* button);
|
|
|
|
private:
|
|
void indicateSelection();
|
|
void clearIndicators();
|
|
Ui::FindReplaceDialog* ui;
|
|
ExtendedScintilla* m_scintilla;
|
|
int foundIndicatorNumber;
|
|
};
|
|
|
|
#endif
|