프로젝트

일반

사용자정보

개정판 dc19cfb0

IDdc19cfb0f45752644eb8453a51447d1d709cf345
상위 76f6af86
하위 e34969f1, cef4ab69

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

issue #1066: 도움말 개정

Change-Id: If568f740ae2f6b6298d7ef4d6ff50b32bd563ba1

차이점 보기:

App.spec
7 7
             binaries=[],
8 8
             datas=[('.\\HYTOS\\HYTOS\\*.qss', '.'),
9 9
             ('.\\*.BMP', '.'),
10
			 ('.\\HYTOS\\HYTOS\\*.pdf', '.'),
10 11
             ('.\\HYTOS\\HYTOS\\db\\*.db', 'db'),
11 12
			 ('.\\HYTOS\\HYTOS\\Templates\\*.xlsx', 'Templates'),
12 13
             ('.\\HYTOS\\HYTOS\\translate\\*.qm', 'translate'),
HYTOS.wxs
267 267
				</Extension>
268 268
			</ProgId>
269 269
          </Component>
270
		  <Component Id="cmpB8E978DD56144E4B88BF1359B34C068D" Directory="INSTALLFOLDER" Guid="A083963E-F5D0-4B44-9244-EBBE9CB6887B">
271
              <File Id="filB908E34D1EDD4B48A551B153D649C835" KeyPath="yes" Source=".\dist\App\HYTOS User Manual.pdf" />
272
          </Component>
270 273
          <Component Id="cmp902FFA1C97E044FD95577D72BD8C6C8C" Directory="INSTALLFOLDER" Guid="6D156D98-D4B0-437A-A830-2760FEAF6017">
271 274
              <File Id="filDB3BE1403B2FFDBB11871A7C505502A8" KeyPath="yes" Source=".\dist\App\HYTOS.exe.manifest" />
272 275
          </Component>
HYTOS/HYTOS/MainWindow.py
115 115
            self.actionZoom.triggered.connect(self.onAreaZoom)
116 116
            self.actionFitWindow.triggered.connect(self.fitWindow)
117 117
            self.actionSymbol_Editor.triggered.connect(self.showSymbolEditor)
118
            self.actionHelp.triggered.connect(self.on_help)
118 119
            self.actionAbout.triggered.connect(self.on_about)
119 120
            self.toolButton_ClearLog.clicked.connect(self.clearlogs)
120 121
            self.graphicsView.scene.selectionChanged.connect(self.onSelectionChanged)
......
796 797
        dlg = QSymbolEditorDialog()
797 798
        dlg.exec_()
798 799

  
800
    def on_help(self):
801
        """open user manual"""
802
        import os
803

  
804
        try:
805
            help_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'HYTOS User Manual.pdf')
806
            os.system(f"\"{help_file_path}\"")
807
        except Exception as ex:
808
            message = 'error occurred({}) in {}:{}'.format(ex, sys.exc_info()[-1].tb_frame.f_code.co_filename,
809
                                                           sys.exc_info()[-1].tb_lineno)
810
            self.addMessage.emit(MessageType.Error, message)
811

  
812

  
799 813
    def on_about(self):
800 814
        """show about dialog"""
801 815
        from AboutDialog import QAboutDialog
HYTOS/HYTOS/MainWindow_UI.py
214 214
        font.setWeight(75)
215 215
        self.actionGenerateReport.setFont(font)
216 216
        self.actionGenerateReport.setObjectName("actionGenerateReport")
217
        self.actionEquipment_Data_List = QtWidgets.QAction(MainWindow)
218
        font = QtGui.QFont()
219
        font.setFamily("맑은 고딕")
220
        font.setBold(True)
221
        font.setWeight(75)
222
        self.actionEquipment_Data_List.setFont(font)
223
        self.actionEquipment_Data_List.setObjectName("actionEquipment_Data_List")
224
        self.actionItem_Data_List = QtWidgets.QAction(MainWindow)
225
        font = QtGui.QFont()
226
        font.setFamily("맑은 고딕")
227
        font.setBold(False)
228
        font.setWeight(50)
229
        self.actionItem_Data_List.setFont(font)
230
        self.actionItem_Data_List.setObjectName("actionItem_Data_List")
231
        self.actionInstrument_Data_List = QtWidgets.QAction(MainWindow)
232
        font = QtGui.QFont()
233
        font.setFamily("맑은 고딕")
234
        font.setBold(True)
235
        font.setWeight(75)
236
        self.actionInstrument_Data_List.setFont(font)
237
        self.actionInstrument_Data_List.setObjectName("actionInstrument_Data_List")
238 217
        self.actionInitialize = QtWidgets.QAction(MainWindow)
239 218
        icon7 = QtGui.QIcon()
240 219
        icon7.addPixmap(QtGui.QPixmap(":/images/Reset.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
......
271 250
        font.setWeight(50)
272 251
        self.actionFitWindow.setFont(font)
273 252
        self.actionFitWindow.setObjectName("actionFitWindow")
274
        self.actionpdf_to_image = QtWidgets.QAction(MainWindow)
275
        font = QtGui.QFont()
276
        font.setFamily("맑은 고딕")
277
        self.actionpdf_to_image.setFont(font)
278
        self.actionpdf_to_image.setObjectName("actionpdf_to_image")
279 253
        self.actionSave = QtWidgets.QAction(MainWindow)
280 254
        icon10 = QtGui.QIcon()
281 255
        icon10.addPixmap(QtGui.QPixmap(":/images/Save.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
......
289 263
        icon11.addPixmap(QtGui.QPixmap(":/newPrefix/Rotate_Minus.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
290 264
        self.actionRotate.setIcon(icon11)
291 265
        self.actionRotate.setObjectName("actionRotate")
292
        self.actionFindReplaceText = QtWidgets.QAction(MainWindow)
293
        self.actionFindReplaceText.setObjectName("actionFindReplaceText")
294
        self.actionReplaceText = QtWidgets.QAction(MainWindow)
295
        font = QtGui.QFont()
296
        font.setFamily("맑은 고딕")
297
        self.actionReplaceText.setFont(font)
298
        self.actionReplaceText.setObjectName("actionReplaceText")
299
        self.actionOCR_Training = QtWidgets.QAction(MainWindow)
300
        self.actionOCR_Training.setObjectName("actionOCR_Training")
301
        self.actionOCR_Training_Editor = QtWidgets.QAction(MainWindow)
302
        self.actionOCR_Training_Editor.setObjectName("actionOCR_Training_Editor")
303 266
        self.actioncoffee = QtWidgets.QAction(MainWindow)
304 267
        self.actioncoffee.setObjectName("actioncoffee")
305 268
        self.actionEnglish = QtWidgets.QAction(MainWindow)
......
310 273
        self.actionViewInconsistency.setObjectName("actionViewInconsistency")
311 274
        self.actionText_Data_List = QtWidgets.QAction(MainWindow)
312 275
        self.actionText_Data_List.setObjectName("actionText_Data_List")
313
        self.actionDrawing_Only = QtWidgets.QAction(MainWindow)
314
        self.actionDrawing_Only.setCheckable(True)
315
        self.actionDrawing_Only.setObjectName("actionDrawing_Only")
316 276
        self.actionNew = QtWidgets.QAction(MainWindow)
317 277
        icon12 = QtGui.QIcon()
318 278
        icon12.addPixmap(QtGui.QPixmap(":/images/New.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
......
370 330
        self.actionSymbol_Editor.setObjectName("actionSymbol_Editor")
371 331
        self.actionAbout = QtWidgets.QAction(MainWindow)
372 332
        self.actionAbout.setObjectName("actionAbout")
333
        self.actionHelp = QtWidgets.QAction(MainWindow)
334
        self.actionHelp.setObjectName("actionHelp")
373 335
        self.toolBar.addAction(self.actionNew)
374 336
        self.toolBar.addAction(self.actionOpen)
375 337
        self.toolBar.addAction(self.actionSave)
......
399 361
        self.menuTool.addSeparator()
400 362
        self.menuTool.addAction(self.actionOptions)
401 363
        self.menuTool.addSeparator()
364
        self.menuHelp.addAction(self.actionHelp)
365
        self.menuHelp.addSeparator()
402 366
        self.menuHelp.addAction(self.actionAbout)
403 367
        self.menubar.addAction(self.menu.menuAction())
404 368
        self.menubar.addAction(self.menu_3.menuAction())
......
436 400
        self.actionGenerateReport.setText(_translate("MainWindow", "Report"))
437 401
        self.actionGenerateReport.setToolTip(_translate("MainWindow", "Report"))
438 402
        self.actionGenerateReport.setShortcut(_translate("MainWindow", "Ctrl+Shift+R"))
439
        self.actionEquipment_Data_List.setText(_translate("MainWindow", "Equipment Data List"))
440
        self.actionItem_Data_List.setText(_translate("MainWindow", "Engineering Info. List"))
441
        self.actionInstrument_Data_List.setText(_translate("MainWindow", "Instrument Data List"))
442 403
        self.actionInitialize.setText(_translate("MainWindow", "Clear Screen"))
443 404
        self.actionInitialize.setToolTip(_translate("MainWindow", "Clear Screen"))
444 405
        self.actionImage_Drawing.setText(_translate("MainWindow", "Image Drawing (1)"))
......
447 408
        self.actionFitWindow.setText(_translate("MainWindow", "Fit"))
448 409
        self.actionFitWindow.setIconText(_translate("MainWindow", "Fit"))
449 410
        self.actionFitWindow.setToolTip(_translate("MainWindow", "Fit"))
450
        self.actionpdf_to_image.setText(_translate("MainWindow", "Convert PDF"))
451 411
        self.actionSave.setText(_translate("MainWindow", "Save"))
452 412
        self.actionSave.setToolTip(_translate("MainWindow", "Save"))
453 413
        self.actionSave.setShortcut(_translate("MainWindow", "Ctrl+S"))
454 414
        self.actionRotate.setText(_translate("MainWindow", "Rotate"))
455 415
        self.actionRotate.setToolTip(_translate("MainWindow", "Rotate(Ctrl + R)"))
456 416
        self.actionRotate.setShortcut(_translate("MainWindow", "Ctrl+R"))
457
        self.actionFindReplaceText.setText(_translate("MainWindow", "Find/Replace"))
458
        self.actionFindReplaceText.setToolTip(_translate("MainWindow", "Fine/Replace"))
459
        self.actionReplaceText.setText(_translate("MainWindow", "Modify Text"))
460
        self.actionOCR_Training.setText(_translate("MainWindow", "OCR Training"))
461
        self.actionOCR_Training_Editor.setText(_translate("MainWindow", "OCR Training Editor"))
462 417
        self.actioncoffee.setText(_translate("MainWindow", "coffee"))
463 418
        self.actionEnglish.setText(_translate("MainWindow", "English"))
464 419
        self.actionViewInconsistency.setText(_translate("MainWindow", "Inconsistency (6)"))
465 420
        self.actionText_Data_List.setText(_translate("MainWindow", "Text Data List"))
466
        self.actionDrawing_Only.setText(_translate("MainWindow", "Drawing Only ( ` )"))
467 421
        self.actionNew.setText(_translate("MainWindow", "New..."))
468 422
        self.actionNew.setIconText(_translate("MainWindow", "New"))
469 423
        self.actionNew.setToolTip(_translate("MainWindow", "New"))
......
480 434
        self.actionSymbolEditor_2.setText(_translate("MainWindow", "Symbol Editor"))
481 435
        self.actionSymbol_Editor.setText(_translate("MainWindow", "Symbol Editor"))
482 436
        self.actionAbout.setText(_translate("MainWindow", "About"))
437
        self.actionHelp.setText(_translate("MainWindow", "Help"))
438
        self.actionHelp.setToolTip(_translate("MainWindow", "Help"))
439
        self.actionHelp.setShortcut(_translate("MainWindow", "F1"))
483 440
import Resource_rc
HYTOS/HYTOS/UI/MainWindow.ui
316 316
    <property name="title">
317 317
     <string>Help</string>
318 318
    </property>
319
    <addaction name="actionHelp"/>
320
    <addaction name="separator"/>
319 321
    <addaction name="actionAbout"/>
320 322
   </widget>
321 323
   <addaction name="menu"/>
......
419 421
    <string>Ctrl+Shift+R</string>
420 422
   </property>
421 423
  </action>
422
  <action name="actionEquipment_Data_List">
423
   <property name="text">
424
    <string>Equipment Data List</string>
425
   </property>
426
   <property name="font">
427
    <font>
428
     <family>맑은 고딕</family>
429
     <weight>75</weight>
430
     <bold>true</bold>
431
    </font>
432
   </property>
433
  </action>
434
  <action name="actionItem_Data_List">
435
   <property name="text">
436
    <string>Engineering Info. List</string>
437
   </property>
438
   <property name="font">
439
    <font>
440
     <family>맑은 고딕</family>
441
     <weight>50</weight>
442
     <bold>false</bold>
443
    </font>
444
   </property>
445
  </action>
446
  <action name="actionInstrument_Data_List">
447
   <property name="text">
448
    <string>Instrument Data List</string>
449
   </property>
450
   <property name="font">
451
    <font>
452
     <family>맑은 고딕</family>
453
     <weight>75</weight>
454
     <bold>true</bold>
455
    </font>
456
   </property>
457
  </action>
458 424
  <action name="actionInitialize">
459 425
   <property name="icon">
460 426
    <iconset resource="../res/Resource.qrc">
......
532 498
    </font>
533 499
   </property>
534 500
  </action>
535
  <action name="actionpdf_to_image">
536
   <property name="text">
537
    <string>Convert PDF</string>
538
   </property>
539
   <property name="font">
540
    <font>
541
     <family>맑은 고딕</family>
542
    </font>
543
   </property>
544
  </action>
545 501
  <action name="actionSave">
546 502
   <property name="icon">
547 503
    <iconset resource="../res/Resource.qrc">
......
577 533
    <string>Ctrl+R</string>
578 534
   </property>
579 535
  </action>
580
  <action name="actionFindReplaceText">
581
   <property name="text">
582
    <string>Find/Replace</string>
583
   </property>
584
   <property name="toolTip">
585
    <string>Fine/Replace</string>
586
   </property>
587
  </action>
588
  <action name="actionReplaceText">
589
   <property name="text">
590
    <string>Modify Text</string>
591
   </property>
592
   <property name="font">
593
    <font>
594
     <family>맑은 고딕</family>
595
    </font>
596
   </property>
597
  </action>
598
  <action name="actionOCR_Training">
599
   <property name="text">
600
    <string>OCR Training</string>
601
   </property>
602
  </action>
603
  <action name="actionOCR_Training_Editor">
604
   <property name="text">
605
    <string>OCR Training Editor</string>
606
   </property>
607
  </action>
608 536
  <action name="actioncoffee">
609 537
   <property name="text">
610 538
    <string>coffee</string>
......
631 559
    <string>Text Data List</string>
632 560
   </property>
633 561
  </action>
634
  <action name="actionDrawing_Only">
635
   <property name="checkable">
636
    <bool>true</bool>
637
   </property>
638
   <property name="text">
639
    <string>Drawing Only ( ` )</string>
640
   </property>
641
  </action>
642 562
  <action name="actionNew">
643 563
   <property name="icon">
644 564
    <iconset resource="../res/Resource.qrc">
......
766 686
    <string>About</string>
767 687
   </property>
768 688
  </action>
689
  <action name="actionHelp">
690
   <property name="text">
691
    <string>Help</string>
692
   </property>
693
   <property name="toolTip">
694
    <string>Help</string>
695
   </property>
696
   <property name="shortcut">
697
    <string>F1</string>
698
   </property>
699
  </action>
769 700
 </widget>
770 701
 <resources>
771 702
  <include location="../res/Resource.qrc"/>
HYTOSx86.wxs
151 151
					</Extension>
152 152
				</ProgId>
153 153
			  </Component>
154
			  <Component Id="cmpB8E978DD56144E4B88BF1359B34C068D" Directory="INSTALLFOLDER" Guid="A083963E-F5D0-4B44-9244-EBBE9CB6887B">
155
				  <File Id="filB908E34D1EDD4B48A551B153D649C835" KeyPath="yes" Source=".\dist\App\HYTOS User Manual.pdf" />
156
			  </Component>
154 157
			  <Component Id="cmp902FFA1C97E044FD95577D72BD8C6C8C" Directory="INSTALLFOLDER" Guid="6D156D98-D4B0-437A-A830-2760FEAF6017">
155 158
				  <File Id="filDB3BE1403B2FFDBB11871A7C505502A8" KeyPath="yes" Source=".\dist\App\HYTOS.exe.manifest" />
156 159
			  </Component>

내보내기 Unified diff

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