forked from seub/CirclePackings
-
Notifications
You must be signed in to change notification settings - Fork 0
/
input_menu.hpp
140 lines (115 loc) · 4.15 KB
/
input_menu.hpp
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
/*This file is part of Circle Packings.
Circle Packings is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Circle Packings is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Circle Packings. If not, see <http://www.gnu.org/licenses/>.*/
#ifndef INPUT_MENU_HPP
#define INPUT_MENU_HPP
#include "basic_types.hpp"
#include "QGroupBox"
class QGridLayout;
class QComboBox;
class QPushButton;
class QLabel;
class QCheckBox;
class QSpinBox;
class Window;
class QRadioButton;
class Input_Menu : public QGroupBox
{
Q_OBJECT
friend class Window;
friend class Top_Menu;
friend class Configuration;
public:
int max_left_col_width() const;
int max_right_col_width() const;
int max_width() const;
int max_height() const;
private:
Window* window_;
QGridLayout* layout_;
QComboBox* choose_mode_;
QPushButton* reset_;
QComboBox* choose_graph_combobox_;
QRadioButton* draw_vertices_;
QRadioButton* draw_edges_;
QPushButton* complete_;
QSpinBox* graph_parameter_spinbox_;
QLabel* graph_parameter_label_;
QSpinBox* graph_parameter_spinbox_2_;
QLabel* graph_parameter_label_2_;
QComboBox* choose_curve_;
QLabel* smooth_curve_label_;
QCheckBox* smooth_curve_;
QLabel* nb_points_label_;
QSpinBox* nb_points_spinbox_;
QLabel* tiling_size_label_;
QSpinBox* tiling_size_spinbox_;
QComboBox* choose_curve_2_;
QLabel* smooth_curve_label_2_;
QCheckBox* smooth_curve_2_;
QLabel* nb_points_label_2_;
QSpinBox* nb_points_spinbox_2_;
QLabel *choose_coloring_label_;
QComboBox *choose_coloring_box_;
QComboBox *choose_coloring_box_2_;
int vert_space_;
int button_height_;
Input_Menu(Window *window);
void resizeEvent(QResizeEvent *);
void enterEvent(QEvent *);
void change_mode_menu(const mode_type &old_mode_flag, const mode_type &new_mode_flag, bool create_tiling = true);
void set_row_heights();
void create_choose_mode_combobox();
void create_reset_button();
void create_choose_graph_combobox();
void create_draw_vertices_and_edges_radioboxes();
void create_complete_button();
void create_graph_paramaters_items();
void create_graph_paramaters_items_2();
void create_choose_curve_combobox();
void create_choose_curve_2_combobox();
void create_tiling_items();
void create_smooth_items();
void create_smooth_2_items();
void create_choose_nb_points_items();
void create_choose_nb_points_2_items();
void create_choose_coloring_label();
void create_choose_coloring_combobox();
void create_choose_coloring_2_combobox();
void empty_draw_graph_menu();
void empty_draw_graph_submenu();
void empty_graph_parameters_menu();
void empty_draw_curve_menu();
void empty_draw_two_curves_menu();
void empty_curve_parameters_menu();
void empty_curve_parameters_menu_2();
void set_draw_vertices_with_edges_forbidden();
void set_draw_vertices_with_edges_allowed();
void set_draw_edges();
void set_draw_neither_vertices_nor_edges();
void reset_input_menu();
void reset_draw_graph_menu();
void reset_draw_curve_menu();
void reset_draw_two_curves_menu();
void create_draw_graph_menu();
void create_draw_graph_submenu();
void create_graph_parameters_menu();
void create_draw_curve_menu();
void create_draw_two_curves_menu();
void create_curve_parameters_menu();
void create_curve_parameters_menu_2();
void completing();
void set_nb_points_without_signal(int nb_points);
void set_nb_points_2_without_signal(int nb_points_2);
void set_graph_parameter_1_without_signal(int parameter);
void set_graph_parameter_2_without_signal(int parameter);
};
#endif // INPUT_MENU_HPP