10 #include "KVIDGUITelescopeChooserDialog.h" 
   29    fSelection = selection;
 
   34    fCancelPress = cancel_pressed;
 
   35    *fCancelPress = 
kTRUE;
 
   42    fMainFrame1428->SetLayoutBroken(
kTRUE);
 
   43    fMainFrame1428->Connect(
"CloseWindow()", 
"KVIDGUITelescopeChooserDialog", 
this,
 
   45    fMainFrame1428->DontCallClose();      
 
   57    unique_ptr<KVUniqueNameList> id_types(MDA->GetIDTelescopeTypes());
 
   59    TIter next_type(id_types.get());
 
   62    while ((type_string = (
TObjString*)next_type())) {
 
   63       fComboBox994->AddEntry(type_string->
GetString().
Data(), entry_id++);
 
   66    fComboBox994->Resize(dx, 22);
 
   67    fComboBox994->Select(-1);
 
   69    fComboBox994->MoveResize(24, 40, dx, 22);
 
   70    if (disable_type_select) fComboBox994->SetEnabled(
kFALSE);
 
   72    TGLabel* fLabel1012 = 
new TGLabel(fMainFrame979, 
"Select ID telescope(s):");
 
   79    TGLabel* fLabel1013 = 
new TGLabel(fMainFrame979, 
"Select ID type:");
 
   87    fListBox980 = 
new TGListBox(fMainFrame979);
 
   88    fListBox980->Resize(dx, 132);
 
   90    for (
int i = 0; i < 10; i++) fListBox980->AddEntry(
"    ", i);
 
   92    fListBox980->MapSubwindows();
 
   93    fListBox980->Layout();
 
   94    fListBox980->MoveResize(24, 104, dx, 132);
 
   95    fListBox980->SetMultipleSelections();
 
  101    fTextButton1052->
Resize(72, 24);
 
  103    fTextButton1052->
MoveResize(140, 245, 72, 24);
 
  109    fTextButton1057->
Resize(72, 24);
 
  111    fTextButton1057->
MoveResize(220, 245, 72, 24);
 
  119    fMainFrame1428->MapSubwindows();
 
  121    fMainFrame1428->Resize(fMainFrame1428->GetDefaultSize());
 
  122    fMainFrame1428->CenterOnParent();
 
  123    fMainFrame1428->MapWindow();
 
  124    fMainFrame1428->Resize(xx, 291);
 
  128    fComboBox994->Connect(
"Selected(const char*)", 
"KVIDGUITelescopeChooserDialog", 
this,
 
  129                          "FillTelescopeListWithType(const char*)");
 
  131    fTextButton1052->
Connect(
"Clicked()", 
"KVIDGUITelescopeChooserDialog", 
this, 
"DoClose()");
 
  133    fTextButton1057->
Connect(
"Clicked()", 
"KVIDGUITelescopeChooserDialog", 
this, 
"GetSelection()");
 
  137    if (fSelection->GetEntries()) HighlightSelectedTelescopes();
 
  140    gClient->WaitFor(fMainFrame1428);
 
  154    if (fMainFrame1428) {
 
  155       delete fMainFrame1428;
 
  188    fListBox980->RemoveAll();
 
  189    fListBox980->Layout();
 
  190    unique_ptr<KVSeqCollection> telescopes(fMultiDet->GetIDTelescopesWithType(
type));
 
  191    TIter next_tel(telescopes.get());
 
  195       fListBox980->AddEntry(idt->
GetName(), i++);
 
  197    fListBox980->SortByName();
 
  198    fListBox980->MapSubwindows();
 
  199    fListBox980->Layout();
 
  215    fListBox980->GetSelectedEntries(&lbentries);
 
  216    TIter next_lbe(&lbentries);
 
  219       fSelection->Add(fMultiDet->GetIDTelescope(lbe->
GetTitle()));
 
  238    TGLBEntry* lbe = fComboBox994->FindEntry(
id->GetLabel());
 
  240       cout << 
"<KVIDGUITelescopeChooserDialog::HighlightSelectedTelescopes()> : Type " 
  241            << 
id->GetLabel() << 
" not found in combo box" << endl;
 
  245    fComboBox994->Select(lbe->
EntryId());
 
  246    FillTelescopeListWithType(
id->GetLabel());
 
  248    TIter next_tel(fSelection);
 
  251       lbe = fListBox980->FindEntry(
id->GetName());
 
  253          if (first_tel < 0) first_tel = lbe->
EntryId();
 
  254          fListBox980->Select(lbe->
EntryId());
 
  258    fListBox980->SetTopEntry(first_tel);
 
winID h TVirtualViewer3D TVirtualGLPainter p
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize id
 
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
 
ID Grid Manager dialog for choice of ID telescope(s)
 
void FillTelescopeListWithType(const char *)
fill TGListBox with names of all ID telescopes of given type
 
void HighlightSelectedTelescopes()
 
virtual ~KVIDGUITelescopeChooserDialog()
 
Base class for all detectors or associations of detectors in array which can identify charged particl...
 
Base class for describing the geometry of a detector array.
 
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
 
void SetLayoutBroken(Bool_t on=kTRUE) override
 
void MoveResize(Int_t x, Int_t y, UInt_t w=0, UInt_t h=0) override
 
virtual void Resize(TGDimension size)
 
void SetTextJustify(Int_t tmode)
 
void SetMargins(Int_t left=0, Int_t right=0, Int_t top=0, Int_t bottom=0)
 
void SetWrapLength(Int_t wl)
 
virtual void SetTextJustify(Int_t tmode)
 
void SetWrapLength(Int_t wl)
 
void SetMargins(Int_t left=0, Int_t right=0, Int_t top=0, Int_t bottom=0)
 
const char * GetName() const override
 
const TString & GetString() const
 
virtual const char * GetTitle() const
 
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
 
const char * Data() const
 
static void SingleShot(Int_t milliSec, const char *receiver_class, void *receiver, const char *method)
 
int main(int argc, char **argv)