Creates the MainFrame's menu bar.

@return the menu bar for the MainFrame
175626
JMenuBar createMainMenuBar() {
        JMenuBar menuBar = new JMenuBar();

        // Create JMenus for menuBar.
        JMenu fileMenu = newJMenu("menu.file_menu", "File");
        fileMenu.setMnemonic(KeyEvent.VK_F);
        JMenu editMenu = newJMenu("menu.edit_menu", "Edit");
        editMenu.setMnemonic(KeyEvent.VK_E);

        // Edit fileMenu JMenu object.
        JMenuItem openMenuItem = newJMenuItem("menu.open_item", "Open...", KeyEvent.VK_O);
        recentMenu = newJMenu("menu.recent_menu", "Recent");
        recentMenuCache = new RecentMenu(recentMenu);
        saveAsMenuItem = newJMenuItem("menu.saveas_item", "Save As...", KeyEvent.VK_A);
        JMenuItem importFilter = newJMenuItem("menu.importFilter_item", "Import bug filters...");
        JMenuItem exportFilter = newJMenuItem("menu.exportFilter_item", "Export bug filters...");

        JMenuItem exitMenuItem = null;
        if (!MainFrame.MAC_OS_X) {
            exitMenuItem = newJMenuItem("menu.exit", "Exit", KeyEvent.VK_X);
            exitMenuItem.addActionListener(evt -> mainFrame.callOnClose());
        }
        JMenu windowMenu = mainFrame.getGuiLayout().createWindowMenu();

        JMenuItem newProjectMenuItem = null;
        if (!FindBugs.isNoAnalysis()) {
            newProjectMenuItem = newJMenuItem("menu.new_item", "New Project", KeyEvent.VK_N);

            attachAcceleratorKey(newProjectMenuItem, KeyEvent.VK_N);

            newProjectMenuItem.addActionListener(evt -> mainFrame.createNewProjectFromMenuItem());
        }

        reconfigMenuItem.setEnabled(false);
        attachAcceleratorKey(reconfigMenuItem, KeyEvent.VK_F);
        reconfigMenuItem.addActionListener(evt -> new NewProjectWizard(mainFrame.getCurProject()));

        JMenuItem mergeMenuItem = newJMenuItem("menu.mergeAnalysis", "Merge Analysis...");

        mergeMenuItem.setEnabled(true);
        mergeMenuItem.addActionListener(evt -> mainFrame.getMainFrameLoadSaveHelper().mergeAnalysis());

        if (!FindBugs.isNoAnalysis()) {
            redoAnalysis = newJMenuItem("menu.rerunAnalysis", "Redo Analysis", KeyEvent.VK_R);

            redoAnalysis.setEnabled(false);
            attachAcceleratorKey(redoAnalysis, KeyEvent.VK_R);
            redoAnalysis.addActionListener(evt -> mainFrame.redoAnalysis());
        }
        closeProjectItem = newJMenuItem("menu.closeProject", "Close Project");
        closeProjectItem.addActionListener(e -> {
            mainFrame.getMainFrameLoadSaveHelper().closeProject();
            mainFrame.clearBugCollection();
        });
        closeProjectItem.setEnabled(false);


        openMenuItem.setEnabled(true);
        attachAcceleratorKey(openMenuItem, KeyEvent.VK_O);
        openMenuItem.addActionListener(evt -> mainFrame.getMainFrameLoadSaveHelper().open());

        saveAsMenuItem.addActionListener(evt -> mainFrame.getMainFrameLoadSaveHelper().saveAs());
        exportFilter.addActionListener(evt -> mainFrame.getMainFrameLoadSaveHelper().exportFilter());
        importFilter.addActionListener(evt -> mainFrame.getMainFrameLoadSaveHelper().importFilter());
        saveMenuItem.setEnabled(false);
        attachAcceleratorKey(saveMenuItem, KeyEvent.VK_S);
        saveMenuItem.addActionListener(evt -> mainFrame.getMainFrameLoadSaveHelper().save());

        if (!FindBugs.isNoAnalysis()) {
            fileMenu.add(newProjectMenuItem);
        }

        fileMenu.add(openMenuItem);
        fileMenu.add(recentMenu);
        fileMenu.addSeparator();
        fileMenu.add(saveAsMenuItem);
        fileMenu.add(saveMenuItem);
        fileMenu.addSeparator();
        fileMenu.add(reconfigMenuItem);
        if (!FindBugs.isNoAnalysis()) {
            fileMenu.add(redoAnalysis);
        }

        fileMenu.addSeparator();
        fileMenu.add(closeProjectItem);
        // fileMenu.add(mergeMenuItem);
        fileMenu.addSeparator();
        fileMenu.add(importFilter);
        fileMenu.add(exportFilter);

        if (exitMenuItem != null) {
            fileMenu.addSeparator();
            fileMenu.add(exitMenuItem);
        }

        menuBar.add(fileMenu);

        // Edit editMenu Menu object.
        JMenuItem cutMenuItem = new JMenuItem(new CutAction());
        JMenuItem copyMenuItem = new JMenuItem(new CopyAction());
        JMenuItem pasteMenuItem = new JMenuItem(new PasteAction());
        preferencesMenuItem = newJMenuItem("menu.preferences_menu", "Preferences...");
        groupByMenuItem = newJMenuItem("menu.sortConfiguration", "Sort Configuration...");
        JMenuItem goToLineMenuItem = newJMenuItem("menu.gotoLine", "Go to line...");

        attachAcceleratorKey(cutMenuItem, KeyEvent.VK_X);
        attachAcceleratorKey(copyMenuItem, KeyEvent.VK_C);
        attachAcceleratorKey(pasteMenuItem, KeyEvent.VK_V);

        preferencesMenuItem.addActionListener(evt -> mainFrame.preferences());

        groupByMenuItem.addActionListener(evt -> {
            SorterDialog.getInstance().setLocationRelativeTo(mainFrame);
            SorterDialog.getInstance().setVisible(true);
        });

        attachAcceleratorKey(goToLineMenuItem, KeyEvent.VK_L);
        goToLineMenuItem.addActionListener(evt -> {
            mainFrame.getGuiLayout().makeSourceVisible();
            try {
                int num = Integer.parseInt(JOptionPane.showInputDialog(mainFrame, "",
                        L10N.getLocalString("dlg.go_to_line_lbl", "Go To Line") + ":", JOptionPane.QUESTION_MESSAGE));
                mainFrame.getSourceCodeDisplayer().showLine(num);
            } catch (NumberFormatException e) {
            }
        });

        editMenu.add(cutMenuItem);
        editMenu.add(copyMenuItem);
        editMenu.add(pasteMenuItem);
        editMenu.addSeparator();
        editMenu.add(goToLineMenuItem);
        editMenu.addSeparator();
        // editMenu.add(selectAllMenuItem);
        // editMenu.addSeparator();
        if (!MainFrame.MAC_OS_X) {
            // Preferences goes in Findbugs menu and is handled by OSXAdapter
            editMenu.add(preferencesMenuItem);
        }

        menuBar.add(editMenu);

        if (windowMenu != null) {
            menuBar.add(windowMenu);
        }

        viewMenu = newJMenu("menu.view_menu", "View");
        setViewMenu();
        menuBar.add(viewMenu);

        final ActionMap map = mainFrame.getMainFrameTree().getTree().getActionMap();

        JMenu navMenu = newJMenu("menu.navigation", "Navigation");

        addNavItem(map, navMenu, "menu.expand", "Expand", "expand", KeyEvent.VK_RIGHT);
        addNavItem(map, navMenu, "menu.collapse", "Collapse", "collapse", KeyEvent.VK_LEFT);
        addNavItem(map, navMenu, "menu.up", "Up", "selectPrevious", KeyEvent.VK_UP);
        addNavItem(map, navMenu, "menu.down", "Down", "selectNext", KeyEvent.VK_DOWN);

        menuBar.add(navMenu);

        if (!MainFrame.MAC_OS_X) {
            // On Mac, 'About' appears under Findbugs menu, so no need for it
            // here
            JMenu helpMenu = newJMenu("menu.help_menu", "Help");
            JMenuItem aboutItem = newJMenuItem("menu.about_item", "About SpotBugs");
            helpMenu.add(aboutItem);

            aboutItem.addActionListener(evt -> mainFrame.about());

            menuBar.add(helpMenu);
        }
        return menuBar;
    }
1345656
public Canvas getViewPanel() {
		VLayout mainLayout = new VLayout();
		mainLayout.setWidth100();
		mainLayout.setHeight100();
		mainLayout.setBackgroundColor("#A0A0A0");

		HLayout layout = new HLayout();
		layout.setWidth100();
		layout.setHeight100();
		layout.setMembersMargin(10);
		layout.setMargin(10);

		// ---------------------------------------------------------------------
		// Create the left-side (map and tabs):
		// ---------------------------------------------------------------------
		final MapWidget map = new MapWidget("mapRasterizingMain", "appRasterizing");
		final Toolbar toolbar = new Toolbar(map, WidgetLayout.toolbarLargeButtonSize);
		toolbar.setBackgroundColor("#647386");
		toolbar.setBackgroundImage("");
		toolbar.setBorder("0px");

		map.getMapModel().addMapModelChangedHandler(new MapModelChangedHandler() {

			public void onMapModelChanged(MapModelChangedEvent event) {
				// switch all labels on
				for (Layer layer : map.getMapModel().getLayers()) {
					layer.setLabeled(true);
				}
			}
		});

		map.getMapModel().addLayerSelectionHandler(new LayerSelectionHandler() {

			public void onSelectLayer(LayerSelectedEvent event) {
				for (Layer layer : map.getMapModel().getLayers()) {
					if (layer.isSelected()) {
						layer.setVisible(true);
					} else {
						layer.setVisible(false);
					}
				}
			}

			public void onDeselectLayer(LayerDeselectedEvent event) {
			}
		});

		VLayout mapLayout = new VLayout();
		mapLayout.addMember(toolbar);
		mapLayout.addMember(map);
		mapLayout.setHeight("65%");

		VLayout leftLayout = new VLayout();
		leftLayout.setBorder("10px solid #777777");
		leftLayout.setStyleName("round_corner");
		leftLayout.addMember(mapLayout);

		layout.addMember(leftLayout);

		// ---------------------------------------------------------------------
		// Create the right-side (overview map, layer-tree, legend):
		// ---------------------------------------------------------------------
		final SectionStack sectionStack = new SectionStack();
		sectionStack.setBorder("10px solid #777777");
		sectionStack.setStyleName("round_corner");
		sectionStack.setVisibilityMode(VisibilityMode.MULTIPLE);
		sectionStack.setCanReorderSections(true);
		sectionStack.setCanResizeSections(false);
		sectionStack.setSize("250px", "100%");

		// Overview map layout:
		SectionStackSection section1 = new SectionStackSection("Overview map");
		section1.setExpanded(true);
		OverviewMap overviewMap = new OverviewMap("mapRasterizingOverview", "appRasterizing", map, false, true);
		overviewMap.setTargetMaxExtentRectangleStyle(new ShapeStyle("#888888", 0.3f, "#666666", 0.75f, 2));
		overviewMap.setRectangleStyle(new ShapeStyle("#6699FF", 0.3f, "#6699CC", 1f, 2));
		section1.addItem(overviewMap);
		sectionStack.addSection(section1);

		// LayerTree layout:
		SectionStackSection section2 = new SectionStackSection("Layer tree");
		section2.setExpanded(true);
		LayerTree layerTree = new LayerTree(map);
		section2.addItem(layerTree);
		sectionStack.addSection(section2);

		// Legend layout:
		SectionStackSection section3 = new SectionStackSection("Legend");
		section3.setExpanded(true);
		Legend legend = new Legend(map.getMapModel());
		legend.setBackgroundColor("#FFFFFF");
		section3.addItem(legend);
		sectionStack.addSection(section3);

		// Putting the right side layouts together:
		layout.addMember(sectionStack);

		// ---------------------------------------------------------------------
		// Finally draw everything:
		// ---------------------------------------------------------------------
		mainLayout.addMember(layout);
		mainLayout.draw();
		return mainLayout;
	}
