Empirical
Classes | Namespaces
Table.h File Reference

Specs for the Table widget. More...

#include "../base/vector.h"
#include "Div.h"
#include "Widget.h"
#include "WidgetExtras.h"
#include "_TableCell.h"
#include "_TableRow.h"
#include "_TableCol.h"
#include "_TableRowGroup.h"
#include "_TableColGroup.h"

Go to the source code of this file.

Classes

struct  emp::web::internal::TableDataInfo
 
struct  emp::web::internal::TableRowInfo
 
struct  emp::web::internal::TableColInfo
 
struct  emp::web::internal::TableGroupInfo
 
class  emp::web::internal::TableInfo
 
class  emp::web::TableWidget
 
class  emp::web::Table
 

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 
 emp::web
 
 emp::web::internal
 

Detailed Description

Specs for the Table widget.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2015-2017

TableInfo is the core information for a table and has two helper classes: TableRowInfo and TableDataInfo. The Table class is a smart pointer to a TableInfo object.

A Table is composed of a series of rows, each with the same number of columns. TableDataInfo may be muliple cells wide/tall, masking other cells.

Todo:

Tables should more directly manage internal slates rather than just adding divs and then having them filled in.

TextTables should be created that simply use text in cells, radically speeding up printing of such tables (and covering 80% of use cases).

IDEALLY: Make a single table that will look at what each cell is pointing to (table or text) and write out what it needs to, in place.

Add a ClearColumn method, as well as other column functionality.

Add an operator[] to table that returns the appropriate row (and one to row for cell).