프로젝트

일반

사용자정보

개정판 948d0b64

ID948d0b644e4a2b2b1dbb9dae4505f7750309041f
상위 edfdc3bc
하위 15067886

함의성이(가) 일년 이상 전에 추가함

line type change context

Change-Id: Icea70e0a5bf851e6aa0e5a014b4a9af84eac9983

차이점 보기:

DTI_PID/DTI_PID/Configuration_UI.py
14 14
class Ui_ConfigurationDialog(object):
15 15
    def setupUi(self, ConfigurationDialog):
16 16
        ConfigurationDialog.setObjectName("ConfigurationDialog")
17
        ConfigurationDialog.resize(768, 871)
17
        ConfigurationDialog.resize(768, 898)
18 18
        font = QtGui.QFont()
19 19
        font.setFamily("맑은 고딕")
20 20
        ConfigurationDialog.setFont(font)
......
1138 1138
        self.label_50.setText(_translate("ConfigurationDialog", "Allowable Pair : "))
1139 1139
        self.label_18.setText(_translate("ConfigurationDialog", "Maximum Text Size : "))
1140 1140
        self.label_20.setText(_translate("ConfigurationDialog", "Expansion Size : "))
1141
        self.label_7.setText(_translate("ConfigurationDialog", "Detected String : "))
1141
        self.label_7.setText(_translate("ConfigurationDialog", "Character WhiteList : "))
1142 1142
        self.label_43.setText(_translate("ConfigurationDialog", "OCR Engine Mode : "))
1143 1143
        self.label_39.setText(_translate("ConfigurationDialog", "Page Segmentations Modes : "))
1144 1144
        self.label_17.setText(_translate("ConfigurationDialog", "Minimum Text Size : "))
DTI_PID/DTI_PID/Shapes/EngineeringLineItem.py
2069 2069
        QGraphicsLineItem.mouseReleaseEvent(self, event)
2070 2070

  
2071 2071
    def contextMenuEvent(self, event):
2072
        from LineTypeConditions import LineTypeConditions
2073

  
2072 2074
        items = self.scene().selectedItems()
2073 2075
        if len(items) > 0 and self in items:
2074 2076
            menu = QMenu()
......
2092 2094
            lineTypeChangeMenu = QMenu(menu)
2093 2095
            lineTypeChangeMenu.setTitle('Change Line Type')
2094 2096

  
2095
            lineTypeSecondaryAction = QAction('Secondary', None)
2096
            lineTypeSecondaryAction.triggered.connect(lambda:self.contextLineType('Secondary'))
2097
            lineTypeChangeMenu.addAction(lineTypeSecondaryAction)
2098

  
2099
            lineTypePrimaryAction = QAction('Primary', None)
2100
            lineTypePrimaryAction.triggered.connect(lambda:self.contextLineType('Primary'))
2101
            lineTypeChangeMenu.addAction(lineTypePrimaryAction)
2102

  
2103
            lineTypeElectricAction = QAction('Electric', None)
2104
            lineTypeElectricAction.triggered.connect(lambda:self.contextLineType('Electric'))
2105
            lineTypeChangeMenu.addAction(lineTypeElectricAction)
2106

  
2107
            lineTypeSoftwareAction = QAction('Software', None)
2108
            lineTypeSoftwareAction.triggered.connect(lambda:self.contextLineType('Software'))
2109
            lineTypeChangeMenu.addAction(lineTypeSoftwareAction)
2110

  
2111
            lineTypeConnectAction = QAction('Connect To Process', None)
2112
            lineTypeConnectAction.triggered.connect(lambda:self.contextLineType('Connect To Process'))
2113
            lineTypeChangeMenu.addAction(lineTypeConnectAction)
2114

  
2115
            lineTypeCapillaryAction = QAction('Capillary', None)
2116
            lineTypeCapillaryAction.triggered.connect(lambda:self.contextLineType('Capillary'))
2117
            lineTypeChangeMenu.addAction(lineTypeCapillaryAction)
2097
            index = 0
2098
            lineTypeActions = []
2099
            for condition in reversed(LineTypeConditions.items()):
2100
                lineTypeActions.append(QAction(condition.name, None))
2101
                lineTypeActions[index].triggered.connect(lambda:self.contextLineType(condition.name))
2102
                lineTypeChangeMenu.addAction(lineTypeActions[index])
2103
                index = index + 1
2118 2104

  
2119 2105
            menu.addMenu(lineTypeChangeMenu)
2120 2106

  
DTI_PID/DTI_PID/UI/Configuration.ui
7 7
    <x>0</x>
8 8
    <y>0</y>
9 9
    <width>768</width>
10
    <height>871</height>
10
    <height>898</height>
11 11
   </rect>
12 12
  </property>
13 13
  <property name="font">
......
388 388
            <item row="1" column="0">
389 389
             <widget class="QLabel" name="label_7">
390 390
              <property name="text">
391
               <string>Detected String : </string>
391
               <string>Character WhiteList : </string>
392 392
              </property>
393 393
             </widget>
394 394
            </item>
......
2280 2280
  </connection>
2281 2281
 </connections>
2282 2282
 <buttongroups>
2283
  <buttongroup name="buttonGroup_3"/>
2284
  <buttongroup name="buttonGroup_8"/>
2285 2283
  <buttongroup name="buttonGroup_10"/>
2286
  <buttongroup name="buttonGroup_11"/>
2287 2284
  <buttongroup name="buttonGroup_15"/>
2288
  <buttongroup name="buttonGroup_9"/>
2285
  <buttongroup name="buttonGroup_12"/>
2286
  <buttongroup name="buttonGroup_8"/>
2289 2287
  <buttongroup name="buttonGroup_6"/>
2288
  <buttongroup name="buttonGroup_14"/>
2290 2289
  <buttongroup name="buttonGroup"/>
2291
  <buttongroup name="buttonGroup_12"/>
2292
  <buttongroup name="buttonGroup_7"/>
2293
  <buttongroup name="buttonGroup_5"/>
2294 2290
  <buttongroup name="buttonGroup_13"/>
2291
  <buttongroup name="buttonGroup_3"/>
2292
  <buttongroup name="buttonGroup_7"/>
2295 2293
  <buttongroup name="buttonGroup_2"/>
2296
  <buttongroup name="buttonGroup_4"/>
2297
  <buttongroup name="buttonGroup_14"/>
2298 2294
  <buttongroup name="buttonGroup_16"/>
2295
  <buttongroup name="buttonGroup_4"/>
2296
  <buttongroup name="buttonGroup_11"/>
2297
  <buttongroup name="buttonGroup_5"/>
2298
  <buttongroup name="buttonGroup_9"/>
2299 2299
 </buttongroups>
2300 2300
</ui>

내보내기 Unified diff

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