1 /*************************************************************************** 2 * Copyright (C) 2004-2021 by Pere Constans 3 * constans@molspaces.com 4 * cb2Bib version 2.0.1. Licensed under the GNU GPL version 3. 5 * See the LICENSE file that comes with this distribution. 6 ***************************************************************************/ 7 #ifndef C2BSAVEREGEXP_H 8 #define C2BSAVEREGEXP_H 9 10 #include "ui_c2bSaveRegExp.h" 11 12 #include <QDialog> 13 14 15 class c2bSaveREHighlighter; 16 17 class c2bSaveRegExp : public QDialog 18 { 19 20 Q_OBJECT 21 22 public: 23 c2bSaveRegExp(const QStringList& pattern, const QString& input, QWidget* parentw = 0); 24 ~c2bSaveRegExp(); 25 26 27 signals: 28 void savePatternInfo(const QString& rx, const QString& rxname); 29 30 31 public slots: 32 void accept(); 33 void help(); 34 void updateInput(const QString& text); 35 36 37 private: 38 QRegExp _pattern_rx; 39 QString _input_text; 40 Ui::c2bSaveRegExp ui; 41 c2bSaveREHighlighter* _sreS; 42 43 44 private slots: 45 void inputMightHaveChanged(); 46 void setInformation(); 47 }; 48 49 #endif