프로젝트

일반

사용자정보

개정판 07a3bf60

ID07a3bf60174ec0fc1b847558aed9478a4d892a02
상위 1780bab7
하위 04751150

백흠경이(가) 5년 이상 전에 추가함

issue #000: revised - fixed HYTOS.wxs because upgrade Qt5

Change-Id: I2ef74b406ac34cc690f40119bc0363e28bd96f0c

차이점 보기:

HYTOS.wxs
455 455
          <Component Id="cmp9EBE7E5AA0738F241C38A1C1FF37CAD8" Directory="dir914A01B3B214416F60D72AA18E9BBCCA" Guid="09501646-43D4-4C22-88E0-F69B2F2DC1C3">
456 456
              <File Id="filB6CB6AEE7423AD5028889C2DBAFC2602" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\bin\opengl32sw.dll" />
457 457
          </Component>
458
          <Component Id="cmp452C431355FDF7635AD2B87895504656" Directory="dir914A01B3B214416F60D72AA18E9BBCCA" Guid="F84EA63B-5C43-4582-91F7-CC18C434A399">
459
              <File Id="fil346EAA222286A20FAB167DFC5FC82C52" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\bin\qt.conf" />
460
          </Component>
461 458
          <Component Id="cmp04EAA49C1E8AEBEBB3995418B1EB3271" Directory="dirF14F277BC07DC53255A0BDF58742A2C6" Guid="C171D9FC-F12D-4613-8B6A-A03E87BA2CD8">
462 459
              <File Id="fil1FD30001B1674EF4A8B88D1DE66685E0" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\plugins\iconengines\qsvgicon.dll" />
463 460
          </Component>
......
501 498
              <File Id="filA46E00E0F9391642E2BB8073CAB70B84" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\plugins\platforms\qwindows.dll" />
502 499
          </Component>
503 500
          <Component Id="cmp1D7FEDAA83AD8E7523A461B7E5A539BA" Directory="dir47E1267F9B45FEDC6FBA5AC6631D80CE" Guid="2881E8E4-C910-4CB4-9BE7-AC80DE505605">
504
              <File Id="filF61C00A49463DACFFD4EF2459E109BF7" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\plugins\platformthemes\qflatpak.dll" />
501
              <File Id="filF61C00A49463DACFFD4EF2459E109BF7" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\plugins\platformthemes\qxdgdesktopportal.dll" />
505 502
          </Component>
506 503
          <Component Id="cmpFDCC2409B9E3FC5DCAC663D97CFB1CF6" Directory="dirAB97E2B27F74C723FBC0D156D4743212" Guid="D3F21497-3351-4887-B6B2-4BF53C4BCE4F">
507 504
              <File Id="fil044B4E6B91A32335B9AF084B58ADA1EB" KeyPath="yes" Source=".\dist\App\PyQt5\Qt\plugins\styles\qwindowsvistastyle.dll" />
HYTOS/HYTOS/MainWindow.py
76 76
        self.setupUi(self)
77 77
        self._label_mouse = QLabel(self.statusbar)
78 78
        self._label_mouse.setText(self.tr('mouse pos : ({},{})'.format(0,0)))
79
        self.labelStatus = QLabel(self.statusbar)
80
        self.labelStatus.setText(self.tr('Unrecognition : '))
81
        self.labelSymbolStatus = QLabel(self.statusbar)
82
        self.labelSymbolStatus.setText(self.tr('Symbol : '))
83
        self.labelLineStatus = QLabel(self.statusbar)
84
        self.labelLineStatus.setText(self.tr('Line : '))
85
        self.labelTextStatus = QLabel(self.statusbar)
86
        self.labelTextStatus.setText(self.tr('Text : '))
87 79
        self.statusbar.addWidget(self._label_mouse)
88
        self.statusbar.addPermanentWidget(self.labelSymbolStatus)
89
        self.statusbar.addPermanentWidget(self.labelLineStatus)
90
        self.statusbar.addPermanentWidget(self.labelTextStatus)
91
        self.statusbar.addPermanentWidget(self.labelStatus) 
92 80
        self.showMaximized()
93 81

  
94 82
        docData = AppDocData.instance()
......
151 139

  
152 140
        self.actionFitWindow.triggered.connect(self.fitWindow)
153 141
        self.actionCreate_Symbol.triggered.connect(self.create_symbol)
154
        self.graphicsView.scene.contents_changed.connect(self.onSceneChanged)
155 142
        self.graphicsView.scene.selectionChanged.connect(self.onSelectionChanged)
156 143
        self.actionInitialize.triggered.connect(self.onInitializeScene)
157 144
        self.addMessage.connect(self.onAddMessage)
......
183 170
        self.treeWidgetDrawingList.setContextMenuPolicy(Qt.CustomContextMenu)
184 171
        self.treeWidgetDrawingList.customContextMenuRequested.connect(self.openContextMenu)
185 172

  
186
        
187

  
188

  
189 173
    def openContextMenu(self, position):
190 174
        indexes = self.treeWidgetDrawingList.selectedIndexes()
191 175
        if len(indexes) > 0:
......
457 441
            self.open_border_file()
458 442
            self.load_data(item.text(0))
459 443

  
460
    '''
461
        @brief      show unknownitem's count
462
        @author     humkyung
463
        @date       2018.08.23
464
        @history    humkyung 2018.08.30 display count of symbol, line, text
465
    '''
466
    def onSceneChanged(self):
467
        items = [item for item in self.graphicsView.scene.items() if type(item) is QEngineeringUnknownItem]
468
        if len(items) > 0:
469
            self.labelStatus.setText("<font color='red'>" + self.tr('Unrecognition') + " : {}</font>".format(len(items)))
470
        else:
471
            self.labelStatus.setText("<font color='black'>" + self.tr('Unrecognition') + " : {}</font>".format(len(items)))
472

  
473
        items = [item for item in self.graphicsView.scene.items() if issubclass(type(item), SymbolSvgItem) and type(item) is not QEngineeringErrorItem]
474
        self.labelSymbolStatus.setText("<font color='blue'>" + self.tr('Symbol') + " : {}</font>".format(len(items)))
475
                                                                                   
476
        items = [item for item in self.graphicsView.scene.items() if type(item) is QEngineeringLineItem]
477
        self.labelLineStatus.setText("<font color='blue'>" + self.tr('Line') + " : {}</font>".format(len(items)))
478

  
479
        items = [item for item in self.graphicsView.scene.items() if issubclass(type(item), QEngineeringTextItem)]
480
        self.labelTextStatus.setText("<font color='blue'>" + self.tr('Text') + " : {}</font>".format(len(items)))
481

  
482 444
    def dbUpdate(self):
483 445
        '''
484 446
            @brief      db update when save or recognition

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)