mirror of
https://github.com/20kaushik02/AUNMS---Network-Monitoring-System.git
synced 2025-12-06 09:04:06 +00:00
Removed unnecessary stuff
This commit is contained in:
parent
4652808d28
commit
487c420d83
@ -100,48 +100,6 @@ class NetworkMonitor(QMainWindow):
|
|||||||
if (self.actionScroll.isChecked() == False):
|
if (self.actionScroll.isChecked() == False):
|
||||||
self.actionScroll.setText('Enable Auto Scroll')
|
self.actionScroll.setText('Enable Auto Scroll')
|
||||||
|
|
||||||
def _createToolBar(self):
|
|
||||||
self.toolbar = QToolBar(self)
|
|
||||||
self.addToolBar(self.toolbar)
|
|
||||||
|
|
||||||
self.toolbar.setStyleSheet('font-size: 9pt')
|
|
||||||
|
|
||||||
self.actionStart = QAction('Start', self)
|
|
||||||
|
|
||||||
self.actionStart.triggered.connect(self.packetSniff)
|
|
||||||
self.toolbar.addAction(self.actionStart)
|
|
||||||
|
|
||||||
self.toolbar.addSeparator()
|
|
||||||
|
|
||||||
self.actionStop = QAction('Stop', self)
|
|
||||||
self.toolbar.addAction(self.actionStop)
|
|
||||||
|
|
||||||
self.toolbar.addSeparator()
|
|
||||||
|
|
||||||
self.actionPickInterface = QAction('Choose Interface', self)
|
|
||||||
self.actionPickInterface.triggered.connect(self.interfaceDialog)
|
|
||||||
self.toolbar.addAction(self.actionPickInterface)
|
|
||||||
|
|
||||||
self.actionClear = QAction('Clear', self)
|
|
||||||
self.actionClear.triggered.connect(self.packetClear)
|
|
||||||
self.toolbar.addAction(self.actionClear)
|
|
||||||
|
|
||||||
self.toolbar.addSeparator()
|
|
||||||
|
|
||||||
self.colorButton = QPushButton("Colors")
|
|
||||||
|
|
||||||
saveMenu = QMenu()
|
|
||||||
saveMenu.addAction('Save as pcap ')
|
|
||||||
saveMenu.addAction('Save as CSV')
|
|
||||||
|
|
||||||
self.colorButton.setMenu(saveMenu)
|
|
||||||
|
|
||||||
self.toolbar.addWidget(self.colorButton)
|
|
||||||
|
|
||||||
self.actionSave = QAction('Save', self)
|
|
||||||
self.actionSave.triggered.connect(self.savePackets)
|
|
||||||
self.toolbar.addAction(self.actionSave)
|
|
||||||
|
|
||||||
def packetSniff(self):
|
def packetSniff(self):
|
||||||
if self.interfaceSelected == None:
|
if self.interfaceSelected == None:
|
||||||
self.interfaceDialog()
|
self.interfaceDialog()
|
||||||
|
|||||||
@ -64,6 +64,9 @@ class NetworkMonitorThread(QObject):
|
|||||||
tableViewPart['Protocol'] = "IP"
|
tableViewPart['Protocol'] = "IP"
|
||||||
else:
|
else:
|
||||||
tableViewPart['Protocol'] = "Other"
|
tableViewPart['Protocol'] = "Other"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
QApplication.processEvents()
|
QApplication.processEvents()
|
||||||
self.packetData.emit((packet, tableViewPart))
|
self.packetData.emit((packet, tableViewPart))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user