Public Member Functions | |
def | Activated (self) |
def | GetResources (self) |
Public Member Functions inherited from draftguitools.gui_base.GuiCommandNeedsSelection | |
def | IsActive (self) |
def | Activated (self) |
def | IsActive (self) |
Additional Inherited Members | |
Public Attributes inherited from draftguitools.gui_base.GuiCommandSimplest | |
command_name | |
doc | |
GuiCommand for the Draft_ToggleDisplayMode tool. Switches the display mode of selected objects from flatlines to wireframe and back. It inherits `GuiCommandNeedsSelection` to only be available when there is a document and a selection. See this class for more information.
def draftguitools.gui_togglemodes.ToggleDisplayMode.Activated | ( | self | ) |
Execute when the command is called. It tests the view provider of the selected objects and changes their `DisplayMode` from `'Wireframe'` to `'Flat Lines'`, and the other way around, if possible.
Reimplemented from draftguitools.gui_base.GuiCommandSimplest.
References draftguitools.gui_togglemodes.ToggleDisplayMode.Activated().
Referenced by ArchStructure.CommandStructuralSystem.Activated(), draftguitools.gui_togglemodes.ToggleDisplayMode.Activated(), draftguitools.gui_arcs.Arc.finish(), draftguitools.gui_beziers.BezCurve.finish(), draftguitools.gui_beziers.CubicBezCurve.finish(), draftguitools.gui_ellipses.Ellipse.finish(), draftguitools.gui_lines.Line.finish(), draftguitools.gui_mirror.Mirror.finish(), draftguitools.gui_move.Move.finish(), draftguitools.gui_polygons.Polygon.finish(), draftguitools.gui_rectangles.Rectangle.finish(), draftguitools.gui_rotate.Rotate.finish(), draftguitools.gui_splines.BSpline.finish(), draftguitools.gui_texts.Text.finish(), draftguitools.gui_points.Point.finish(), draftguitools.gui_shapestrings.ShapeString.finish(), draftguitools.gui_arcs.Arc_3Points.getPoint(), and ArchPanel.CommandPanel.getPoint().
def draftguitools.gui_togglemodes.ToggleDisplayMode.GetResources | ( | self | ) |
Set icon, menu and tooltip.
References draftutils.translate.QT_TRANSLATE_NOOP.