개정판 bd210582
issue #1054 : 스트림 데이타 입력
Change-Id: I16d71bbff6d3b237d1347432424d0761b1f29a55
HYTOS/HYTOS/MainWindow.py | ||
---|---|---|
51 | 51 |
from DisplayColors import DisplayOptions |
52 | 52 |
import uuid |
53 | 53 |
|
54 |
|
|
54 | 55 |
class MainWindow(QMainWindow, MainWindow_UI.Ui_MainWindow, SingletonInstane): |
55 | 56 |
""" This is MainWindow class """ |
56 | 57 |
addMessage = pyqtSignal(Enum, str) |
... | ... | |
111 | 112 |
self.actionInitialize.triggered.connect(self.onInitializeScene) |
112 | 113 |
self.actionOptions.triggered.connect(self.onOptions) |
113 | 114 |
self.actionZoom.triggered.connect(self.onAreaZoom) |
114 |
self.actionFitWindow.triggered.connect(self.fitWindow) |
|
115 |
self.actionFitWindow.triggered.connect(self.fitWindow)
|
|
115 | 116 |
self.graphicsView.scene.selectionChanged.connect(self.onSelectionChanged) |
116 | 117 |
self.addMessage.connect(self.onAddMessage) |
117 | 118 |
|
... | ... | |
122 | 123 |
self.initTreeWidgetDrawingList() |
123 | 124 |
self.initTableWidgetHMB() |
124 | 125 |
self.load_drawing_list() |
125 |
|
|
126 |
|
|
126 | 127 |
self.load_stylesheet_file() |
127 | 128 |
self.load_language_file() |
128 | 129 |
|
... | ... | |
183 | 184 |
self.new_drawing() |
184 | 185 |
|
185 | 186 |
def editDrawingActionClickEvent(self, item): |
186 |
from QDrawingDialog import QDrawingDialog
|
|
187 |
from DrawingDialog import QDrawingDialog |
|
187 | 188 |
|
188 | 189 |
uid = item.text(2) |
189 | 190 |
|
... | ... | |
335 | 336 |
self.tableWidgetHMB.horizontalHeader().setVisible(False) |
336 | 337 |
self.tableWidgetHMB.verticalHeader().setVisible(False) |
337 | 338 |
|
338 |
|
|
339 |
|
|
340 |
|
|
341 | 339 |
''' |
342 | 340 |
@brief Clear TreeWidget and Set Current PID |
343 | 341 |
@author Jeongwoo |
... | ... | |
606 | 604 |
|
607 | 605 |
action.setChecked(True) |
608 | 606 |
|
609 |
|
|
610 | 607 |
def onOptions(self): |
611 | 608 |
from OptionsDialog import QOptionsDialog |
612 | 609 |
|
... | ... | |
678 | 675 |
# A0 size : 841, 1189 |
679 | 676 |
# color : 0, 128, 128 진한 청록 |
680 | 677 |
# color : 255, 255, 255 White |
681 |
img = Image.new('RGBA', (1189, 841), (255, 255, 255)) |
|
678 |
img = Image.new('RGBA', (1189, 841), (255, 255, 255))
|
|
682 | 679 |
img.save(border) |
683 | 680 |
|
684 | 681 |
def load_data(self, drawing): |
... | ... | |
731 | 728 |
@brief create new drawing |
732 | 729 |
@author yeonjin |
733 | 730 |
@date 2019.07.03 |
731 |
|
|
734 | 732 |
''' |
735 | 733 |
def new_drawing(self): |
736 |
from QDrawingDialog import QDrawingDialog
|
|
734 |
from DrawingDialog import QDrawingDialog |
|
737 | 735 |
|
738 | 736 |
dlg = QDrawingDialog(self) |
739 | 737 |
drawingName = dlg.showDialog() |
내보내기 Unified diff