MAK RTIspy API Documentation for HLA 1.3
List of all members | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Properties
DtPropertyListView Class Reference

A class to display a list (properties) alternating the colors of the rows. More...

+ Inheritance diagram for DtPropertyListView:
+ Collaboration diagram for DtPropertyListView:

Public Member Functions

 DtPropertyListView (QWidget *parent=0)
 DtPropertyListView (QColor, QColor, bool drawBorder=true, QWidget *parent=0)
 DtPropertyListView (const DtPropertyListView &orig)
virtual ~DtPropertyListView ()
virtual void expandAll ()
virtual void collapseAll ()
virtual DtPropertyListViewItemaddProperty (const DtProperty &, QTreeWidgetItem *parentTree=0)
virtual DtPropertyListViewItemaddToProperty (const DtProperty &)
virtual bool setProperty (QString prop, QVariant value)
virtual bool setProperty (QString prop, QString sub, QVariant value)
virtual bool setProperty (QString prop, QString sub, QString sub2, QVariant value)
virtual DtPropertyproperty (QString prop)
virtual DtPropertyproperty (QString prop, QString sub)
virtual DtPropertyproperty (QString prop, QString sub, QString sub2)
virtual QColor backgroundColor1 () const
virtual QColor backgroundColor2 () const
virtual QColor groupForegroundColor () const
virtual void setGroupForegroundColor (const QColor &color)
virtual DtPropertyListViewStyle backgroundStyle () const
virtual void setBackgroundStyle (const DtPropertyListViewStyle &style)
virtual bool drawCellBorder ()
virtual QColor cellBorderColor () const
virtual void setCellBorderColor (const QColor &color)
virtual QWidgeteditorBox ()
virtual bool alphaSorted () const
int attributeNameColumn () const
int attributeValueColumn () const

Protected Slots

virtual void headerClicked (int column)
virtual void headerSizeChanged ()

Protected Member Functions

virtual void init ()
virtual void resizeEvent (QResizeEvent *)
virtual void resizeValueColumn (QSize size)

Protected Attributes

QColor myBackColor1
QColor myBackColor2
QColor myCellBorder
QColor myGroupForeColor
bool myAlphaSorted
bool myDrawCellBorder
bool myEditable
QWidgetmyEditorBox
const QString myAttributeName
const QString myValueName
DtProperty myRoot
DtPropertyListViewItemmySelected
DtPropertyListViewStyle myBackStyle

Properties

QColor cellBorderColor
QColor backgroundColor1
QColor backgroundColor2
QColor groupForegroundColor

Detailed Description

A class to display a list (properties) alternating the colors of the rows.

A class that displays a list (properties) alternating the colors of the rows. The information displayed is query-able, settable, and sortable. NOTE that the property sheet UI pattern only allows for top-level properties and one level of sub-property children (see the Qt 3.X Designer for an example) and the API to this class reflects that.

Constructor & Destructor Documentation

DtPropertyListView::DtPropertyListView ( QWidget parent = 0)

References init(), myBackColor1, and myBackColor2.

DtPropertyListView::DtPropertyListView ( QColor  c1,
QColor  c2,
bool  drawBorder = true,
QWidget parent = 0 
)

References init().

DtPropertyListView::DtPropertyListView ( const DtPropertyListView orig)
DtPropertyListView::~DtPropertyListView ( )
virtual

Member Function Documentation

DtPropertyListViewItem * DtPropertyListView::addProperty ( const DtProperty prop,
QTreeWidgetItem parentTree = 0 
)
virtual
DtPropertyListViewItem * DtPropertyListView::addToProperty ( const DtProperty prop)
virtual
bool DtPropertyListView::alphaSorted ( ) const
virtual

References myAlphaSorted.

int DtPropertyListView::attributeNameColumn ( ) const
int DtPropertyListView::attributeValueColumn ( ) const

References myValueName.

Referenced by addProperty(), addToProperty(), and setProperty().

virtual QColor DtPropertyListView::backgroundColor1 ( ) const
inlinevirtual
virtual QColor DtPropertyListView::backgroundColor2 ( ) const
inlinevirtual
DtPropertyListViewStyle DtPropertyListView::backgroundStyle ( ) const
virtual
virtual QColor DtPropertyListView::cellBorderColor ( ) const
virtual
void DtPropertyListView::collapseAll ( )
virtual
virtual bool DtPropertyListView::drawCellBorder ( )
inlinevirtual
virtual QWidget* DtPropertyListView::editorBox ( )
inlinevirtual
void DtPropertyListView::expandAll ( )
virtual
virtual QColor DtPropertyListView::groupForegroundColor ( ) const
virtual
void DtPropertyListView::headerClicked ( int  column)
protectedvirtualslot

References myAlphaSorted, and myEditorBox.

Referenced by init().

void DtPropertyListView::headerSizeChanged ( )
protectedvirtualslot

References resizeValueColumn().

Referenced by init().

void DtPropertyListView::init ( )
protectedvirtual
DtProperty * DtPropertyListView::property ( QString  prop)
virtual
DtProperty * DtPropertyListView::property ( QString  prop,
QString  sub 
)
virtual
DtProperty * DtPropertyListView::property ( QString  prop,
QString  sub,
QString  sub2 
)
virtual
void DtPropertyListView::resizeEvent ( QResizeEvent *  r)
protectedvirtual

References resizeValueColumn().

void DtPropertyListView::resizeValueColumn ( QSize  size)
protectedvirtual
void DtPropertyListView::setBackgroundStyle ( const DtPropertyListViewStyle style)
virtual

References myBackStyle.

void DtPropertyListView::setCellBorderColor ( const QColor &  color)
virtual

References myCellBorder.

void DtPropertyListView::setGroupForegroundColor ( const QColor &  color)
virtual

References myGroupForeColor.

bool DtPropertyListView::setProperty ( QString  prop,
QVariant  value 
)
virtual
bool DtPropertyListView::setProperty ( QString  prop,
QString  sub,
QVariant  value 
)
virtual
bool DtPropertyListView::setProperty ( QString  prop,
QString  sub,
QString  sub2,
QVariant  value 
)
virtual

Member Data Documentation

bool DtPropertyListView::myAlphaSorted
protected
const QString DtPropertyListView::myAttributeName
protected
QColor DtPropertyListView::myBackColor1
protected

Referenced by DtPropertyListView().

QColor DtPropertyListView::myBackColor2
protected

Referenced by DtPropertyListView().

DtPropertyListViewStyle DtPropertyListView::myBackStyle
protected
QColor DtPropertyListView::myCellBorder
protected
bool DtPropertyListView::myDrawCellBorder
protected
bool DtPropertyListView::myEditable
protected
QWidget* DtPropertyListView::myEditorBox
protected
QColor DtPropertyListView::myGroupForeColor
protected

Referenced by setGroupForegroundColor().

DtProperty DtPropertyListView::myRoot
protected
DtPropertyListViewItem* DtPropertyListView::mySelected
protected
const QString DtPropertyListView::myValueName
protected

Property Documentation

QColor DtPropertyListView::backgroundColor1
read
QColor DtPropertyListView::backgroundColor2
read
QColor DtPropertyListView::cellBorderColor
readwrite
QColor DtPropertyListView::groupForegroundColor
readwrite

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

Document ID: Generated on Tue May 7 16:26:47 EDT 2013 from SVN revision 126903
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)