WYSWYG editor for JUCE GUIs including Visualisers
Loading...
Searching...
No Matches
ToolBox Class Reference

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

#include <foleys_ToolBox.h>

+ Inheritance diagram for ToolBox:

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.
 
 ~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
 
void selectedItem (const juce::ValueTree &node) override
 This is called in edit mode, when the user selects an item.
 
void guiItemDropped (const juce::ValueTree &node, juce::ValueTree &droppedOnto) override
 This is called when the user drops an item in edit node.
 
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 MagicGUIBuilder::addListener(), MagicGUIBuilder::clearGUI(), ToolBox::detached, ToolBox::getApplicationPropertyStorage(), ToolBox::left, ToolBox::loadDialog(), ToolBox::right, ToolBox::saveDialog(), MagicGUIBuilder::setEditMode(), ToolBox::setToolboxPosition(), ToolBox::stateWasReloaded(), and MagicGUIBuilder::updateComponents().

◆ ~ToolBox()

~ToolBox ( )
override

Member Function Documentation

◆ loadDialog()

◆ saveDialog()

◆ loadGUI()

◆ 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)

References ToolBox::detached.

Referenced by ToolBox::ToolBox().

◆ stateWasReloaded()

◆ keyPressed() [1/2]

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

◆ keyPressed() [2/2]

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

References ToolBox::keyPressed().

◆ selectedItem()

void selectedItem ( const juce::ValueTree & node)
overridevirtual

This is called in edit mode, when the user selects an item.

Implements MagicGUIBuilder::Listener.

References ToolBox::setSelectedNode().

◆ guiItemDropped()

void guiItemDropped ( const juce::ValueTree & node,
juce::ValueTree & droppedOnto )
overridevirtual

This is called when the user drops an item in edit node.

Implements MagicGUIBuilder::Listener.

◆ getApplicationPropertyStorage()

juce::PropertiesFile::Options getApplicationPropertyStorage ( )
static

Referenced by ToolBox::ToolBox().

◆ setLastLocation()

void setLastLocation ( juce::File file)

Referenced by ToolBox::loadGUI().


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