Skip to content

guitar_prometheus::MainWindow

guitar_prometheus::MainWindow

Top-level window. More…

#include <MainWindow.h>

Inherits from juce::DocumentWindow, juce::MenuBarModel, juce::ApplicationCommandTarget, juce::ChangeListener, juce::FileDragAndDropTarget

Public Functions

Name
MainWindow(const juce::String & name)
~MainWindow() override
voidcloseButtonPressed() override
voidresized() override
juce::StringArraygetMenuBarNames() override
juce::PopupMenugetMenuForIndex(int topLevelMenuIndex, const juce::String & menuName) override
voidmenuItemSelected(int menuItemID, int topLevelMenuIndex) override
ApplicationCommandTarget *getNextCommandTarget() override
voidgetAllCommands(juce::Array< juce::CommandID > & commands) override
voidgetCommandInfo(juce::CommandID commandID, juce::ApplicationCommandInfo & result) override
boolperform(const InvocationInfo & info) override
voidchangeListenerCallback(juce::ChangeBroadcaster * source) override
boolisInterestedInFileDrag(const juce::StringArray & files) override
voidfilesDropped(const juce::StringArray & files, int x, int y) override

Public Attributes

Name
constexpr intkRecentBaseId
constexpr intkClearRecentsId

Detailed Description

class guitar_prometheus::MainWindow;

Top-level window.

Hosts a menu bar (File / Help) and a central content component that displays the active Project. File menu actions delegate to [AppController](/api-reference/classes/classguitar__prometheus_1_1appcontroller/).

Public Functions Documentation

function MainWindow

explicit MainWindow(
const juce::String & name
)

function ~MainWindow

~MainWindow() override

function closeButtonPressed

void closeButtonPressed() override

function resized

void resized() override

function getMenuBarNames

juce::StringArray getMenuBarNames() override

function getMenuForIndex

juce::PopupMenu getMenuForIndex(
int topLevelMenuIndex,
const juce::String & menuName
) override

function menuItemSelected

void menuItemSelected(
int menuItemID,
int topLevelMenuIndex
) override

function getNextCommandTarget

ApplicationCommandTarget * getNextCommandTarget() override

function getAllCommands

void getAllCommands(
juce::Array< juce::CommandID > & commands
) override

function getCommandInfo

void getCommandInfo(
juce::CommandID commandID,
juce::ApplicationCommandInfo & result
) override

function perform

bool perform(
const InvocationInfo & info
) override

function changeListenerCallback

void changeListenerCallback(
juce::ChangeBroadcaster * source
) override

function isInterestedInFileDrag

bool isInterestedInFileDrag(
const juce::StringArray & files
) override

function filesDropped

void filesDropped(
const juce::StringArray & files,
int x,
int y
) override

Public Attributes Documentation

variable kRecentBaseId

static constexpr int kRecentBaseId = 0x3000;

variable kClearRecentsId

static constexpr int kClearRecentsId = 0x4000;

Updated on 2026-05-29 at 07:39:52 +0000