![]() |
VR-Forces 4.0.4 Class Documentation
|
Base select instance widget. More...

Public Slots | |
| virtual void | setInstanceLabel (const QString &labelText) |
| Set the text of a label. | |
| virtual void | setInstanceIcon (const QString &instanceName, QIcon &icon, bool clearOtherIcons) |
| Set the icon for a particular instance. | |
| virtual void | setInstanceNames (const QStringList &instanceNames) |
| Set the current instance names. | |
| virtual void | setCurrentIndex (int i) |
| Set the current instance by index. | |
| virtual void | setCurrentInstanceName (const QString &instanceName) |
| Uses find instance index to set the current index by name. | |
| virtual void | addInstance (QString name, int index=-1) |
| Adds a new instance. | |
| virtual void | removeInstance (int i) |
| Removes the instance at i. | |
| virtual void | setShowSeparator (bool) |
| Show/hide separator. Default is shown. | |
Signals | |
| void | currentIndexChanged (int i) |
| void | instanceNamesChanged () |
| void | renameInstanceRequested () |
| void | newInstanceRequested () |
| void | deleteInstanceRequested () |
Public Member Functions | |
| DtSelectInstanceWidget (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0) | |
| CTOR. | |
| virtual | ~DtSelectInstanceWidget () |
| DTOR. | |
| void | setSupportsRenaming (bool supportsRenaming) |
| Set if the instance widget supports renaming. | |
| void | setRenamingEnabled (bool enabled) |
| Even if the widget supports renaming, allow the button to be enabled/disabled for specific current instances. | |
| void | setSupportsAdding (bool supportsAdding) |
| Set if the instance widget supports adding. | |
| void | setAddingEnabled (bool enabled) |
| Even if the widget supports adding, allow the button to be enabled/disabled for specific current instances. | |
| void | setSupportsDeleting (bool supportsDeleting) |
| Set if the instance widget supports deleting. | |
| void | setDeletingEnabled (bool enabled) |
| Even if the widget supports deleting, allow the button to be enabled/disabled for specific current instances. | |
| void | getInstanceNames (QStringList &list) const |
| Get the current instance names. | |
| virtual int | count () const |
| Get the number of instances. | |
| virtual int | currentIndex () const |
| Get the current index, if there are no instances this function returns -1. | |
| virtual QString | currentName () const |
| Get the current instance name. | |
| virtual int | findInstanceIndex (const QString &instanceName) |
| Find the index for an instance name. | |
| virtual void | clearInstances () |
| Clears all instances. | |
| virtual QString | instanceName (int) const |
| Returns the instance name at the index. | |
Public Attributes | |
| boost::signal< void(int, const std::string &)> | signal_currentInstanceChanged |
| boost::signal< void()> | signal_renameInstanceRequested |
| boost::signal< void()> | signal_newInstanceRequested |
| boost::signal< void()> | signal_deleteInstanceRequested |
Protected Slots | |
| void | on_myNextButton_clicked () |
| void | on_myPreviousButton_clicked () |
| void | on_myRenameInstanceButton_clicked () |
| void | on_myNewInstanceButton_clicked () |
| void | on_myDeleteInstanceButton_clicked () |
| void | on_myInstanceBox_currentIndexChanged (int) |
Protected Member Functions | |
| void | updateButtons () |
| void | setupGui () |
Protected Attributes | |
| DtDe & | myDe |
| QVBoxLayout * | myMainLayout |
| QHBoxLayout * | myButtonLayout |
| QLabel * | myInstanceLabel |
| QPushButton * | myNextButton |
| QPushButton * | myPreviousButton |
| QComboBox * | myInstanceBox |
| QPushButton * | myRenameInstanceButton |
| QPushButton * | myNewInstanceButton |
| QPushButton * | myDeleteInstanceButton |
| bool | myRenamingEnabled |
| bool | myAddingEnabled |
| bool | myDeletingEnabled |
| QFrame * | mySeparator |
| QSpacerItem * | myTopSpacer |
| QSpacerItem * | myBottomSpacer |
| int | myBufferSpace |
Base select instance widget.
| makVrv::DtSelectInstanceWidget::DtSelectInstanceWidget | ( | DtDe & | de, |
| QWidget * | parent = 0, |
||
| Qt::WindowFlags | f = 0 |
||
| ) | [explicit] |
CTOR.
| virtual makVrv::DtSelectInstanceWidget::~DtSelectInstanceWidget | ( | ) | [virtual] |
DTOR.
| void makVrv::DtSelectInstanceWidget::setSupportsRenaming | ( | bool | supportsRenaming | ) |
Set if the instance widget supports renaming.
| void makVrv::DtSelectInstanceWidget::setRenamingEnabled | ( | bool | enabled | ) |
Even if the widget supports renaming, allow the button to be enabled/disabled for specific current instances.
| void makVrv::DtSelectInstanceWidget::setSupportsAdding | ( | bool | supportsAdding | ) |
Set if the instance widget supports adding.
| void makVrv::DtSelectInstanceWidget::setAddingEnabled | ( | bool | enabled | ) |
Even if the widget supports adding, allow the button to be enabled/disabled for specific current instances.
| void makVrv::DtSelectInstanceWidget::setSupportsDeleting | ( | bool | supportsDeleting | ) |
Set if the instance widget supports deleting.
| void makVrv::DtSelectInstanceWidget::setDeletingEnabled | ( | bool | enabled | ) |
Even if the widget supports deleting, allow the button to be enabled/disabled for specific current instances.
| void makVrv::DtSelectInstanceWidget::getInstanceNames | ( | QStringList & | list | ) | const |
Get the current instance names.
| virtual int makVrv::DtSelectInstanceWidget::count | ( | ) | const [virtual] |
Get the number of instances.
| virtual int makVrv::DtSelectInstanceWidget::currentIndex | ( | ) | const [virtual] |
Get the current index, if there are no instances this function returns -1.
| virtual QString makVrv::DtSelectInstanceWidget::currentName | ( | ) | const [virtual] |
Get the current instance name.
If there is no instances this function returns an empty string.
| virtual int makVrv::DtSelectInstanceWidget::findInstanceIndex | ( | const QString & | instanceName | ) | [virtual] |
Find the index for an instance name.
Returns -1 if the instance is invalid.
| virtual void makVrv::DtSelectInstanceWidget::clearInstances | ( | ) | [virtual] |
Clears all instances.
| virtual QString makVrv::DtSelectInstanceWidget::instanceName | ( | int | ) | const [virtual] |
Returns the instance name at the index.
| virtual void makVrv::DtSelectInstanceWidget::setInstanceLabel | ( | const QString & | labelText | ) | [virtual, slot] |
Set the text of a label.
| virtual void makVrv::DtSelectInstanceWidget::setInstanceIcon | ( | const QString & | instanceName, |
| QIcon & | icon, | ||
| bool | clearOtherIcons | ||
| ) | [virtual, slot] |
Set the icon for a particular instance.
| virtual void makVrv::DtSelectInstanceWidget::setInstanceNames | ( | const QStringList & | instanceNames | ) | [virtual, slot] |
Set the current instance names.
| virtual void makVrv::DtSelectInstanceWidget::setCurrentIndex | ( | int | i | ) | [virtual, slot] |
Set the current instance by index.
If the index is out of range the current index will not change
| virtual void makVrv::DtSelectInstanceWidget::setCurrentInstanceName | ( | const QString & | instanceName | ) | [virtual, slot] |
Uses find instance index to set the current index by name.
If the instance name does not exist this function will not change The index.
| virtual void makVrv::DtSelectInstanceWidget::addInstance | ( | QString | name, |
| int | index = -1 |
||
| ) | [virtual, slot] |
Adds a new instance.
| Input | |
| name | is the name of the instance to display. |
| index | is the optional index of the instance, -1 means append to end. |
| virtual void makVrv::DtSelectInstanceWidget::removeInstance | ( | int | i | ) | [virtual, slot] |
Removes the instance at i.
The current index will change based upon the following conditions: If # of instance = 0, current index -> -1 if current index was 0, current index -> 0 else, current index -> current index - 1
| virtual void makVrv::DtSelectInstanceWidget::setShowSeparator | ( | bool | ) | [virtual, slot] |
Show/hide separator. Default is shown.
| void makVrv::DtSelectInstanceWidget::currentIndexChanged | ( | int | i | ) | [signal] |
| void makVrv::DtSelectInstanceWidget::instanceNamesChanged | ( | ) | [signal] |
| void makVrv::DtSelectInstanceWidget::renameInstanceRequested | ( | ) | [signal] |
| void makVrv::DtSelectInstanceWidget::newInstanceRequested | ( | ) | [signal] |
| void makVrv::DtSelectInstanceWidget::deleteInstanceRequested | ( | ) | [signal] |
| void makVrv::DtSelectInstanceWidget::on_myNextButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtSelectInstanceWidget::on_myPreviousButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtSelectInstanceWidget::on_myRenameInstanceButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtSelectInstanceWidget::on_myNewInstanceButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtSelectInstanceWidget::on_myDeleteInstanceButton_clicked | ( | ) | [protected, slot] |
| void makVrv::DtSelectInstanceWidget::on_myInstanceBox_currentIndexChanged | ( | int | ) | [protected, slot] |
| void makVrv::DtSelectInstanceWidget::updateButtons | ( | ) | [protected] |
| void makVrv::DtSelectInstanceWidget::setupGui | ( | ) | [protected] |
| boost::signal<void (int, const std::string&)> makVrv::DtSelectInstanceWidget::signal_currentInstanceChanged |
| boost::signal<void ()> makVrv::DtSelectInstanceWidget::signal_renameInstanceRequested |
| boost::signal<void ()> makVrv::DtSelectInstanceWidget::signal_newInstanceRequested |
| boost::signal<void ()> makVrv::DtSelectInstanceWidget::signal_deleteInstanceRequested |
DtDe& makVrv::DtSelectInstanceWidget::myDe [protected] |
QVBoxLayout* makVrv::DtSelectInstanceWidget::myMainLayout [protected] |
QHBoxLayout* makVrv::DtSelectInstanceWidget::myButtonLayout [protected] |
QLabel* makVrv::DtSelectInstanceWidget::myInstanceLabel [protected] |
QPushButton* makVrv::DtSelectInstanceWidget::myNextButton [protected] |
QComboBox* makVrv::DtSelectInstanceWidget::myInstanceBox [protected] |
bool makVrv::DtSelectInstanceWidget::myAddingEnabled [protected] |
QFrame* makVrv::DtSelectInstanceWidget::mySeparator [protected] |
QSpacerItem* makVrv::DtSelectInstanceWidget::myTopSpacer [protected] |
QSpacerItem* makVrv::DtSelectInstanceWidget::myBottomSpacer [protected] |
int makVrv::DtSelectInstanceWidget::myBufferSpace [protected] |