361839
public javax.swing.JMenu getMenuImport() {
		if (menuImport == null) {
			menuImport = new javax.swing.JMenu();
			menuImport.setText(Constant.messages.getString("menu.import"));
			menuImport.setMnemonic(Constant.messages.getChar("menu.import.mnemonic"));
		}
		return menuImport;
	}
1146007
def create_main_frame(self):
        self.resize(800, 600)
        self.main_frame = QWidget()
        self.dpi = 128


        self.save_button = QPushButton('&Save Result')
        self.save_button.clicked.connect(self.saveResult)



        self.qapf_button = QPushButton('&QAPF')
        self.qapf_button.clicked.connect(self.QAPF)


        '''
        

        '''


        self.tableViewMole = CustomQTableView(self.main_frame)
        self.tableViewMole.setObjectName('tableViewMole')
        self.tableViewMole.setSortingEnabled(True)

        self.tableViewWeight = CustomQTableView(self.main_frame)
        self.tableViewWeight.setObjectName('tableViewWeight')
        self.tableViewWeight.setSortingEnabled(True)

        self.tableViewVolume = CustomQTableView(self.main_frame)
        self.tableViewVolume.setObjectName('tableViewVolume')
        self.tableViewVolume.setSortingEnabled(True)

        self.tableViewCalced = CustomQTableView(self.main_frame)
        self.tableViewCalced.setObjectName('tableViewCalced')
        self.tableViewCalced.setSortingEnabled(True)
        #
        # Layout with box sizers
        #

        self.hbox = QHBoxLayout()

        for w in [self.qapf_button]:
            self.hbox.addWidget(w)
            self.hbox.setAlignment(w, Qt.AlignVCenter)

        self.vbox = QVBoxLayout()

        self.vbox.addWidget(self.tableViewMole)
        self.vbox.addWidget(self.tableViewWeight)
        self.vbox.addWidget(self.tableViewVolume)
        self.vbox.addWidget(self.tableViewCalced)
        self.vbox.addWidget(self.save_button)

        self.vbox.addLayout(self.hbox)

        self.main_frame.setLayout(self.vbox)
        self.setCentralWidget(self.main_frame)
