Example #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)
Example #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()
Example #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
Example #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
Example #5
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()
Example #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)
Example #7
0
 def __init__(self, parent=None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
Example #8
0
 def __init__(self, parent = None):
     QtGui.QInputDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
Example #9
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.textEditLog.setReadOnly(True)
Example #10
0
 def __init__(self, parent = None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
Example #11
0
 def __init__(self, parent=None):
     QtGui.QDialog.__init__(self, parent)
     PMXBaseDialog.__init__(self)
     self.setupUi(self)
     self.textEditLog.setReadOnly(True)