2463 pluginstb.addAction(self.pluginDeinstallAct) |
2463 pluginstb.addAction(self.pluginDeinstallAct) |
2464 pluginstb.addSeparator() |
2464 pluginstb.addSeparator() |
2465 pluginstb.addAction(self.pluginRepoAct) |
2465 pluginstb.addAction(self.pluginRepoAct) |
2466 self.toolbarManager.addToolBar(pluginstb, pluginstb.windowTitle()) |
2466 self.toolbarManager.addToolBar(pluginstb, pluginstb.windowTitle()) |
2467 |
2467 |
|
2468 # add the various toolbars |
2468 self.addToolBar(filetb) |
2469 self.addToolBar(filetb) |
2469 self.addToolBar(edittb) |
2470 self.addToolBar(edittb) |
2470 self.addToolBar(searchtb) |
2471 self.addToolBar(searchtb) |
2471 self.addToolBar(quicksearchtb) |
2472 self.addToolBar(quicksearchtb) |
2472 self.addToolBar(viewtb) |
2473 self.addToolBar(viewtb) |
2473 self.addToolBar(starttb) |
2474 self.addToolBar(starttb) |
2474 self.addToolBar(debugtb) |
2475 self.addToolBar(debugtb) |
2475 self.addToolBar(multiprojecttb) |
2476 self.addToolBar(multiprojecttb) |
2476 self.addToolBar(projecttb) |
2477 self.addToolBar(projecttb) |
2477 self.addToolBar(toolstb) |
2478 self.addToolBar(Qt.RightToolBarArea, settingstb) |
|
2479 self.addToolBar(Qt.RightToolBarArea, toolstb) |
2478 self.addToolBar(helptb) |
2480 self.addToolBar(helptb) |
2479 self.addToolBar(settingstb) |
|
2480 self.addToolBar(bookmarktb) |
2481 self.addToolBar(bookmarktb) |
2481 self.addToolBar(spellingtb) |
2482 self.addToolBar(spellingtb) |
2482 self.addToolBar(unittesttb) |
2483 self.addToolBar(unittesttb) |
2483 self.addToolBar(profilestb) |
2484 self.addToolBar(profilestb) |
2484 self.addToolBar(pluginstb) |
2485 self.addToolBar(pluginstb) |
|
2486 |
|
2487 # hide toolbars not wanted in the initial layout |
|
2488 searchtb.hide() |
|
2489 quicksearchtb.hide() |
|
2490 viewtb.hide() |
|
2491 debugtb.hide() |
|
2492 multiprojecttb.hide() |
|
2493 helptb.hide() |
|
2494 spellingtb.hide() |
|
2495 unittesttb.hide() |
|
2496 pluginstb.hide() |
2485 |
2497 |
2486 # just add new toolbars to the end of the list |
2498 # just add new toolbars to the end of the list |
2487 self.__toolbars = {} |
2499 self.__toolbars = {} |
2488 self.__toolbars["file"] = [filetb.windowTitle(), filetb] |
2500 self.__toolbars["file"] = [filetb.windowTitle(), filetb] |
2489 self.__toolbars["edit"] = [edittb.windowTitle(), edittb] |
2501 self.__toolbars["edit"] = [edittb.windowTitle(), edittb] |
2500 self.__toolbars["view_profiles"] = [profilestb.windowTitle(), profilestb] |
2512 self.__toolbars["view_profiles"] = [profilestb.windowTitle(), profilestb] |
2501 self.__toolbars["plugins"] = [pluginstb.windowTitle(), pluginstb] |
2513 self.__toolbars["plugins"] = [pluginstb.windowTitle(), pluginstb] |
2502 self.__toolbars["quicksearch"] = [quicksearchtb.windowTitle(), quicksearchtb] |
2514 self.__toolbars["quicksearch"] = [quicksearchtb.windowTitle(), quicksearchtb] |
2503 self.__toolbars["multiproject"] = [multiprojecttb.windowTitle(), multiprojecttb] |
2515 self.__toolbars["multiproject"] = [multiprojecttb.windowTitle(), multiprojecttb] |
2504 self.__toolbars["spelling"] = [spellingtb.windowTitle(), spellingtb] |
2516 self.__toolbars["spelling"] = [spellingtb.windowTitle(), spellingtb] |
|
2517 |
|
2518 def __initDebugToolbarsLayout(self): |
|
2519 """ |
|
2520 Private slot to initialize the toolbars layout for the debug profile. |
|
2521 """ |
|
2522 # Step 1: set the edit profile to be sure |
|
2523 self.__setEditProfile() |
|
2524 |
|
2525 # Step 2: switch to debug profile and do the layout |
|
2526 initSize = self.size() |
|
2527 self.setDebugProfile() |
|
2528 self.__toolbars["project"][1].hide() |
|
2529 self.__toolbars["debug"][1].show() |
|
2530 self.resize(initSize) |
|
2531 |
|
2532 # Step 3: switch back to edit profile |
|
2533 self.__setEditProfile() |
2505 |
2534 |
2506 def __initStatusbar(self): |
2535 def __initStatusbar(self): |
2507 """ |
2536 """ |
2508 Private slot to set up the status bar. |
2537 Private slot to set up the status bar. |
2509 """ |
2538 """ |
5614 """ |
5643 """ |
5615 Public method to check, if eric5 has been configured. If it is not, |
5644 Public method to check, if eric5 has been configured. If it is not, |
5616 the configuration dialog is shown. |
5645 the configuration dialog is shown. |
5617 """ |
5646 """ |
5618 if not Preferences.isConfigured(): |
5647 if not Preferences.isConfigured(): |
|
5648 self.__initDebugToolbarsLayout() |
|
5649 |
5619 E5MessageBox.information(self, |
5650 E5MessageBox.information(self, |
5620 self.trUtf8("First time usage"), |
5651 self.trUtf8("First time usage"), |
5621 self.trUtf8("""eric5 has not been configured yet. """ |
5652 self.trUtf8("""eric5 has not been configured yet. """ |
5622 """The configuration dialog will be started.""")) |
5653 """The configuration dialog will be started.""")) |
5623 self.showPreferences() |
5654 self.showPreferences() |