protected:
static TGGC *gfGC;
static TGFont *gfFont;
+
+private:
+ AliEveMEWListBox(const AliEveMEWListBox&); // Not implemented
+ AliEveMEWListBox& operator=(const AliEveMEWListBox&); // Not implemented
};
TGGC *AliEveMEWListBox::gfGC = 0;
class AliEveMEWEditor : public TGedEditor
{
-protected:
- AliEveMacroExecutorWindow* fMEW;
-
public:
AliEveMEWEditor(AliEveMacroExecutorWindow* w) : TGedEditor(0), fMEW(w) {}
virtual ~AliEveMEWEditor() {}
{
SetModel(fPad, fModel, kButton1Down);
}
+protected:
+ AliEveMacroExecutorWindow* fMEW;
+private:
+ AliEveMEWEditor(const AliEveMEWEditor&); // Not implemented
+ AliEveMEWEditor& operator=(const AliEveMEWEditor&); // Not implemented
};
//______________________________________________________________________________
AliEveMacroExecutorWindow::AliEveMacroExecutorWindow(AliEveMacroExecutor* master) :
TGMainFrame(gClient->GetRoot()), fM(master),
fMainFrame(0), fCtrlFrame(0), fListBox(0), fEditor(0),
- fSelectTags(0)
+ fSelectTags(0),
+ fBoxContents()
{
// Constructor.
if (keep_selected && fListBox->GetSelected() != -1)
ex_sel = fBoxContents[fListBox->GetSelected()];
+ Int_t sbar_pos = fListBox->GetVScrollbar()->GetPosition();
+
fListBox->RemoveAll();
fBoxContents.clear();
TString select = fSelectTags->GetText();
if ( ! select.IsNull())
{
- // "i" does not work (get pcre_exec error = -3 PCRE_ERROR_BADOPTION)
- // same for 1 (the value of PCRE_CASELESS)
- // using case-sensitive matching then ... must investigate in root
- regexp = new TPMERegexp(select);
+ regexp = new TPMERegexp(select, "io");
}
TIter next(fM->fMacros);
if (sel_id != -1)
fListBox->Select(sel_id);
- fListBox->MapSubwindows();
fListBox->Layout();
+ fListBox->GetVScrollbar()->SetPosition(sbar_pos);
+ fListBox->MapSubwindows();
}
void AliEveMacroExecutorWindow::SetActiveStateOfShownMacros(Bool_t active)