425 self.dirMenu.popup(self.mapToGlobal(coord)) |
425 self.dirMenu.popup(self.mapToGlobal(coord)) |
426 else: |
426 else: |
427 self.backMenu.popup(self.mapToGlobal(coord)) |
427 self.backMenu.popup(self.mapToGlobal(coord)) |
428 else: |
428 else: |
429 self.backMenu.popup(self.mapToGlobal(coord)) |
429 self.backMenu.popup(self.mapToGlobal(coord)) |
430 except Exception: |
430 except Exception: # secok |
431 pass |
431 pass |
432 |
432 |
433 def __showContextMenu(self): |
433 def __showContextMenu(self): |
434 """ |
434 """ |
435 Private slot called by the menu aboutToShow signal. |
435 Private slot called by the menu aboutToShow signal. |
513 # hook support |
513 # hook support |
514 if self.hooks["open"] is not None: |
514 if self.hooks["open"] is not None: |
515 self.hooks["open"](itm.fileName()) |
515 self.hooks["open"](itm.fileName()) |
516 else: |
516 else: |
517 self.designerFile.emit(itm.fileName()) |
517 self.designerFile.emit(itm.fileName()) |
518 except Exception: |
518 except Exception: # secok |
519 pass |
519 pass |
520 |
520 |
521 def __openFileInEditor(self): |
521 def __openFileInEditor(self): |
522 """ |
522 """ |
523 Private slot to handle the Open in Editor menu action. |
523 Private slot to handle the Open in Editor menu action. |