swift
Public Member Functions | Static Public Member Functions | List of all members
swift::gui::models::CColumn Class Reference

Single column. More...

Public Member Functions

 CColumn (const QString &headerName, const swift::misc::CPropertyIndex &propertyIndex, CDefaultFormatter *formatter, bool editable=false)
 Constructor.
 
 CColumn (const QString &headerName, const QString &toolTip, const swift::misc::CPropertyIndex &propertyIndex, CDefaultFormatter *formatter, bool editable=false)
 Constructor.
 
 CColumn (const QString &toolTip, const swift::misc::CPropertyIndex &propertyIndex)
 Constructor, icon with tool tip.
 
 CColumn (const swift::misc::CPropertyIndex &propertyIndex)
 Constructor used for icons.
 
bool hasAlignment () const
 Alignment for this column?
 
bool isEditable () const
 Editable?
 
void setEditable (bool editable)
 Set editable.
 
bool isSortable () const
 Sortable?
 
void setSortable (bool sortable)
 Set sortable.
 
swift::misc::CPropertyIndex getSortPropertyIndex () const
 Property index used when sorting, option alternative.
 
bool hasSortPropertyIndex () const
 Sort index available.
 
void setSortPropertyIndex (const swift::misc::CPropertyIndex &propertyIndex)
 Property index used when sorting, option alternative.
 
void setFormatter (CDefaultFormatter *formatter)
 Formatter.
 
const CDefaultFormattergetFormatter () const
 Formatter.
 
swift::misc::CVariant getAlignment () const
 Aligment as CVariant.
 
const QString & getColumnName () const
 Column name.
 
const QString & getColumnToolTip () const
 Column tooltip.
 
const swift::misc::CPropertyIndexgetPropertyIndex () const
 Property index.
 
void setTranslationContext (const QString &translationContext)
 Translation context.
 
int getWidthPercentage () const
 Width in percentage.
 
bool hasWidthPercentage () const
 Having a width percentage.
 
void setWidthPercentage (int width)
 Width percentage.
 
bool isIncognito () const
 If incognito mode, do NOT display daza.
 
void setIncognito (bool incognito)
 Mark as incognito enabled.
 

Static Public Member Functions

static CColumn standardValueObject (const QString &headerName, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
 Get a standard value object formatted column.
 
static CColumn standardValueObject (const QString &headerName, const QString &toolTip, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
 Get a standard value object formatted column.
 
static CColumn standardString (const QString &headerName, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
 Get a standard string object formatted column.
 
static CColumn standardString (const QString &headerName, const QString &toolTip, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignDefault())
 Get a standard string object formatted column.
 
static CColumn orderColumn (const swift::misc::CPropertyIndex &propertyIndex=swift::misc::CPropertyIndexRef::GlobalIndexIOrderable, int alignment=CDefaultFormatter::alignRightVCenter())
 Get a standard string object formatted column.
 
static CColumn standardInteger (const QString &headerName, const QString &toolTip, const swift::misc::CPropertyIndex &propertyIndex, int alignment=CDefaultFormatter::alignRightVCenter())
 Get a standard integer value formatted column.
 
static CColumn emptyColumn ()
 An empty column.
 

Detailed Description

Single column.

Definition at line 25 of file columns.h.


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