1053125
private JToolBar getToolbar()
    {
        if (toolbar == null)
        {
            toolbar = new JToolBar("Classification");
            toolbar.add(getTagsButton());
            toolbar.add(getClassesButton());
        }
        return toolbar;
    }
863849
private void createButtonBar() {
		// Update and reset controls for the repeater.
		WPanel buttonPanel = new WPanel(WPanel.Type.FEATURE);
		buttonPanel.setMargin(new Margin(Size.MEDIUM, null , Size.LARGE, null));
		buttonPanel.setLayout(new BorderLayout());

		WButton updateButton = new WButton("Update");
		updateButton.setImage("/image/document-save-5.png");
		updateButton.setImagePosition(WButton.ImagePosition.EAST);
		buttonPanel.add(updateButton, BorderLayout.EAST);

		WButton resetButton = new WButton("Reset");
		resetButton.setImage("/image/edit-undo-8.png");
		resetButton.setImagePosition(WButton.ImagePosition.WEST);
		resetButton.setAction(new Action() {
			@Override
			public void execute(final ActionEvent event) {
				repeater.setData(fetchDataList());
			}
		});
		buttonPanel.add(resetButton, BorderLayout.WEST);
		add(buttonPanel);
		add(new WAjaxControl(updateButton, repeater));
		add(new WAjaxControl(resetButton, repeater));
	}
