Fawkes API Fawkes Development Version
main.cpp
1
2/***************************************************************************
3 * main.cpp - BB2 calibration GUI main
4 *
5 * Created: Thu Jul 18 20:35:12 2013
6 * Copyright 2008-2013 Tim Niemueller [www.niemueller.de]
7 *
8 ****************************************************************************/
9
10/* This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Library General Public License for more details.
19 *
20 * Read the full text in the LICENSE.GPL file in the doc directory.
21 */
22
23#include "bb2calib.h"
24
25#include <core/threading/thread.h>
26
27/** This is the main program of the Nao GUI. */
28int
29main(int argc, char **argv)
30{
32
33 std::locale::global(std::locale(""));
34 Gtk::Main gtk_main(argc, argv);
35
36 try {
37 Glib::RefPtr<Gtk::Builder> builder;
38 builder = Gtk::Builder::create_from_file(RESDIR "/guis/bb2calib/bb2calib.ui");
39
40 Bumblebee2CalibGtkWindow *window = NULL;
41 builder->get_widget_derived("window", window);
42
43 Gtk::Main::run(*window);
44
45 delete window;
46 } catch (Gtk::BuilderError &e) {
47 printf("Failed to instantiate window: %s\n", e.what().c_str());
48 }
49
51
52 return 0;
53}
Bumblebee2 calibration GUI main window.
Definition: bb2calib.h:42
static void destroy_main()
Destroy main thread wrapper instance.
Definition: thread.cpp:1289
static void init_main()
Initialize Thread wrapper instance for main thread.
Definition: thread.cpp:1276