Toggles whether or not the sub progress bar should be visible.
        
        :param      state | <bool>
192053
def setShowSubProgress( self, state ):
        
        ajax = self.currentMode() == XLoaderWidget.Mode.Spinner
        self._showSubProgress = state
        self._subProgressBar.setVisible(not ajax and state)
852420
private void applyFullImageState(float position, boolean isLeaving) {
        views.fullBackground.setVisibility(position == 0f ? View.INVISIBLE : View.VISIBLE);
        views.fullBackground.setAlpha(position);

        views.fullImageToolbar.setVisibility(position == 0f ? View.INVISIBLE : View.VISIBLE);
        views.fullImageToolbar.setAlpha(position);

        views.fullImage.setVisibility(position == 0f && isLeaving
                ? View.INVISIBLE : View.VISIBLE);
    }
64816
def on_save_as(self):
        
        self.tabWidget.save_current_as()
        self._update_status_bar(self.tabWidget.current_widget())
816685
def setConfigurable(self, state):
        
        self._configurable = state
        self._configButton.setVisible(state)
989346
private void updateVisibility(A_CmsSitemapMenuEntry entry) {

        if (entry.getSubMenu() != null) {
            for (I_CmsContextMenuEntry subItem : entry.getSubMenu()) {
                updateVisibility((A_CmsSitemapMenuEntry)subItem);
            }
        }
        entry.onShow();
    }
1341623
def setVisible( self, state ):
        
        super(XMessageBox, self).setVisible(state)
        
        if ( state ):
            self.startTimer(100)
            self.layout().setSizeConstraint(QLayout.SetNoConstraint)
            self.resize( self.width() + 100, self.height() )
406026
function (state) {

            if (typeof state === 'boolean') {
                return state ? this.show() : this.hide();
            }
            this.each(function () {
                if (isHidden(this)) {
                    showHide(this, true);
                } else {
                    showHide(this);
                }
            });
            return this;
        }
238849
def show_progress(self):
        
        from pyemma import config
        # no value yet, obtain from config
        if not hasattr(self, "_show_progress"):
            val = config.show_progress_bars
            self._show_progress = val
        # config disabled progress?
        elif not config.show_progress_bars:
            return False

        return self._show_progress
993762
public void showValidationInProgress() {
        validationIcon.setValue(null);
        validationIcon.addStyleName("show-status-label");
        validationIcon.setStyleName(SPUIStyleDefinitions.TARGET_FILTER_SEARCH_PROGRESS_INDICATOR_STYLE);
    }
940364
def setLocked(self, state, force=False):
        
        if not force and state == self._locked:
            return
        
        self._locked = state
        tabbar = self.tabBar()
        tabbar.setLocked(state)
        if self.hideTabsWhenLocked():
            tabbar.setVisible(self.count() > 1 or not state)
        else:
            tabbar.setVisible(True)

        if tabbar.isVisible():
            self.setContentsMargins(6, tabbar.height(), 6, 6)
        else:
            self.setContentsMargins(1, 1, 1, 1)

        self.adjustSizeConstraint()
767758
def is_state(self, status):
        
        if status == self.state:
            return True
        # Now low status
        if status == 'o' and self.state == u'UP':
            return True
        if status == 'd' and self.state == u'DOWN':
            return True
        if status in ['u', 'x'] and self.state == u'UNREACHABLE':
            return True
        return False
1130682
def do_status_progress(p, hide=False):
  
  p.start(10)

  for i in range(1, 60):
    p.progress_inc(new_status="count %s" % i)
    time.sleep(0.1)

  p.stop(hide_progress=hide, new_status="done")
391749
def on_state_changed(self, state):
        
        if state:
            self.editor.painted.connect(self._paint_margin)
            self.editor.repaint()
        else:
            self.editor.painted.disconnect(self._paint_margin)
            self.editor.repaint()
856428
def visible(self, status):
        """"""
        self._display_control = ByteUtil.apply_flag(self._display_control, Command.DISPLAY_ON, status)
        self.command(self._display_control)
714459
def show_waiting(self, wait_msg):
        
        self.wait_msg = wait_msg
        self.set_state(ProgressBar.STATE_WAITING)
        self.show()
1333085
def apply_statusbar_settings(self):
        """"""
        show_status_bar = CONF.get('main', 'show_status_bar')
        self.statusBar().setVisible(show_status_bar)

        if show_status_bar:
            for widget, name in ((self.mem_status, 'memory_usage'),
                                 (self.cpu_status, 'cpu_usage')):
                if widget is not None:
                    widget.setVisible(CONF.get('main', '%s/enable' % name))
                    widget.set_interval(CONF.get('main', '%s/timeout' % name))
        else:
            return
1131339
def setVisible( self, state ):
        
        self._visible = state
        
        super(XNode, self).setVisible(self.isVisible())
        
        self.dispatch.visibilityChanged.emit(state)
        self.setDirty()