Package com.cburch.logisim.gui.menu

Examples of com.cburch.logisim.gui.menu.LogisimMenuBar$MyListener


  private JButton close = new JButton();

  public HexFrame(Project proj, HexModel model) {
    setDefaultCloseOperation(HIDE_ON_CLOSE);

    LogisimMenuBar menubar = new LogisimMenuBar(this, proj);
    setJMenuBar(menubar);
   
    this.model = model;
    this.editor = new HexEditor(model);
View Full Code Here


    layoutCanvas.getGridPainter().setZoomModel(layoutZoomModel);
    layoutEditHandler = new LayoutEditHandler(this);
    attrTableSelectionModel = new AttrTableSelectionModel(proj, this);

    // set up menu bar and toolbar
    menubar = new LogisimMenuBar(this, proj);
    menuListener = new MenuListener(this, menubar);
    menuListener.setEditHandler(layoutEditHandler);
    setJMenuBar(menubar);
    toolbar = new Toolbar(layoutToolbarModel);
View Full Code Here

    // now that the splash screen is almost gone, we do some last-minute
    // interface initialization
    if (showSplash) monitor.setProgress(SplashScreen.GUI_INIT);
    WindowManagers.initialize();
    if (MacCompatibility.isSwingUsingScreenMenuBar()) {
      MacCompatibility.setFramelessJMenuBar(new LogisimMenuBar(null, null));
    } else {
      new LogisimMenuBar(null, null);
      // most of the time occupied here will be in loading menus, which
      // will occur eventually anyway; we might as well do it when the
      // monitor says we are
    }
View Full Code Here

  private JTabbedPane tabbedPane;
  private JButton close = new JButton();

  private PreferencesFrame() {
    setDefaultCloseOperation(HIDE_ON_CLOSE);
    setJMenuBar(new LogisimMenuBar(this, null));
   
    panels = new OptionsPanel[] {
        new TemplateOptions(this),
        new IntlOptions(this),
        new WindowOptions(this),
View Full Code Here

    expressionPanel.registerDefaultButtons(registry);
   
    LocaleManager.addLocaleListener(myListener);
    myListener.localeChanged();
   
    LogisimMenuBar menubar = new LogisimMenuBar(this, null);
    setJMenuBar(menubar);
    editListener.register(menubar);
  }
View Full Code Here

    this.project = project;
    this.windowManager = new WindowMenuManager();
    project.addProjectListener(myListener);
    project.addLibraryListener(myListener);
    setDefaultCloseOperation(HIDE_ON_CLOSE);
    setJMenuBar(new LogisimMenuBar(this, project));
    setSimulator(project.getSimulator(), project.getCircuitState());
   
    panels = new LogPanel[] {
        new SelectionPanel(this),
        new ScrollPanel(this),
View Full Code Here

  private void setSimulator(Simulator value, CircuitState state) {
    if ((value == null) == (curModel == null)) {
      if (value == null || value.getCircuitState() == curModel.getCircuitState()) return;
    }

    LogisimMenuBar menubar = (LogisimMenuBar) getJMenuBar();
    menubar.setCircuitState(value, state);

    if (curSimulator != null) curSimulator.removeSimulatorListener(myListener);
    if (curModel != null) curModel.setSelected(this, false);

    Model oldModel = curModel;
View Full Code Here

  public OptionsFrame(Project project) {
    this.project = project;
    this.file = project.getLogisimFile();
    file.addLibraryListener(myListener);
    setDefaultCloseOperation(HIDE_ON_CLOSE);
    setJMenuBar(new LogisimMenuBar(this, project));
   
    panels = new OptionsPanel[] {
        new SimulateOptions(this),
        new ToolbarOptions(this),
        new MouseOptions(this),
View Full Code Here

        expressionPanel.registerDefaultButtons(registry);

        LocaleManager.addLocaleListener(myListener);
        myListener.localeChanged();

        LogisimMenuBar menubar = new LogisimMenuBar(this, null);
        setJMenuBar(menubar);
        editListener.register(menubar);
    }
View Full Code Here

        layoutCanvas.getGridPainter().setZoomModel(layoutZoomModel);
        layoutEditHandler = new LayoutEditHandler(this);
        attrTableSelectionModel = new AttrTableSelectionModel(proj, this);

        // set up menu bar and toolbar
        menubar = new LogisimMenuBar(this, proj);
        menuListener = new MenuListener(this, menubar);
        menuListener.setEditHandler(layoutEditHandler);
        setJMenuBar(menubar);
        toolbar = new Toolbar(layoutToolbarModel);
View Full Code Here

TOP

Related Classes of com.cburch.logisim.gui.menu.LogisimMenuBar$MyListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.