parameters: (self)
docstring: Build the Snap toolbar.
docstring_summary: Build the Snap toolbar.
docstring_tokens: Build the Snap toolbar .
function: def makeSnapToolBar(self):
          """Build the Snap toolbar."""
          mw = Gui.getMainWindow()
          self.toolbar = QtGui.QToolBar(mw)
          mw.addToolBar(QtCore.Qt.TopToolBarArea, self.toolbar)
          self.toolbar.setObjectName("Draft Snap")
          self.toolbar.setWindowTitle(translate("Workbench", "Draft Snap"))
  
          # make snap buttons
          snap_gui_commands = get_draft_snap_commands()
          self.init_draft_snap_buttons(snap_gui_commands, self.toolbar, "_Button")
          self.restore_snap_buttons_state(self.toolbar,"_Button")
  
          if not Draft.getParam("showSnapBar",True):
              self.toolbar.hide()
function_tokens: def makeSnapToolBar ( self ) : mw = Gui . getMainWindow ( ) self . toolbar = QtGui . QToolBar ( mw ) mw . addToolBar ( QtCore . Qt . TopToolBarArea , self . toolbar ) self . toolbar . setObjectName ( "Draft Snap" ) self . toolbar . setWindowTitle ( translate ( "Workbench" , "Draft Snap" ) ) # make snap buttons snap_gui_commands = get_draft_snap_commands ( ) self . init_draft_snap_buttons ( snap_gui_commands , self . toolbar , "_Button" ) self . restore_snap_buttons_state ( self . toolbar , "_Button" ) if not Draft . getParam ( "showSnapBar" , True ) : self . toolbar . hide ( )