[TD]implement view stacking

This commit is contained in:
wandererfan
2022-09-07 11:03:14 -04:00
committed by WandererFan
parent d6330b7103
commit fcef1cb174
15 changed files with 3339 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ public:
~ViewProviderDrawingView() override;
App::PropertyBool KeepLabel;
App::PropertyInteger StackOrder;
void attach(App::DocumentObject *) override;
bool useNewSelectionModel() const override {return false;}
@@ -86,6 +87,12 @@ public:
Connection connectGuiRepaint;
Connection connectProgressMessage;
virtual void stackUp();
virtual void stackDown();
virtual void stackTop();
virtual void stackBottom();
virtual int getZ() {return StackOrder.getValue();}
private:
void multiParentPaint(std::vector<TechDraw::DrawPage*>& pages);
void singleParentPaint(const TechDraw::DrawView* dv);