Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Isis 3 Programmer Reference
TableColumnList.h
1#ifndef TableColumnList_H
2#define TableColumnList_H
3
9
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QObject>
13
14namespace Isis {
15 class TableColumn;
16
27 class TableColumnList : public QObject {
28 Q_OBJECT
29
30 public:
31 TableColumnList();
32 TableColumnList(TableColumnList const &);
33 virtual ~TableColumnList();
34
35 TableColumn * &operator[](int index);
36 TableColumn * &operator[](QString title);
37
38 void append(TableColumn *newCol);
39 void prepend(TableColumn *newCol);
40
41 int indexOf(TableColumn const *someCol) const;
42 bool contains(TableColumn const *someCol) const;
43 bool contains(QString columnTitle) const;
44
45 QPair< int, int > getVisibleXRange(int visibleColumn);
46 TableColumnList getVisibleColumns();
47
48 int getVisibleWidth() const;
49
50 QList< TableColumn * > getSortingOrder();
51 QStringList getSortingOrderAsStrings() const;
52 void setSortingOrder(QStringList newOrder);
53 void lower(TableColumn *col, bool emitSortOutDated = true);
54 // void lower(int visibleColumnIndex, bool emitSortOutDated = true);
55 void raise(TableColumn *col, bool emitSortOutDated = true);
56 // void raise(int visibleColumnIndex, bool emitSortOutDated = true);
57 void raiseToTop(TableColumn *col);
58 // void raiseToTop(int visibleColumnIndex);
59
60 int size() const;
61
62 TableColumnList &operator=(TableColumnList other);
63
64
65 signals:
66 void sortOutDated();
67
68
69 private:
70 void checkIndexRange(int index);
71 void nullify();
72
73
74 private:
76 QList< TableColumn * > * m_sortingOrder;
77 };
78}
79
80#endif
QPair< int, int > getVisibleXRange(int visibleColumn)
This is free and unencumbered software released into the public domain.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16