1 // Baulk - Baulk Window
3 // Baulk - Copyright (C) 2008 - Jacob Alexander
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.
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>
25 //! Baulk reimplementation of QMainWindow
27 * A QMainWindow reimplementation useful for adding features to all of Baulk
29 class BaulkWindow
: public QMainWindow
{
33 BaulkWindow( bool allowDirectUserClose
= true, QWidget
*parent
= 0 );
39 void updateWindowTitle( QString title
);
42 virtual void closeEvent( QCloseEvent
*event
);
45 void userAttemptedClose();