Belle II Software development
|
text-based info viewer showing DataStore contents. More...
#include <InfoWidget.h>
Classes | |
struct | URI |
a parsed URI. More... | |
Public Member Functions | |
InfoWidget (const TGWindow *p) | |
ctor. | |
void | update () |
reset for new event (try to show same object if it exists). | |
void | show (const char *uri="main:", bool clearSelection=true) |
Navigate to given URI. | |
void | show (const TObject *obj) |
Navigate to page belonging to given object. | |
void | back () |
navigate to previous page, clearing current page from history. | |
virtual int | IsVisited (const char *uri) override |
Used to colour visited links. | |
Private Member Functions | |
TString | createMainPage () const |
create DataStore overview. | |
TString | createArrayPage (const URI &uri) const |
create list of array contents. | |
TString | createObjectPage (const URI &uri) const |
create object info. | |
TString | getHeader (const URI &uri=URI()) const |
returns string with title, breadcrumbs, menu. | |
ClassDefOverride (InfoWidget, 0) | |
text-based info viewer showing DataStore contents. | |
Static Private Member Functions | |
static TString | getContents (const TObject *obj) |
Get object contents (member data). | |
static TString | getRelatedInfo (const TObject *obj) |
return HTML-formatted list of related objects. | |
Private Attributes | |
std::set< TString > | m_visited |
list of all pages viewed in current event. | |
std::vector< TString > | m_history |
ordered list of all pages viewed in current event. | |
text-based info viewer showing DataStore contents.
Definition at line 27 of file InfoWidget.h.
|
explicit |
ctor.
Definition at line 34 of file InfoWidget.cc.
~InfoWidget | ( | ) |
Definition at line 45 of file InfoWidget.cc.
void back | ( | ) |
navigate to previous page, clearing current page from history.
Definition at line 79 of file InfoWidget.cc.
|
private |
create list of array contents.
Definition at line 179 of file InfoWidget.cc.
|
private |
create DataStore overview.
Definition at line 127 of file InfoWidget.cc.
|
private |
create object info.
Definition at line 198 of file InfoWidget.cc.
|
staticprivate |
Get object contents (member data).
Definition at line 329 of file InfoWidget.cc.
returns string with title, breadcrumbs, menu.
Definition at line 207 of file InfoWidget.cc.
|
staticprivate |
return HTML-formatted list of related objects.
Definition at line 282 of file InfoWidget.cc.
|
overridevirtual |
Used to colour visited links.
Definition at line 49 of file InfoWidget.cc.
void show | ( | const char * | uri = "main:" , |
bool | clearSelection = true |
||
) |
Navigate to given URI.
uri | what to show, see InfoWidget::URI |
clearSelection | when showing an object, this determines wether to clear an existing selection |
Definition at line 93 of file InfoWidget.cc.
void show | ( | const TObject * | obj | ) |
Navigate to page belonging to given object.
Special in that it doesn't clear the current selection.
Definition at line 88 of file InfoWidget.cc.
void update | ( | ) |
reset for new event (try to show same object if it exists).
Definition at line 55 of file InfoWidget.cc.
|
private |
ordered list of all pages viewed in current event.
Definition at line 95 of file InfoWidget.h.
|
private |
list of all pages viewed in current event.
Definition at line 93 of file InfoWidget.h.