Isis Developer Reference
TableColumnList.h
Go to the documentation of this file.
1 #ifndef TableColumnList_H
2 #define TableColumnList_H
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include <QObject>
13 
14 template<typename A, typename B> struct QPair;
15 
16 
17 namespace Isis {
18  class TableColumn;
19 
30  class TableColumnList : public QObject {
31  Q_OBJECT
32 
33  public:
36  virtual ~TableColumnList();
37 
38  TableColumn * &operator[](int index);
39  TableColumn * &operator[](QString title);
40 
41  void append(TableColumn *newCol);
42  void prepend(TableColumn *newCol);
43 
44  int indexOf(TableColumn const *someCol) const;
45  bool contains(TableColumn const *someCol) const;
46  bool contains(QString columnTitle) const;
47 
48  QPair< int, int > getVisibleXRange(int visibleColumn);
50 
51  int getVisibleWidth() const;
52 
55  void setSortingOrder(QStringList newOrder);
56  void lower(TableColumn *col, bool emitSortOutDated = true);
57  // void lower(int visibleColumnIndex, bool emitSortOutDated = true);
58  void raise(TableColumn *col, bool emitSortOutDated = true);
59  // void raise(int visibleColumnIndex, bool emitSortOutDated = true);
60  void raiseToTop(TableColumn *col);
61  // void raiseToTop(int visibleColumnIndex);
62 
63  int size() const;
64 
66 
67 
68  signals:
69  void sortOutDated();
70 
71 
72  private:
73  void checkIndexRange(int index);
74  void nullify();
75 
76 
77  private:
78  QList< TableColumn * > * m_cols;
79  QList< TableColumn * > * m_sortingOrder;
80  };
81 }
82 
83 #endif
Isis::TableColumnList::size
int size() const
Definition: TableColumnList.cpp:166
TableColumn.h
Isis::TableColumnList::prepend
void prepend(TableColumn *newCol)
Definition: TableColumnList.cpp:84
Isis::TableColumnList::sortOutDated
void sortOutDated()
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::TableColumnList::append
void append(TableColumn *newCol)
Definition: TableColumnList.cpp:72
Isis::TableColumnList::operator=
TableColumnList & operator=(TableColumnList other)
Definition: TableColumnList.cpp:172
Isis::TableColumn
Definition: TableColumn.h:26
Isis::TableColumnList::indexOf
int indexOf(TableColumn const *someCol) const
Definition: TableColumnList.cpp:90
Isis::TableColumnList::getVisibleColumns
TableColumnList getVisibleColumns()
Definition: TableColumnList.cpp:204
QStringList
Isis::TableColumnList::~TableColumnList
virtual ~TableColumnList()
Definition: TableColumnList.cpp:44
Isis::TableColumnList::contains
bool contains(TableColumn const *someCol) const
Definition: TableColumnList.cpp:100
Isis::TableColumnList::raise
void raise(TableColumn *col, bool emitSortOutDated=true)
Definition: TableColumnList.cpp:133
Isis::TableColumnList::raiseToTop
void raiseToTop(TableColumn *col)
Definition: TableColumnList.cpp:153
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::TableColumnList
Definition: TableColumnList.h:30
Isis::TableColumnList::setSortingOrder
void setSortingOrder(QStringList newOrder)
Definition: TableColumnList.cpp:263
Isis::TableColumnList::getVisibleXRange
QPair< int, int > getVisibleXRange(int visibleColumn)
Definition: TableColumnList.cpp:184
Isis::TableColumnList::getSortingOrderAsStrings
QStringList getSortingOrderAsStrings() const
Definition: TableColumnList.cpp:253
Isis::IException
Isis exception class.
Definition: IException.h:91
ASSERT
#define ASSERT(x)
Definition: IsisDebug.h:134
Isis::TableColumnList::lower
void lower(TableColumn *col, bool emitSortOutDated=true)
Definition: TableColumnList.cpp:113
Isis::TableColumnList::TableColumnList
TableColumnList()
Definition: TableColumnList.cpp:28
IException.h
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
QPair
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:23
Isis::TableColumnList::getSortingOrder
QList< TableColumn * > getSortingOrder()
Definition: TableColumnList.cpp:241
Isis::TableColumnList::operator[]
TableColumn *& operator[](int index)
Definition: TableColumnList.cpp:53
Isis::TableColumnList::getVisibleWidth
int getVisibleWidth() const
Definition: TableColumnList.cpp:228
QObject
IsisDebug.h
TableColumnList.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16