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 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().
|
override |
References MagicGUIBuilder::removeListener().
void loadDialog | ( | ) |
References MagicGUIBuilder::closeOverlayDialog(), and MagicGUIBuilder::showOverlayDialog().
Referenced by ToolBox::ToolBox().
void saveDialog | ( | ) |
References MagicGUIBuilder::closeOverlayDialog(), and MagicGUIBuilder::showOverlayDialog().
Referenced by ToolBox::ToolBox().
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(), GUITreeEditor::setSelectedNode(), and MagicGUIBuilder::setSelectedNode().
Referenced by ToolBox::selectedItem().
void setNodeToEdit | ( | juce::ValueTree | node | ) |
References PropertiesEditor::setNodeToEdit().
Referenced by StylePropertyComponent::mouseDoubleClick().
void setToolboxPosition | ( | PositionOption | position | ) |
References ToolBox::detached.
Referenced by ToolBox::ToolBox().
void stateWasReloaded | ( | ) |
|
override |
References MagicGUIBuilder::draggedItemOnto(), and MagicGUIBuilder::getSelectedNode().
Referenced by ToolBox::keyPressed().
|
override |
References ToolBox::keyPressed().
|
overridevirtual |
This is called in edit mode, when the user selects an item.
Implements MagicGUIBuilder::Listener.
References ToolBox::setSelectedNode().
|
overridevirtual |
This is called when the user drops an item in edit node.
Implements MagicGUIBuilder::Listener.
|
static |
Referenced by ToolBox::ToolBox().
void setLastLocation | ( | juce::File | file | ) |
Referenced by ToolBox::loadGUI().