138 #ifdef __WITHOUT_TGBUTTON_SETENABLED
139 #define SetEnabled(flag) \
140 SetState( flag ? kButtonUp : kButtonDisabled )
163 tb->
SetToolTipText(
"Set path to directory containing run sheets");
164 tb->
Connect(
"Clicked()",
"KVINDRARunSheetGUI",
this,
177 tb->
Connect(
"Clicked()",
"KVINDRARunSheetGUI",
this,
"SetFileFormat()");
198 "SetMakeTree(Bool_t)");
200 (
"Check this to fill a TTree with all infos read from runsheet");
207 tb->
Connect(
"Clicked()",
"KVINDRARunSheetGUI",
this,
208 "StartTreeViewer()");
210 #ifdef __WITHOUT_TGBUTTON_SETENABLED
211 cb->
Connect(
"Toggled(Bool_t)",
"KVINDRARunSheetGUI",
this,
"SetViewTreeEnabled(Bool_t)");
212 fViewTreeButton = tb;
214 cb->
Connect(
"Toggled(Bool_t)",
"TGTextButton", tb,
"SetEnabled(Bool_t)");
224 ULong_t red, cyan, green, yellow, magenta;
225 gClient->GetColorByName(
"#ff00ff", magenta);
226 gClient->GetColorByName(
"#ff0000", red);
227 gClient->GetColorByName(
"#00ff00", green);
228 gClient->GetColorByName(
"#00ffff", cyan);
229 gClient->GetColorByName(
"#ffff00", yellow);
250 SetToolTipText(
"Save all informations in database");
251 fSaveDB->
Connect(
"Clicked()",
"KVINDRARunSheetGUI",
this,
"SaveAll()");
256 SetToolTipText(
"Exit the application");
259 fQuit->
Connect(
"Clicked()",
"KVINDRARunSheetGUI",
this,
"CloseWindow()");
294 (
"Add a reference to the experiment logbook for selected run");
302 (
"Set the multiplicity trigger for the selected run(s)");
352 "SelectionChanged()");
430 KVINDRARunSheetGUI::~KVINDRARunSheetGUI()
517 cout <<
"directory = " << dir.
Data() << endl;
610 cout <<
"Read " << read <<
" runsheets" << endl;
711 new KVInputDialog(
this,
"Enter log-book reference for run(s)",
735 new KVInputDialog(
this,
"Enter multiplicity trigger for run(s)",
737 "Enter minimum multiplicity, i.e. for M>=4 type '4'");
764 new KVInputDialog(
this,
"Enter format string for runsheet filenames",
766 "e.g. RUN_%04d.TXT for filenames such as RUN_0123.TXT");
863 fMain->SetLayoutBroken(
kTRUE);
864 fMain->Connect(
"CloseWindow()",
"KVIRSGChooseDataSetDialog",
this,
866 fMain->DontCallClose();
870 fLabel =
new TGLabel(fMain,
"Choose dataset:");
871 fLabel->SetTextJustify(36);
872 fMain->AddFrame(fLabel,
875 fLabel->MoveResize(8, 8, 208, 24);
877 gClient->GetColorByName(
"#ffffff", ucolor);
889 fComboBox->Connect(
"Selected(Int_t)",
"KVIRSGChooseDataSetDialog",
this,
890 "SetDataSet(Int_t)");
891 fComboBox->Resize(208, 22);
892 fComboBox->Select(0);
894 fMain->AddFrame(fComboBox,
897 fComboBox->MoveResize(8, 40, 208, 22);
901 fTextButton->
Resize(80, 24);
902 fMain->AddFrame(fTextButton,
907 fTextButton->
Connect(
"Clicked()",
"KVIRSGChooseDataSetDialog",
this,
910 fMain->MapSubwindows();
912 fMain->Resize(fMain->GetDefaultSize());
913 fMain->CenterOnParent();
914 fMain->SetWindowName(
"Choose dataset dialog box");
916 fMain->Resize(223, 110);
926 KVIRSGChooseDataSetDialog::~KVIRSGChooseDataSetDialog()
967 #ifdef __WITHOUT_TGBUTTON_SETENABLED
KVDataRepositoryManager * gDataRepositoryManager
KVDataSetManager * gDataSetManager
ClassImp(KVPartitionList) void KVPartitionList
Initialisation.
R__EXTERN TApplication * gApplication
char * Form(const char *fmt,...)
char * StrDup(const char *str)
virtual Int_t GetNumber() const
void SetComments(const KVString &comments)
KVDBSystem * GetSystem() const
virtual void Print(Option_t *option="") const
void BlockSignals(Bool_t yes=kTRUE)
void SetTrigger(Int_t trig)
const Char_t * GetComments() const
Dialog box for setting system parameters associated to runs.
Database class used to store information on different colliding systems studied during an experiment.
Manages access to one or more data repositories.
virtual Int_t GetNtotal() const
KVDataSet * GetDataSet(Int_t) const
Return pointer to DataSet using index in list of all datasets, index>=0.
Manage an experimental dataset corresponding to a given experiment or campaign.
void UpdateAvailableRuns(const Char_t *type)
KVExpDB * GetDataBase(Option_t *opt="") const
virtual KVSeqCollection * GetRuns() const
virtual void Save(const Char_t *)
Database entry for each run of an INDRA experiment.
void SetCahier(const Char_t *log)
virtual void UnsetSystem()
const Char_t * GetCahier() const
_________________________________________________//
void ChangeDataSet()
open dialog to choose dataset
void DisableButtons()
Disable all buttons.
TGVButtonGroup * fButtonsFrame
TGTextButton * fSetSystem
KVINDRARunSheetReader fReader
used to read runsheets
TGTextButton * fAddComment
void SetSystem()
Open dialog box for setting system properties for runs.
TGTextButton * fChangeDataSet
void ClearListOfRuns()
remove all entries from grid list box
KVINDRADBRun * fSelectedRun
Int_t GetNSelected()
returns current number of selected items in grid list
TGTextButton * fUnSetSystem
TGHorizontalFrame * fHframe
TGTextButton * fSetTrigger
void CloseWindow()
close viewer
TGTextButton * fAddCahier
KVListView * fRunList
TGListBox *fRunList;.
const Char_t * GetRunSheetDir()
Int_t ReadAllRunSheets(Int_t first=1, Int_t last=9999)
void StartTreeViewer() const
Bool_t IsMakeTree() const
void SetFileFormat(const Char_t *fmt)
const Char_t * GetFileFormat()
void SetRunSheetDir(const Char_t *dir)
_________________________________________________//
void YouPressedOK()
Called when OK button is pressed.
virtual void SetIsDateTime(KVDatime::EKVDateFormat fmt=KVDatime::kCTIME, Bool_t with_reference=kTRUE)
Enhanced version of ROOT TGListView widget.
virtual void ActivateSortButtons()
virtual void SetDataColumns(Int_t ncolumns)
virtual void Sort(Int_t column)
TObject * GetLastInList() const
void AllowBrowse(Bool_t on=kTRUE)
virtual KVLVColumnData * GetDataColumn(Int_t index) const
virtual void Display(const TCollection *l)
TObject * GetLastSelectedObject() const
TList * GetSelectedObjects() const
TObject * GetFirstInList() const
void AllowContextMenu(Bool_t on=kTRUE)
virtual void SetDataColumn(Int_t index, const Char_t *name, const Char_t *method="", Int_t mode=kTextCenterX)
Strings used to represent a set of ranges of values.
void Add(Int_t)
Add value 'n' to the list.
virtual Int_t GetSize() const
Extension of ROOT TString class which allows backwards compatibility with ROOT v3....
virtual void Terminate(Int_t status=0)
virtual Int_t GetEntries() const
virtual Int_t GetSize() const
virtual const char * GetValue(const char *name, const char *dflt) const
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=nullptr)
virtual void SaveLevel(EEnvLevel level)
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
virtual UInt_t GetDefaultWidth() const
virtual TGDimension GetDefaultSize() const
virtual void MapSubwindows()
virtual UInt_t GetDefaultHeight() const
virtual void Resize(TGDimension size)
virtual void ChangeBackground(Pixel_t back)
virtual void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0)
virtual void UnmapWindow()
void SetText(const char *newText)
void SetWMSize(UInt_t w, UInt_t h)
void SetWindowName(const char *name=0)
virtual void SetTextJustify(Int_t tmode)
virtual void Add(TObject *obj)
virtual const char * GetName() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
const char * Data() const
void Form(const char *fmt,...)
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
int main(int argc, char **argv)