add icon
remove unused menu
This commit is contained in:
parent
a49fb5f81c
commit
5b3b790269
@ -89,7 +89,7 @@ class RateSetPlugin(BasicPlugin):
|
|||||||
def set_action(self):
|
def set_action(self):
|
||||||
self.action = QAction(IconInstance().VECTOR, '变化阈值设定', self.mainwindow)
|
self.action = QAction(IconInstance().VECTOR, '变化阈值设定', self.mainwindow)
|
||||||
self.action.triggered.connect(self.show_dialog)
|
self.action.triggered.connect(self.show_dialog)
|
||||||
ActionManager().position_menu.addAction(self.action)
|
ActionManager().postop_menu.addAction(self.action)
|
||||||
|
|
||||||
def show_dialog(self):
|
def show_dialog(self):
|
||||||
dialog=RateSetdialog(self.mainwindow)
|
dialog=RateSetdialog(self.mainwindow)
|
||||||
|
@ -61,7 +61,7 @@ class EvalutationDialog(QDialog):
|
|||||||
|
|
||||||
self.button_layout = QHBoxLayout()
|
self.button_layout = QHBoxLayout()
|
||||||
self.button_layout.addWidget(self.ok_button,0,alignment=Qt.AlignHCenter)
|
self.button_layout.addWidget(self.ok_button,0,alignment=Qt.AlignHCenter)
|
||||||
self.button_layout.addLayout(self.cancel_button,0,alignment=Qt.AlignHCenter)
|
self.button_layout.addWidget(self.cancel_button,0,alignment=Qt.AlignHCenter)
|
||||||
|
|
||||||
self.main_layout = QVBoxLayout()
|
self.main_layout = QVBoxLayout()
|
||||||
self.main_layout.addLayout(hbox1)
|
self.main_layout.addLayout(hbox1)
|
||||||
@ -97,7 +97,7 @@ class EvaluationPlugin(BasicPlugin):
|
|||||||
def set_action(self):
|
def set_action(self):
|
||||||
self.action = QAction(IconInstance().EVALUATION, '精度评估', self.mainwindow)
|
self.action = QAction(IconInstance().EVALUATION, '精度评估', self.mainwindow)
|
||||||
self.action.triggered.connect(self.show_dialog)
|
self.action.triggered.connect(self.show_dialog)
|
||||||
ActionManager().evaluation_menu.addAction(self.action)
|
ActionManager().postop_menu.addAction(self.action)
|
||||||
|
|
||||||
def run_alg(self, layer:SingleBandRasterLayer, gt):
|
def run_alg(self, layer:SingleBandRasterLayer, gt):
|
||||||
if layer is None or gt is None:
|
if layer is None or gt is None:
|
||||||
|
@ -6,6 +6,7 @@ from filter_collection import FILTER
|
|||||||
from PyQt5.QtWidgets import QDialog, QAction
|
from PyQt5.QtWidgets import QDialog, QAction
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
from rscder.utils.project import PairLayer, Project, RasterLayer, ResultPointLayer
|
from rscder.utils.project import PairLayer, Project, RasterLayer, ResultPointLayer
|
||||||
|
from rscder.utils.icons import IconInstance
|
||||||
import os
|
import os
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
@ -18,7 +19,7 @@ class MeanFilter(AlgFrontend):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_icon():
|
def get_icon():
|
||||||
return None
|
return IconInstance().ARITHMETIC2
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_widget(parent=None):
|
def get_widget(parent=None):
|
||||||
|
@ -67,9 +67,9 @@ class ActionManager(QtCore.QObject):
|
|||||||
self.seg_chagne_detec_menu = menubar.addMenu('&分类后变化检测')
|
self.seg_chagne_detec_menu = menubar.addMenu('&分类后变化检测')
|
||||||
self.postop_menu = menubar.addMenu( '&检测后处理')
|
self.postop_menu = menubar.addMenu( '&检测后处理')
|
||||||
|
|
||||||
self.noise_menu = self.postop_menu.addMenu(IconInstance().NOISE,'&噪声处理')
|
# self.noise_menu = self.postop_menu.addMenu(IconInstance().NOISE,'&噪声处理')
|
||||||
self.position_menu = self.postop_menu.addMenu(IconInstance().LOCATION,'&变化位置估计')
|
# self.position_menu = self.postop_menu.addMenu(IconInstance().LOCATION,'&变化位置估计')
|
||||||
self.evaluation_menu = self.postop_menu.addMenu(IconInstance().EVALUATION,'&定量评价')
|
# self.evaluation_menu = self.postop_menu.addMenu(IconInstance().EVALUATION,'&定量评价')
|
||||||
self.export_menu = self.postop_menu.addMenu(IconInstance().DOCUMENT,'&结果导出')
|
self.export_menu = self.postop_menu.addMenu(IconInstance().DOCUMENT,'&结果导出')
|
||||||
|
|
||||||
self.view_menu = menubar.addMenu('&视图')
|
self.view_menu = menubar.addMenu('&视图')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user