Example #1
0
    def initVars(self):
        self._fpath = qt.qlineedit()()
        self._fpath.setMaxLength(128)

        self._proc_tree = qt.qtreewidget()()
        self._proc_tree.setColumnCount(2)
        self._proc_tree.setHeaderLabels(("PID", "ProcName"))
        self._proc_tree.setColumnWidth(0, 100)
Example #2
0
    def initVars(self):
        self._fpath = qt.qlineedit()()
        self._fpath.setMaxLength(128)

        self._proc_tree = qt.qtreewidget()()
        self._proc_tree.setColumnCount(2)
        self._proc_tree.setHeaderLabels(("PID", "ProcName"))
        self._proc_tree.setColumnWidth(0, 100)
Example #3
0
    def initVars(self):
        self._fpath = qt.qlineedit()()
        self._fpath.setMaxLength(128)

        self._proc_tree = qt.qtreewidget()()
        self._proc_tree.setColumnCount(2)
        self._proc_tree.setHeaderLabels(("PID", "ProcName"))
        self._proc_tree.setColumnWidth(0, 100)
        self._proc_tree.itemDoubleClicked.connect(self.parent.loadProcessData)
Example #4
0
 def initLayout(self):
     call_table_layout = qt.qvboxlayout()()
     filter_layout = qt.qhboxlayout()()
     markup_layout = qt.qhboxlayout()()
     markup_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     markup_layout.addWidget(qt.qlabel()("Choose Color: "))
     markup_layout.addWidget(self._color_button)
     markup_layout.addWidget(qt.qlabel()("Choose Function Color: "))
     markup_layout.addWidget(self._func_color_button)
     markup_layout.addWidget(qt.qlabel()("\t\t\tMarkup: "))
     markup_category_button = qt.qpushbutton()("Selected")
     markup_category_button.clicked.connect(self.markupCategories)
     markup_all_button = qt.qpushbutton()("All")
     markup_all_button.clicked.connect(self.markupAll)
     markup_remove_button = qt.qpushbutton()("Remove")
     markup_remove_button.clicked.connect(self.removeAllMarkup)
     markup_layout.addWidget(markup_category_button)
     markup_layout.addWidget(markup_all_button)
     markup_layout.addWidget(markup_remove_button)
     call_table_layout.addLayout(markup_layout)
     self._checkbox_layout = qt.qhboxlayout()()
     self._checkbox_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     self._checkbox_layout.addWidget(qt.qlabel()("Categories: "))
     call_table_layout.addLayout(self._checkbox_layout)
     self._filter_box = qt.qlineedit()()
     self._filter_box.setMaxLength(80)
     _filter_button = qt.qpushbutton()("Filter")
     _filter_button.clicked.connect(self.filterCallData)
     filter_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     filter_layout.addWidget(qt.qlabel()("Select: "))
     b_all = qt.qpushbutton()("All")
     width = b_all.fontMetrics().boundingRect("All").width() + 9
     b_all.setMaximumWidth(width)
     b_all.clicked.connect(self.selectAll)
     b_none = qt.qpushbutton()("None")
     width = b_all.fontMetrics().boundingRect("None").width() + 9
     b_none.setMaximumWidth(width)
     b_none.clicked.connect(self.selectNone)
     filter_layout.addWidget(b_all)
     filter_layout.addWidget(b_none)
     filter_layout.addWidget(qt.qlabel()("Filter Calls: "))
     filter_layout.addWidget(self._filter_box)
     filter_layout.addWidget(_filter_button)
     call_table_layout.addLayout(filter_layout)
     call_table_layout.addWidget(self._call_table)
     self.setLayout(call_table_layout)
Example #5
0
 def initLayout(self):
     call_table_layout = qt.qvboxlayout()()
     filter_layout = qt.qhboxlayout()()
     markup_layout = qt.qhboxlayout()()
     markup_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     markup_layout.addWidget(qt.qlabel()("Choose Color: "))
     markup_layout.addWidget(self._color_button)
     markup_layout.addWidget(qt.qlabel()("Choose Function Color: "))
     markup_layout.addWidget(self._func_color_button)
     markup_layout.addWidget(qt.qlabel()("\t\t\tMarkup: "))
     markup_category_button = qt.qpushbutton()("Selected")
     markup_category_button.clicked.connect(self.markupCategories)
     markup_all_button = qt.qpushbutton()("All")
     markup_all_button.clicked.connect(self.markupAll)
     markup_remove_button = qt.qpushbutton()("Remove")
     markup_remove_button.clicked.connect(self.removeAllMarkup)
     markup_layout.addWidget(markup_category_button)
     markup_layout.addWidget(markup_all_button)
     markup_layout.addWidget(markup_remove_button)
     call_table_layout.addLayout(markup_layout)
     self._checkbox_layout = qt.qhboxlayout()()
     self._checkbox_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     self._checkbox_layout.addWidget(qt.qlabel()("Categories: "))
     call_table_layout.addLayout(self._checkbox_layout)
     self._filter_box = qt.qlineedit()()
     self._filter_box.setMaxLength(80)
     _filter_button = qt.qpushbutton()("Filter")
     _filter_button.clicked.connect(self.filterCallData)
     filter_layout.setAlignment(qt.qtcore().Qt.AlignLeft)
     filter_layout.addWidget(qt.qlabel()("Select: "))
     b_all = qt.qpushbutton()("All")
     width = b_all.fontMetrics().boundingRect("All").width() + 9
     b_all.setMaximumWidth(width)
     b_all.clicked.connect(self.selectAll)
     b_none = qt.qpushbutton()("None")
     width = b_all.fontMetrics().boundingRect("None").width() + 9
     b_none.setMaximumWidth(width)
     b_none.clicked.connect(self.selectNone)
     filter_layout.addWidget(b_all)
     filter_layout.addWidget(b_none)
     filter_layout.addWidget(qt.qlabel()("Filter Calls: "))
     filter_layout.addWidget(self._filter_box)
     filter_layout.addWidget(_filter_button)
     call_table_layout.addLayout(filter_layout)
     call_table_layout.addWidget(self._call_table)
     self.setLayout(call_table_layout)