1 #ifndef XGUI_Constants_H
2 #define XGUI_Constants_H
5 #include <ModelAPI_Feature.h>
7 //! This file contains various constants used in the application
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
14 //! Pointer on feature object
15 typedef boost::shared_ptr<ModelAPI_Feature> FeaturePtr;
16 typedef QList<FeaturePtr> QFeatureList; //!< List of features
21 //! Types of gradient type used in background of Viewer 3d
33 LastGradient = Corner4Gradient
36 //! Type of rotation point in viewer 3d
37 enum RotationPointType
42 //! Type of ribbon rect in Viewer 3d
45 NoSketching, Rect, Polygon
49 //! View window operations accessible by hot keys
52 PAN, ZOOM, ROTATE, FIT_AREA
55 //! Types of view window interactions
61 //! Types of 2d mode in viewer 3d
64 No2dMode, XYPlane, XZPlane, YZPlane
67 //! Types of background in view window
70 NoBackground, // no (invalid) background data
71 ColorBackground, // single color
72 SimpleGradientBackground, // simple two-color gradient
73 CustomGradientBackground // custom (complex) gradient
79 CenterTexture, // center texture
80 TileTexture, // tile texture
81 StretchTexture, // stretch texture
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";