Mercurial > hg > easyhg-kdiff3
comparison kdiff3/src/kdiff3_shell.h @ 69:8febbfb1148c
KDiff3 0.9.89
author | joachim99 |
---|---|
date | Mon, 10 Apr 2006 08:40:51 +0000 |
parents | 86d21651c8db |
children | 5bbfe4784324 |
comparison
equal
deleted
inserted
replaced
68:d7cafcda8c99 | 69:8febbfb1148c |
---|---|
1 /* | 1 /*************************************************************************** |
2 * Copyright (C) 2003 Joachim Eibl <joachim.eibl@gmx.de> | 2 * Copyright (C) 2003-2006 Joachim Eibl <joachim.eibl at gmx.de> * |
3 */ | 3 * * |
4 * This program is free software; you can redistribute it and/or modify * | |
5 * it under the terms of the GNU General Public License as published by * | |
6 * the Free Software Foundation; either version 2 of the License, or * | |
7 * (at your option) any later version. * | |
8 * * | |
9 * This program is distributed in the hope that it will be useful, * | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of * | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | |
12 * GNU General Public License for more details. * | |
13 * * | |
14 * You should have received a copy of the GNU General Public License * | |
15 * along with this program; if not, write to the * | |
16 * Free Software Foundation, Inc., * | |
17 * 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. * | |
18 ***************************************************************************/ | |
4 | 19 |
5 #ifndef _KDIFF3SHELL_H_ | 20 #ifndef _KDIFF3SHELL_H_ |
6 #define _KDIFF3SHELL_H_ | 21 #define _KDIFF3SHELL_H_ |
7 | 22 |
8 #ifdef HAVE_CONFIG_H | 23 #ifdef HAVE_CONFIG_H |
17 /** | 32 /** |
18 * This is the application "Shell". It has a menubar, toolbar, and | 33 * This is the application "Shell". It has a menubar, toolbar, and |
19 * statusbar but relies on the "Part" to do all the real work. | 34 * statusbar but relies on the "Part" to do all the real work. |
20 * | 35 * |
21 * @short Application Shell | 36 * @short Application Shell |
22 * @author Joachim Eibl <joachim.eibl@gmx.de> | 37 * @author Joachim Eibl <joachim.eibl at gmx.de> |
23 */ | 38 */ |
24 class KDiff3Shell : public KParts::MainWindow | 39 class KDiff3Shell : public KParts::MainWindow |
25 { | 40 { |
26 Q_OBJECT | 41 Q_OBJECT |
27 public: | 42 public: |
28 /** | 43 /** |
29 * Default Constructor | 44 * Default Constructor |
30 */ | 45 */ |
31 KDiff3Shell(); | 46 KDiff3Shell(bool bCompleteInit=true); |
32 | 47 |
33 /** | 48 /** |
34 * Default Destructor | 49 * Default Destructor |
35 */ | 50 */ |
36 virtual ~KDiff3Shell(); | 51 virtual ~KDiff3Shell(); |
37 | 52 |
38 bool queryClose(); | 53 bool queryClose(); |
39 bool queryExit(); | 54 bool queryExit(); |
55 virtual void closeEvent(QCloseEvent*e); | |
40 | 56 |
41 private slots: | 57 private slots: |
42 void optionsShowToolbar(); | 58 void optionsShowToolbar(); |
43 void optionsShowStatusbar(); | 59 void optionsShowStatusbar(); |
44 void optionsConfigureKeys(); | 60 void optionsConfigureKeys(); |
45 void optionsConfigureToolbars(); | 61 void optionsConfigureToolbars(); |
46 | 62 |
47 void applyNewToolbarConfig(); | 63 void applyNewToolbarConfig(); |
64 void slotNewInstance( const QString& fn1, const QString& fn2, const QString& fn3 ); | |
48 | 65 |
49 private: | 66 private: |
50 KParts::ReadWritePart *m_part; | 67 KParts::ReadWritePart *m_part; |
51 | 68 |
52 KToggleAction *m_toolbarAction; | 69 KToggleAction *m_toolbarAction; |