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