GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
qt4
Go4GUI
TGo4CreateNewDynEntry.cpp
Go to the documentation of this file.
1
// $Id: TGo4CreateNewDynEntry.cpp 1134 2014-01-22 14:53:40Z linev $
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 für 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
14
#include "
TGo4CreateNewDynEntry.h
"
15
16
#include "
TGo4DynamicEntry.h
"
17
#include "
TGo4TreeHistogramEntry.h
"
18
#include "
TGo4HistogramEntry.h
"
19
20
TGo4CreateNewDynEntry::TGo4CreateNewDynEntry
( QWidget* parent )
21
: QDialog( parent)
22
{
23
setObjectName(
"Go4CreateNewDynEntry"
);
24
setupUi(
this
);
25
setAcceptDrops(
false
);
26
EntryName->setText(
"entry"
);
27
EntryTitle->setText(
"Dynamic entry title"
);
28
EntryType->setCurrentIndex(0);
29
}
30
31
TGo4DynamicEntry
*
TGo4CreateNewDynEntry::MakeEntry
()
32
{
33
TGo4DynamicEntry
* entry = 0;
34
35
if
(EntryType->currentIndex()==0)
36
entry =
new
TGo4HistogramEntry
();
37
else
38
if
(EntryType->currentIndex()==1)
39
entry =
new
TGo4TreeHistogramEntry
();
40
41
if
(entry!=0) {
42
entry->
EnableProcessing
(kFALSE);
43
entry->SetName(EntryName->text().toLatin1().constData());
44
entry->SetTitle(EntryTitle->text().toLatin1().constData());
45
}
46
47
return
entry;
48
}
TGo4HistogramEntry.h
TGo4DynamicEntry.h
TGo4DynamicEntry
Definition:
TGo4DynamicEntry.h:27
TGo4HistogramEntry
Definition:
TGo4HistogramEntry.h:33
TGo4CreateNewDynEntry::MakeEntry
TGo4DynamicEntry * MakeEntry()
Definition:
TGo4CreateNewDynEntry.cpp:31
TGo4CreateNewDynEntry.h
TGo4CreateNewDynEntry::TGo4CreateNewDynEntry
TGo4CreateNewDynEntry(QWidget *parent=0)
Definition:
TGo4CreateNewDynEntry.cpp:20
TGo4TreeHistogramEntry.h
TGo4DynamicEntry::EnableProcessing
void EnableProcessing(Bool_t on=kTRUE)
Definition:
TGo4DynamicEntry.h:39
TGo4TreeHistogramEntry
Definition:
TGo4TreeHistogramEntry.h:34
Generated on Fri Oct 26 2018 08:34:54 for GSI Object Oriented Online Offline (Go4) by
1.8.8