62 #if defined (HAVE_CONFIG_H) 66 #if defined (HAVE_QSCINTILLA) 70 #include <QDialogButtonBox> 71 #include <QGridLayout> 75 #include <QMessageBox> 76 #include <QPushButton> 77 #include <QVBoxLayout> 87 setWindowTitle (tr (
"Find and Replace"));
88 setWindowIcon (QIcon (
":/actions/icons/find.png"));
123 #if defined (HAVE_QSCI_FINDSELECTION) 145 this, SLOT (close ()));
149 #if defined (HAVE_QSCI_FINDSELECTION) 150 connect (
_edit_area, SIGNAL (copyAvailable (
bool)),
156 QVBoxLayout *extension_layout =
new QVBoxLayout ();
157 extension_layout->setMargin (0);
163 QGridLayout *top_left_layout =
new QGridLayout;
169 QVBoxLayout *left_layout =
new QVBoxLayout;
170 left_layout->addLayout (top_left_layout);
171 left_layout->insertStretch (1, 5);
177 QGridLayout *main_layout =
new QGridLayout;
178 main_layout->setSizeConstraint (QLayout::SetFixedSize);
179 main_layout->addLayout (left_layout, 0, 0);
182 setLayout (main_layout);
191 addActions (find_actions);
194 int xp =
p->x () +20;
195 int yp =
p->y () +
p->frameGeometry ().height () - sizeHint ().height () -20;
220 #if defined (HAVE_QSCI_FINDSELECTION) 230 #if defined (HAVE_QSCI_FINDSELECTION) 250 int lbeg, lend, cbeg, cend;
251 _edit_area->getSelection (&lbeg,&cbeg,&lend,&cend);
280 bool do_forward = forward;
313 else if (! do_forward)
334 #if defined (HAVE_QSCI_FINDSELECTION) 346 #if defined (HAVE_QSCI_VERSION_2_6_0) 363 #if defined (HAVE_QSCI_VERSION_2_6_0) 419 QMessageBox msg_box (QMessageBox::Information, tr (
"Replace Result"),
421 QMessageBox::Ok,
this);
434 QMessageBox msg_box (QMessageBox::Information, tr (
"Find Result"),
435 tr (
"No more matches found"), QMessageBox::Ok,
this);
QCheckBox * _case_check_box
void no_matches_message(void)
QCheckBox * _backward_check_box
QPushButton * _find_prev_button
void init_search_text(void)
void handle_search_text_changed(QString new_search_text)
bool _find_result_available
QLineEdit * _replace_line_edit
find_dialog(QsciScintilla *edit_area, QList< QAction *> find_actions, QWidget *parent=nullptr)
QLineEdit * _search_line_edit
QCheckBox * _regex_check_box
QPushButton * _replace_button
void find(bool forward=true)
void handle_backward_search_changed(int)
QsciScintilla * _edit_area
void handle_selection_changed(bool has_selected)
QDialogButtonBox * _button_box
QCheckBox * _from_start_check_box
void handle_sel_search_changed(int)
QPushButton * _find_next_button
QCheckBox * _search_selection_check_box
QPushButton * _more_button
QCheckBox * _wrap_check_box
QPushButton * _replace_all_button
QCheckBox * _whole_words_check_box