BiblioteQ: Source/biblioteq_main_table.h Source File

BiblioteQ

biblioteq_main_table.h
1 #ifndef _BIBLIOTEQ_MAIN_TABLE_H_
2 #define _BIBLIOTEQ_MAIN_TABLE_H_
3
4 #include <QTableWidget>
5
6 class biblioteq;
7
8 class biblioteq_main_table: public QTableWidget
9 {
10 Q_OBJECT
11
12 public:
13 biblioteq_main_table(QWidget *parent);
14 QHash<QString, QString> friendlyStates(void) const;
15 QStringList columnNames(void) const;
16 int columnNumber(const QString &name) const;
17 void parseStates(const QHash<QString, QString> &states);
18 void recordColumnHidden(const QString &username,
19 const QString &type,
20 const int index,
21 const bool hidden);
22 void resetTable(const QString &username,
23 const QString &t,
24 const QString &roles);
25 void setColumnNames(const QStringList &list);
26 void setQMain(biblioteq *biblioteq);
27 void updateToolTips(const int row);
28
29 private:
30 QHash<QString, QList<int> > m_hiddenColumns;
31 QVector<QString> m_columnHeaderIndexes;
32 biblioteq *m_qmain;
33 void keyPressEvent(QKeyEvent *event);
34 void setColumns(const QString &username,
35 const QString &type,
36 const QString &roles);
37
38 signals:
39 void enterKeyPressed(void);
40 };
41
42 #endif
biblioteq_main_table
Definition: biblioteq_main_table.h:8
biblioteq
Definition: biblioteq.h:179