Helper class to setup scroll bars in evdb::ParameterSetEdit.
More...
#include <ParameterSetEdit.h>
Helper class to setup scroll bars in evdb::ParameterSetEdit.
Definition at line 21 of file ParameterSetEdit.h.
Definition at line 60 of file ParameterSetEdit.cxx.
67 fFrame =
new TGGroupFrame(
p,
"Parameters", kVerticalFrame);
69 TGLayoutHints* fLH3 =
new TGLayoutHints(kLHintsCenterX|kLHintsExpandX,
72 fML =
new TGMatrixLayout(
fFrame, 0, 2, 2);
76 for (
unsigned int i=0; i<
name.
size(); ++i) {
79 (
name[i].compare(
"module_type") == 0) ||
87 TGButton::GetDefaultGC()(),
88 TGTextButton::GetDefaultFontStruct(),
93 TGTextEntry*
t =
new TGTextEntry(
fFrame, value[i].c_str());
101 if (h>30*26) h = 30*26;
105 fFrame->Connect(
"ProcessedEvent(Event_t*)",
"evdb::ParamFrame",
this,
106 "HandleMouseWheel(Event_t*)");
int compare(unsigned *r, sha1::digest_t const &d)
h
training ###############################
virtual evdb::ParamFrame::~ParamFrame |
( |
| ) |
|
|
inlinevirtual |
TGGroupFrame* evdb::ParamFrame::GetFrame |
( |
| ) |
const |
|
inline |
int evdb::ParamFrame::GetHeight |
( |
| ) |
const |
int evdb::ParamFrame::GetWidth |
( |
| ) |
const |
void evdb::ParamFrame::HandleMouseWheel |
( |
Event_t * |
event | ) |
|
Definition at line 130 of file ParameterSetEdit.cxx.
134 if (
event->fType != kButtonPress &&
event->fType != kButtonRelease)
138 if (
event->fCode == kButton4 ||
event->fCode == kButton5) {
140 if (
fCanvas->GetContainer()->GetHeight())
141 page = Int_t(Float_t(
fCanvas->GetViewPort()->GetHeight() *
142 fCanvas->GetViewPort()->GetHeight()) /
143 fCanvas->GetContainer()->GetHeight());
146 if (
event->fCode == kButton4) {
148 Int_t newpos =
fCanvas->GetVsbPosition() - page;
149 if (newpos < 0) newpos = 0;
150 fCanvas->SetVsbPosition(newpos);
152 if (
event->fCode == kButton5) {
154 Int_t newpos =
fCanvas->GetVsbPosition() + page;
155 fCanvas->SetVsbPosition(newpos);
Event finding and building.
void evdb::ParamFrame::SetCanvas |
( |
TGCanvas * |
canvas | ) |
|
|
inline |
TGCanvas* evdb::ParamFrame::fCanvas |
|
private |
TGGroupFrame* evdb::ParamFrame::fFrame |
|
private |
TGMatrixLayout* evdb::ParamFrame::fML |
|
private |
The documentation for this class was generated from the following files: