3110 ) |
3111 ) |
3111 ) |
3112 ) |
3112 self.webBrowserAct.triggered.connect(self.__startWebBrowser) |
3113 self.webBrowserAct.triggered.connect(self.__startWebBrowser) |
3113 self.actions.append(self.webBrowserAct) |
3114 self.actions.append(self.webBrowserAct) |
3114 |
3115 |
|
3116 if importlib.util.find_spec("fido2"): |
|
3117 self.securityKeyMgmtAct = EricAction( |
|
3118 self.tr("FIDO2 Security Key Management"), |
|
3119 EricPixmapCache.getIcon("securityKey"), |
|
3120 self.tr("FIDO2 Security Key Management..."), |
|
3121 0, |
|
3122 0, |
|
3123 self, |
|
3124 "fido2_security_key_mgmt", |
|
3125 ) |
|
3126 self.securityKeyMgmtAct.setStatusTip( |
|
3127 self.tr("Start the FIDO2 Security Key Management tool") |
|
3128 ) |
|
3129 self.securityKeyMgmtAct.setWhatsThis( |
|
3130 self.tr( |
|
3131 """<b>FIDO2 Security Key Management</b>""" |
|
3132 """<p>Start a tool to manage FIDO2 securit y keys.</p>""" |
|
3133 ) |
|
3134 ) |
|
3135 self.securityKeyMgmtAct.triggered.connect(self.__startFido2SecurityKeyMgmt) |
|
3136 self.actions.append(self.securityKeyMgmtAct) |
|
3137 else: |
|
3138 self.securityKeyMgmtAct = None |
|
3139 |
3115 self.iconEditorAct = EricAction( |
3140 self.iconEditorAct = EricAction( |
3116 self.tr("Icon Editor"), |
3141 self.tr("Icon Editor"), |
3117 EricPixmapCache.getIcon("iconEditor"), |
3142 EricPixmapCache.getIcon("iconEditor"), |
3118 self.tr("&Icon Editor..."), |
3143 self.tr("&Icon Editor..."), |
3119 0, |
3144 0, |
4196 toolstb.addAction(self.hexEditorAct) |
4221 toolstb.addAction(self.hexEditorAct) |
4197 toolstb.addAction(self.iconEditorAct) |
4222 toolstb.addAction(self.iconEditorAct) |
4198 if self.snapshotAct is not None: |
4223 if self.snapshotAct is not None: |
4199 toolstb.addAction(self.snapshotAct) |
4224 toolstb.addAction(self.snapshotAct) |
4200 toolstb.addAction(self.pdfViewerAct) |
4225 toolstb.addAction(self.pdfViewerAct) |
4201 if self.webBrowserAct: |
4226 toolstb.addSeparator() |
4202 toolstb.addSeparator() |
4227 toolstb.addAction(self.webBrowserAct) |
4203 toolstb.addAction(self.webBrowserAct) |
4228 if self.securityKeyMgmtAct is not None: |
|
4229 toolstb.addAction(self.securityKeyMgmtAct) |
4204 self.toolbarManager.addToolBar(toolstb, toolstb.windowTitle()) |
4230 self.toolbarManager.addToolBar(toolstb, toolstb.windowTitle()) |
4205 |
4231 |
4206 # setup the settings toolbar |
4232 # setup the settings toolbar |
4207 settingstb.addAction(self.prefAct) |
4233 settingstb.addAction(self.prefAct) |
4208 settingstb.addAction(self.configViewProfilesAct) |
4234 settingstb.addAction(self.configViewProfilesAct) |
5178 btMenu.addAction(self.hexEditorAct) |
5204 btMenu.addAction(self.hexEditorAct) |
5179 btMenu.addAction(self.iconEditorAct) |
5205 btMenu.addAction(self.iconEditorAct) |
5180 if self.snapshotAct is not None: |
5206 if self.snapshotAct is not None: |
5181 btMenu.addAction(self.snapshotAct) |
5207 btMenu.addAction(self.snapshotAct) |
5182 btMenu.addAction(self.pdfViewerAct) |
5208 btMenu.addAction(self.pdfViewerAct) |
5183 if self.webBrowserAct: |
5209 btMenu.addAction(self.webBrowserAct) |
5184 btMenu.addAction(self.webBrowserAct) |
5210 if self.securityKeyMgmtAct is not None: |
|
5211 btMenu.addAction(self.securityKeyMgmtAct) |
5185 |
5212 |
5186 ptMenu = QMenu(self.tr("&Plugin Tools"), self) |
5213 ptMenu = QMenu(self.tr("&Plugin Tools"), self) |
5187 ptMenu.aboutToShow.connect(self.__showPluginToolsMenu) |
5214 ptMenu.aboutToShow.connect(self.__showPluginToolsMenu) |
5188 |
5215 |
5189 utMenu = QMenu(self.tr("&User Tools"), self) |
5216 utMenu = QMenu(self.tr("&User Tools"), self) |
6267 def __startWebBrowser(self): |
6294 def __startWebBrowser(self): |
6268 """ |
6295 """ |
6269 Private slot to start the eric web browser. |
6296 Private slot to start the eric web browser. |
6270 """ |
6297 """ |
6271 self.launchHelpViewer("") |
6298 self.launchHelpViewer("") |
|
6299 |
|
6300 @pyqtSlot() |
|
6301 def __startFido2SecurityKeyMgmt(self): |
|
6302 """ |
|
6303 Private slot to start the FIDO2 Security Key Management. |
|
6304 """ |
|
6305 fido2Mgmt = os.path.join(os.path.dirname(__file__), "..", "eric7_fido2.py") |
|
6306 QProcess.startDetached( |
|
6307 PythonUtilities.getPythonExecutable(), [fido2Mgmt] |
|
6308 ) |
6272 |
6309 |
6273 def __customViewer(self, home=None): |
6310 def __customViewer(self, home=None): |
6274 """ |
6311 """ |
6275 Private slot to start a custom viewer. |
6312 Private slot to start a custom viewer. |
6276 |
6313 |