Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / XGUI / XGUI_Constants.h
1 #ifndef XGUI_Constants_H
2 #define XGUI_Constants_H
3
4 #include <QList>
5
6 typedef QList<int> QIntList;       //!< list of int values
7 typedef QList<short> QShortList;     //!< list of short int values
8 typedef QList<double> QDoubleList;    //!< list of double values
9
10 namespace XGUI
11 {
12
13 enum GradientType
14 {
15   NoGradient = -1,
16   HorizontalGradient,
17   VerticalGradient,
18   Diagonal1Gradient,
19   Diagonal2Gradient,
20   Corner1Gradient,
21   Corner2Gradient,
22   Corner3Gradient,
23   Corner4Gradient,
24   LastGradient = Corner4Gradient
25 };
26
27 enum RotationPointType
28 {
29   GRAVITY, SELECTED
30 };
31
32 enum SketchingType
33 {
34   NoSketching, Rect, Polygon
35 };
36
37 enum HotOperation
38 {
39   PAN, ZOOM, ROTATE, FIT_AREA
40 };
41
42 enum InteractionStyle
43 {
44   STANDARD, KEY_FREE
45 };
46
47 enum Mode2dType
48 {
49   No2dMode, XYPlane, XZPlane, YZPlane
50 };
51
52 enum BackgroundMode
53 {
54   NoBackground,              // no (invalid) background data
55   ColorBackground,           // single color
56   SimpleGradientBackground,  // simple two-color gradient
57   CustomGradientBackground   // custom (complex) gradient
58 };
59
60 //! Texture mode
61 enum TextureMode
62 {
63   CenterTexture,             // center texture
64   TileTexture,               // tile texture
65   StretchTexture,            // stretch texture
66 };
67
68 const static char* PROP_PANEL = "property_panel_dock";
69 const static char* PROP_PANEL_OK = "property_panel_ok";
70 const static char* PROP_PANEL_CANCEL = "property_panel_cancel";
71 const static char* PROP_PANEL_WDG = "property_panel_widget";
72
73 };
74
75 #endif