JUCE Designer
|
Object required to build components and show its properties. More...
Public Member Functions | |
void | loadAttributesFromXmlFile (const File &xmlFile) |
Function called within JUCE_Designer constructor. | |
void | loadEnumerationsFromXmlFile (const File &xmlFile) |
Attribute * | getAttributeOf (Identifier _name) |
Returns a struct pointer of attribute parameters given it's Identifier. | |
Array< Enumeration * > * | getEnumerationsOf (Identifier _name) |
Choices | getChoicesOf (Identifier _name) |
UndoManager * | getUndoManager () |
Returns a pointer to an UndoManager. | |
SelectionArea * | getSelectionBox () |
void | setDrawBoundsMod (int x, int y, int width, int height) |
int | getDrawBoundsModX () |
int | getDrawBoundsModY () |
int | getDrawBoundsModWidth () |
int | getDrawBoundsModHeight () |
void | setGridSize (int newGridSize) |
int | getGridSize () |
Component * | getSelectedComponent () |
void | setSelectedComponent (Component *selectedComponent) |
void | setDesigner (Component *juce_designer) |
Component * | getDesigner () |
void | setBigTreeRoot (BigTree *bigTreeRoot) |
BigTree * | getBigTreeRoot () |
String | getTemplatesDir () |
Component * | createComponent (String selectedToolName, String parentComponentID, Rectangle< int > bounds, String componentID=String::empty, bool addDependencies=true) |
LookAndFeel * | getNamedLookAndFeel (String name) |
void | setWorkingDirectory (String path) |
String | getWorkingDirectory () |
void | importFromXml (File xmlFile) |
void | resetCurrentState () |
bool | createNewProject () |
bool | openProject () |
void | quickSave () |
void | updateRootVarName () |
ApplicationCommandManager * | getCommandManager () |
Static Public Member Functions | |
static Constructor * | getInstance () |
This function is called to create an instance of the class. | |
static void | destroy () |
static void | log (String msg) |
Public Attributes | |
String | projectName |
String | projectPath |
int | projectType |
int | resourceType |
String | selectedTemplate |
String | rootVarName |
ApplicationCommandManager | commandManager |
Friends | |
class | SelectionArea |
class | JUCE_Designer |
class | BigTree |
class | PlaceableComponent |
Object required to build components and show its properties.
Only one instance of this object is allowed.
To use, simply get an instance of this class using the getInstance() static method. Example: Constructor *constructor = Constructor::getInstance();
Definition at line 50 of file Constructor.h.
Attribute * Constructor::getAttributeOf | ( | Identifier | _name | ) |
Returns a struct pointer of attribute parameters given it's Identifier.
_name | Attribute identifier. |
Definition at line 146 of file Constructor.cpp.
Referenced by BigTree::recursive_setFilePathAsRelative(), and BigTree::valueTreePropertyChanged().
|
static |
This function is called to create an instance of the class.
Calling the constructor publicly is not allowed. The constructor is private and is only called by this Instance function.
Definition at line 17 of file Constructor.cpp.
Referenced by PlaceableComponent::perform(), BigTree::recursive_setFilePathAsRelative(), PlaceableComponent::undo(), and BigTree::valueTreePropertyChanged().
UndoManager * Constructor::getUndoManager | ( | ) |
Returns a pointer to an UndoManager.
Definition at line 164 of file Constructor.cpp.
Referenced by BigTree::valueTreePropertyChanged().
void Constructor::loadAttributesFromXmlFile | ( | const File & | xmlFile | ) |
Function called within JUCE_Designer constructor.
Loads all parameters from a list of attribute types in a XML file.
xmlFile | File object that points to XML file in disc. |
Definition at line 65 of file Constructor.cpp.