docs: def setCurrentMode( self, mode ):
          """
          Sets the current mode for this dialog to the inputed mode.
          
          :param      mode | <XPopupWidget.Mode>
          """
          if ( self._currentMode == mode ):
              return
          
          self._currentMode = mode
          self.updateModeSettings()