File indexing completed on 2024-05-12 05:40:38
0001 /* 0002 Cahoots is a crossplatform real-time collaborative text editor. 0003 0004 Copyright (C) 2010 Chris Dimpfl, Anandi Hira, David Vega 0005 0006 This program is free software: you can redistribute it and/or modify 0007 it under the terms of the GNU General Public License as published by 0008 the Free Software Foundation, either version 3 of the License, or 0009 (at your option) any later version. 0010 0011 This program is distributed in the hope that it will be useful, 0012 but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 GNU General Public License for more details. 0015 0016 You should have received a copy of the GNU General Public License 0017 along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 #ifndef FINDDIALOG_H 0020 #define FINDDIALOG_H 0021 0022 #include <QDialog> 0023 0024 #include "enu.h" 0025 #include "rwidgets_global.h" 0026 #include "utilities.h" 0027 // clazy:skip 0028 namespace Ui 0029 { 0030 class FindDialog; 0031 } 0032 0033 class RWIDGET_EXPORT FindDialog : public QDialog 0034 { 0035 Q_OBJECT 0036 public: 0037 FindDialog(QWidget* parent= nullptr); 0038 ~FindDialog(); 0039 0040 protected: 0041 void changeEvent(QEvent* e); 0042 0043 private: 0044 Ui::FindDialog* ui; 0045 0046 private slots: 0047 void on_findNextPushButton_clicked(); 0048 void on_findPreviousPushButton_clicked(); 0049 void on_replaceAllPushButton_clicked(); 0050 void on_replacePushButton_clicked(); 0051 void on_findReplacePushButton_clicked(); 0052 0053 signals: 0054 void findDialogFindNext(QString str, Qt::CaseSensitivity sensitivity, bool wrapAround, Enu::FindMode findMode); 0055 void findDialogFindPrev(QString str, Qt::CaseSensitivity sensitivity, bool wrapAround, Enu::FindMode findMode); 0056 void findDialogReplaceAll(QString find, QString replace, Qt::CaseSensitivity sensitivity, Enu::FindMode findMode); 0057 void findDialogReplace(QString replace); 0058 void findDiaalogFindReplace(QString find, QString replace, Qt::CaseSensitivity sensitivity, bool wrapAround, 0059 Enu::FindMode findMode); 0060 }; 0061 0062 #endif // FINDDIALOG_H