X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_Constants.h;h=5abd457b9a27db208e8538d011c85cc0d1e3a07b;hb=94ba553e7b92f11a936e027b49bbd1d501eeee44;hp=17f0e2dd17996c10cedcd9c577996f92ff7ad528;hpb=a142c8797585ec0b35310ec3608d38b3a4908b7c;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_Constants.h b/src/XGUI/XGUI_Constants.h index 17f0e2dd1..5abd457b9 100644 --- a/src/XGUI/XGUI_Constants.h +++ b/src/XGUI/XGUI_Constants.h @@ -1,15 +1,9 @@ #ifndef XGUI_Constants_H #define XGUI_Constants_H -#include - -typedef QList QIntList; //!< list of int values -typedef QList QShortList; //!< list of short int values -typedef QList QDoubleList; //!< list of double values - -namespace XGUI -{ +namespace XGUI { +//! Types of gradient type used in background of Viewer 3d enum GradientType { NoGradient = -1, @@ -24,38 +18,54 @@ enum GradientType LastGradient = Corner4Gradient }; +//! Type of rotation point in viewer 3d enum RotationPointType { - GRAVITY, SELECTED + GRAVITY, + SELECTED }; +//! Type of ribbon rect in Viewer 3d enum SketchingType { - NoSketching, Rect, Polygon + NoSketching, + Rect, + Polygon }; +//! View window operations accessible by hot keys enum HotOperation { - PAN, ZOOM, ROTATE, FIT_AREA + PAN, + ZOOM, + ROTATE, + FIT_AREA }; +//! Types of view window interactions enum InteractionStyle { - STANDARD, KEY_FREE + STANDARD, + KEY_FREE }; +//! Types of 2d mode in viewer 3d enum Mode2dType { - No2dMode, XYPlane, XZPlane, YZPlane + No2dMode, + XYPlane, + XZPlane, + YZPlane }; -enum BackgroundMode -{ - NoBackground, // no (invalid) background data - ColorBackground, // single color - SimpleGradientBackground, // simple two-color gradient - CustomGradientBackground // custom (complex) gradient -}; +//! 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 @@ -68,8 +78,8 @@ enum TextureMode 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"; -const static char* PROP_PANEL_WDG = "property_panel_widget"; -}; +} +; #endif