-
Notifications
You must be signed in to change notification settings - Fork 1
/
inputmenu.h
46 lines (31 loc) · 903 Bytes
/
inputmenu.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
#ifndef INPUTMENU_H
#define INPUTMENU_H
#include <QGroupBox>
#include "tools.h"
class QGridLayout; class QComboBox; class QLabel; class QSpinBox;
class LeftMenu;
class InputMenu : public QGroupBox
{
Q_OBJECT
friend class LeftMenu;
friend class ActionHandler;
public:
enum SetRhoChoice {SET_RHO_CHOOSE, SET_RHO_RANDOM, SET_RHO_NICE, SET_RHO_FN};
InputMenu() = delete;
InputMenu(const InputMenu &) = delete;
InputMenu & operator=(InputMenu) = delete;
int getGenus() const;
int getMeshDepth() const;
private:
InputMenu(LeftMenu *leftMenu);
void createLayout();
void createButtons();
void resetRhos();
QGridLayout *layout;
QComboBox *setRhoDomainComboBox, *setRhoImageComboBox;
QLabel *genusLabel, *meshDepthLabel;
QSpinBox *genusSpinBox, *meshDepthSpinBox;
int vertSpace;
int buttonHeight;
};
#endif // INPUTMENU_H