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