joachim99@69: /*************************************************************************** joachim99@77: * Copyright (C) 2003-2007 Joachim Eibl * joachim99@69: * * joachim99@69: * This program is free software; you can redistribute it and/or modify * joachim99@69: * it under the terms of the GNU General Public License as published by * joachim99@69: * the Free Software Foundation; either version 2 of the License, or * joachim99@69: * (at your option) any later version. * joachim99@69: * * joachim99@69: * This program is distributed in the hope that it will be useful, * joachim99@69: * but WITHOUT ANY WARRANTY; without even the implied warranty of * joachim99@69: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * joachim99@69: * GNU General Public License for more details. * joachim99@69: * * joachim99@69: * You should have received a copy of the GNU General Public License * joachim99@69: * along with this program; if not, write to the * joachim99@69: * Free Software Foundation, Inc., * joachim99@69: * 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. * joachim99@69: ***************************************************************************/ joachim99@8: joachim99@8: #ifndef _KDIFF3SHELL_H_ joachim99@8: #define _KDIFF3SHELL_H_ joachim99@8: joachim99@80: #include joachim99@8: joachim99@8: #include joachim99@8: #include joachim99@8: joachim99@8: class KToggleAction; joachim99@8: joachim99@8: /** joachim99@8: * This is the application "Shell". It has a menubar, toolbar, and joachim99@8: * statusbar but relies on the "Part" to do all the real work. joachim99@8: * joachim99@8: * @short Application Shell joachim99@69: * @author Joachim Eibl joachim99@8: */ joachim99@8: class KDiff3Shell : public KParts::MainWindow joachim99@8: { joachim99@8: Q_OBJECT joachim99@8: public: joachim99@8: /** joachim99@8: * Default Constructor joachim99@8: */ joachim99@69: KDiff3Shell(bool bCompleteInit=true); joachim99@8: joachim99@8: /** joachim99@8: * Default Destructor joachim99@8: */ joachim99@8: virtual ~KDiff3Shell(); joachim99@8: joachim99@8: bool queryClose(); joachim99@8: bool queryExit(); joachim99@69: virtual void closeEvent(QCloseEvent*e); joachim99@8: joachim99@8: private slots: joachim99@8: void optionsShowToolbar(); joachim99@8: void optionsShowStatusbar(); joachim99@8: void optionsConfigureKeys(); joachim99@8: void optionsConfigureToolbars(); joachim99@8: joachim99@8: void applyNewToolbarConfig(); joachim99@69: void slotNewInstance( const QString& fn1, const QString& fn2, const QString& fn3 ); joachim99@8: joachim99@8: private: joachim99@8: KParts::ReadWritePart *m_part; joachim99@8: joachim99@8: KToggleAction *m_toolbarAction; joachim99@8: KToggleAction *m_statusbarAction; joachim99@8: bool m_bUnderConstruction; joachim99@8: }; joachim99@8: joachim99@8: #endif // _KDIFF3_H_