Revision
20516 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Oct 26 16:17:33 2007 UTC (7 years, 3 months ago) by
rdm
Original Path:
trunk/gui/inc/TGCommandPlugin.h
File length: 1194 byte(s)
Copied from:
branches/dev/bertrand/gui/inc/TGCommandPlugin.h revision 20514
Diff to
previous 20128
From Bertrand:
merged bertrand dev branch changes r20120:20514 into the trunk.
Main new feature is the new TBrowser. To turn it on by default
change the Browser.Name option in rootrc.
Here the detailed ChangeLog:
- Renamed TRootBrowser TRootBrowserLite
- Introduced the new class TRootBrowser, consisting of three
main tabs, as shown below:
______________
| | |
| | |
| |__________|
| | |
|___|__________|
All tabs can 'swallow' frames, thanks to the new method:
ExecPlugin(const char *name = 0, const char *fname = 0,
const char *cmd = 0, Int_t pos = kRight,
Int_t subpos = -1)
allowing to select plugins (can be a macro or a command)
to be executed, and where to embed the frame created by
the plugin. Examples:
// create a new browser:
TBrowser b;
// create a new TCanvas in a new top right tab element:
b.ExecPlugin("Canvas", 0, "new TCanvas()");
// creates a new top right tab element embedding the
// TGMainFrame created by the macro 'myMacro.C':
b.ExecPlugin("MyPlugin", "myMacro.C");
// creates a new bottom tab element embedding the
// TGMainFrame created by the macro 'myMacro.C':
b.ExecPlugin("MyPlugin", "myMacro.C", 0, TRootBrowser::kBottom);
- new class TGFileBrowser, a file browser plugin for the new TRootBrowser
- new class TGCommandPlugin, a command I/O plugin for the new TRootBrowser
- new class TGHtmlBrowser, a html browser plugin for the new TRootBrowser
- new TBrowserImp plugin used to load the selected TBrowser implementation
- the browser implementation can be selected via the env 'Browser.Name' in
.rootrc, (can be TRootBrowser or TRootBrowserLite) the default being
TRootBrowserLite
- a list of options (plugins) for the new TRootBrowser is also specified
via the env 'Browser.Options' in .rootrc, default being: FEHCI
Here is the list of available options:
F: File browser E: Text Editor H: HTML browser C: Canvas I: I/O
redirection P: Proof G: GL viewer
- modified TRootGuiFactory, used to create the real TBrowser
implementation.