9#include "TableColumn.h" 
   21  TableColumn::TableColumn(QString text, 
bool m_readOnlyStatus,
 
   22      bool affectsNetStructure) {
 
   25    m_title = 
new QString(text);
 
   27    m_readOnly = m_readOnlyStatus;
 
   28    m_affectsNetworkStructure = affectsNetStructure;
 
   29    m_ascendingSortOrder = 
true;
 
   33  TableColumn::TableColumn(
const TableColumn &other) {
 
   36    m_title = 
new QString(*other.m_title);
 
   37    m_visible = other.m_visible;
 
   38    m_readOnly = other.m_readOnly;
 
   39    m_width = other.m_width;
 
   43  TableColumn::~TableColumn() {
 
   49  QString TableColumn::getTitle()
 const {
 
   54  void TableColumn::setTitle(QString text) {
 
   59  TableColumn &TableColumn::operator=(TableColumn other) {
 
   60    swap(*m_title, *other.m_title);
 
   61    swap(m_visible, other.m_visible);
 
   62    swap(m_readOnly, other.m_readOnly);
 
   63    swap(m_width, other.m_width);
 
   69  bool TableColumn::isVisible()
 const {
 
   74  void TableColumn::setVisible(
bool visibility) {
 
   75    m_visible = visibility;
 
   76    emit visibilityChanged();
 
   80  int TableColumn::getWidth()
 const {
 
   85  void TableColumn::setWidth(
int newWidth) {
 
   91  bool TableColumn::isReadOnly()
 const {
 
   96  bool TableColumn::hasNetworkStructureEffect()
 const {
 
   97    return m_affectsNetworkStructure;
 
  101  bool TableColumn::sortAscending()
 const {
 
  102    return m_ascendingSortOrder;
 
  106  void TableColumn::setSortAscending(
bool ascending) {
 
  107    m_ascendingSortOrder = ascending;
 
  112  void TableColumn::nullify() {
 
This is free and unencumbered software released into the public domain.