X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Constants.h;h=9255b5239a74016f26abb017a85749228f0fbca7;hb=d7f39bb5064d81ef383a672d5f38718369a13899;hp=1b9c909c75ee0a642dd3657bcc251f9d498d767c;hpb=7682dee5122d928f4f59f8ee6a5ad4c110fb2ec2;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Constants.h b/src/XGUI/XGUI_Constants.h index 1b9c909c7..9255b5239 100644 --- a/src/XGUI/XGUI_Constants.h +++ b/src/XGUI/XGUI_Constants.h @@ -1,28 +1,90 @@ - #ifndef XGUI_Constants_H #define XGUI_Constants_H +#include +#include + +//! This file contains various constants used in the application + + +typedef QList QIntList; //!< list of int values +typedef QList QShortList; //!< list of short int values +typedef QList QDoubleList; //!< list of double values + +//! Pointer on feature object +typedef boost::shared_ptr FeaturePtr; +typedef QList QFeatureList; //!< List of features + namespace XGUI { -enum GradientType { - HorizontalGradient, VerticalGradient, - Diagonal1Gradient, Diagonal2Gradient, - Corner1Gradient, Corner2Gradient, - Corner3Gradient, Corner4Gradient, - LastGradient = Corner4Gradient +//! Types of gradient type used in background of Viewer 3d +enum GradientType +{ + NoGradient = -1, + HorizontalGradient, + VerticalGradient, + Diagonal1Gradient, + Diagonal2Gradient, + Corner1Gradient, + Corner2Gradient, + Corner3Gradient, + Corner4Gradient, + LastGradient = Corner4Gradient }; -enum RotationPointType{ GRAVITY, SELECTED }; +//! Type of rotation point in viewer 3d +enum RotationPointType +{ + GRAVITY, SELECTED +}; -enum SketchingType { NoSketching, Rect, Polygon }; +//! Type of ribbon rect in Viewer 3d +enum SketchingType +{ + NoSketching, Rect, Polygon +}; -enum HotOperation { PAN, ZOOM, ROTATE, FIT_AREA }; -enum InteractionStyle { STANDARD, KEY_FREE }; +//! View window operations accessible by hot keys +enum HotOperation +{ + PAN, ZOOM, ROTATE, FIT_AREA +}; + +//! Types of view window interactions +enum InteractionStyle +{ + STANDARD, KEY_FREE +}; + +//! Types of 2d mode in viewer 3d +enum Mode2dType +{ + No2dMode, XYPlane, XZPlane, YZPlane +}; + +//! 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 +}; -enum Mode2dType { No2dMode, XYPlane, XZPlane, YZPlane}; +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