foleys_gui_magic
WYSWYG editor for JUCE GUIs including Visualisers
Public Types | Public Member Functions | Static Public Member Functions | List of all members
ToolBox Class Reference

The Toolbox defines a floating window, that allows live editing of the currently loaded GUI. More...

Inherits Component, DragAndDropContainer, KeyListener, and MultiTimer.

Public Types

enum  PositionOption { left , right , detached }
 

Public Member Functions

 ToolBox (juce::Component *parent, MagicGUIBuilder &builder)
 Create a ToolBox floating window to edit the currently shown GUI. More...
 
 ~ToolBox () override
 
void loadDialog ()
 
void saveDialog ()
 
void loadGUI (const juce::File &file)
 
bool saveGUI (const juce::File &file)
 
void paint (juce::Graphics &g) override
 
void resized () override
 
void timerCallback (int timer) override
 
void setSelectedNode (const juce::ValueTree &node)
 
void setNodeToEdit (juce::ValueTree node)
 
void setToolboxPosition (PositionOption position)
 
void stateWasReloaded ()
 
bool keyPressed (const juce::KeyPress &key) override
 
bool keyPressed (const juce::KeyPress &key, juce::Component *originalComponent) override
 
juce::File getLastLocation () const
 
void setLastLocation (juce::File file)
 

Static Public Member Functions

static juce::PropertiesFile::Options getApplicationPropertyStorage ()
 

Detailed Description

The Toolbox defines a floating window, that allows live editing of the currently loaded GUI.

Member Enumeration Documentation

◆ PositionOption

Enumerator
left 
right 
detached 

Constructor & Destructor Documentation

◆ ToolBox()

ToolBox ( juce::Component *  parent,
MagicGUIBuilder builder 
)

Create a ToolBox floating window to edit the currently shown GUI.

The window will float attached to the edited window.

Parameters
parentis the window to attach to
builderis the builder instance that manages the GUI

References ToolBox::getApplicationPropertyStorage().

◆ ~ToolBox()

~ToolBox ( )
override

Member Function Documentation

◆ loadDialog()

void loadDialog ( )

◆ saveDialog()

void saveDialog ( )

◆ loadGUI()

void loadGUI ( const juce::File &  file)

◆ saveGUI()

bool saveGUI ( const juce::File &  file)

◆ paint()

void paint ( juce::Graphics &  g)
override

◆ resized()

void resized ( )
override

◆ timerCallback()

void timerCallback ( int  timer)
override

References ToolBox::saveGUI().

◆ setSelectedNode()

void setSelectedNode ( const juce::ValueTree &  node)

◆ setNodeToEdit()

void setNodeToEdit ( juce::ValueTree  node)

◆ setToolboxPosition()

void setToolboxPosition ( PositionOption  position)

◆ stateWasReloaded()

void stateWasReloaded ( )

◆ keyPressed() [1/2]

bool keyPressed ( const juce::KeyPress &  key)
override

Referenced by ToolBox::keyPressed().

◆ keyPressed() [2/2]

bool keyPressed ( const juce::KeyPress &  key,
juce::Component *  originalComponent 
)
override

References ToolBox::keyPressed().

◆ getApplicationPropertyStorage()

juce::PropertiesFile::Options getApplicationPropertyStorage ( )
static

Referenced by ToolBox::ToolBox().

◆ getLastLocation()

juce::File getLastLocation ( ) const

◆ setLastLocation()

void setLastLocation ( juce::File  file)

Referenced by ToolBox::loadGUI().


The documentation for this class was generated from the following files: