Isis 3 Developer Reference
TableColumn.h
Go to the documentation of this file.
1 #ifndef TableColumn_H
2 #define TableColumn_H
3 
4 #include <QObject>
5 
6 class QString;
7 
8 
9 namespace Isis {
10 
18  class TableColumn : public QObject {
19  Q_OBJECT
20 
21  public:
22  explicit TableColumn(QString, bool, bool);
23  TableColumn(const TableColumn &);
24  virtual ~TableColumn();
25  QString getTitle() const;
26  void setTitle(QString text);
28  bool isVisible() const;
29  void setVisible(bool);
30  int getWidth() const;
31  void setWidth(int);
32  bool isReadOnly() const;
33  void setReadOnly(bool);
34  bool hasNetworkStructureEffect() const;
35  bool sortAscending() const;
36  void setSortAscending(bool ascending);
37 
38 
39  public:
40  static const int EDGE_WIDTH = 4;
41 
42 
43  signals:
44  void selected(TableColumn *);
45  void sortOutDated();
46  void widthChanged();
47  void visibilityChanged();
48 
49 
50  private: // methods
51  void nullify();
52 
53 
54  private: // data
55  QString *m_title;
56  bool m_visible;
57  bool m_readOnly;
58  int m_width;
59  bool m_affectsNetworkStructure;
60  bool m_ascendingSortOrder;
61  };
62 }
63 
64 #endif
bool sortAscending() const
Definition: TableColumn.cpp:93
void setTitle(QString text)
Definition: TableColumn.cpp:46
QString getTitle() const
Definition: TableColumn.cpp:41
TableColumn(QString, bool, bool)
Definition: TableColumn.cpp:13
int getWidth() const
Definition: TableColumn.cpp:72
void setSortAscending(bool ascending)
Definition: TableColumn.cpp:98
bool isReadOnly() const
Definition: TableColumn.cpp:83
void setReadOnly(bool)
Definition: TableColumn.h:18
TableColumn & operator=(TableColumn)
Definition: TableColumn.cpp:51
static const int EDGE_WIDTH
Definition: TableColumn.h:40
void setVisible(bool)
Definition: TableColumn.cpp:66
virtual ~TableColumn()
Definition: TableColumn.cpp:35
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
bool isVisible() const
Definition: TableColumn.cpp:61
void selected(TableColumn *)
void setWidth(int)
Definition: TableColumn.cpp:77
void visibilityChanged()
bool hasNetworkStructureEffect() const
Definition: TableColumn.cpp:88