Skip to content
Snippets Groups Projects
Commit 96de361e authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

- Create plugins in the same order they are passed as argument

git-svn-id: http://root.cern.ch/svn/root/trunk@27147 27541ba8-7e3a-0410-8455-c3a389f83636
parent 08e233ba
No related branches found
No related tags found
No related merge requests found
...@@ -797,45 +797,47 @@ void TRootBrowser::InitPlugins(Option_t *opt) ...@@ -797,45 +797,47 @@ void TRootBrowser::InitPlugins(Option_t *opt)
// --- Right main area // --- Right main area
// Editor plugin... Int_t i, len = strlen(opt);
if (strchr(opt, 'E')) { for (i=0; i<len; ++i) {
cmd.Form("new TGTextEditor((const char *)0, gClient->GetRoot());"); // Editor plugin...
ExecPlugin("Editor 1", 0, cmd.Data(), 1); if (opt[i] == 'E') {
++fNbInitPlugins; cmd.Form("new TGTextEditor((const char *)0, gClient->GetRoot());");
} ExecPlugin("Editor 1", 0, cmd.Data(), 1);
// HTML plugin...
if (strchr(opt, 'H')) {
if (gSystem->Load("libGuiHtml") >= 0) {
cmd.Form("new TGHtmlBrowser(\"%s\", gClient->GetRoot());",
gEnv->GetValue("Browser.StartUrl",
"http://root.cern.ch/root/html/ClassIndex.html"));
ExecPlugin("HTML", 0, cmd.Data(), 1);
++fNbInitPlugins; ++fNbInitPlugins;
} }
}
// Canvas plugin... // HTML plugin...
if (strchr(opt, 'C')) { if (opt[i] == 'H') {
cmd.Form("new TCanvas();"); if (gSystem->Load("libGuiHtml") >= 0) {
ExecPlugin("c1", 0, cmd.Data(), 1); cmd.Form("new TGHtmlBrowser(\"%s\", gClient->GetRoot());",
++fNbInitPlugins; gEnv->GetValue("Browser.StartUrl",
} "http://root.cern.ch/root/html/ClassIndex.html"));
ExecPlugin("HTML", 0, cmd.Data(), 1);
++fNbInitPlugins;
}
}
// Canvas plugin...
if (opt[i] == 'C') {
cmd.Form("new TCanvas();");
ExecPlugin("c1", 0, cmd.Data(), 1);
++fNbInitPlugins;
}
// GLViewer plugin... // GLViewer plugin...
if (strchr(opt, 'G')) { if (opt[i] == 'G') {
cmd.Form("new TGLSAViewer(gClient->GetRoot(), 0);"); cmd.Form("new TGLSAViewer(gClient->GetRoot(), 0);");
ExecPlugin("OpenGL", 0, cmd.Data(), 1); ExecPlugin("OpenGL", 0, cmd.Data(), 1);
++fNbInitPlugins; ++fNbInitPlugins;
} }
// PROOF plugin... // PROOF plugin...
if (strchr(opt, 'P')) { if (opt[i] == 'P') {
cmd.Form("new TSessionViewer();"); cmd.Form("new TSessionViewer();");
ExecPlugin("PROOF", 0, cmd.Data(), 1); ExecPlugin("PROOF", 0, cmd.Data(), 1);
++fNbInitPlugins; ++fNbInitPlugins;
}
} }
// --- Right bottom area // --- Right bottom area
// Command plugin... // Command plugin...
......
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