DUNE-DAQ
DUNE Trigger and Data Acquisition software
|
#include <table.hpp>
Public Types | |
typedef TableNode | type_datum |
Public Slots | |
void | slot_data_dropped (QMimeData const &, Qt::DropAction) |
Signals | |
void | ResetTab () |
Public Member Functions | |
table (QObject *parent=nullptr) | |
Including QT Headers. | |
~table () | |
int | rowCount (type_index const &parent) const override |
int | columnCount (type_index const &parent) const override |
QVariant | data (type_index const &index, int role) const override |
bool | setData (type_index const &index, const QVariant &value, int role) override |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
Qt::ItemFlags | flags (type_index const &index) const override |
TableNode * | getnode (const QModelIndex &Index) const |
QStringList | mimeTypes () const override |
Qt::DropActions | supportedDropActions () const override |
bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, type_index const &parent) override |
void | ResetModel () |
bool | BuildTableFromClass (const QString &ClassName, bool BuildSubClasses=false) |
bool | BuildTableFromObject (QList< QStringList > BuildList) |
bool | is_built () const |
QString | get_class_name () const |
tref | GetTableObject (int ObjectIndex) const |
QList< dbe::dref > * | GetTableObjects () |
void | objectsUpdated (const std::vector< dbe::dref > &objects) |
![]() | |
bool | delete_objects (type_indices::iterator, type_indices::iterator) override |
bool | update_objects (type_indices::iterator, type_indices::iterator) override |
bool | create_objects (type_indices::iterator, type_indices::iterator) override |
![]() | |
virtual | ~model_common_interface ()=default |
![]() | |
virtual | ~model_initiate_actions_interface ()=default |
![]() | |
virtual type_object_ref | getobject (type_index const &index) const =0 |
virtual type_class_info | getclass (type_index const &index) const =0 |
virtual QAbstractItemModel * | ReturnSourceModel () const =0 |
virtual | ~model_common_data_access_interface ()=default |
![]() | |
MODEL_COMMON_TYPES_TOPLEVEL_DEFINITIONS | model_common_async_operations () |
void | model_common_connections () |
Private Slots | |
void | slot_create_object (QString const &src, dref const &obj) |
void | slot_remove_object (QString const &src, dref const &obj) |
void | slot_update_object (QString const &src, dref const &obj) |
void | slot_rename_object (QString const &src, dref const &obj) |
Private Member Functions | |
void | reset (QString const &) |
void | setheader (dunedaq::conffwk::class_t const &) |
QList< type_datum * > | createrow (treenode const *) |
Private Attributes | |
bool | enabled |
QString | this_class_name |
dunedaq::conffwk::class_t | class_type_info |
QStringList | this_headers |
QList< dref > | this_objects |
QList< QList< TableNode * > > | this_structure |
Additional Inherited Members | |
![]() | |
virtual void | remove_deleted_object (type_index const &index)=0 |
virtual void | rename_contained_object (type_index const &index, type_object_info const &obj)=0 |
virtual void | update_contained_object (type_index const &index, type_object_info const &obj)=0 |
virtual void | create_contained_object (type_index const &index, type_object_info const &obj)=0 |
virtual type_index | lookup (type_object_info const &)=0 |
QUuid | getuuid () const |
![]() | |
void | remove_object (type_object_info const &) |
void | create_object (type_object_info const &) |
void | rename_object (type_object_info const &) |
void | update_object (type_object_info const &) |
void | update_multiple_objects (std::vector< type_object_info > const &) |
|
explicit |
Including QT Headers.
Definition at line 18 of file table.cpp.
bool dbe::models::table::BuildTableFromClass | ( | const QString & | ClassName, |
bool | BuildSubClasses = false ) |
Looping over classes Only in the case of derived classes this will be more than one
All objects from that class
Definition at line 243 of file table.cpp.
bool dbe::models::table::BuildTableFromObject | ( | QList< QStringList > | BuildList | ) |
Definition at line 405 of file table.cpp.
|
override |
|
private |
Definition at line 294 of file table.cpp.
|
override |
Definition at line 47 of file table.cpp.
|
override |
Here if parent is valid it indicates that the drop ocurred on an item otherwise it ocurred on a top level item
Definition at line 192 of file table.cpp.
|
override |
Definition at line 164 of file table.cpp.
QString dbe::models::table::get_class_name | ( | ) | const |
dbe::TableNode * dbe::models::table::getnode | ( | const QModelIndex & | Index | ) | const |
dbe::tref dbe::models::table::GetTableObject | ( | int | ObjectIndex | ) | const |
QList< dbe::dref > * dbe::models::table::GetTableObjects | ( | ) |
|
override |
Definition at line 142 of file table.cpp.
bool dbe::models::table::is_built | ( | ) | const |
|
override |
void dbe::models::table::objectsUpdated | ( | const std::vector< dbe::dref > & | objects | ) |
Definition at line 497 of file table.cpp.
|
private |
Clear internal structure and set the name to the given class
the | class name to set |
Definition at line 366 of file table.cpp.
void dbe::models::table::ResetModel | ( | ) |
|
signal |
|
override |
|
override |
Definition at line 101 of file table.cpp.
|
private |
Set headers as designate by the given class
the | dunedaq::conffwk::class_t information for the class |
Definition at line 380 of file table.cpp.
|
privateslot |
|
slot |
Definition at line 471 of file table.cpp.
|
privateslot |
|
privateslot |
|
privateslot |
|
override |
|
private |
|
private |