Mercurial > hg > easyhg-kdiff3
comparison kdiff3/src-QT4/kdiff3_shell.h @ 75:08ea9b86c12c
KDiff3-0.9.91
author | joachim99 |
---|---|
date | Sat, 04 Nov 2006 00:05:00 +0000 |
parents | kdiff3/src/kdiff3_shell.h@5bbfe4784324 |
children | 1184fc843210 |
comparison
equal
deleted
inserted
replaced
74:069521efec1a | 75:08ea9b86c12c |
---|---|
1 /*************************************************************************** | |
2 * Copyright (C) 2003-2006 Joachim Eibl <joachim.eibl at gmx.de> * | |
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 ***************************************************************************/ | |
19 | |
20 #ifndef _KDIFF3SHELL_H_ | |
21 #define _KDIFF3SHELL_H_ | |
22 | |
23 #ifdef HAVE_CONFIG_H | |
24 #include <config.h> | |
25 #endif | |
26 | |
27 #include <kapplication.h> | |
28 #include <kparts/mainwindow.h> | |
29 | |
30 class KToggleAction; | |
31 | |
32 /** | |
33 * This is the application "Shell". It has a menubar, toolbar, and | |
34 * statusbar but relies on the "Part" to do all the real work. | |
35 * | |
36 * @short Application Shell | |
37 * @author Joachim Eibl <joachim.eibl at gmx.de> | |
38 */ | |
39 class KDiff3Shell : public KParts::MainWindow | |
40 { | |
41 Q_OBJECT | |
42 public: | |
43 /** | |
44 * Default Constructor | |
45 */ | |
46 KDiff3Shell(bool bCompleteInit=true); | |
47 | |
48 /** | |
49 * Default Destructor | |
50 */ | |
51 virtual ~KDiff3Shell(); | |
52 | |
53 bool queryClose(); | |
54 bool queryExit(); | |
55 virtual void closeEvent(QCloseEvent*e); | |
56 | |
57 private slots: | |
58 void optionsShowToolbar(); | |
59 void optionsShowStatusbar(); | |
60 void optionsConfigureKeys(); | |
61 void optionsConfigureToolbars(); | |
62 | |
63 void applyNewToolbarConfig(); | |
64 void slotNewInstance( const QString& fn1, const QString& fn2, const QString& fn3 ); | |
65 | |
66 private: | |
67 KParts::ReadWritePart *m_part; | |
68 | |
69 KToggleAction *m_toolbarAction; | |
70 KToggleAction *m_statusbarAction; | |
71 bool m_bUnderConstruction; | |
72 }; | |
73 | |
74 #endif // _KDIFF3_H_ |