annotate kdiff3/src-QT4/smalldialogs.h @ 75:08ea9b86c12c

KDiff3-0.9.91
author joachim99
date Sat, 04 Nov 2006 00:05:00 +0000
parents kdiff3/src/smalldialogs.h@5bbfe4784324
children fcd146072e0c
rev   line source
joachim99@69 1 /***************************************************************************
joachim99@69 2 * Copyright (C) 2005 by Joachim Eibl *
joachim99@69 3 * joachim.eibl at gmx.de *
joachim99@69 4 * *
joachim99@69 5 * This program is free software; you can redistribute it and/or modify *
joachim99@69 6 * it under the terms of the GNU General Public License as published by *
joachim99@69 7 * the Free Software Foundation; either version 2 of the License, or *
joachim99@69 8 * (at your option) any later version. *
joachim99@69 9 * *
joachim99@69 10 * This program is distributed in the hope that it will be useful, *
joachim99@69 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
joachim99@69 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
joachim99@69 13 * GNU General Public License for more details. *
joachim99@69 14 * *
joachim99@69 15 * You should have received a copy of the GNU General Public License *
joachim99@69 16 * along with this program; if not, write to the *
joachim99@69 17 * Free Software Foundation, Inc., *
joachim99@69 18 * 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. *
joachim99@69 19 ***************************************************************************/
joachim99@69 20
joachim99@69 21 #ifndef SMALLDIALOGS_H
joachim99@69 22 #define SMALLDIALOGS_H
joachim99@69 23
joachim99@75 24 #include <QDialog>
joachim99@69 25
joachim99@69 26 class OptionDialog;
joachim99@69 27 class QComboBox;
joachim99@69 28 class QCheckBox;
joachim99@69 29 class QLineEdit;
joachim99@69 30 class QLabel;
joachim99@69 31
joachim99@69 32 class OpenDialog : public QDialog
joachim99@69 33 {
joachim99@69 34 Q_OBJECT
joachim99@69 35 public:
joachim99@69 36 OpenDialog(
joachim99@69 37 QWidget* pParent, const QString& n1, const QString& n2, const QString& n3,
joachim99@69 38 bool bMerge, const QString& outputName, const char* slotConfigure, OptionDialog* pOptions );
joachim99@69 39
joachim99@69 40 QComboBox* m_pLineA;
joachim99@69 41 QComboBox* m_pLineB;
joachim99@69 42 QComboBox* m_pLineC;
joachim99@69 43 QComboBox* m_pLineOut;
joachim99@69 44
joachim99@69 45 QCheckBox* m_pMerge;
joachim99@69 46 virtual void accept();
joachim99@69 47 virtual bool eventFilter(QObject* o, QEvent* e);
joachim99@69 48 private:
joachim99@69 49 OptionDialog* m_pOptions;
joachim99@69 50 void selectURL( QComboBox* pLine, bool bDir, int i, bool bSave );
joachim99@69 51 bool m_bInputFileNameChanged;
joachim99@69 52 private slots:
joachim99@69 53 void selectFileA();
joachim99@69 54 void selectFileB();
joachim99@69 55 void selectFileC();
joachim99@69 56 void selectDirA();
joachim99@69 57 void selectDirB();
joachim99@69 58 void selectDirC();
joachim99@69 59 void selectOutputName();
joachim99@69 60 void selectOutputDir();
joachim99@69 61 void internalSlot(int);
joachim99@69 62 void inputFilenameChanged();
joachim99@75 63 void slotSwapCopyNames(QAction*);
joachim99@69 64 signals:
joachim99@69 65 void internalSignal(bool);
joachim99@69 66 };
joachim99@69 67
joachim99@69 68 class FindDialog : public QDialog
joachim99@69 69 {
joachim99@69 70 Q_OBJECT
joachim99@69 71 public:
joachim99@69 72 FindDialog(QWidget* pParent);
joachim99@69 73
joachim99@69 74 signals:
joachim99@69 75 void findNext();
joachim99@69 76
joachim99@69 77 public:
joachim99@69 78 QLineEdit* m_pSearchString;
joachim99@69 79 QCheckBox* m_pSearchInA;
joachim99@69 80 QCheckBox* m_pSearchInB;
joachim99@69 81 QCheckBox* m_pSearchInC;
joachim99@69 82 QCheckBox* m_pSearchInOutput;
joachim99@69 83 QCheckBox* m_pCaseSensitive;
joachim99@69 84
joachim99@69 85 int currentLine;
joachim99@69 86 int currentPos;
joachim99@69 87 int currentWindow;
joachim99@69 88 };
joachim99@69 89
joachim99@69 90
joachim99@69 91 class RegExpTester : public QDialog
joachim99@69 92 {
joachim99@69 93 Q_OBJECT
joachim99@69 94 private:
joachim99@69 95 QLineEdit* m_pAutoMergeRegExpEdit;
joachim99@69 96 QLineEdit* m_pAutoMergeMatchResult;
joachim99@69 97 QLineEdit* m_pAutoMergeExampleEdit;
joachim99@69 98 QLineEdit* m_pHistoryStartRegExpEdit;
joachim99@69 99 QLineEdit* m_pHistoryStartMatchResult;
joachim99@69 100 QLineEdit* m_pHistoryStartExampleEdit;
joachim99@69 101 QLineEdit* m_pHistoryEntryStartRegExpEdit;
joachim99@69 102 QLineEdit* m_pHistorySortKeyOrderEdit;
joachim99@69 103 QLineEdit* m_pHistoryEntryStartExampleEdit;
joachim99@69 104 QLineEdit* m_pHistoryEntryStartMatchResult;
joachim99@69 105 QLineEdit* m_pHistorySortKeyResult;
joachim99@69 106 OptionDialog* m_pOptionDialog;
joachim99@69 107 public:
joachim99@69 108 RegExpTester( QWidget* pParent, const QString& autoMergeRegExpToolTip, const QString& historyStartRegExpToolTip,
joachim99@69 109 const QString& historyEntryStartRegExpToolTip, const QString& historySortKeyOrderToolTip );
joachim99@69 110 void init( const QString& autoMergeRegExp, const QString& historyStartRegExp, const QString& historyEntryStartRegExp, const QString sortKeyOrder );
joachim99@69 111 QString autoMergeRegExp();
joachim99@69 112 QString historyStartRegExp();
joachim99@69 113 QString historyEntryStartRegExp();
joachim99@69 114 QString historySortKeyOrder();
joachim99@69 115 public slots:
joachim99@69 116 void slotRecalc();
joachim99@69 117 };
joachim99@69 118
joachim99@69 119 #endif