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 #include <QList>
5
6 //! This file contains varioous constants used in the application
7
8
9 typedef QList<int> QIntList;       //!< list of int values
10 typedef QList<short> QShortList;     //!< list of short int values
11 typedef QList<double> QDoubleList;    //!< list of double values
12
13 namespace XGUI
14 {
15
16 //! Types of gradient type used in background of Viewer 3d
17 enum GradientType
18 {
19   NoGradient = -1,
20   HorizontalGradient,
21   VerticalGradient,
22   Diagonal1Gradient,
23   Diagonal2Gradient,
24   Corner1Gradient,
25   Corner2Gradient,
26   Corner3Gradient,
27   Corner4Gradient,
28   LastGradient = Corner4Gradient
29 };
30
31 //! Type of rotation point in viewer 3d
32 enum RotationPointType
33 {
34   GRAVITY, SELECTED
35 };
36
37 //! Type of ribbon rect in Viewer 3d
38 enum SketchingType
39 {
40   NoSketching, Rect, Polygon
41 };
42
43
44 //! View window operations accessible by hot keys
45 enum HotOperation
46 {
47   PAN, ZOOM, ROTATE, FIT_AREA
48 };
49
50 //! Types of view window interactions
51 enum InteractionStyle
52 {
53   STANDARD, KEY_FREE
54 };
55
56 //! Types of 2d mode in viewer 3d
57 enum Mode2dType
58 {
59   No2dMode, XYPlane, XZPlane, YZPlane
60 };
61
62 //! Types of background in view window
63 enum BackgroundMode
64 {
65   NoBackground,              // no (invalid) background data
66   ColorBackground,           // single color
67   SimpleGradientBackground,  // simple two-color gradient
68   CustomGradientBackground   // custom (complex) gradient
69 };
70
71 //! Texture mode
72 enum TextureMode
73 {
74   CenterTexture,             // center texture
75   TileTexture,               // tile texture
76   StretchTexture,            // stretch texture
77 };
78
79 const static char* PROP_PANEL = "property_panel_dock";
80 const static char* PROP_PANEL_OK = "property_panel_ok";
81 const static char* PROP_PANEL_CANCEL = "property_panel_cancel";
82 const static char* PROP_PANEL_WDG = "property_panel_widget";
83
84 };
85
86 #endif