joachim99@69
|
1 /***************************************************************************
|
joachim99@69
|
2 * Copyright (C) 2003-2006 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@8
|
23 #ifdef HAVE_CONFIG_H
|
joachim99@8
|
24 #include <config.h>
|
joachim99@8
|
25 #endif
|
joachim99@8
|
26
|
joachim99@8
|
27 #include <kapplication.h>
|
joachim99@8
|
28 #include <kparts/mainwindow.h>
|
joachim99@8
|
29
|
joachim99@8
|
30 class KToggleAction;
|
joachim99@8
|
31
|
joachim99@8
|
32 /**
|
joachim99@8
|
33 * This is the application "Shell". It has a menubar, toolbar, and
|
joachim99@8
|
34 * statusbar but relies on the "Part" to do all the real work.
|
joachim99@8
|
35 *
|
joachim99@8
|
36 * @short Application Shell
|
joachim99@69
|
37 * @author Joachim Eibl <joachim.eibl at gmx.de>
|
joachim99@8
|
38 */
|
joachim99@8
|
39 class KDiff3Shell : public KParts::MainWindow
|
joachim99@8
|
40 {
|
joachim99@8
|
41 Q_OBJECT
|
joachim99@8
|
42 public:
|
joachim99@8
|
43 /**
|
joachim99@8
|
44 * Default Constructor
|
joachim99@8
|
45 */
|
joachim99@69
|
46 KDiff3Shell(bool bCompleteInit=true);
|
joachim99@8
|
47
|
joachim99@8
|
48 /**
|
joachim99@8
|
49 * Default Destructor
|
joachim99@8
|
50 */
|
joachim99@8
|
51 virtual ~KDiff3Shell();
|
joachim99@8
|
52
|
joachim99@8
|
53 bool queryClose();
|
joachim99@8
|
54 bool queryExit();
|
joachim99@69
|
55 virtual void closeEvent(QCloseEvent*e);
|
joachim99@8
|
56
|
joachim99@8
|
57 private slots:
|
joachim99@8
|
58 void optionsShowToolbar();
|
joachim99@8
|
59 void optionsShowStatusbar();
|
joachim99@8
|
60 void optionsConfigureKeys();
|
joachim99@8
|
61 void optionsConfigureToolbars();
|
joachim99@8
|
62
|
joachim99@8
|
63 void applyNewToolbarConfig();
|
joachim99@69
|
64 void slotNewInstance( const QString& fn1, const QString& fn2, const QString& fn3 );
|
joachim99@8
|
65
|
joachim99@8
|
66 private:
|
joachim99@8
|
67 KParts::ReadWritePart *m_part;
|
joachim99@8
|
68
|
joachim99@8
|
69 KToggleAction *m_toolbarAction;
|
joachim99@8
|
70 KToggleAction *m_statusbarAction;
|
joachim99@8
|
71 bool m_bUnderConstruction;
|
joachim99@8
|
72 };
|
joachim99@8
|
73
|
joachim99@8
|
74 #endif // _KDIFF3_H_
|