Skip to content
Snippets Groups Projects
Commit d6bbf7c3 authored by Fons Rademakers's avatar Fons Rademakers
Browse files

From Matevz:

Remove obsoleted function DeleteEditors(); added abstract virtual
'TCanvas* GetCanvas()' needed for management of editor visibility.


git-svn-id: http://root.cern.ch/svn/root/trunk@16321 27541ba8-7e3a-0410-8455-c3a389f83636
parent 7cafada7
No related merge requests found
......@@ -24,6 +24,8 @@
#include "TString.h"
#endif
class TCanvas;
class TVirtualPadEditor {
protected:
......@@ -45,11 +47,11 @@ public:
virtual void TextAttributes(Int_t ,Float_t ,Int_t ,Int_t ,Float_t ) { }
virtual void Build() { }
virtual void Show() { }
virtual void Hide() { }
virtual Bool_t IsGlobal() const = 0;
virtual void DeleteEditors() { }
virtual void SetGlobal(Bool_t) { }
virtual void Show() { }
virtual TCanvas* GetCanvas() const = 0;
// methods related to the new editor interface
......
......@@ -87,10 +87,12 @@ void TVirtualPadEditor::SetPadEditorName(const char *name)
//______________________________________________________________________________
void TVirtualPadEditor::ShowEditor()
{
// Show the pad editor. Static method.
// Show the global pad editor. Static method.
if (!fgPadEditor) GetPadEditor();
fgPadEditor->SetGlobal(kTRUE);
if (!fgPadEditor) {
GetPadEditor();
fgPadEditor->SetGlobal(kTRUE);
}
fgPadEditor->Show();
}
......@@ -110,7 +112,6 @@ void TVirtualPadEditor::Terminate()
if (!fgPadEditor) return;
fgPadEditor->DeleteEditors();
delete fgPadEditor;
fgPadEditor = 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment