-
Notifications
You must be signed in to change notification settings - Fork 1
/
displaymenu.h
51 lines (38 loc) · 1.5 KB
/
displaymenu.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
50
51
#ifndef DISPLAYMENU_H
#define DISPLAYMENU_H
#include <QGroupBox>
#include "tools.h"
class QGridLayout; class QComboBox; class QLabel; class QPushButton;
class LeftMenu;
class DisplayMenu : public QGroupBox
{
Q_OBJECT
friend class LeftMenu;
friend class ActionHandler;
public:
enum ShowTranslatesChoice {SHOW_TRANSLATES_DOMAIN, SHOW_TRANSLATES_VERTEX, SHOW_TRANSLATES_VERTICES, SHOW_TRANSLATES_VERTICES_STAR};
//enum ColoringChoice {COLORING_NONE, COLORING_PLAIN};
enum ColoringChoiceLeft {COLORING_NONE_LEFT, COLORING_PLAIN_LEFT};
enum ColoringChoiceRight {COLORING_NONE_RIGHT, COLORING_PLAIN_RIGHT};
//enum ColorChoice {RED, GREEN, BLUE, LIGHT_BLUE, ORANGE, GRAY, BLACK};
enum ColorChoiceLeft {RED_L, GREEN_L, BLUE_L, LIGHT_BLUE_L, ORANGE_L, GRAY_L, BLACK_L};
enum ColorChoiceRight {RED_R, GREEN_R, BLUE_R, LIGHT_BLUE_R, ORANGE_R, GRAY_R, BLACK_R};
DisplayMenu() = delete;
DisplayMenu(const DisplayMenu &) = delete;
DisplayMenu& operator=(DisplayMenu) = delete;
private:
DisplayMenu(LeftMenu *leftMenu);
void createLayout();
void createButtons();
void setReady(bool left);
QGridLayout *layout;
QPushButton *resetViewButton;
QLabel *showTranslatesLabel;
QComboBox *showTranslatesComboBox;
QLabel *coloringLabel;
//QComboBox *coloringComboBox, *colorComboBox;
QComboBox *coloringComboBoxLeft,*coloringComboBoxRight, *colorComboBoxLeft, *colorComboBoxRight;
int vertSpace;
int buttonHeight;
};
#endif // DISPLAYMENU_H