VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Static Protected Member Functions
makVrf::DtVariableColumnTreeWidgetInterface Class Reference

Abstract interface for the back end slection list widget. More...

Inheritance diagram for makVrf::DtVariableColumnTreeWidgetInterface:
Inheritance graph
[legend]

Public Types

enum  Flags { Show = 0x00000001, Permenant = 0x00000002 }
typedef boost::function
< QVariant(const QString
&rowKey, const QString &colKey,
int role)> 
DtDisplayFunction
typedef boost::function< int(QTreeWidgetItem
*, QTreeWidgetItem *)> 
DtSortFunction

Public Member Functions

virtual ~DtVariableColumnTreeWidgetInterface ()
 Virtual DTOR.
virtual void addColumn (const QString &, const Flags &, DtDisplayFunction *display, DtSortFunction *sort=defaultSort())=0
 Adds a new columns to the list box.
virtual void setFlagsForColumn (const QString &s, const Flags &)=0
 Sets the new flags for the column.
virtual int addColumn (const QString &s, const Flags &)=0
 Adds a new column with the given flags. Returns column index.
virtual int removeColumn (const QString &)=0
 Removes the column and returns the column index of where it was.
virtual QColor backgroundColor () const =0
 Returns background color of tree view.
virtual void createMenuButton (int iCol, const QPixmap &arrow)=0
 Creates a menu button at the specified column.
virtual void clear ()=0
 Removes all rows.
virtual void addRow (const QString &)=0
 Adds a new row and updates the view based on column callbacks.
virtual void removeRow (const QString &)=0
 Removes a row and updates the view based on the column callbacks.
virtual void setLogic (DtVariableColumnTreeWidgetLogic *)=0
 Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic.
virtual QPoint menuPointForColumn (int) const =0
 Returns the point to place the menu on the header at the given column.
virtual bool isColumnVisible (int) const =0
 Returns true if column is visible.
virtual void setColumnVisible (int, bool)=0
 Sets column visibility state.

Static Public Member Functions

static DtSortFunctiondefaultSort ()

Static Protected Member Functions

static int defaultSort (QTreeWidgetItem *lhs, QTreeWidgetItem *rhs)

Detailed Description

Abstract interface for the back end slection list widget.

Member Typedef Documentation

typedef boost::function< QVariant ( const QString& rowKey, const QString& colKey, int role )> makVrf::DtVariableColumnTreeWidgetInterface::DtDisplayFunction

Member Enumeration Documentation

Enumerator:
Show 
Permenant 

Initially show column.

Constructor & Destructor Documentation

virtual makVrf::DtVariableColumnTreeWidgetInterface::~DtVariableColumnTreeWidgetInterface ( )
virtual

Virtual DTOR.

Member Function Documentation

virtual void makVrf::DtVariableColumnTreeWidgetInterface::addColumn ( const QString &  ,
const Flags ,
DtDisplayFunction display,
DtSortFunction sort = defaultSort() 
)
pure virtual

Adds a new columns to the list box.

If column named already exists, replaces with new information

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::setFlagsForColumn ( const QString &  s,
const Flags  
)
pure virtual

Sets the new flags for the column.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual int makVrf::DtVariableColumnTreeWidgetInterface::addColumn ( const QString &  s,
const Flags  
)
pure virtual

Adds a new column with the given flags. Returns column index.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual int makVrf::DtVariableColumnTreeWidgetInterface::removeColumn ( const QString &  )
pure virtual

Removes the column and returns the column index of where it was.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual QColor makVrf::DtVariableColumnTreeWidgetInterface::backgroundColor ( ) const
pure virtual

Returns background color of tree view.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::createMenuButton ( int  iCol,
const QPixmap &  arrow 
)
pure virtual

Creates a menu button at the specified column.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::clear ( )
pure virtual

Removes all rows.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::addRow ( const QString &  )
pure virtual

Adds a new row and updates the view based on column callbacks.

Since all data is updated in a callback, this value will only serve as the key to creating the new item

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::removeRow ( const QString &  )
pure virtual

Removes a row and updates the view based on the column callbacks.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::setLogic ( DtVariableColumnTreeWidgetLogic )
pure virtual

Sets new logic. Deletes old. New logic must at least be a subclass of DtVariableColumnTreeWidgetLogic.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual QPoint makVrf::DtVariableColumnTreeWidgetInterface::menuPointForColumn ( int  ) const
pure virtual

Returns the point to place the menu on the header at the given column.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual bool makVrf::DtVariableColumnTreeWidgetInterface::isColumnVisible ( int  ) const
pure virtual

Returns true if column is visible.

Implemented in makVrf::DtVariableColumnTreeWidget.

virtual void makVrf::DtVariableColumnTreeWidgetInterface::setColumnVisible ( int  ,
bool   
)
pure virtual

Sets column visibility state.

Implemented in makVrf::DtVariableColumnTreeWidget.

static DtSortFunction* makVrf::DtVariableColumnTreeWidgetInterface::defaultSort ( )
static
static int makVrf::DtVariableColumnTreeWidgetInterface::defaultSort ( QTreeWidgetItem lhs,
QTreeWidgetItem rhs 
)
staticprotected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)