WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. Zuble QML Types   |  Zuble C++ Classes   |  Zuble Overview
Zuble  0.1
Zuble Framework C++/QML extension API
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties | List of all members
Zbl::ZTableColumn Class Reference

Defines a column in a ZTableView. More...

#include <ZTableColumn.h>

Inheritance diagram for Zbl::ZTableColumn:
Inheritance graph
[legend]
Collaboration diagram for Zbl::ZTableColumn:
Collaboration graph
[legend]

Public Member Functions

 ZTableColumn (QObject *parent=0)
 
QString getRole ()
 
void putRole (const QString &role)
 
QString getLabel ()
 
void putLabel (const QString &label)
 
int getWidth ()
 
void putWidth (int width)
 
int getType ()
 
void putType (int width)
 
bool getVisible ()
 
void putVisible (bool visible)
 

Static Public Member Functions

static void registerType ()
 Registers ZTableColumn as a QML type. More...
 

Protected Attributes

QString m_role
 
QString m_label
 
int m_width
 
int m_type
 
bool m_visible
 

Properties

QString role
 Role name of the data to display in this column. More...
 
QString label
 Text to display in the column header. More...
 
int width
 
int type
 
bool visible
 

Detailed Description

Defines a column in a ZTableView.

Definition at line 38 of file ZTableColumn.h.

Constructor & Destructor Documentation

◆ ZTableColumn()

Zbl::ZTableColumn::ZTableColumn ( QObject *  parent = 0)
explicit

Definition at line 31 of file ZTableColumn.cpp.

Member Function Documentation

◆ getLabel()

QString Zbl::ZTableColumn::getLabel ( )

Definition at line 57 of file ZTableColumn.cpp.

◆ getRole()

QString Zbl::ZTableColumn::getRole ( )

Definition at line 47 of file ZTableColumn.cpp.

◆ getType()

int Zbl::ZTableColumn::getType ( )

Definition at line 77 of file ZTableColumn.cpp.

◆ getVisible()

bool Zbl::ZTableColumn::getVisible ( )

Definition at line 87 of file ZTableColumn.cpp.

◆ getWidth()

int Zbl::ZTableColumn::getWidth ( )

Definition at line 67 of file ZTableColumn.cpp.

◆ putLabel()

void Zbl::ZTableColumn::putLabel ( const QString &  label)

Definition at line 62 of file ZTableColumn.cpp.

◆ putRole()

void Zbl::ZTableColumn::putRole ( const QString &  role)

Definition at line 52 of file ZTableColumn.cpp.

◆ putType()

void Zbl::ZTableColumn::putType ( int  width)

Definition at line 82 of file ZTableColumn.cpp.

◆ putVisible()

void Zbl::ZTableColumn::putVisible ( bool  visible)

Definition at line 92 of file ZTableColumn.cpp.

◆ putWidth()

void Zbl::ZTableColumn::putWidth ( int  width)

Definition at line 72 of file ZTableColumn.cpp.

◆ registerType()

void Zbl::ZTableColumn::registerType ( )
static

Registers ZTableColumn as a QML type.

Definition at line 40 of file ZTableColumn.cpp.

Referenced by Zbl::Zblcore::registerTypes().

Member Data Documentation

◆ m_label

QString Zbl::ZTableColumn::m_label
protected

Definition at line 104 of file ZTableColumn.h.

Referenced by getLabel(), and putLabel().

◆ m_role

QString Zbl::ZTableColumn::m_role
protected

Definition at line 103 of file ZTableColumn.h.

Referenced by getRole(), and putRole().

◆ m_type

int Zbl::ZTableColumn::m_type
protected

Definition at line 106 of file ZTableColumn.h.

Referenced by getType(), and putType().

◆ m_visible

bool Zbl::ZTableColumn::m_visible
protected

Definition at line 107 of file ZTableColumn.h.

Referenced by getVisible(), and putVisible().

◆ m_width

int Zbl::ZTableColumn::m_width
protected

Definition at line 105 of file ZTableColumn.h.

Referenced by getWidth(), and putWidth().

Property Documentation

◆ label

QString Zbl::ZTableColumn::label
readwrite

Text to display in the column header.

Definition at line 56 of file ZTableColumn.h.

Referenced by putLabel().

◆ role

QString Zbl::ZTableColumn::role
readwrite

Role name of the data to display in this column.

Roles are defined by the data model

Definition at line 50 of file ZTableColumn.h.

Referenced by putRole().

◆ type

int Zbl::ZTableColumn::type
readwrite

Type of the column (user defined)

Definition at line 68 of file ZTableColumn.h.

◆ visible

bool Zbl::ZTableColumn::visible
readwrite

When true the column in visible, when false the column is hidden

Definition at line 74 of file ZTableColumn.h.

Referenced by putVisible().

◆ width

int Zbl::ZTableColumn::width
readwrite

Width of the column in pixels

Definition at line 62 of file ZTableColumn.h.

Referenced by putType(), and putWidth().


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