Isis Developer Reference
TableColumn.h
Go to the documentation of this file.
1 #ifndef TableColumn_H
2 #define TableColumn_H
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include <QObject>
13 
14 class QString;
15 
16 
17 namespace Isis {
18 
26  class TableColumn : public QObject {
27  Q_OBJECT
28 
29  public:
30  explicit TableColumn(QString, bool, bool);
31  TableColumn(const TableColumn &);
32  virtual ~TableColumn();
33  QString getTitle() const;
34  void setTitle(QString text);
36  bool isVisible() const;
37  void setVisible(bool);
38  int getWidth() const;
39  void setWidth(int);
40  bool isReadOnly() const;
41  void setReadOnly(bool);
42  bool hasNetworkStructureEffect() const;
43  bool sortAscending() const;
44  void setSortAscending(bool ascending);
45 
46 
47  public:
48  static const int EDGE_WIDTH = 4;
49 
50 
51  signals:
53  void sortOutDated();
54  void widthChanged();
56 
57 
58  private: // methods
59  void nullify();
60 
61 
62  private: // data
63  QString *m_title;
64  bool m_visible;
65  bool m_readOnly;
66  int m_width;
67  bool m_affectsNetworkStructure;
68  bool m_ascendingSortOrder;
69  };
70 }
71 
72 #endif
TableColumn.h
Isis::TableColumn::setVisible
void setVisible(bool)
Definition: TableColumn.cpp:74
Isis::TableColumn::EDGE_WIDTH
static const int EDGE_WIDTH
Definition: TableColumn.h:48
Isis::TableColumn::~TableColumn
virtual ~TableColumn()
Definition: TableColumn.cpp:43
Isis::TableColumn
Definition: TableColumn.h:26
Isis::TableColumn::setWidth
void setWidth(int)
Definition: TableColumn.cpp:85
Isis::TableColumn::sortOutDated
void sortOutDated()
Isis::TableColumn::sortAscending
bool sortAscending() const
Definition: TableColumn.cpp:101
Isis::TableColumn::isVisible
bool isVisible() const
Definition: TableColumn.cpp:69
Isis::TableColumn::visibilityChanged
void visibilityChanged()
Isis::TableColumn::selected
void selected(TableColumn *)
Isis::TableColumn::hasNetworkStructureEffect
bool hasNetworkStructureEffect() const
Definition: TableColumn.cpp:96
Isis::TableColumn::setTitle
void setTitle(QString text)
Definition: TableColumn.cpp:54
Isis::TableColumn::getTitle
QString getTitle() const
Definition: TableColumn.cpp:49
Isis::TableColumn::getWidth
int getWidth() const
Definition: TableColumn.cpp:80
Isis::TableColumn::TableColumn
TableColumn(QString, bool, bool)
Definition: TableColumn.cpp:21
Isis::TableColumn::setSortAscending
void setSortAscending(bool ascending)
Definition: TableColumn.cpp:106
Isis::TableColumn::isReadOnly
bool isReadOnly() const
Definition: TableColumn.cpp:91
QObject
Isis::TableColumn::setReadOnly
void setReadOnly(bool)
Isis::TableColumn::widthChanged
void widthChanged()
Isis::TableColumn::operator=
TableColumn & operator=(TableColumn)
Definition: TableColumn.cpp:59
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16