GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4CreateNewDynEntry.cpp
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
15
17#include "TGo4HistogramEntry.h"
18
20 : QDialog( parent)
21{
22 setObjectName("Go4CreateNewDynEntry");
23 setupUi(this);
24 setAcceptDrops(false);
25 EntryName->setText("entry");
26 EntryTitle->setText("Dynamic entry title");
27 EntryType->setCurrentIndex(0);
28}
29
31{
32 TGo4DynamicEntry *entry = nullptr;
33
34 if (EntryType->currentIndex() == 0)
35 entry = new TGo4HistogramEntry();
36 else if (EntryType->currentIndex() == 1)
37 entry = new TGo4TreeHistogramEntry();
38
39 if (entry) {
40 entry->EnableProcessing(kFALSE);
41 entry->SetName(EntryName->text().toLatin1().constData());
42 entry->SetTitle(EntryTitle->text().toLatin1().constData());
43 }
44
45 return entry;
46}
TGo4DynamicEntry * MakeEntry()
TGo4CreateNewDynEntry(QWidget *parent=nullptr)
ABC for all entries that can be kept in a dynamic list.
void EnableProcessing(Bool_t on=kTRUE)
Switch the autoprocessing state of this entry.
Entry for the dynamic list, specialized for histogram like objects.
Dynamic list entry which links a histogram to a certain tree.