Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Inspector class. More...
#include <ivstudio/inspectors/listedt.h>
Public Member Functions | |
IlvStIPropertyListEditor (IlvStIPropertyListAccessor *accessor=0, const char *name=0) | |
Initializes an instance of IlvStIPropertyListEditor . | |
virtual IlBoolean | connectHolder (IlvGraphicHolder *) |
Connects the specified holder with the editor. | |
void | declareGadgets (const char *listName, const char *addAfterName=0, const char *removeName=0, const char *addBeforeName=0, const char *cleanName=0, const char *moveUpName=0, const char *moveDownName=0) |
Declares the gadgets name to be used by the editor. | |
virtual void | empty () |
Empties the editor. | |
IlvListGadgetItemHolder * | getListGadgetItemHolder () const |
Returns the list gadget used by the editor. | |
Protected Member Functions | |
virtual IlvGadgetItem * | createGadgetItem (const IlvStIProperty *prop) const |
Creates a gadget item that corresponds to the property. | |
virtual void | fillGadget () |
Called when the editor is initialized to fill the gadget. | |
virtual void | refreshSelection () |
Rebuilds the selected gadget item. |
Inspector class.
Library: ivstudio
This class defines a list editor. It handles a number of gadgets that are used when editing a list. These gadgets are the following:
The use of these various gadgets causes the methods of the class IlvStIPropertyListAccessor
to be called.
IlvStIPropertyListEditor::IlvStIPropertyListEditor | ( | IlvStIPropertyListAccessor * | accessor = 0 , |
|
const char * | name = 0 | |||
) |
Initializes an instance of IlvStIPropertyListEditor
.
acc | The list accessor. | |
name | The editor name. |
virtual IlBoolean IlvStIPropertyListEditor::connectHolder | ( | IlvGraphicHolder * | holder | ) | [virtual] |
Connects the specified holder with the editor.
Connects the specified holder with the editor. For example, a gadget editor finds the gadget inside the holder and adds a callback to it.
holder | The holder. |
IlTrue
if the operation succeeds otherwise returns IlFalse
. Reimplemented from IlvStIPropertiesEditor.
virtual IlvGadgetItem* IlvStIPropertyListEditor::createGadgetItem | ( | const IlvStIProperty * | prop | ) | const [protected, virtual] |
Creates a gadget item that corresponds to the property.
prop | The property. |
void IlvStIPropertyListEditor::declareGadgets | ( | const char * | listName, | |
const char * | addAfterName = 0 , |
|||
const char * | removeName = 0 , |
|||
const char * | addBeforeName = 0 , |
|||
const char * | cleanName = 0 , |
|||
const char * | moveUpName = 0 , |
|||
const char * | moveDownName = 0 | |||
) |
Declares the gadgets name to be used by the editor.
Declares the names of the various gadgets to be used by the editor to modify the list.
listName | The name of the gadget, which can be of the following types: IlvStringList , IlvOptionMenu , IlvComboBox , and so on. | |
addAfterName | The name of the button used to add an item. | |
removeName | The name of the button used to remove an item. | |
addBeforeName | The name of the button used to insert an item. | |
cleanName | The name of the button used to clean the list. | |
moveUpName | The name of the button used to move up the seleted item. | |
moveDownName | The name of the button used to move down the seleted item. |
virtual void IlvStIPropertyListEditor::empty | ( | ) | [virtual] |
Empties the editor.
It is called when the editor cannot be initialized with a value. For example, in the case of a list editor, the list is cleared.
Reimplemented from IlvStIEditor.
virtual void IlvStIPropertyListEditor::fillGadget | ( | ) | [protected, virtual] |
Called when the editor is initialized to fill the gadget.
Is called when the editor is initialized to fill the list (or tree) gadget with items corresponding to the edited property list (or tree).
Implements IlvStIPropertiesEditor.
IlvListGadgetItemHolder* IlvStIPropertyListEditor::getListGadgetItemHolder | ( | ) | const |
Returns the list gadget used by the editor.
virtual void IlvStIPropertyListEditor::refreshSelection | ( | ) | [protected, virtual] |
Rebuilds the selected gadget item.
Rebuilds the selected gadget item to reflect modifications made to the accessor.
Implements IlvStIPropertiesEditor.
© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.