Salome HOME
068adf85d3c31b6910393ec9c100bc57feba981a
[modules/jobmanager.git] / src / standalone / main.cxx
1 // Copyright (C) 2009-2013  CEA/DEN, EDF R&D
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #include <QtGui>
21 #include "BL_GenericGui.hxx"
22 #include "BL_MainWindows_Qt.hxx"
23
24 int main(int argc, char *argv[])
25 {
26   QApplication app(argc, argv);
27
28   QMainWindow main_window;
29   BL::MainWindows_Qt wrapper(&main_window);
30   BL::GenericGui * main_widget = new BL::GenericGui(&wrapper);
31   main_widget->createActions();
32   main_widget->createMenus();
33   main_widget->updateButtonsStates();
34
35   main_window.setWindowTitle("Standalone JobManager Gui");
36   main_window.show();
37
38   return app.exec();
39 }
40