Updating Doxygen styling and Licenses
[baulk.git] / src / Common / baulkwindow.h
blob6c870f38a358bbd8c85c1f6f5b03a2a81d3508a1
1 // Baulk - Baulk Window
2 //
3 // Baulk - Copyright (C) 2008 - Jacob Alexander
4 //
5 // Baulk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // any later version, including version 3 of the License.
9 //
10 // Baulk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #ifndef __BAULKWINDOW_H
19 #define __BAULKWINDOW_H
21 #include <QCloseEvent>
22 #include <QMainWindow>
23 #include <QWidget>
25 //! Baulk reimplementation of QMainWindow
26 /*!
27 * A QMainWindow reimplementation useful for adding features to all of Baulk
29 class BaulkWindow : public QMainWindow {
30 Q_OBJECT
32 public:
33 BaulkWindow( bool allowDirectUserClose = true, QWidget *parent = 0 );
34 ~BaulkWindow();
36 public slots:
37 void forceClose();
39 void updateWindowTitle( QString title );
41 protected:
42 virtual void closeEvent( QCloseEvent *event );
44 signals:
45 void userAttemptedClose();
49 #endif