1292902
public MainToolbarPanel getMainToolbarPanel() {
		if (mainToolbarPanel == null) {
			mainToolbarPanel = new MainToolbarPanel();

			mainToolbarPanel.addButton(getShowAllTabsButton());
			mainToolbarPanel.addButton(getHideAllTabsButton());
			mainToolbarPanel.addButton(getShowTabIconNamesButton());
			mainToolbarPanel.addSeparator();

			ButtonGroup layoutsButtonGroup = new ButtonGroup();
			mainToolbarPanel.addButton(getExpandSelectLayoutButton());
			layoutsButtonGroup.add(getExpandSelectLayoutButton());
			mainToolbarPanel.addButton(getExpandStatusLayoutButton());
			layoutsButtonGroup.add(getExpandStatusLayoutButton());
			mainToolbarPanel.addButton(getFullLayoutButton());
			layoutsButtonGroup.add(getFullLayoutButton());
			mainToolbarPanel.addSeparator();

			ButtonGroup responsePanelPositionsButtonGroup = new ButtonGroup();
			mainToolbarPanel.addButton(getTabsResponsePanelPositionButton());
			responsePanelPositionsButtonGroup.add(getTabsResponsePanelPositionButton());
			mainToolbarPanel.addButton(getTabSideBySideResponsePanelPositionButton());
			responsePanelPositionsButtonGroup.add(getTabSideBySideResponsePanelPositionButton());
			mainToolbarPanel.addButton(getPanelsResponsePanelPositionButton());
			responsePanelPositionsButtonGroup.add(getPanelsResponsePanelPositionButton());
			mainToolbarPanel.addButton(getAboveResponsePanelPositionButton());
			responsePanelPositionsButtonGroup.add(getAboveResponsePanelPositionButton());
			mainToolbarPanel.addSeparator();
		}
		return mainToolbarPanel;
	}
239892
public Menu get() {
        String url = WxEndpoint.get("url.menu.get");
        String content = wxClient.get(url);
        logger.debug("get default menu: {}", content);
        MenuWrapper menuWrapper = JsonMapper.nonEmptyMapper().fromJson(content, MenuWrapper.class);
        return menuWrapper.getMenu();
    }
456101
public JMenu addHelpMenu(JMenuBar menuBar)
    {
        Application application = BaseApplet.getSharedInstance().getApplication();
        ResourceBundle oldResources = application.getResourceBundle();
        application.getResources(null, true);

        char[] rgchItemShortcuts = new char[20];
        JMenu menu = this.addMenu(menuBar,ThinMenuConstants.HELP_MENU);

        this.addMenuItem(menu, ThinMenuConstants.ABOUT, rgchItemShortcuts);
        menu.addSeparator();
        this.addMenuItem(menu, ThinMenuConstants.HELP, rgchItemShortcuts);
        
        if (oldResources != null)
            application.setResourceBundle(oldResources);

        return menu;
    }
912606
public JComponent getEditorMenuBar(){
		CommandGroup commandGroup = getCommandGroup(getMenuBarCommandGroupName());
		if(commandGroup == null){
			return null;
		}
		return commandGroup.createMenuBar();
	}
1253406
public JPanel addToolbar(JComponent screen, JComponent toolbar)
    {
        JPanel panelMain = new JPanel();
        panelMain.setOpaque(false);
        panelMain.setLayout(new BoxLayout(panelMain, BoxLayout.Y_AXIS));
        panelMain.add(toolbar);
        toolbar.setAlignmentX(0);
        panelMain.add(screen);
        screen.setAlignmentX(0);
        return panelMain;
    }
651165
public final JMenuItem createMenuItem(MenuFactory menuFactory, CommandButtonConfigurer buttonConfigurer) {
		return createMenuItem(getDefaultFaceDescriptorId(), menuFactory, buttonConfigurer);
	}
