A wrapper for browsable objects to enable automatic redrawing.
More...
#include <BrowsableWrapper.h>
|
| BrowsableWrapper (TObject *wrapped) |
| Wrap the given object, does NOT take ownership.
|
|
virtual void | Browse (TBrowser *b) |
| Reimplementation to store additional info on current state.
|
|
virtual const char * | GetIconName () const |
| Wrap.
|
|
virtual const char * | GetName () const |
| Wrap.
|
|
void | padClosed () |
| Slot to remove associated pad from central map.
|
|
void | setWrapped (TObject *wrapped) |
| Wrap the given object, does NOT take ownership.
|
|
|
static const std::map< TVirtualPad *, std::string > & | getPads () |
| Get list of pads (static).
|
|
|
| ClassDef (BrowsableWrapper, 0) |
| A wrapper for browsable objects to enable automatic redrawing.
|
|
|
static std::map< TVirtualPad *, std::string > | s_pads |
| TPad -> name of drawn object.
|
|
A wrapper for browsable objects to enable automatic redrawing.
Definition at line 25 of file BrowsableWrapper.h.
◆ BrowsableWrapper()
Wrap the given object, does NOT take ownership.
Definition at line 28 of file BrowsableWrapper.h.
TObject * m_wrapped
wrapped object.
◆ ~BrowsableWrapper()
◆ Browse()
void Browse |
( |
TBrowser * |
b | ) |
|
|
virtual |
Reimplementation to store additional info on current state.
Definition at line 18 of file BrowsableWrapper.cc.
19{
21 B2ERROR("Trying to browse invalid object!");
22 return;
23 }
26 gPad->Connect("Closed()", "Belle2::BrowsableWrapper", this, "padClosed()");
27
29}
static std::map< TVirtualPad *, std::string > s_pads
TPad -> name of drawn object.
◆ GetIconName()
virtual const char * GetIconName |
( |
| ) |
const |
|
inlinevirtual |
◆ GetName()
virtual const char * GetName |
( |
| ) |
const |
|
inlinevirtual |
◆ getPads()
static const std::map< TVirtualPad *, std::string > & getPads |
( |
| ) |
|
|
inlinestatic |
◆ padClosed()
Slot to remove associated pad from central map.
Definition at line 31 of file BrowsableWrapper.cc.
32{
33 TVirtualPad* pad = dynamic_cast<TVirtualPad*>(static_cast<TQObject*>(gTQSender));
34 if (!pad) {
35 B2ERROR("Sender is not a pad?");
36 return;
37 }
38
39 B2WARNING("TODO remove - deleting pad");
41}
◆ setWrapped()
void setWrapped |
( |
TObject * |
wrapped | ) |
|
|
inline |
◆ m_wrapped
◆ s_pads
std::map< TVirtualPad *, std::string > s_pads |
|
staticprivate |
The documentation for this class was generated from the following files: