DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
tableselection.hpp
Go to the documentation of this file.
1#ifndef TABLESELECTIONMODEL_H
2#define TABLESELECTIONMODEL_H
3
5#include "dbe/table.hpp"
6
7#include <QSortFilterProxyModel>
9#include "dbe/TableNode.hpp"
11
12namespace dbe
13{
14namespace models
15{
16
18 public QSortFilterProxyModel,
19 public model_common_impl<tableselection>,
20 public model_common_async_operations<tableselection>
21{
22 Q_OBJECT
23
25
26public :
27
29
34
35 tableselection ( QObject * parent = 0 );
36
37 void SetFilterType ( FilterType Filter );
38
39 TableNode * getnode ( const QModelIndex & index ) const;
40
41 bool setData ( const QModelIndex & index, const QVariant & value, int role );
42
43 void ResetModel();
44
45protected:
46 bool filterAcceptsRow ( int sourceRow, const QModelIndex & sourceParent ) const;
47
48 bool lessThan ( const QModelIndex & left, const QModelIndex & right ) const;
49
50private:
53
54private slots:
55 void slot_create_object ( QString const & src, dref const & obj );
56 void slot_remove_object ( QString const & src, dref const & obj );
57 void slot_update_object ( QString const & src, dref const & obj );
58 void slot_rename_object ( QString const & src, dref const & obj );
59};
60
61}
62// namespace models
63}// namespace dbe
64#endif // TABLESELECTIONMODEL_H
TableNode * getnode(const QModelIndex &index) const
void SetFilterType(FilterType Filter)
bool setData(const QModelIndex &index, const QVariant &value, int role)
bool lessThan(const QModelIndex &left, const QModelIndex &right) const
tableselection(QObject *parent=0)
void slot_update_object(QString const &src, dref const &obj)
void slot_create_object(QString const &src, dref const &obj)
void slot_rename_object(QString const &src, dref const &obj)
void slot_remove_object(QString const &src, dref const &obj)
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
#define MODEL_COMMON_IMPL_REQ_DEF(classname)
Include QT Headers.