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