Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

ConfigurationEditor Class Reference

Provides interactive editing and loading/saving of a plist::Collection. More...

#include <ConfigurationEditor.h>

Inheritance diagram for ConfigurationEditor:

Detailed Description

Provides interactive editing and loading/saving of a plist::Collection.

Definition at line 11 of file ConfigurationEditor.h.

List of all members.

Classes

class  AddCollectionEntry
 displays a list of template objects (see ConfigurationEditor::getObjectTemplates()) which can be added to a target collection More...
class  LoadSettings
 provides a file browser to load a plist from the file system More...
class  NamedEnumerationEditor
 based on a string input control for easier mixing with other primitives (which just use a basic string input control as an editor) More...
class  NewCollectionEntry
 provides interface to set up a new collection entry before inserting it More...
class  SaveSettings
 provides a file browser to save a plist from the file system More...

Public Member Functions

 ConfigurationEditor (plist::Collection *rootCollection=NULL)
 default constructor
 ConfigurationEditor (const std::string &n, plist::Collection *rootCollection=NULL)
 constructor which allows a custom name
 ConfigurationEditor (const std::string &n, const std::string &d, plist::Collection *rootCollection=NULL)
 constructor which allows a custom name and tooltip
virtual ~ConfigurationEditor ()
 destructor, have to do our custom clearSlots before the superclass tries to
virtual void refresh ()
 called when a child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed
virtual void clearSlots ()
 need to override clearing so we don't delete load and save
virtual void setRootCollection (plist::Collection *rootCollection)
 sets the root of the collection being managed
virtual void setPath (const std::string &p)
 sets the path to the sub-collection being managed

Static Public Member Functions

static plist::DictionarygetObjectTemplates ()
 returns a dictionary of plist objects which may be added as new entries to collections being edited

Protected Member Functions

virtual void init ()
 common initialization regardless of constructor

Protected Attributes

plist::Collectionroot
 the root of collection being edited (i.e. may be the parent or other ancestor of the collection this editor is targeting, see path)
std::string path
 the names of the sub-collections from root to get to the collection this instance is actually targeting
LoadSettings load
 reuse the same load instance instead of regenerating a new one each refresh (saves user's "working directory")
SaveSettings save
 reuse the same save instance instead of regenerating a new one each refresh (saves user's "working directory")

Private Member Functions

 ConfigurationEditor (const ConfigurationEditor &)
 you can override, but don't call this...
ConfigurationEditoroperator= (const ConfigurationEditor &)
 you can override, but don't call this...

Constructor & Destructor Documentation

ConfigurationEditor::ConfigurationEditor ( plist::Collection rootCollection = NULL  ) 

default constructor

Definition at line 18 of file ConfigurationEditor.h.

Referenced by ConfigurationEditor::NewCollectionEntry::refresh(), and refresh().

ConfigurationEditor::ConfigurationEditor ( const std::string &  n,
plist::Collection rootCollection = NULL 
)

constructor which allows a custom name

Definition at line 23 of file ConfigurationEditor.h.

ConfigurationEditor::ConfigurationEditor ( const std::string &  n,
const std::string &  d,
plist::Collection rootCollection = NULL 
)

constructor which allows a custom name and tooltip

Definition at line 28 of file ConfigurationEditor.h.

virtual ConfigurationEditor::~ConfigurationEditor (  )  [virtual]

destructor, have to do our custom clearSlots before the superclass tries to

Definition at line 33 of file ConfigurationEditor.h.

ConfigurationEditor::ConfigurationEditor ( const ConfigurationEditor  )  [private]

you can override, but don't call this...


Member Function Documentation

void ConfigurationEditor::clearSlots (  )  [virtual]

need to override clearing so we don't delete load and save

Reimplemented from ControlBase.

Definition at line 108 of file ConfigurationEditor.cc.

Referenced by refresh(), and ~ConfigurationEditor().

plist::Dictionary & ConfigurationEditor::getObjectTemplates (  )  [static]

returns a dictionary of plist objects which may be added as new entries to collections being edited

Definition at line 131 of file ConfigurationEditor.cc.

Referenced by ConfigurationEditor::AddCollectionEntry::refresh().

void ConfigurationEditor::init (  )  [protected, virtual]

common initialization regardless of constructor

Definition at line 11 of file ConfigurationEditor.cc.

Referenced by ConfigurationEditor().

ConfigurationEditor& ConfigurationEditor::operator= ( const ConfigurationEditor  )  [private]

you can override, but don't call this...

void ConfigurationEditor::refresh (  )  [virtual]

called when a child has deactivated and this control should refresh its display, or some other event (such as the user pressing the refresh button) has happened to cause a refresh to be needed

Reimplemented from ControlBase.

Definition at line 17 of file ConfigurationEditor.cc.

void ConfigurationEditor::setPath ( const std::string &  p  )  [virtual]

sets the path to the sub-collection being managed

Definition at line 127 of file ConfigurationEditor.cc.

Referenced by refresh().

void ConfigurationEditor::setRootCollection ( plist::Collection rootCollection  )  [virtual]

sets the root of the collection being managed

Definition at line 116 of file ConfigurationEditor.cc.

Referenced by init(), and XWalkEdit::XWalkEdit().


Member Data Documentation

reuse the same load instance instead of regenerating a new one each refresh (saves user's "working directory")

Definition at line 82 of file ConfigurationEditor.h.

Referenced by clearSlots(), refresh(), setRootCollection(), and XWalkEdit::XWalkEdit().

std::string ConfigurationEditor::path [protected]

the names of the sub-collections from root to get to the collection this instance is actually targeting

Definition at line 66 of file ConfigurationEditor.h.

Referenced by refresh(), and setPath().

the root of collection being edited (i.e. may be the parent or other ancestor of the collection this editor is targeting, see path)

Definition at line 65 of file ConfigurationEditor.h.

Referenced by init(), refresh(), and setRootCollection().

reuse the same save instance instead of regenerating a new one each refresh (saves user's "working directory")

Definition at line 98 of file ConfigurationEditor.h.

Referenced by clearSlots(), refresh(), setRootCollection(), and XWalkEdit::XWalkEdit().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:06 2016 by Doxygen 1.6.3