JUCE Designer
 All Classes Functions Variables
Constructor Class Reference

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)
 
AttributegetAttributeOf (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.
 
SelectionAreagetSelectionBox ()
 
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)
 
BigTreegetBigTreeRoot ()
 
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 ConstructorgetInstance ()
 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
 

Detailed Description

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.

Member Function Documentation

Attribute * Constructor::getAttributeOf ( Identifier  _name)

Returns a struct pointer of attribute parameters given it's Identifier.

Parameters
_nameAttribute identifier.
See Also
Attribute
Attributes

Definition at line 146 of file Constructor.cpp.

Referenced by BigTree::recursive_setFilePathAsRelative(), and BigTree::valueTreePropertyChanged().

Constructor * Constructor::getInstance ( )
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.

See Also
UndoManager, BigTree, ValueTree

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.

Parameters
xmlFileFile object that points to XML file in disc.
See Also
getAttributeOf

Definition at line 65 of file Constructor.cpp.


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