The Toolbox defines a floating window, that allows live editing of the currently loaded GUI. More...
#include <foleys_ToolBox.h>
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 () |
The Toolbox defines a floating window, that allows live editing of the currently loaded GUI.
enum PositionOption |
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.
parent | is the window to attach to |
builder | is the builder instance that manages the GUI |
References detached, getApplicationPropertyStorage(), left, loadDialog(), right, saveDialog(), setToolboxPosition(), and stateWasReloaded().
|
override |
void loadDialog | ( | ) |
Referenced by ToolBox().
void saveDialog | ( | ) |
Referenced by ToolBox().
void loadGUI | ( | const juce::File & | file | ) |
References setLastLocation(), and stateWasReloaded().
bool saveGUI | ( | const juce::File & | file | ) |
Referenced by timerCallback().
|
override |
|
override |
|
override |
References saveGUI().
void setSelectedNode | ( | const juce::ValueTree & | node | ) |
Referenced by selectedItem().
void setNodeToEdit | ( | juce::ValueTree | node | ) |
void setToolboxPosition | ( | PositionOption | position | ) |
|
override |
Referenced by keyPressed().
|
override |
References keyPressed().
|
overridevirtual |
This is called in edit mode, when the user selects an item.
Implements MagicGUIBuilder::Listener.
References setSelectedNode().
|
overridevirtual |
This is called when the user drops an item in edit node.
Implements MagicGUIBuilder::Listener.
|
static |
Referenced by ToolBox().
void setLastLocation | ( | juce::File | file | ) |
Referenced by loadGUI().