#include <zypp-tui/Table.h>
- Todo
- nice idea but poor interface
Definition at line 398 of file Table.h.
◆ container
◆ Table()
◆ add()
◆ setHeader()
◆ dumpTo()
std::ostream & ztui::Table::dumpTo |
( |
std::ostream & | stream | ) |
const |
- Todo
- allow abbrev of multiple columns?
Definition at line 403 of file Table.cc.
◆ empty()
bool ztui::Table::empty |
( |
| ) |
const |
|
inline |
◆ defaultSortColumn() [1/2]
unsigned ztui::Table::defaultSortColumn |
( |
| ) |
const |
|
inline |
◆ defaultSortColumn() [2/2]
void ztui::Table::defaultSortColumn |
( |
unsigned | byColumn_r | ) |
|
|
inline |
◆ sort() [1/5]
void ztui::Table::sort |
( |
| ) |
|
|
inline |
◆ sort() [2/5]
void ztui::Table::sort |
( |
unsigned | byColumn_r | ) |
|
|
inline |
Sort by byColumn_r.
Definition at line 429 of file Table.h.
◆ sort() [3/5]
void ztui::Table::sort |
( |
const std::list< unsigned > & | byColumns_r | ) |
|
|
inline |
◆ sort() [4/5]
void ztui::Table::sort |
( |
std::list< unsigned > && | byColumns_r | ) |
|
|
inline |
◆ sort() [5/5]
Custom sort.
Definition at line 435 of file Table.h.
◆ lineStyle()
◆ wrap()
void ztui::Table::wrap |
( |
int | force_break_after = -1 | ) |
|
◆ allowAbbrev()
void ztui::Table::allowAbbrev |
( |
unsigned | column | ) |
|
◆ margin()
void ztui::Table::margin |
( |
unsigned | margin | ) |
|
◆ header()
◆ rows() [1/2]
const container & ztui::Table::rows |
( |
| ) |
const |
|
inline |
◆ rows() [2/2]
◆ dumpRule()
void ztui::Table::dumpRule |
( |
std::ostream & | stream | ) |
const |
|
private |
◆ updateColWidths()
void ztui::Table::updateColWidths |
( |
const TableRow & | tr | ) |
const |
|
private |
◆ TableRow
◆ defaultStyle
◆ Unsorted
constexpr unsigned ztui::Table::Unsorted = unsigned(-1) |
|
staticconstexpr |
Unsorted - pseudo sort column indicating not to sort.
Definition at line 415 of file Table.h.
◆ UserData
constexpr unsigned ztui::Table::UserData = unsigned(-2) |
|
staticconstexpr |
UserData - sort column using a custom sort index.
Definition at line 417 of file Table.h.
◆ _has_header
bool ztui::Table::_has_header |
|
private |
◆ _header
◆ _rows
◆ _max_col
unsigned ztui::Table::_max_col |
|
mutableprivate |
maximum column index seen in this table
Definition at line 460 of file Table.h.
◆ _max_width
std::vector<unsigned> ztui::Table::_max_width |
|
mutableprivate |
maximum width of respective columns
Definition at line 462 of file Table.h.
◆ _width
table width (columns)
Definition at line 464 of file Table.h.
◆ _style
table line drawing style
Definition at line 466 of file Table.h.
◆ _screen_width
int ztui::Table::_screen_width |
|
private |
amount of space we have to print this table
Definition at line 468 of file Table.h.
◆ _abbrev_col
std::vector<bool> ztui::Table::_abbrev_col |
|
private |
whether to abbreviate the respective column if needed
Definition at line 470 of file Table.h.
◆ _margin
unsigned ztui::Table::_margin |
|
private |
left/right margin in number of spaces
Definition at line 472 of file Table.h.
◆ _force_break_after
int ztui::Table::_force_break_after |
|
private |
if _do_wrap is set, first break the table at this column; If negative, wrap as needed.
Definition at line 475 of file Table.h.
◆ _do_wrap
bool ztui::Table::_do_wrap |
|
private |
Whether to wrap the table if it exceeds _screen_width.
Definition at line 477 of file Table.h.
◆ _defaultSortColumn
◆ _inHeader
bool ztui::Table::_inHeader |
|
mutableprivate |
The documentation for this class was generated from the following files: