annotate kdiff3/src-QT4/smalldialogs.h @ 113:7bca1f1340f6 tip

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