/
TGSettingsGUI.h
49 lines (42 loc) · 1.09 KB
/
TGSettingsGUI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef TGSETTINGSGUI_H_
#define TGSETTINGSGUI_H_
#include <gtkmm/button.h>
#include <gtkmm/window.h>
#include <gtkmm/hvscale.h>
#include <gtkmm/hvbox.h>
#include <gtkmm/label.h>
#include <gtkmm/checkbutton.h>
#include <gtkmm/togglebutton.h>
#include "TGInterface.h"
class TGSettingsGUI : public Gtk::Window
{
public:
TGSettingsGUI(SimParams ¶ms);
virtual ~TGSettingsGUI();
protected:
//Signal handlers:
void on_reset_clicked();
void on_value_changed();
//Member widgets:
Gtk::Button myResetButton;
Gtk::VBox myMainPanel;
Gtk::HScale myCScale;
Gtk::Label myCLabel;
Gtk::HScale myHeightScale;
Gtk::Label myHeightLabel;
Gtk::HScale myShapeScale;
Gtk::Label myShapeLabel;
Gtk::HScale myViscScale;
Gtk::Label myViscLabel;
Gtk::HScale myScaleScale;
Gtk::Label myScaleLabel;
Gtk::HScale myColorScale;
Gtk::Label myColorLabel;
Gtk::CheckButton myShading;
Gtk::HBox myTogglePanel;
Gtk::ToggleButton myZoom;
SimParams &myParams;
public:
static void RunGUI(int argc, char** argv, SimParams ¶ms);
};
#endif