|
#include <CColumn.h>
Public Member Functions | |
| CColumn (std::string cname="", CVariantType type=VAR_STRING, int16_t cwidth=100, bool cvisible=true) | |
| Constructor. | |
| CColumn (const CColumn &col) | |
| Copy constructor. | |
| std::string | name () const |
| Returns column name. | |
| int16_t | width () const |
| Returns column width in pixels. | |
| void | width (int16_t w) |
| Sets column width in pixels. | |
| bool | visible () const |
| Returns column visibility. | |
| void | visible (bool v) |
| Sets column visibility. | |
| bool | autoWidth () const |
| Returns Column auto width flag. | |
| void | autoWidth (bool v) |
| Sets column auto width flag. | |
| CVariantType | type () const |
| Returns column data type. | |
| void | load (const CXmlNode &node) |
| Loads column information. | |
| void | load (const CXmlNode *node) |
| Loads column information. | |
| void | save (CXmlNode &node) const |
| Saves column information. | |
| void | save (CXmlNode *node) const |
| Saves column information. | |
Protected Attributes | |
| std::string | m_name |
| Column name. | |
| uint32_t | m_width |
| Column width in pixels. | |
| CVariantType | m_type |
| Column data type. | |
| bool | m_visible |
| Column visibility. | |
| bool | m_autoWidth |
| Column auto width flag. | |
| sptk::CColumn::CColumn | ( | std::string | cname = "", |
|
| CVariantType | type = VAR_STRING, |
|||
| int16_t | cwidth = 100, |
|||
| bool | cvisible = true | |||
| ) |
Constructor.
| cname | std::string, column name | |
| type | CVariantType, column data type | |
| cwidth | int16_t, column width | |
| cvisible | bool, column visibility |
| sptk::CColumn::CColumn | ( | const CColumn & | col | ) |
| void sptk::CColumn::load | ( | const CXmlNode * | node | ) | [inline] |
Loads column information.
Loads information about column from the registry.
| node | const CXmlNode*, an XML node to load column information from |
| void sptk::CColumn::load | ( | const CXmlNode & | node | ) |
Loads column information.
Loads information about column from the registry.
| node | const CXmlNode&, an XML node to load column information from |
| void sptk::CColumn::save | ( | CXmlNode * | node | ) | const [inline] |
Saves column information.
Saves information about column from the registry.
| node | CXmlNode*, an XML node to unload column information to |
| void sptk::CColumn::save | ( | CXmlNode & | node | ) | const |
Saves column information.
Saves information about column from the registry.
| node | CXmlNode&, an XML node to unload column information to |