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