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
14class QString;
15
16
17namespace 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:
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
Definition TableColumn.h:26
void setSortAscending(bool ascending)
Definition TableColumn.cpp:106
TableColumn(QString, bool, bool)
Definition TableColumn.cpp:21
QString getTitle() const
Definition TableColumn.cpp:49
void setTitle(QString text)
Definition TableColumn.cpp:54
void selected(TableColumn *)
void setReadOnly(bool)
bool sortAscending() const
Definition TableColumn.cpp:101
void visibilityChanged()
bool isReadOnly() const
Definition TableColumn.cpp:91
void setWidth(int)
Definition TableColumn.cpp:85
bool isVisible() const
Definition TableColumn.cpp:69
void setVisible(bool)
Definition TableColumn.cpp:74
virtual ~TableColumn()
Definition TableColumn.cpp:43
static const int EDGE_WIDTH
Definition TableColumn.h:48
int getWidth() const
Definition TableColumn.cpp:80
TableColumn & operator=(TableColumn)
Definition TableColumn.cpp:59
bool hasNetworkStructureEffect() const
Definition TableColumn.cpp:96
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16