Added PKGBUILD updates
[baulk.git] / src / Baulk / Control / wrapper_control.cpp
blob58c7506dbbb1bf85ea858be72fab6d142e27c638
1 // Baulk - Control - DLL Wrapper
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 #include "wrapper_control.h"
20 // Symbol List ************************************************************************************
21 QStringList symbolList() {
22 return QStringList()
23 << "allowQuit"
24 << "control_mainWidget"
25 << "control_mainWidget";
28 // Main Widget ************************************************************************************
29 BaulkWidget *control_mainWidget( QWidget *parent ) {
30 control = new BaulkControl( parent );
32 return control;
35 // Widget Name ************************************************************************************
36 QString control_widgetName() {
37 return QObject::tr("Baulk Control");
40 // Quit Event *************************************************************************************
41 bool allowQuit() {
42 if ( QMessageBox::warning( control, "Quit?",
43 "Are you sure you want to quit?",
44 QMessageBox::Yes | QMessageBox::No,
45 QMessageBox::No )
46 == QMessageBox::Yes )
47 return true;
48 return false;