14#include "AbstractTableModel.h"
17template<
typename T>
class QList;
21 class AbstractTableModel;
22 class AbstractTreeItem;
24 class TableViewContent;
25 class TableViewHeader;
26 class TableColumnList;
48 QString pathForSettigs, QString objName);
51 QFont getContentFont()
const;
74 void rebuildModels(QList< AbstractTreeItem * >);
75 void selectionChanged();
76 void modelDataChanged();
77 void tableSelectionChanged(QList< AbstractTreeItem * >);
78 void filterCountsChanged(
int visibleRows,
int totalRows);
Translates the tree model into a table model.
TableViewHeader * m_header
The table header.
TableViewHeader * getHorizontalHeader()
Returns the horizontal header.
AbstractTableModel * getModel()
Returns the model.
virtual ~TableView()
Destructor.
TableViewContent * m_content
The content of the header.
TableColumnList * m_columns
The columns of the table.
QString * m_settingsPath
Path of where to read/write the settings.
void handleModelSelectionChanged()
Handles refreshing the content when the model selection is changed.
AbstractTableModel * m_model
The model of the table.
void displayWarning(AbstractTableModel::Warning)
Displays warnings for a table.
TableViewContent * content()
Returns the content of the table.
void setColumnVisible(QString, bool)
Sets the specified column visible or invisible.
QLabel * m_warningLabel
Label of any warnings.
TableView(AbstractTableModel *someModel, QString pathForSettigs, QString objName)
Constructor.
void nullify()
Sets all member variables to NULL.
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.