Exemple #1
0
    def __init__(self, presenter, parent=None):
        super(TableWorkspaceDisplayView, self).__init__(parent)

        self.presenter = presenter
        self.COPY_ICON = mantidqt.icons.get_icon("mdi.content-copy")
        self.DELETE_ROW = mantidqt.icons.get_icon("mdi.minus-box-outline")

        item_delegate = QStyledItemDelegate(self)
        item_delegate.setItemEditorFactory(PreciseDoubleFactory())
        self.setItemDelegate(item_delegate)

        self.setAttribute(Qt.WA_DeleteOnClose, True)

        self.repaint_signal.connect(self._run_repaint)

        header = self.horizontalHeader()
        header.sectionDoubleClicked.connect(self.handle_double_click)
Exemple #2
0
    def __init__(self, presenter, parent=None):
        super(TableWorkspaceDisplayView, self).__init__(parent)

        self.presenter = presenter
        self.COPY_ICON = mantidqt.icons.get_icon("mdi.content-copy")
        self.DELETE_ROW = mantidqt.icons.get_icon("mdi.minus-box-outline")

        item_delegate = QStyledItemDelegate(self)
        item_delegate.setItemEditorFactory(PreciseDoubleFactory())
        self.setItemDelegate(item_delegate)

        self.setAttribute(Qt.WA_DeleteOnClose, True)

        self.repaint_signal.connect(self._run_repaint)

        header = self.horizontalHeader()
        header.sectionDoubleClicked.connect(self.handle_double_click)
Exemple #3
0
    def __init__(self, presenter, parent=None, name=''):
        super(TableWorkspaceDisplayView, self).__init__(parent)

        self.presenter = presenter
        self.COPY_ICON = mantidqt.icons.get_icon("fa.files-o")
        self.DELETE_ROW = mantidqt.icons.get_icon("fa.minus-square-o")
        self.STATISTICS_ON_ROW = mantidqt.icons.get_icon('fa.fighter-jet')
        self.GRAPH_ICON = mantidqt.icons.get_icon('fa.line-chart')
        self.TBD = mantidqt.icons.get_icon('fa.question')

        item_delegate = QStyledItemDelegate(self)
        item_delegate.setItemEditorFactory(PreciseDoubleFactory())
        self.setItemDelegate(item_delegate)

        self.setWindowTitle("{} - Mantid".format(name))
        self.setWindowFlags(Qt.Window)

        self.resize(600, 400)
        self.show()
Exemple #4
0
    def __init__(self, presenter, parent=None, name=''):
        super(TableWorkspaceDisplayView, self).__init__(parent)

        self.presenter = presenter
        self.COPY_ICON = mantidqt.icons.get_icon("fa.files-o")
        self.DELETE_ROW = mantidqt.icons.get_icon("fa.minus-square-o")
        self.STATISTICS_ON_ROW = mantidqt.icons.get_icon('fa.fighter-jet')
        self.GRAPH_ICON = mantidqt.icons.get_icon('fa.line-chart')
        self.TBD = mantidqt.icons.get_icon('fa.question')

        item_delegate = QStyledItemDelegate(self)
        item_delegate.setItemEditorFactory(PreciseDoubleFactory())
        self.setItemDelegate(item_delegate)

        self.setWindowTitle("{} - Mantid".format(name))
        self.setWindowFlags(Qt.Window)

        self.resize(600, 400)
        self.show()
Exemple #5
0
    def __init__(self, presenter, parent=None):
        super(TableWorkspaceDisplayView, self).__init__(parent)

        self.presenter = presenter
        self.COPY_ICON = mantidqt.icons.get_icon("fa.files-o")
        self.DELETE_ROW = mantidqt.icons.get_icon("fa.minus-square-o")
        self.STATISTICS_ON_ROW = mantidqt.icons.get_icon('fa.fighter-jet')
        self.GRAPH_ICON = mantidqt.icons.get_icon('fa.line-chart')
        self.TBD = mantidqt.icons.get_icon('fa.question')

        item_delegate = QStyledItemDelegate(self)
        item_delegate.setItemEditorFactory(PreciseDoubleFactory())
        self.setItemDelegate(item_delegate)

        self.setAttribute(Qt.WA_DeleteOnClose, True)

        self.repaint_signal.connect(self._run_repaint)

        header = self.horizontalHeader()
        header.sectionDoubleClicked.connect(self.handle_double_click)