joachim99@69: /*************************************************************************** joachim99@69: * Copyright (C) 2005 by Joachim Eibl * joachim99@69: * joachim.eibl at gmx.de * joachim99@69: * * joachim99@69: * This program is free software; you can redistribute it and/or modify * joachim99@69: * it under the terms of the GNU General Public License as published by * joachim99@69: * the Free Software Foundation; either version 2 of the License, or * joachim99@69: * (at your option) any later version. * joachim99@69: * * joachim99@69: * This program is distributed in the hope that it will be useful, * joachim99@69: * but WITHOUT ANY WARRANTY; without even the implied warranty of * joachim99@69: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * joachim99@69: * GNU General Public License for more details. * joachim99@69: * * joachim99@69: * You should have received a copy of the GNU General Public License * joachim99@69: * along with this program; if not, write to the * joachim99@69: * Free Software Foundation, Inc., * joachim99@69: * 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. * joachim99@69: ***************************************************************************/ joachim99@69: joachim99@69: #ifndef SMALLDIALOGS_H joachim99@69: #define SMALLDIALOGS_H joachim99@69: joachim99@75: #include joachim99@69: joachim99@69: class OptionDialog; joachim99@69: class QComboBox; joachim99@69: class QCheckBox; joachim99@69: class QLineEdit; joachim99@69: joachim99@69: class OpenDialog : public QDialog joachim99@69: { joachim99@69: Q_OBJECT joachim99@69: public: joachim99@69: OpenDialog( joachim99@69: QWidget* pParent, const QString& n1, const QString& n2, const QString& n3, joachim99@69: bool bMerge, const QString& outputName, const char* slotConfigure, OptionDialog* pOptions ); joachim99@69: joachim99@69: QComboBox* m_pLineA; joachim99@69: QComboBox* m_pLineB; joachim99@69: QComboBox* m_pLineC; joachim99@69: QComboBox* m_pLineOut; joachim99@69: joachim99@69: QCheckBox* m_pMerge; joachim99@69: virtual void accept(); joachim99@69: virtual bool eventFilter(QObject* o, QEvent* e); joachim99@69: private: joachim99@69: OptionDialog* m_pOptions; joachim99@69: void selectURL( QComboBox* pLine, bool bDir, int i, bool bSave ); joachim99@69: bool m_bInputFileNameChanged; joachim99@69: private slots: joachim99@69: void selectFileA(); joachim99@69: void selectFileB(); joachim99@69: void selectFileC(); joachim99@69: void selectDirA(); joachim99@69: void selectDirB(); joachim99@69: void selectDirC(); joachim99@69: void selectOutputName(); joachim99@69: void selectOutputDir(); joachim99@69: void internalSlot(int); joachim99@69: void inputFilenameChanged(); joachim99@75: void slotSwapCopyNames(QAction*); joachim99@69: signals: joachim99@69: void internalSignal(bool); joachim99@69: }; joachim99@69: joachim99@69: class FindDialog : public QDialog joachim99@69: { joachim99@69: Q_OBJECT joachim99@69: public: joachim99@69: FindDialog(QWidget* pParent); joachim99@69: joachim99@69: signals: joachim99@69: void findNext(); joachim99@69: joachim99@69: public: joachim99@69: QLineEdit* m_pSearchString; joachim99@69: QCheckBox* m_pSearchInA; joachim99@69: QCheckBox* m_pSearchInB; joachim99@69: QCheckBox* m_pSearchInC; joachim99@69: QCheckBox* m_pSearchInOutput; joachim99@69: QCheckBox* m_pCaseSensitive; joachim99@69: joachim99@69: int currentLine; joachim99@69: int currentPos; joachim99@69: int currentWindow; joachim99@69: }; joachim99@69: joachim99@69: joachim99@69: class RegExpTester : public QDialog joachim99@69: { joachim99@69: Q_OBJECT joachim99@69: private: joachim99@69: QLineEdit* m_pAutoMergeRegExpEdit; joachim99@69: QLineEdit* m_pAutoMergeMatchResult; joachim99@69: QLineEdit* m_pAutoMergeExampleEdit; joachim99@69: QLineEdit* m_pHistoryStartRegExpEdit; joachim99@69: QLineEdit* m_pHistoryStartMatchResult; joachim99@69: QLineEdit* m_pHistoryStartExampleEdit; joachim99@69: QLineEdit* m_pHistoryEntryStartRegExpEdit; joachim99@69: QLineEdit* m_pHistorySortKeyOrderEdit; joachim99@69: QLineEdit* m_pHistoryEntryStartExampleEdit; joachim99@69: QLineEdit* m_pHistoryEntryStartMatchResult; joachim99@69: QLineEdit* m_pHistorySortKeyResult; joachim99@69: OptionDialog* m_pOptionDialog; joachim99@69: public: joachim99@69: RegExpTester( QWidget* pParent, const QString& autoMergeRegExpToolTip, const QString& historyStartRegExpToolTip, joachim99@69: const QString& historyEntryStartRegExpToolTip, const QString& historySortKeyOrderToolTip ); joachim99@69: void init( const QString& autoMergeRegExp, const QString& historyStartRegExp, const QString& historyEntryStartRegExp, const QString sortKeyOrder ); joachim99@69: QString autoMergeRegExp(); joachim99@69: QString historyStartRegExp(); joachim99@69: QString historyEntryStartRegExp(); joachim99@69: QString historySortKeyOrder(); joachim99@69: public slots: joachim99@69: void slotRecalc(); joachim99@69: }; joachim99@69: joachim99@69: #endif