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 () |
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 ToolBox::getApplicationPropertyStorage().
|
override |
| void loadDialog | ( | ) |
| void saveDialog | ( | ) |
| void loadGUI | ( | const juce::File & | file | ) |
| bool saveGUI | ( | const juce::File & | file | ) |
References MagicGUIBuilder::getConfigTree().
Referenced by ToolBox::timerCallback().
|
override |
|
override |
|
override |
References ToolBox::saveGUI().
| void setSelectedNode | ( | const juce::ValueTree & | node | ) |
References PropertiesEditor::setNodeToEdit(), and GUITreeEditor::setSelectedNode().
| void setNodeToEdit | ( | juce::ValueTree | node | ) |
References PropertiesEditor::setNodeToEdit().
| void setToolboxPosition | ( | PositionOption | position | ) |
| void stateWasReloaded | ( | ) |
|
override |
Referenced by ToolBox::keyPressed().
|
override |
References ToolBox::keyPressed().
|
static |
Referenced by ToolBox::ToolBox().
| juce::File getLastLocation | ( | ) | const |
| void setLastLocation | ( | juce::File | file | ) |
Referenced by ToolBox::loadGUI().