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