29#include <sptk5/Strings.h>
30#include <sptk5/Variant.h>
31#include <sptk5/xdoc/Node.h>
80 bool cvisible =
true);
101 return (int16_t) m_width;
110 m_width = (uint32_t) w;
161 void load(
const xdoc::SNode& node);
170 void save(
const xdoc::SNode& node)
const;
177 :
public std::vector<CColumn>
197 void load(
const xdoc::SNode& node);
205 void save(
const xdoc::SNode& node)
const;
Definition: CColumn.h:178
void save(const xdoc::SNode &node) const
Saves columns information.
CColumnList()=default
Default constructor.
int indexOf(const char *columnName) const
Finds the column index by column name.
void load(const xdoc::SNode &node)
Loads columns information.
Class CColumn represents a column descriptor for CListView.
Definition: CColumn.h:45
void width(int16_t w)
Sets column width in pixels.
Definition: CColumn.h:108
String name() const
Returns column name.
Definition: CColumn.h:91
bool autoWidth() const
Returns Column auto width flag.
Definition: CColumn.h:133
void save(const xdoc::SNode &node) const
Saves column information.
void visible(bool v)
Sets column visibility.
Definition: CColumn.h:125
CColumn(const CColumn &col)=default
Copy constructor.
CColumn(const std::string &cname="", VariantDataType type=VariantDataType::VAR_STRING, int32_t cwidth=100, bool cvisible=true)
Constructor.
void autoWidth(bool v)
Sets column auto width flag.
Definition: CColumn.h:142
void load(const xdoc::SNode &node)
Loads column information.
VariantDataType type() const
Returns column data type.
Definition: CColumn.h:150
bool visible() const
Returns column visibility.
Definition: CColumn.h:116
int16_t width() const
Returns column width in pixels.
Definition: CColumn.h:99
VariantDataType
Definition: VariantData.h:44
@ VAR_STRING
String pointer.