Move SoDatumLabel from Sketcher to Core so that it can be reused anywhere.
This commit is contained in:
@@ -968,6 +968,7 @@ SET(Inventor_CPP_SRCS
|
||||
SoNavigationDragger.cpp
|
||||
SoAxisCrossKit.cpp
|
||||
SoTextLabel.cpp
|
||||
SoDatumLabel.cpp
|
||||
SoTouchEvents.cpp
|
||||
SoMouseWheelEvent.cpp
|
||||
SoFCCSysDragger.cpp
|
||||
@@ -995,6 +996,7 @@ SET(Inventor_SRCS
|
||||
SoNavigationDragger.h
|
||||
SoAxisCrossKit.h
|
||||
SoTextLabel.h
|
||||
SoDatumLabel.h
|
||||
SoTouchEvents.h
|
||||
SoMouseWheelEvent.h
|
||||
SoFCCSysDragger.h
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
|
||||
#define ZCONSTR 0.006f
|
||||
|
||||
using namespace SketcherGui;
|
||||
using namespace Gui;
|
||||
|
||||
// ------------------------------------------------------
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef SKETCHERGUI_SODATUMLABEL_H
|
||||
#define SKETCHERGUI_SODATUMLABEL_H
|
||||
#ifndef GUI_SODATUMLABEL_H
|
||||
#define GUI_SODATUMLABEL_H
|
||||
|
||||
#include <Inventor/SbBox3f.h>
|
||||
#include <Inventor/fields/SoSFColor.h>
|
||||
@@ -35,12 +35,12 @@
|
||||
#include <Inventor/fields/SoMFVec3f.h>
|
||||
#include <Inventor/nodes/SoShape.h>
|
||||
|
||||
#include <Mod/Sketcher/SketcherGlobal.h>
|
||||
#include <FCGlobal.h>
|
||||
|
||||
|
||||
namespace SketcherGui {
|
||||
namespace Gui {
|
||||
|
||||
class SketcherGuiExport SoDatumLabel : public SoShape {
|
||||
class GuiExport SoDatumLabel : public SoShape {
|
||||
using inherited = SoShape;
|
||||
|
||||
SO_NODE_HEADER(SoDatumLabel);
|
||||
@@ -99,4 +99,4 @@ private:
|
||||
}
|
||||
|
||||
|
||||
#endif // SKETCHERGUI_SODATUMLABEL_H
|
||||
#endif // GUI_SODATUMLABEL_H
|
||||
@@ -69,6 +69,7 @@
|
||||
#include "SoMouseWheelEvent.h"
|
||||
#include "SoNavigationDragger.h"
|
||||
#include "SoTextLabel.h"
|
||||
#include "SoDatumLabel.h"
|
||||
#include "Inventor/MarkerBitmaps.h"
|
||||
#include "Inventor/SmSwitchboard.h"
|
||||
#include "Inventor/SoAutoZoomTranslation.h"
|
||||
@@ -124,6 +125,7 @@ void Gui::SoFCDB::init()
|
||||
SoVRMLAction ::initClass();
|
||||
SoSkipBoundingGroup ::initClass();
|
||||
SoTextLabel ::initClass();
|
||||
SoDatumLabel ::initClass();
|
||||
SoColorBarLabel ::initClass();
|
||||
SoStringLabel ::initClass();
|
||||
SoFrameLabel ::initClass();
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
|
||||
#include "PropertyConstraintListItem.h"
|
||||
#include "SketcherSettings.h"
|
||||
#include "SoDatumLabel.h"
|
||||
#include "SoZoomTranslation.h"
|
||||
#include "ViewProviderPython.h"
|
||||
#include "ViewProviderSketch.h"
|
||||
@@ -125,7 +124,6 @@ PyMOD_INIT_FUNC(SketcherGui)
|
||||
SketcherGui::ViewProviderPython ::init();
|
||||
SketcherGui::ViewProviderCustom ::init();
|
||||
SketcherGui::ViewProviderCustomPython ::init();
|
||||
SketcherGui::SoDatumLabel ::initClass();
|
||||
SketcherGui::SoZoomTranslation ::initClass();
|
||||
SketcherGui::PropertyConstraintListItem ::init();
|
||||
SketcherGui::ViewProviderSketchGeometryExtension ::init();
|
||||
|
||||
@@ -87,8 +87,6 @@ SET(SketcherGui_SRCS
|
||||
PreCompiled.h
|
||||
SoZoomTranslation.cpp
|
||||
SoZoomTranslation.h
|
||||
SoDatumLabel.cpp
|
||||
SoDatumLabel.h
|
||||
PropertyConstraintListItem.h
|
||||
PropertyConstraintListItem.cpp
|
||||
TaskSketcherConstraints.ui
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
#include <Gui/Tools.h>
|
||||
#include <Gui/Utilities.h>
|
||||
#include <Gui/Inventor/SmSwitchboard.h>
|
||||
#include <Gui/SoDatumLabel.h>
|
||||
#include <Mod/Part/App/Geometry.h>
|
||||
#include <Mod/Sketcher/App/GeometryFacade.h>
|
||||
#include <Mod/Sketcher/App/SolverGeometryExtension.h>
|
||||
@@ -58,13 +59,13 @@
|
||||
#include <Mod/Sketcher/App/GeoList.h>
|
||||
|
||||
#include "EditModeConstraintCoinManager.h"
|
||||
#include "SoDatumLabel.h"
|
||||
#include "SoZoomTranslation.h"
|
||||
#include "ViewProviderSketch.h"
|
||||
#include "ViewProviderSketchCoinAttorney.h"
|
||||
#include "Utils.h"
|
||||
|
||||
|
||||
using namespace Gui;
|
||||
using namespace SketcherGui;
|
||||
using namespace Sketcher;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user