package _VisualDVM.Visual.Menus.ProjectMenuBar;
import Common.Visual.Controls.MenuBarButton;
import _VisualDVM.Visual.Menus.VisualiserMenuBar;
import _VisualDVM.Visual.UI;

import javax.swing.*;
import java.awt.*;
public class ProjectMenuBar extends VisualiserMenuBar {
    public ProjectViewMenu projectViewMenu;
    public ProjectMenuBar() {
        addMenus(projectViewMenu = new ProjectViewMenu());
        add(new JSeparator());
        addMenus(
                new ProjectSettingsMenu()
        );
        add(new MenuBarButton() {
            {
                setToolTipText("Профили");
                setIcon("/icons/Profiles.png");
                addActionListener(e -> {
                    UI.ShowProfilesWindow();
                });
            }
        });
    }
    public ProjectViewMenu getProjectViewMenu() {
        return projectViewMenu;
    }
    @Override
    public void setSizeLimits() {
        setPreferredSize(new Dimension(0, 32));
    }
}
