1020 self.tr("Are you sure you want to close the window?"), |
1020 self.tr("Are you sure you want to close the window?"), |
1021 self.tr("""Are you sure you want to close the window?\n""" |
1021 self.tr("""Are you sure you want to close the window?\n""" |
1022 """You have %n tab(s) open.""", "", self.count()), |
1022 """You have %n tab(s) open.""", "", self.count()), |
1023 modal=True, |
1023 modal=True, |
1024 parent=self) |
1024 parent=self) |
1025 if self.__mainWindow.fromEric: |
1025 quitButton = mb.addButton( |
1026 quitButton = mb.addButton( |
1026 self.tr("&Quit"), E5MessageBox.AcceptRole) |
1027 self.tr("&Close"), E5MessageBox.AcceptRole) |
1027 quitButton.setIcon(UI.PixmapCache.getIcon("exit.png")) |
1028 quitButton.setIcon(UI.PixmapCache.getIcon("close.png")) |
|
1029 else: |
|
1030 quitButton = mb.addButton( |
|
1031 self.tr("&Quit"), E5MessageBox.AcceptRole) |
|
1032 quitButton.setIcon(UI.PixmapCache.getIcon("exit.png")) |
|
1033 closeTabButton = mb.addButton( |
1028 closeTabButton = mb.addButton( |
1034 self.tr("C&lose Current Tab"), E5MessageBox.AcceptRole) |
1029 self.tr("C&lose Current Tab"), E5MessageBox.AcceptRole) |
1035 closeTabButton.setIcon(UI.PixmapCache.getIcon("tabClose.png")) |
1030 closeTabButton.setIcon(UI.PixmapCache.getIcon("tabClose.png")) |
1036 mb.addButton(E5MessageBox.Cancel) |
1031 mb.addButton(E5MessageBox.Cancel) |
1037 mb.exec_() |
1032 mb.exec_() |