Debian Codegraph @

src/joystick_map_widget.hpp

raw
1 /*
2 ** jstest-gtk - A graphical joystick tester
3 ** Copyright (C) 2009 Ingo Ruhnke <[email protected]>
4 **
5 ** This program 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 3 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program 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.
14 **
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/>.
17 */
18
19 #ifndef HEADER_JOYSTICK_MAP_WIDGET_HPP
20 #define HEADER_JOYSTICK_MAP_WIDGET_HPP
21
22 #include <gtkmm/box.h>
23 #include <gtkmm/dialog.h>
24 #include <gtkmm/buttonbox.h>
25 #include <gtkmm/button.h>
26 #include <gtkmm/label.h>
27
28 #include "remap_widget.hpp"
29
30 class Joystick;
31
32 class JoystickMapWidget : public Gtk::Dialog
33 {
34 private:
35 Gtk::Label label;
36 Gtk::HBox hbox;
37 RemapWidget axis_map;
38 RemapWidget button_map;
39
40 public:
41 JoystickMapWidget(Joystick& joystick);
42
43 void on_response(int v) override;
44
45 private:
46 JoystickMapWidget(const JoystickMapWidget&);
47 JoystickMapWidget& operator=(const JoystickMapWidget&);
48 };
49
50 #endif
51
52 /* EOF */