159 EricPixmapCache.getIcon("print"), self.tr("&Print"), self |
159 EricPixmapCache.getIcon("print"), self.tr("&Print"), self |
160 ) |
160 ) |
161 self.printAct.setShortcut(QKeySequence(self.tr("Ctrl+P", "File|Print"))) |
161 self.printAct.setShortcut(QKeySequence(self.tr("Ctrl+P", "File|Print"))) |
162 self.printAct.setStatusTip(self.tr("Print a screen capture")) |
162 self.printAct.setStatusTip(self.tr("Print a screen capture")) |
163 self.printAct.setWhatsThis( |
163 self.printAct.setWhatsThis( |
164 self.tr("""<b>Print</b>""" """<p>Print a screen capture.</p>""") |
164 self.tr("""<b>Print</b><p>Print a screen capture.</p>""") |
165 ) |
165 ) |
166 self.printAct.triggered.connect(self.__printImage) |
166 self.printAct.triggered.connect(self.__printImage) |
167 |
167 |
168 self.printPreviewAct = QAction( |
168 self.printPreviewAct = QAction( |
169 EricPixmapCache.getIcon("printPreview"), self.tr("Print Preview"), self |
169 EricPixmapCache.getIcon("printPreview"), self.tr("Print Preview"), self |
170 ) |
170 ) |
171 self.printPreviewAct.setStatusTip(self.tr("Print preview a screen capture")) |
171 self.printPreviewAct.setStatusTip(self.tr("Print preview a screen capture")) |
172 self.printPreviewAct.setWhatsThis( |
172 self.printPreviewAct.setWhatsThis( |
173 self.tr( |
173 self.tr( |
174 """<b>Print Preview</b>""" """<p>Print preview a screen capture.</p>""" |
174 """<b>Print Preview</b><p>Print preview a screen capture.</p>""" |
175 ) |
175 ) |
176 ) |
176 ) |
177 self.printPreviewAct.triggered.connect(self.__printPreviewImage) |
177 self.printPreviewAct.triggered.connect(self.__printPreviewImage) |
178 |
178 |
179 self.imageAct = QAction( |
179 self.imageAct = QAction( |
193 |
193 |
194 self.exitAct = QAction(EricPixmapCache.getIcon("exit"), self.tr("&Quit"), self) |
194 self.exitAct = QAction(EricPixmapCache.getIcon("exit"), self.tr("&Quit"), self) |
195 self.exitAct.setShortcut(QKeySequence(self.tr("Ctrl+Q", "File|Quit"))) |
195 self.exitAct.setShortcut(QKeySequence(self.tr("Ctrl+Q", "File|Quit"))) |
196 self.exitAct.setStatusTip(self.tr("Quit the application")) |
196 self.exitAct.setStatusTip(self.tr("Quit the application")) |
197 self.exitAct.setWhatsThis( |
197 self.exitAct.setWhatsThis( |
198 self.tr("""<b>Quit</b>""" """<p>Quit the application.</p>""") |
198 self.tr("""<b>Quit</b><p>Quit the application.</p>""") |
199 ) |
199 ) |
200 self.exitAct.triggered.connect(ericApp().closeAllWindows) |
200 self.exitAct.triggered.connect(ericApp().closeAllWindows) |
201 |
201 |
202 self.copyAct = QAction( |
202 self.copyAct = QAction( |
203 EricPixmapCache.getIcon("editCopy"), self.tr("&Copy"), self |
203 EricPixmapCache.getIcon("editCopy"), self.tr("&Copy"), self |
204 ) |
204 ) |
205 self.copyAct.setShortcut(QKeySequence(self.tr("Ctrl+C", "Edit|Copy"))) |
205 self.copyAct.setShortcut(QKeySequence(self.tr("Ctrl+C", "Edit|Copy"))) |
206 self.copyAct.setStatusTip(self.tr("Copy screen capture to clipboard")) |
206 self.copyAct.setStatusTip(self.tr("Copy screen capture to clipboard")) |
207 self.copyAct.setWhatsThis( |
207 self.copyAct.setWhatsThis( |
208 self.tr("""<b>Copy</b>""" """<p>Copy screen capture to clipboard.</p>""") |
208 self.tr("""<b>Copy</b><p>Copy screen capture to clipboard.</p>""") |
209 ) |
209 ) |
210 self.copyAct.triggered.connect(self.__copyImageToClipboard) |
210 self.copyAct.triggered.connect(self.__copyImageToClipboard) |
211 |
211 |
212 self.whatsThisAct = QAction( |
212 self.whatsThisAct = QAction( |
213 EricPixmapCache.getIcon("whatsThis"), self.tr("&What's This?"), self |
213 EricPixmapCache.getIcon("whatsThis"), self.tr("&What's This?"), self |