프로젝트

일반

사용자정보

개정판 bfb338d6

IDbfb338d6cb3854beea912364f9eed34e4b9f33cf
상위 d8f8739d
하위 5e13eba1

함의성이(가) 약 3년 전에 추가함

redo undo

Change-Id: I9aaba891f971c6ed600035ed3ef4873b557ffa73

차이점 보기:

DTI_PID/DTI_PID/SymbolEditorDialog.py
946 946
        elif event.key() == Qt.Key_Escape:
947 947
            self.reject()
948 948

  
949
    def addImageStack(self):
950
        ''' add image stack '''
951
        self.ui.imageView._image_stack.insert(self.ui.imageView._image_stack_index, self.ui.imageView.image().copy())
952
        self.ui.imageView._image_stack_index = self.ui.imageView._image_stack_index + 1
949 953

  
950 954
    def expandImage(self, event):
951 955
        ''' expand image '''
952
        self.ui.imageView._image_stack.insert(self.ui.imageView._image_stack_index, self.ui.imageView.image().copy())
953
        self.ui.imageView._image_stack_index = self.ui.imageView._image_stack_index + 1
956
        self.addImageStack()
954 957

  
955 958
        image = QImage(int(self.ui.imageView.image().width() * 1.1), int(self.ui.imageView.image().height() * 1.1), self.ui.imageView.image().format())
956 959
        image.fill(Qt.white)
......
1074 1077
    '''
1075 1078

  
1076 1079
    def fitImageToolClickEvent(self, event):
1080
        self.addImageStack()
1081

  
1077 1082
        self.initOriginalAndConnectionPoint()
1078 1083
        self.ui.imageView.command = FitImageCommand.FitImageCommand(self.ui.imageView)
1079 1084
        adjustX, adjustY = self.ui.imageView.command.getOffset()
......
1238 1243
    '''
1239 1244

  
1240 1245
    def removeTextClickEvent(self, event):
1246
        self.addImageStack()
1247
        
1241 1248
        self.ui.imageView.command = RemoveTextCommand.RemoveTextCommand(self.ui.imageView)
1242 1249

  
1243 1250
    '''
......
1260 1267
    '''
1261 1268

  
1262 1269
    def rotateLeftClickEvent(self, event):
1270
        self.addImageStack()
1271

  
1263 1272
        self.initOriginalAndConnectionPoint()
1264 1273
        self.ui.imageView.command = RotateImageCommand.RotateImageCommand(self.ui.imageView, True)
1265 1274
        self.guidelineStateChangedEvent(None)
......
1271 1280
    '''
1272 1281

  
1273 1282
    def rotateRightClickEvent(self, event):
1283
        self.addImageStack()
1284

  
1274 1285
        self.initOriginalAndConnectionPoint()
1275 1286
        self.ui.imageView.command = RotateImageCommand.RotateImageCommand(self.ui.imageView)
1276 1287
        self.guidelineStateChangedEvent(None)
......
1282 1293
    '''
1283 1294

  
1284 1295
    def flipHorizontalClickEvent(self, event):
1296
        self.addImageStack()
1297

  
1285 1298
        self.initOriginalAndConnectionPoint()
1286 1299
        self.ui.imageView.command = FlipImageCommand.FlipImageCommand(self.ui.imageView, horizontal=True,
1287 1300
                                                                      vertical=False)
......
1294 1307
    '''
1295 1308

  
1296 1309
    def flipVerticalClickEvent(self, event):
1310
        self.addImageStack()
1311

  
1297 1312
        self.initOriginalAndConnectionPoint()
1298 1313
        self.ui.imageView.command = FlipImageCommand.FlipImageCommand(self.ui.imageView, horizontal=False,
1299 1314
                                                                      vertical=True)

내보내기 Unified diff

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