244 "", |
244 "", |
245 self.tr("Eric Graphics File (*.egj);;" |
245 self.tr("Eric Graphics File (*.egj);;" |
246 "Eric Text Graphics File (*.e5g);;" |
246 "Eric Text Graphics File (*.e5g);;" |
247 "All Files (*)"), |
247 "All Files (*)"), |
248 "", |
248 "", |
249 E5FileDialog.Options(E5FileDialog.DontConfirmOverwrite)) |
249 E5FileDialog.DontConfirmOverwrite) |
250 if not fname: |
250 if not fname: |
251 return |
251 return |
252 ext = QFileInfo(fname).suffix() |
252 ext = QFileInfo(fname).suffix() |
253 if not ext: |
253 if not ext: |
254 ex = selectedFilter.split("(*")[1].split(")")[0] |
254 ex = selectedFilter.split("(*")[1].split(")")[0] |
551 if msg: |
551 if msg: |
552 res = E5MessageBox.warning( |
552 res = E5MessageBox.warning( |
553 self, |
553 self, |
554 self.tr("Load Diagram"), |
554 self.tr("Load Diagram"), |
555 msg, |
555 msg, |
556 E5MessageBox.StandardButtons( |
556 E5MessageBox.Abort | E5MessageBox.Ignore, |
557 E5MessageBox.Abort | |
|
558 E5MessageBox.Ignore), |
|
559 E5MessageBox.Abort) |
557 E5MessageBox.Abort) |
560 if res == E5MessageBox.Abort: |
558 if res == E5MessageBox.Abort: |
561 return False |
559 return False |
562 else: |
560 else: |
563 self.umlView.setLayoutActionsEnabled(False) |
561 self.umlView.setLayoutActionsEnabled(False) |