misc /Mod/Drawing, QGI, obs functions
This commit is contained in:
parent
8eb8e96b72
commit
cb25c494de
|
@ -35,11 +35,11 @@
|
|||
|
||||
#include <Mod/Part/App/PartFeature.h>
|
||||
|
||||
#include <Mod/Drawing/App/DrawPage.h>
|
||||
#include <Mod/Drawing/App/DrawViewPart.h>
|
||||
#include <Mod/TechDraw/App/DrawPage.h>
|
||||
#include <Mod/TechDraw/App/DrawViewPart.h>
|
||||
|
||||
#include <Mod/Drawing/App/DrawProjGroupItem.h>
|
||||
#include <Mod/Drawing/App/DrawProjGroup.h>
|
||||
#include <Mod/TechDraw/App/DrawProjGroupItem.h>
|
||||
#include <Mod/TechDraw/App/DrawProjGroup.h>
|
||||
|
||||
#include "TaskProjGroup.h"
|
||||
#include "ui_TaskProjGroup.h"
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
using namespace TechDrawGui;
|
||||
|
||||
TemplateTextField::TemplateTextField(QGI *parent,
|
||||
TemplateTextField::TemplateTextField(QGraphicsItem*parent,
|
||||
TechDraw::DrawTemplate *myTmplte,
|
||||
const std::string &myFieldName)
|
||||
: QGraphicsRectItem(parent), tmplte(myTmplte), fieldNameStr(myFieldName)
|
||||
|
|
|
@ -45,7 +45,7 @@ namespace TechDrawGui
|
|||
class TechDrawGuiExport TemplateTextField : public QGraphicsRectItem
|
||||
{
|
||||
public:
|
||||
TemplateTextField(QGI *parent,
|
||||
TemplateTextField(QGraphicsItem*parent,
|
||||
TechDraw::DrawTemplate *myTmplte,
|
||||
const std::string &myFieldName);
|
||||
|
||||
|
|
|
@ -76,8 +76,8 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
|||
*draw << "Drawing_NewDimension";
|
||||
//*part << "Drawing_DraftView";
|
||||
*draw << "Drawing_ExportPage";
|
||||
*draw << "Separator";
|
||||
*draw << "Drawing_ProjectShape";
|
||||
//*draw << "Separator";
|
||||
//*draw << "Drawing_ProjectShape";
|
||||
|
||||
return root;
|
||||
}
|
||||
|
@ -164,8 +164,5 @@ Gui::ToolBarItem* Workbench::setupCommandBars() const
|
|||
decor->setCommand("Drawing Decoration");
|
||||
*decor << "Drawing_NewHatch";
|
||||
|
||||
// *img << "Drawing_OpenBrowserView";
|
||||
// *img << "Drawing_DraftView";
|
||||
|
||||
return root;
|
||||
}
|
||||
|
|
|
@ -33,9 +33,9 @@
|
|||
class DrawingWorkbench (Workbench):
|
||||
"Drawing workbench object"
|
||||
def __init__(self):
|
||||
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/Drawing/Resources/icons/preferences-drawing.svg"
|
||||
self.__class__.MenuText = "Drawing"
|
||||
self.__class__.ToolTip = "Drawing workbench"
|
||||
self.__class__.Icon = FreeCAD.getResourceDir() + "Mod/TechDraw/Resources/icons/preferences-drawing.svg"
|
||||
self.__class__.MenuText = "TechDraw"
|
||||
self.__class__.ToolTip = "Technical Drawing workbench"
|
||||
|
||||
|
||||
def Initialize(self):
|
||||
|
@ -46,6 +46,3 @@ class DrawingWorkbench (Workbench):
|
|||
|
||||
Gui.addWorkbench(DrawingWorkbench())
|
||||
|
||||
# Append the open handler
|
||||
FreeCAD.addImportType("Drawing (*.svg *.svgz)","TechDrawGui")
|
||||
FreeCAD.addExportType("Drawing (*.svg *.svgz *.dxf)","TechDrawGui")
|
||||
|
|
Loading…
Reference in New Issue
Block a user