예제 #1
0
파일: calls.py 프로젝트: wflk/idataco
 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)
예제 #2
0
파일: calls.py 프로젝트: jjo-sec/idataco
 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)
예제 #3
0
파일: loader.py 프로젝트: jjo-sec/idataco
 def initLayout(self):
     loader_vlayout = qt.qvboxlayout()()
     loader_hlayout = qt.qhboxlayout()()
     loader_hlayout.addWidget(qt.qlabel()("JSON File"))
     b = qt.qpushbutton()("Open File")
     b1 = qt.qpushbutton()("Process File")
     b.clicked.connect(self.getFileName)
     b1.clicked.connect(self.loadJsonFile)
     loader_hlayout.addWidget(self._fpath)
     loader_hlayout.addWidget(b)
     loader_hlayout.addWidget(b1)
     loader_vlayout.addLayout(loader_hlayout)
     #loader_hlayout2 = QtGui.QHBoxLayout()
     b2 = qt.qpushbutton()("Load Data for Selected Process")
     b2.clicked.connect(self.parent.loadProcessData)
     loader_vlayout.addWidget(b2)
     loader_vlayout.addWidget(self._proc_tree)
     self.setLayout(loader_vlayout)
예제 #4
0
파일: calls.py 프로젝트: wflk/idataco
 def getTacoTab(self):
     taco_tab = qt.qwidget()()
     layout = qt.qhboxlayout()()
     layout.addWidget(self)
     taco_tab.setLayout(layout)
     return taco_tab, self.name
예제 #5
0
파일: calls.py 프로젝트: jjo-sec/idataco
 def getTacoTab(self):
     taco_tab = qt.qwidget()()
     layout = qt.qhboxlayout()()
     layout.addWidget(self)
     taco_tab.setLayout(layout)
     return taco_tab, self.name