]>
vaikene.ee Git - evaf/blob - src/plugins/SdiWindow/sdiwindow.h
2 * @file SdiWindow/sdiwindow.h
3 * @brief SdiWindow module's implementation
6 * Copyright (c) 2011 Enar Vaikene
8 * This file is part of the eVaf C++ cross-platform application development framework.
10 * This file can be used under the terms of the GNU General Public License
11 * version 3.0 as published by the Free Software Foundation and appearing in
12 * the file LICENSE included in the packaging of this file. Please review the
13 * the following information to ensure the GNU General Public License version
14 * 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
16 * Alternatively, this file may be used in accordance with the Commercial License
17 * Agreement provided with the Software.
20 #ifndef __SDIWINDOW_SDIWINDOW_H
21 # define __SDIWINDOW_SDIWINDOW_H
23 #include "isdiwindow.h"
25 #include <Plugins/iPlugin>
38 class MainWindow
: public QWidget
44 MainWindow(QWidget
* parent
= 0, Qt::WindowFlags flags
= 0);
46 virtual ~MainWindow();
59 void restoreSettings();
63 * iSdiWindow interface implementation
65 class SdiWindowImpl
: public iSdiWindow
73 virtual ~SdiWindowImpl();
75 bool init(const QString
& args
);
79 bool isReady() const { return mReady
; }
81 virtual QWidget
* widget() const { return wWindow
; }
89 /// The main window widget
94 * SdiWindow module's implementation
96 class SdiWindowPlugin
: public Plugins::iPlugin
104 virtual ~SdiWindowPlugin();
106 virtual bool init(const QString
& args
);
110 virtual bool isReady() const { return mWindow
!= 0 && mWindow
->isReady(); }
115 /// iSdiWindow interface implementation
116 SdiWindowImpl
* mWindow
;
119 } // namespace eVaf::SdiWindow::Internal
120 } // namespace eVaf::SdiWindow
123 #endif // sdiwindow.h