#include <TableTab.hpp>
Definition at line 17 of file TableTab.hpp.
◆ TableTab()
dbe::TableTab::TableTab |
( |
QWidget * | parent = 0 | ) |
|
Including Qt.
Including dbe Construct a Tabletab and let everything unitialized until first use
Set the geometry and operational properties of the object
- Parameters
-
parent | a pointer to the parent widget |
Adjusting layout
Definition at line 19 of file TableTab.cpp.
20 : QWidget ( parent ),
25{
28 QVBoxLayout * TabLayout = new QVBoxLayout ( this );
31 setAcceptDrops ( true );
32 this_holder =
dynamic_cast<QTabWidget *
> ( parent );
33}
CustomTableView * this_view
dbe::models::table * this_model
CustomDelegate * this_delegate
dbe::models::tableselection * this_filter
◆ ~TableTab()
dbe::TableTab::~TableTab |
( |
| ) |
|
◆ create_models()
void dbe::TableTab::create_models |
( |
| ) |
|
|
private |
Definition at line 45 of file TableTab.cpp.
46{
47
49 {
51 connect (
this, SIGNAL (
sig_data_dropped ( QMimeData
const &, Qt::DropAction ) ),
53 SLOT ( slot_data_dropped ( QMimeData const &, Qt::DropAction ) ) );
54 }
55
58}
void sig_data_dropped(QMimeData const &data, Qt::DropAction)
◆ CreateModels()
void dbe::TableTab::CreateModels |
( |
| ) |
|
Definition at line 66 of file TableTab.cpp.
67{
69 {
71 }
72 else
73 {
75 }
76
78}
◆ DisconnectView()
void dbe::TableTab::DisconnectView |
( |
| ) |
|
◆ dragEnterEvent()
void dbe::TableTab::dragEnterEvent |
( |
QDragEnterEvent * | event | ) |
|
|
overrideprotected |
Capture event of the pointer entering the tabletab while dragging something
- Parameters
-
event | is a pointer to the associated qt event object |
Definition at line 125 of file TableTab.cpp.
126{
127
128
130
131
133 {
134 if ( not event->mimeData()->hasFormat( mimetype.toStdString().c_str() ) )
135 {
136 event->ignore();
137 return;
138 }
139 }
140
141
142 if ( event->proposedAction() != Qt::DropAction::CopyAction )
143 {
144 return;
145 }
146
147 event->acceptProposedAction();
148
149
152 SLOT ( slot_launch_object_editor (
tref ) ), Qt::UniqueConnection );
154 SLOT ( slot_launch_object_editor (
tref ) ), Qt::UniqueConnection );
155}
static MainWindow * findthis()
CustomTableView * GetTableView() const
CustomDelegate * GetTableDelegate() const
QStringList mimeTypes() const override
inner::configobject::tref tref
◆ dropEvent()
void dbe::TableTab::dropEvent |
( |
QDropEvent * | event | ) |
|
|
overrideprotected |
Capture a mouse release event of a dragged object
Properly emits a signal to the associated tablemodel, i.e. this is a thread safe operation
- Parameters
-
event | is a pointer to the associated qt event object |
Definition at line 166 of file TableTab.cpp.
◆ GetTableDelegate()
◆ GetTableFilter()
◆ GetTableModel()
◆ GetTableView()
◆ reset_models()
void dbe::TableTab::reset_models |
( |
| ) |
|
|
private |
◆ ResetTableView()
void dbe::TableTab::ResetTableView |
( |
| ) |
|
◆ ResetTabView
void dbe::TableTab::ResetTabView |
( |
| ) |
|
|
slot |
Definition at line 111 of file TableTab.cpp.
112{
116}
QString get_class_name() const
◆ ResizeHeaders()
void dbe::TableTab::ResizeHeaders |
( |
| ) |
|
Definition at line 98 of file TableTab.cpp.
99{
100
101
102
103
104
105
106
107
108
109}
◆ sig_data_dropped
void dbe::TableTab::sig_data_dropped |
( |
QMimeData const & | data, |
|
|
Qt::DropAction | ) |
|
signal |
◆ this_delegate
◆ this_filter
◆ this_holder
QTabWidget* dbe::TableTab::this_holder |
|
private |
◆ this_model
◆ this_view
The documentation for this class was generated from the following files:
- /github/workspace/dunedaq/sourcecode/dbe/include/dbe/TableTab.hpp
- /github/workspace/dunedaq/sourcecode/dbe/src/TableTab.cpp