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