Salome HOME
Make finishing operation in python console produce no warnings: isOperation of root...
[modules/shaper.git] / src / XGUI / XGUI_Constants.h
index ceb93cc1f6981483056d8633c7939187da1589ec..5abd457b9a27db208e8538d011c85cc0d1e3a07b 100644 (file)
@@ -1,51 +1,85 @@
-
 #ifndef XGUI_Constants_H
 #define XGUI_Constants_H
 
-#include <QList>
-
-typedef QList<int>    QIntList;       //!< list of int values
-typedef QList<short>  QShortList;     //!< list of short int values
-typedef QList<double> QDoubleList;    //!< list of double values
+namespace XGUI {
 
-
-namespace XGUI
+//! Types of gradient type used in background of Viewer 3d
+enum GradientType
 {
-
-enum GradientType { 
-    NoGradient = -1,
-    HorizontalGradient, VerticalGradient,
-    Diagonal1Gradient,  Diagonal2Gradient,
-    Corner1Gradient,    Corner2Gradient,
-    Corner3Gradient,    Corner4Gradient,
-    LastGradient = Corner4Gradient
+  NoGradient = -1,
+  HorizontalGradient,
+  VerticalGradient,
+  Diagonal1Gradient,
+  Diagonal2Gradient,
+  Corner1Gradient,
+  Corner2Gradient,
+  Corner3Gradient,
+  Corner4Gradient,
+  LastGradient = Corner4Gradient
 };
 
-enum RotationPointType{ GRAVITY, SELECTED };
-
-enum SketchingType { NoSketching, Rect, Polygon };
+//! Type of rotation point in viewer 3d
+enum RotationPointType
+{
+  GRAVITY,
+  SELECTED
+};
 
-enum HotOperation { PAN, ZOOM, ROTATE, FIT_AREA };
+//! Type of ribbon rect in Viewer 3d
+enum SketchingType
+{
+  NoSketching,
+  Rect,
+  Polygon
+};
 
-enum InteractionStyle { STANDARD, KEY_FREE };
+//! View window operations accessible by hot keys
+enum HotOperation
+{
+  PAN,
+  ZOOM,
+  ROTATE,
+  FIT_AREA
+};
 
-enum Mode2dType { No2dMode, XYPlane, XZPlane, YZPlane};
+//! Types of view window interactions
+enum InteractionStyle
+{
+  STANDARD,
+  KEY_FREE
+};
 
-enum BackgroundMode { 
-    NoBackground,              // no (invalid) background data
-    ColorBackground,           // single color
-    SimpleGradientBackground,  // simple two-color gradient
-    CustomGradientBackground   // custom (complex) gradient
+//! Types of 2d mode in viewer 3d
+enum Mode2dType
+{
+  No2dMode,
+  XYPlane,
+  XZPlane,
+  YZPlane
 };
 
-  //! Texture mode
-enum TextureMode { 
-    CenterTexture,             // center texture
-    TileTexture,               // tile texture
-    StretchTexture,            // stretch texture
+//! Types of background in view window
+//enum BackgroundMode
+//{
+//  NoBackground,              // no (invalid) background data
+//  ColorBackground,           // single color
+//  SimpleGradientBackground,  // simple two-color gradient
+//  CustomGradientBackground   // custom (complex) gradient
+//};
+
+//! Texture mode
+enum TextureMode
+{
+  CenterTexture,             // center texture
+  TileTexture,               // tile texture
+  StretchTexture,            // stretch texture
 };
 
+const static char* PROP_PANEL = "property_panel_dock";
+const static char* PROP_PANEL_OK = "property_panel_ok";
+const static char* PROP_PANEL_CANCEL = "property_panel_cancel";
 
-};
+}
+;
 
-#endif
\ No newline at end of file
+#endif