swift
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
swift::misc::IOrderable Class Reference

Entity with order attribute (can be manually ordered in views) More...

Inheritance diagram for swift::misc::IOrderable:
[legend]

Public Types

enum  ColumnIndex { IndexOrder = CPropertyIndexRef::GlobalIndexIOrderable , IndexOrderString }
 Properties by index.
 

Public Member Functions

int getOrder () const
 Order.
 
QString getOrderAsString () const
 Order as string.
 
void setOrder (int order)
 Set order.
 
bool hasValidOrder () const
 Valid order set?
 

Static Public Member Functions

static bool isAnyOrderIndex (int index)
 Any order index.
 

Protected Member Functions

 IOrderable ()
 Constructor.
 
 IOrderable (int order)
 Constructor.
 
QVariant propertyByIndex (CPropertyIndexRef index) const
 Property by index. More...
 
void setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant)
 Set property by index. More...
 
int comparePropertyByIndex (CPropertyIndexRef index, const IOrderable &compareValue) const
 Compare for index. More...
 

Static Protected Member Functions

static bool canHandleIndex (CPropertyIndexRef index)
 Can given index be handled.
 

Protected Attributes

int m_order = -1
 order number
 

Detailed Description

Entity with order attribute (can be manually ordered in views)

Definition at line 18 of file orderable.h.

Member Function Documentation

◆ comparePropertyByIndex()

int swift::misc::IOrderable::comparePropertyByIndex ( CPropertyIndexRef  index,
const IOrderable compareValue 
) const
protected

Compare for index.

Definition at line 73 of file orderable.cpp.

◆ propertyByIndex()

QVariant swift::misc::IOrderable::propertyByIndex ( CPropertyIndexRef  index) const
protected

Property by index.

Definition at line 40 of file orderable.cpp.

◆ setPropertyByIndex()

void swift::misc::IOrderable::setPropertyByIndex ( CPropertyIndexRef  index,
const QVariant &  variant 
)
protected

Set property by index.

Definition at line 57 of file orderable.cpp.


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