Ejemplo n.º 1
0
    def init(self):
        titleBar = self.titleBarWidget()

        self.__state_filter = CheckableComboBox("Task States",
                                                constants.TASK_STATES,
                                                parent=self)
        self.__layer_filter = CheckableComboBox("Layers", [], parent=self)

        titleBar.addWidget(self.__state_filter)
        titleBar.addWidget(self.__layer_filter)

        self.__state_filter.optionSelected.connect(self.__stateFilterChanged)
        self.__layer_filter.optionSelected.connect(self.__layerFilterChanged)
Ejemplo n.º 2
0
    def init(self):
        titleBar = self.titleBarWidget() 
        titleBar.addAction(QtGui.QIcon(":/images/locked.png"), 
                                       "Lock Selected Nodes", 
                                       partial(self.__setNodesLocked, True))

        titleBar.addAction(QtGui.QIcon(":/images/unlocked.png"), 
                                       "Unlock Selected Nodes", 
                                       partial(self.__setNodesLocked, False))

        self.__cluster_filter = CheckableComboBox("Clusters", [], parent=self)
        titleBar.addWidget(self.__cluster_filter)
        self.__cluster_filter.optionSelected.connect(self.__clusterFilterChanged)