Exemple #1
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.filesTableModel = FilesTableModel(self)
     self.tableViewFiles.setModel(self.filesTableModel)
     self.tableViewFiles.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
     self.tableViewFiles.customContextMenuRequested.connect(self.showTableViewFilesContextMenu)
     self.tableViewFiles.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
     self.tableViewFiles.horizontalHeader().setResizeMode(1, QtGui.QHeaderView.Stretch)
     
     #Setup Context Menu
     selectMenu = { 
         "title": "Select Menu",
         "items": [
             {   'text': 'Choose All',
                 'callback': lambda dialog: dialog.chooseAll(),
             },
             {   'text': 'Choose None',
                 'callback': lambda dialog: dialog.chooseNone(),
             },
             {   'text': 'Revert to Default Choices',
                 'callback': lambda dialog: dialog.revertChoices(),
             },
         ]
     }
     
     self.selectMenu, _ = create_menu(self, selectMenu, connectActions = True)
     self.toolButtonSelect.setMenu(self.selectMenu)
Exemple #2
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.model = RevisionModel(self)
     self.tableViewRevision.setModel(self.model)
     self.tableViewRevision.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows)
     self.tableViewRevision.verticalHeader().hide()
Exemple #3
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.progressAnimate = False
     self.animateTimer = QtCore.QTimer(self)
     self.animateTimer.timeout.connect(self.updateProgressValue)
     self.currentProgressValue = 0
     self.milestoneProgressValue = 0
Exemple #4
0
 def __init__(self, parent=None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.progressAnimate = False
     self.animateTimer = QtCore.QTimer(self)
     self.animateTimer.timeout.connect(self.updateProgressValue)
     self.currentProgressValue = 0
     self.milestoneProgressValue = 0
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)
        PMXBaseDialog.__init__(self)
        self.setupUi(self)

        self.currentRepository = None

        self.workerThread = GithubBundleSearchThread(self)
        self.model = RepositoryTableModel(self)
        self.proxy = RepositoryProxyTableModel()
        self.proxy.setSourceModel(self.model)

        self.buttonSearch.setEnabled(False)
        self.buttonOk.setEnabled(False)
        self.widgetInfo.setVisible(False)

        self.workerThread.dataUpdate.connect(self.on_workerThread_recordsFound)
        self.workerThread.connectionError.connect(self.on_workerThread_connectionError)
        self.workerThread.finished.connect(self.on_workerThread_finished)
        self.model.dataChanged.connect(self.on_model_dataChanged)

        self.setupTableView()
        self.loadComboBoxNamespace()
Exemple #6
0
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)
        PMXBaseDialog.__init__(self)
        self.setupUi(self)
        self.filesTableModel = FilesTableModel(self)
        self.tableViewFiles.setModel(self.filesTableModel)
        self.tableViewFiles.setContextMenuPolicy(QtCore.Qt.CustomContextMenu)
        self.tableViewFiles.customContextMenuRequested.connect(
            self.showTableViewFilesContextMenu)
        self.tableViewFiles.setSelectionBehavior(
            QtGui.QAbstractItemView.SelectRows)
        self.tableViewFiles.horizontalHeader().setResizeMode(
            1, QtGui.QHeaderView.Stretch)

        #Setup Context Menu
        selectMenu = {
            "title":
            "Select Menu",
            "items": [
                {
                    'text': 'Choose All',
                    'callback': lambda dialog: dialog.chooseAll(),
                },
                {
                    'text': 'Choose None',
                    'callback': lambda dialog: dialog.chooseNone(),
                },
                {
                    'text': 'Revert to Default Choices',
                    'callback': lambda dialog: dialog.revertChoices(),
                },
            ]
        }

        self.selectMenu, _ = create_menu(self, selectMenu, connectActions=True)
        self.toolButtonSelect.setMenu(self.selectMenu)
Exemple #7
0
 def __init__(self, parent=None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
 def __init__(self, parent = None):
     QtGui.QInputDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
Exemple #9
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.textEditLog.setReadOnly(True)
Exemple #10
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
Exemple #11
0
 def __init__(self, parent=None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.textEditLog.setReadOnly(True)