57044
def __initialize_menu_bar(self):
        

        self.__file_menu = QMenu("&File", parent=self.__menu_bar)
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|&New",
            shortcut=QKeySequence.New,
            slot=self.__new_file_action__triggered))
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|&Load ...",
            shortcut=QKeySequence.Open,
            slot=self.__load_file_action__triggered))
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Source ...",
            slot=self.__source_file_action__triggered))
        self.__file_menu.addSeparator()
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Add Project ...",
            slot=self.__add_project_action__triggered))
        self.__file_menu.addSeparator()
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|&Save",
            shortcut=QKeySequence.Save,
            slot=self.__save_file_action__triggered))
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Save As ...",
            shortcut=QKeySequence.SaveAs,
            slot=self.__save_file_as_action__triggered))
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Save All",
            slot=self.__save_all_files_action__triggered))
        self.__file_menu.addSeparator()
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Revert",
            slot=self.__revert_file_action__triggered))
        self.__file_menu.addSeparator()
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Close ...",
            shortcut=QKeySequence.Close,
            slot=self.__close_file_action__triggered))
        self.__file_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&File|Close All ...",
            shortcut=Qt.SHIFT + Qt.ControlModifier + Qt.Key_W,
            slot=self.__close_all_files_action__triggered))
        self.__file_menu.addSeparator()
        for action in self.__recent_files_actions:
            self.__file_menu.addAction(action)
        self.__set_recent_files_actions()
        self.__menu_bar.addMenu(self.__file_menu)

        self.__edit_menu = QMenu("&Edit", parent=self.__menu_bar)
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|&Undo",
            shortcut=QKeySequence.Undo,
            slot=self.__undo_action__triggered))
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|&Redo",
            shortcut=QKeySequence.Redo,
            slot=self.__redo_action__triggered))
        self.__edit_menu.addSeparator()
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|Cu&t",
            shortcut=QKeySequence.Cut,
            slot=self.__cut_action__triggered))
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|&Copy",
            shortcut=QKeySequence.Copy,
            slot=self.__copy_action__triggered))
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|&Paste",
            shortcut=QKeySequence.Paste,
            slot=self.__paste_action__triggered))
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|Delete",
            slot=self.__delete_action__triggered))
        self.__edit_menu.addSeparator()
        self.__edit_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Edit|Select All",
            shortcut=QKeySequence.SelectAll,
            slot=self.__select_all_action__triggered))
        self.__menu_bar.addMenu(self.__edit_menu)

        self.__source_menu = QMenu("&Source", parent=self.__menu_bar)
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Delete Line(s)",
            shortcut=Qt.ControlModifier + Qt.Key_D,
            slot=self.__delete_lines_action__triggered))
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Duplicate Line(s)",
            shortcut=Qt.SHIFT + Qt.ControlModifier + Qt.Key_D,
            slot=self.__duplicate_lines_action__triggered))
        self.__source_menu.addSeparator()
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Move Up",
            shortcut=Qt.SHIFT + Qt.ControlModifier + Qt.ALT + Qt.Key_Up,
            slot=self.__move_up_action__triggered))
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Move Down",
            shortcut=Qt.SHIFT + Qt.ControlModifier + Qt.ALT + Qt.Key_Down,
            slot=self.__move_down_action__triggered))
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Indent Selection",
            shortcut=Qt.Key_Tab,
            slot=self.__indent_selection_action__triggered))
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Unindent Selection",
            shortcut=Qt.Key_Backtab,
            slot=self.__unindent_selection_action__triggered))
        self.__source_menu.addSeparator()
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Convert Indentation To Tabs",
            slot=self.__convert_indentation_to_tabs_action__triggered))
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Convert Indentation To Spaces",
            slot=self.__convert_indentation_to_spaces_action__triggered))
        self.__source_menu.addSeparator()
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Remove Trailing WhiteSpaces",
            slot=self.__remove_trailing_white_spaces_action__triggered))
        self.__source_menu.addSeparator()
        self.__source_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Source|Toggle Comments",
            shortcut=Qt.ControlModifier + Qt.Key_Slash,
            slot=self.__toggle_comments_action__triggered))
        self.__menu_bar.addMenu(self.__source_menu)

        self.__navigate_menu = QMenu("&Navigate", parent=self.__menu_bar)
        self.__navigate_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Navigate|Goto Line ...",
            shortcut=Qt.ControlModifier + Qt.Key_L,
            slot=self.__go_to_line_action__triggered))
        self.__navigate_menu.addSeparator()
        self.__menu_bar.addMenu(self.__navigate_menu)

        self.__search_menu = QMenu("&Search", parent=self.__menu_bar)
        self.__search_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Search|Search And Replace ...",
            shortcut=Qt.ControlModifier + Qt.Key_F,
            slot=self.__search_and_replace_action__triggered))
        self.__search_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Search|Search In Files ...",
            shortcut=Qt.ALT + Qt.ControlModifier + Qt.Key_F,
            slot=self.__search_in_files_action__triggered))
        self.__search_menu.addSeparator()
        self.__search_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Search|Search Next",
            shortcut=Qt.ControlModifier + Qt.Key_K,
            slot=self.__search_next_action__triggered))
        self.__search_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Search|Search Previous",
            shortcut=Qt.SHIFT + Qt.ControlModifier + Qt.Key_K,
            slot=self.__search_previous_action__triggered))
        self.__menu_bar.addMenu(self.__search_menu)

        self.__command_menu = QMenu("&Command", parent=self.__menu_bar)
        self.__command_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Command|&Evaluate Selection",
            shortcut=Qt.ControlModifier + Qt.Key_Return,
            slot=self.__evaluate_selection_action__triggered))
        self.__command_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&Command|Evaluate &Script",
            shortcut=Qt.SHIFT + Qt.CTRL + Qt.Key_Return,
            slot=self.__evaluate_script_action__triggered))
        self.__menu_bar.addMenu(self.__command_menu)

        self.__view_menu = QMenu("&View", parent=self.__menu_bar)
        self.__view_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&View|Increase Font Size",
            shortcut=Qt.ControlModifier + Qt.Key_Plus,
            slot=self.__increase_font_size_action__triggered))
        self.__view_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&View|Decrease Font Size",
            shortcut=Qt.ControlModifier + Qt.Key_Minus,
            slot=self.__decrease_font_size_action__triggered))
        self.__view_menu.addSeparator()
        self.__view_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&View|Toggle Word Wrap",
            slot=self.__toggle_word_wrap_action__triggered))
        self.__view_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&View|Toggle White Spaces",
            slot=self.__toggle_white_spaces_action__triggered))
        self.__view_menu.addSeparator()
        self.__view_menu.addAction(self.__engine.actions_manager.register_action(
            "Actions|Umbra|Components|factory.script_editor|&View|Loop Through Editors",
            shortcut=Qt.AltModifier + Qt.SHIFT + Qt.Key_Tab,
            slot=self.__loop_through_editors_action__triggered))
        self.__menu_bar.addMenu(self.__view_menu)
