annotate kdiff3/src/smalldialogs.h @ 69:8febbfb1148c

KDiff3 0.9.89
author joachim99
date Mon, 10 Apr 2006 08:40:51 +0000
parents
children 5bbfe4784324
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@69 24 #include <qdialog.h>
joachim99@69 25 #include "diff.h"
joachim99@69 26
joachim99@69 27 class OptionDialog;
joachim99@69 28 class QComboBox;
joachim99@69 29 class QCheckBox;
joachim99@69 30 class QLineEdit;
joachim99@69 31 class QLabel;
joachim99@69 32
joachim99@69 33 class OpenDialog : public QDialog
joachim99@69 34 {
joachim99@69 35 Q_OBJECT
joachim99@69 36 public:
joachim99@69 37 OpenDialog(
joachim99@69 38 QWidget* pParent, const QString& n1, const QString& n2, const QString& n3,
joachim99@69 39 bool bMerge, const QString& outputName, const char* slotConfigure, OptionDialog* pOptions );
joachim99@69 40
joachim99@69 41 QComboBox* m_pLineA;
joachim99@69 42 QComboBox* m_pLineB;
joachim99@69 43 QComboBox* m_pLineC;
joachim99@69 44 QComboBox* m_pLineOut;
joachim99@69 45
joachim99@69 46 QCheckBox* m_pMerge;
joachim99@69 47 virtual void accept();
joachim99@69 48 virtual bool eventFilter(QObject* o, QEvent* e);
joachim99@69 49 private:
joachim99@69 50 OptionDialog* m_pOptions;
joachim99@69 51 void selectURL( QComboBox* pLine, bool bDir, int i, bool bSave );
joachim99@69 52 bool m_bInputFileNameChanged;
joachim99@69 53 private slots:
joachim99@69 54 void selectFileA();
joachim99@69 55 void selectFileB();
joachim99@69 56 void selectFileC();
joachim99@69 57 void selectDirA();
joachim99@69 58 void selectDirB();
joachim99@69 59 void selectDirC();
joachim99@69 60 void selectOutputName();
joachim99@69 61 void selectOutputDir();
joachim99@69 62 void internalSlot(int);
joachim99@69 63 void inputFilenameChanged();
joachim99@69 64 void slotSwapCopyNames(int);
joachim99@69 65 signals:
joachim99@69 66 void internalSignal(bool);
joachim99@69 67 };
joachim99@69 68
joachim99@69 69 class FindDialog : public QDialog
joachim99@69 70 {
joachim99@69 71 Q_OBJECT
joachim99@69 72 public:
joachim99@69 73 FindDialog(QWidget* pParent);
joachim99@69 74
joachim99@69 75 signals:
joachim99@69 76 void findNext();
joachim99@69 77
joachim99@69 78 public:
joachim99@69 79 QLineEdit* m_pSearchString;
joachim99@69 80 QCheckBox* m_pSearchInA;
joachim99@69 81 QCheckBox* m_pSearchInB;
joachim99@69 82 QCheckBox* m_pSearchInC;
joachim99@69 83 QCheckBox* m_pSearchInOutput;
joachim99@69 84 QCheckBox* m_pCaseSensitive;
joachim99@69 85
joachim99@69 86 int currentLine;
joachim99@69 87 int currentPos;
joachim99@69 88 int currentWindow;
joachim99@69 89 };
joachim99@69 90
joachim99@69 91
joachim99@69 92 class RegExpTester : public QDialog
joachim99@69 93 {
joachim99@69 94 Q_OBJECT
joachim99@69 95 private:
joachim99@69 96 QLineEdit* m_pAutoMergeRegExpEdit;
joachim99@69 97 QLineEdit* m_pAutoMergeMatchResult;
joachim99@69 98 QLineEdit* m_pAutoMergeExampleEdit;
joachim99@69 99 QLineEdit* m_pHistoryStartRegExpEdit;
joachim99@69 100 QLineEdit* m_pHistoryStartMatchResult;
joachim99@69 101 QLineEdit* m_pHistoryStartExampleEdit;
joachim99@69 102 QLineEdit* m_pHistoryEntryStartRegExpEdit;
joachim99@69 103 QLineEdit* m_pHistorySortKeyOrderEdit;
joachim99@69 104 QLineEdit* m_pHistoryEntryStartExampleEdit;
joachim99@69 105 QLineEdit* m_pHistoryEntryStartMatchResult;
joachim99@69 106 QLineEdit* m_pHistorySortKeyResult;
joachim99@69 107 OptionDialog* m_pOptionDialog;
joachim99@69 108 public:
joachim99@69 109 RegExpTester( QWidget* pParent, const QString& autoMergeRegExpToolTip, const QString& historyStartRegExpToolTip,
joachim99@69 110 const QString& historyEntryStartRegExpToolTip, const QString& historySortKeyOrderToolTip );
joachim99@69 111 void init( const QString& autoMergeRegExp, const QString& historyStartRegExp, const QString& historyEntryStartRegExp, const QString sortKeyOrder );
joachim99@69 112 QString autoMergeRegExp();
joachim99@69 113 QString historyStartRegExp();
joachim99@69 114 QString historyEntryStartRegExp();
joachim99@69 115 QString historySortKeyOrder();
joachim99@69 116 public slots:
joachim99@69 117 void slotRecalc();
joachim99@69 118 };
joachim99@69 119
joachim99@69 120 #endif