MAK RTIspy API Documentation for HLA 1516
List of all members | Signals | Public Member Functions | Protected Attributes | Private Member Functions
DtRtiSelectedNodeWidget Class Reference
+ Inheritance diagram for DtRtiSelectedNodeWidget:
+ Collaboration diagram for DtRtiSelectedNodeWidget:

Signals

void iconChangeRequested ()
 Emitted when the user attempts to select a new icon.

Public Member Functions

 DtRtiSelectedNodeWidget (QWidget *parent)
 Constructor.
virtual ~DtRtiSelectedNodeWidget ()
 Destructor.
virtual void initialize ()
 Initialize.
virtual QSize sizeHint () const
 Returns the recommended size for the widget.
virtual void clearInformation ()
 Clear all displayed information.
virtual void setNodeNameAndIcon (const MAKRti::DtString &name, const QPixmap &icon)
 Display new node name and icon.
virtual void addItem (const QString &attribute, const QString &val, const QColor &colorValue=Qt::black)
 Add a new text item to the info panel optional text color.
virtual void addItem (const QString &attribute, QWidget *w)
 Add a new widget item to the info panel.
virtual void addSubItem (const QString &val, const QColor &colorValue=Qt::black)
 Add a new text sub-item to the info panel optional text color.
virtual void removeItem (const QString &attribute)
 Removes any items with the matching attribute name.
virtual QAction * addAction (const QString &name, const QIcon &icon)
 Add a new action to the toolbar.
virtual void addAction (QAction *action)
 Add a new action to the toolbar.

Protected Attributes

QGridLayout * myLayout
DtClickableLabelmyNodeIconLabel
QLabelmyNodeIdLabel
QTreeView * myTreeView
QStandardItemModel * myItemModel
QStandardItem * myLastParentItem
QToolBar * myToolbar

Private Member Functions

 DtRtiSelectedNodeWidget (const DtRtiSelectedNodeWidget &copy)
 Copy Constructor – NOT COPYABLE.
DtRtiSelectedNodeWidgetoperator= (const DtRtiSelectedNodeWidget &rhs)
 Assignment Operator – NOT COPYABLE.

Constructor & Destructor Documentation

DtRtiSelectedNodeWidget::DtRtiSelectedNodeWidget ( QWidget parent)

Constructor.

DtRtiSelectedNodeWidget::~DtRtiSelectedNodeWidget ( )
virtual

Destructor.

DtRtiSelectedNodeWidget::DtRtiSelectedNodeWidget ( const DtRtiSelectedNodeWidget copy)
private

Copy Constructor – NOT COPYABLE.

Member Function Documentation

QAction * DtRtiSelectedNodeWidget::addAction ( const QString &  name,
const QIcon &  icon 
)
virtual

Add a new action to the toolbar.

Creates the toolbar if it doesn't exist. Returns the QAction that was created so that the caller can install signals/slots.

References myLayout, and myToolbar.

Referenced by DtFederationsViewDialog::showFederateInfo(), DtFederationsViewDialog::showFederationInfo(), DtFederationsViewDialog::showForwarderInfo(), and DtFederationsViewDialog::showRtiexecInfo().

void DtRtiSelectedNodeWidget::addAction ( QAction *  action)
virtual

Add a new action to the toolbar.

Creates the toolbar if it doesn't exist.

References myLayout, and myToolbar.

void DtRtiSelectedNodeWidget::addItem ( const QString &  attribute,
const QString &  val,
const QColor &  colorValue = Qt::black 
)
virtual
void DtRtiSelectedNodeWidget::addItem ( const QString &  attribute,
QWidget w 
)
virtual

Add a new widget item to the info panel.

References myItemModel, myLastParentItem, and myTreeView.

void DtRtiSelectedNodeWidget::addSubItem ( const QString &  val,
const QColor &  colorValue = Qt::black 
)
virtual

Add a new text sub-item to the info panel optional text color.

Sub-items are added as children under the previously added item.

References myLastParentItem, and myTreeView.

Referenced by DtFederationsViewDialog::showFederationInfo().

void DtRtiSelectedNodeWidget::clearInformation ( )
virtual
void DtRtiSelectedNodeWidget::iconChangeRequested ( )
signal

Emitted when the user attempts to select a new icon.

Referenced by initialize().

void DtRtiSelectedNodeWidget::initialize ( )
virtual
DtRtiSelectedNodeWidget& DtRtiSelectedNodeWidget::operator= ( const DtRtiSelectedNodeWidget rhs)
private

Assignment Operator – NOT COPYABLE.

void DtRtiSelectedNodeWidget::removeItem ( const QString &  attribute)
virtual

Removes any items with the matching attribute name.

References myItemModel.

Referenced by DtFederationsViewDialog::showFederationInfo().

void DtRtiSelectedNodeWidget::setNodeNameAndIcon ( const MAKRti::DtString &  name,
const QPixmap &  icon 
)
virtual
QSize DtRtiSelectedNodeWidget::sizeHint ( ) const
virtual

Returns the recommended size for the widget.

Member Data Documentation

QStandardItemModel* DtRtiSelectedNodeWidget::myItemModel
protected
QStandardItem* DtRtiSelectedNodeWidget::myLastParentItem
protected
QGridLayout* DtRtiSelectedNodeWidget::myLayout
protected

Referenced by addAction(), and initialize().

DtClickableLabel* DtRtiSelectedNodeWidget::myNodeIconLabel
protected
QLabel* DtRtiSelectedNodeWidget::myNodeIdLabel
protected
QToolBar* DtRtiSelectedNodeWidget::myToolbar
protected

Referenced by addAction(), and clearInformation().

QTreeView* DtRtiSelectedNodeWidget::myTreeView
protected

Referenced by addItem(), addSubItem(), and initialize().


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

Document ID: Generated on Fri Mar 14 19:08:55 EDT 2014 from SVN revision 137085
Copyright © 2005-2014 VT MÄK Inc. All Rights Reserved (www.mak.com)