Log of /trunk/gui/gui/src/TGFileBrowser.cxx
Parent Directory
Revision
43529 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 28 13:25:15 2012 UTC (2 years, 9 months ago) by
bellenot
File length: 64871 byte(s)
Diff to
previous 42611
Fix a memory leak when browsing TList inside a file (don't read the list content each time one click on the list). Thanks Axel and Martin Vala for the test case.
Revision
40393 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 28 14:35:28 2011 UTC (3 years, 5 months ago) by
bellenot
File length: 64783 byte(s)
Diff to
previous 40383
Allow to enter an empty string to disable filtering in the browser (implement a hack in the TGInputDialog to detect if the Cancel button has been pressed). Thanks to Axel for the suggestion.
Revision
40383 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 28 07:46:59 2011 UTC (3 years, 5 months ago) by
bellenot
File length: 64670 byte(s)
Diff to
previous 39942
A "Filter" picture button has been added in the file browser, and a filtering mechanism has been implemented, as requested on <a href="https://savannah.cern.ch/bugs/?84696>savannah</a>. It is now possible to filter the content of several files/folders, each one having its own filtering expression.
Revision
38844 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 14 12:35:01 2011 UTC (3 years, 9 months ago) by
bellenot
File length: 56570 byte(s)
Diff to
previous 38537
Create a new (flat) style for toolbar and html browser navigation buttons. This is also enabled/disabled via the GUI.Style entry in system.rootrc
Revision
36426 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 26 18:03:52 2010 UTC (4 years, 2 months ago) by
bellenot
File length: 56041 byte(s)
Diff to
previous 36422
Add directories in list tree items, to be able to properly change directory (see TGFileBrowser::Chdir(TGListTreeItem *item))
Revision
36422 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 26 12:51:50 2010 UTC (4 years, 2 months ago) by
bellenot
File length: 55935 byte(s)
Diff to
previous 35325
Don't replace the TKey by the object itself when reading it from file, to avoid deletion of the list tree item by RecursiveRemove() e.g. when drawing TGraph (with option alp) from a file. It is better to read the object each time anyway, as the object may have changed in the file. This should fix the bug #74227, TBrowser crashes if a TGraph of TCanvas object is opened again (https://savannah.cern.ch/bugs/?74227)
Revision
33811 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jun 10 09:50:50 2010 UTC (4 years, 7 months ago) by
bellenot
File length: 54474 byte(s)
Diff to
previous 33800
Added the possibility to display the size of directories, tree, and objects associated to keys inside Root files, or any kind of browsable object, as soon as their GetObjectInfo() method returns a long long int formatted in a const char * ("%lld")
Revision
33618 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 27 06:51:26 2010 UTC (4 years, 7 months ago) by
bellenot
File length: 51807 byte(s)
Diff to
previous 32843
- Implement alphabetical sorting of the current directory
- Added a "alphabetical sort" picture button (toggle)
- Added a "refresh" picture button
- Improved the refresh mechanism (check if files sill exist in the current directory)
Revision
32516 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 10 11:31:07 2010 UTC (4 years, 10 months ago) by
bellenot
File length: 48274 byte(s)
Diff to
previous 32186
Fix bug #64082: Crash using new TBrowser
This was happening when looking for an icon associated with a class for which TClass::GetClass(class_name) was returning 0
Revision
31663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 8 14:51:42 2009 UTC (5 years, 1 month ago) by
bellenot
File length: 48210 byte(s)
Diff to
previous 31488
- Add members initialization (coverity)
- Fix potential memory leaks (coverity)
- Add protections against possible NULL pointers (coverity)
Revision
29885 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 24 14:19:56 2009 UTC (5 years, 5 months ago) by
bellenot
File length: 47501 byte(s)
Diff to
previous 29533
Automatically switch to the tab containing the current canvas (if any) when e.g. drawing a histogram by double-clicking on its list tree item in a root file
Thanks to Axel for the suggestion.
Revision
29409 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 9 10:39:17 2009 UTC (5 years, 6 months ago) by
bellenot
File length: 45252 byte(s)
Diff to
previous 28853
When browsing an object, check if it is already in the browser list tree, otherwise add it
Will be used by the new browser method BrowseObject(TObject *)
Revision
27690 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 5 09:43:15 2009 UTC (5 years, 10 months ago) by
bellenot
File length: 43701 byte(s)
Diff to
previous 27674
Add a protection against possible empty TObjArray
(e.g. when starting the browser from root / )
Thanks to Chris Jones for the report
Revision
27674 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Mar 3 08:58:36 2009 UTC (5 years, 10 months ago) by
bellenot
File length: 43492 byte(s)
Diff to
previous 27475
- Stay in the same directory than the latest opened ROOT file.
This fixes a potential problem when browsing root files who are in different directories:
Error in <TFile::GetSize>: cannot stat the file test_dirs.root
Error in <TDirectoryFile::ReadKeys>: reading illegal key, exiting after 0 keys
Revision
25471 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 19 15:09:15 2008 UTC (6 years, 4 months ago) by
bellenot
File length: 43071 byte(s)
Diff to
previous 25466
- Verify if the current drive is a network drive (on Windows)
and if it is the case, do not expand the directory structure.
Revision
25466 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 19 13:18:28 2008 UTC (6 years, 4 months ago) by
bellenot
File length: 42830 byte(s)
Diff to
previous 23664
- Do not expand subdirectories (full tree) when working on afs on Linux,
of from drive higher than E: on Windows (usually network drives) to
avoid spending too much time browsing/populating potentially huge
amount of directories/files
Revision
23664 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 6 14:29:46 2008 UTC (6 years, 8 months ago) by
rdm
File length: 42027 byte(s)
Diff to
previous 23628
From Bertrand:
- Added information on the types of volumes returned by
TWinNTSystem::GetVolumes():
- Type of drive: local, removable, network, CD/DVD
- File System: NTFS, AFS, NFS
- Adapted TGFSCombobox and TGFileBrowser accordingly to these new info
- Added two new icons to represent Network drives on Windows
Revision
23625 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu May 1 06:39:40 2008 UTC (6 years, 8 months ago) by
rdm
File length: 41225 byte(s)
Diff to
previous 23448
From bertrand:
- Added new method TList *TSystem::GetVolumes(Option_t *opt)
returning the list of hard drives on Windows when opt = "all"
or the current hard drive when opt = "cur"
the return type is a TList of TObjString's containing the drive letters,
i.e: for drives C: G: H: K:. The TList must be deleted by the user.
- Implement the ability to browse available (mounted) drives on Windows.
- Added list of available (mounted) drives in TGFSCombobox on Windows.
Revision
22419 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by
rdm
Original Path:
trunk/gui/src/TGFileBrowser.cxx
File length: 39741 byte(s)
Diff to
previous 22122
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed.
Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included.
Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.
Revision
21502 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Dec 19 17:33:27 2007 UTC (7 years, 1 month ago) by
brun
Original Path:
trunk/gui/src/TGFileBrowser.cxx
File length: 39813 byte(s)
Diff to
previous 21386
From Bertrand and matevz:
- Use TObjString for drag and drop to be able to specify full
pathname (and not rely on gSystem->WorkingDirectory()).
- Changed the way TGListTree handles drag and drop, to not rely
on gSystem->WorkingDirectory(), but use TObjString set in
TGFileBrowser instead.
- Added data member fOwnsData in TGListTreeItem, to specify
if fUserData member has to be deleted in the destructor
(to avoid memory leaks)
- Added corresponding argument in:
TGListTreeItem::SetUserData(void *userData, Bool_t own=kFALSE)
being kFALSE by default for backward compatibility
This allows to drag and drop from any directory, whithout to have to cd() in
it...
This also fixes some issues encountered with AliEVE
Revision
20706 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Nov 7 16:48:05 2007 UTC (7 years, 2 months ago) by
brun
Original Path:
trunk/gui/src/TGFileBrowser.cxx
File length: 36832 byte(s)
Diff to
previous 20615
From Bertrand:
- New signal Clicked(char *uri) in TGHtmlBrowser and new method
Selected(char *) in TRootBrowser, used to automatically update and switch to
ROOT files folder in the new TBrowser when users opens a ROOT file from HTML
browser.
Revision
20516 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Oct 26 16:17:33 2007 UTC (7 years, 2 months ago) by
rdm
Original Path:
trunk/gui/src/TGFileBrowser.cxx
File length: 36000 byte(s)
Copied from:
branches/dev/bertrand/gui/src/TGFileBrowser.cxx revision 20514
Diff to
previous 20139
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.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.