716806
private void obtainShowButtonBar() {
        boolean showButtonBar = ThemeUtil.getBoolean(this, R.attr.showButtonBar, false);
        showButtonBar(showButtonBar);
    }
494089
private LayoutManager createLayout() {
        SeaGlassContext context = getContext(this);
        LayoutManager   lm      = (LayoutManager) style.get(context, "InternalFrameTitlePane.titlePaneLayout");

        context.dispose();

        return (lm != null) ? lm : new SeaGlassTitlePaneLayout();
    }
311942
def wx_menu(self):
        ''''''
        from MAVProxy.modules.lib.wx_loader import wx

        menubar = wx.MenuBar()
        for i in range(len(self.items)):
            m = self.items[i]
            menubar.Append(m.wx_menu(), m.name)
        return menubar
1041204
public function mainMenuAuto()
    {
        $markup = null;

        $menu = false;
        $classes = array('nav');

        if (!$menu || !is_string($menu) || (isset($_GET['menu_cache']) && $_GET['menu_cache'] == 'false')) {
            if (!empty(get_field('nav_primary_align', 'option'))) {
                $classes[] = 'nav-' . get_field('nav_primary_align', 'option');
            }

            $menu = new \Municipio\Helper\NavigationTree(array(
                'theme_location' => 'main-menu',
                'include_top_level' => true,
                'render' => get_field('nav_primary_render', 'option'),
                'depth' => 1,
                'sublevel' => get_field('nav_primariy_second_level', 'option'),
                'classes' => implode(' ', apply_filters('Municipio/main_menu_classes', $classes)) . ' ' . apply_filters('Municipio/desktop_menu_breakpoint', 'hidden-xs hidden-sm')
            ));

            if (isset($menu) && $menu->itemCount() > 0) {
                $markup = apply_filters('Municipio/main_menu/items', $menu->render(false));
            }

            return $markup;
        }

        return $menu;
    }