Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / XGUI / XGUI_Constants.h
1 #ifndef XGUI_Constants_H
2 #define XGUI_Constants_H
3
4 namespace XGUI {
5
6 //! Types of gradient type used in background of Viewer 3d
7 enum GradientType
8 {
9   NoGradient = -1,
10   HorizontalGradient,
11   VerticalGradient,
12   Diagonal1Gradient,
13   Diagonal2Gradient,
14   Corner1Gradient,
15   Corner2Gradient,
16   Corner3Gradient,
17   Corner4Gradient,
18   LastGradient = Corner4Gradient
19 };
20
21 //! Type of rotation point in viewer 3d
22 enum RotationPointType
23 {
24   GRAVITY,
25   SELECTED
26 };
27
28 //! Type of ribbon rect in Viewer 3d
29 enum SketchingType
30 {
31   NoSketching,
32   Rect,
33   Polygon
34 };
35
36 //! View window operations accessible by hot keys
37 enum HotOperation
38 {
39   PAN,
40   ZOOM,
41   ROTATE,
42   FIT_AREA
43 };
44
45 //! Types of view window interactions
46 enum InteractionStyle
47 {
48   STANDARD,
49   KEY_FREE
50 };
51
52 //! Types of 2d mode in viewer 3d
53 enum Mode2dType
54 {
55   No2dMode,
56   XYPlane,
57   XZPlane,
58   YZPlane
59 };
60
61 //! Types of background in view window
62 //enum BackgroundMode
63 //{
64 //  NoBackground,              // no (invalid) background data
65 //  ColorBackground,           // single color
66 //  SimpleGradientBackground,  // simple two-color gradient
67 //  CustomGradientBackground   // custom (complex) gradient
68 //};
69
70 //! Texture mode
71 enum TextureMode
72 {
73   CenterTexture,             // center texture
74   TileTexture,               // tile texture
75   StretchTexture,            // stretch texture
76 };
77
78 const static char* PROP_PANEL = "property_panel_dock";
79 const static char* PROP_PANEL_OK = "property_panel_ok";
80 const static char* PROP_PANEL_CANCEL = "property_panel_cancel";
81
82 }
83 ;
84
85 #endif