[root] / trunk / gui / gui / src / TGFSContainer.cxx Repository:
ViewVC logotype

Log of /trunk/gui/gui/src/TGFSContainer.cxx

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 27272 byte(s)
Diff to previous 41254
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 41254 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 09:25:02 2011 UTC (3 years, 3 months ago) by bellenot
File length: 27217 byte(s)
Diff to previous 41189
Try to silent coverity report #32731 (dereference null return value)

Revision 41189 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 10:06:31 2011 UTC (3 years, 3 months ago) by bellenot
File length: 27214 byte(s)
Diff to previous 39065
Fix coverity reports (dereference null return value)

Revision 39065 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 2 14:22:19 2011 UTC (3 years, 8 months ago) by bellenot
File length: 26903 byte(s)
Diff to previous 36090
- Make shortcuts working on Windows (should solve the problem reported on the forum: http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=12616)
- Create special icons for symlinks (shortcuts) in the browser (add a small arrow on bottom left corner of the original icon)

Revision 36090 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 5 17:32:34 2010 UTC (4 years, 3 months ago) by rdm
File length: 26739 byte(s)
Diff to previous 35582
fix display of symbolic links in the attributes column (determination of
a symbolic link used a wrong heuristic).

Revision 35582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 13:38:27 2010 UTC (4 years, 4 months ago) by bellenot
File length: 26508 byte(s)
Diff to previous 35527
Add the "keep_names" option when saving the GUI source, to allow the users to change the name of any frame in the ROOT Gui Builder and more important to keep it across the different load/edit/save cycles. This should solve a problem reported on the forum at: http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=11216

Revision 35527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 12:27:01 2010 UTC (4 years, 4 months ago) by brun
File length: 26379 byte(s)
Diff to previous 34072
do not include snprintf.h

Revision 34072 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 23 07:51:58 2010 UTC (4 years, 7 months ago) by bellenot
File length: 26401 byte(s)
Diff to previous 34003
Create specific icons for symlinks (add a small arrow on the bottom left corner of the original icon)

Revision 34003 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 21 09:30:11 2010 UTC (4 years, 7 months ago) by bellenot
File length: 24831 byte(s)
Diff to previous 33915
Fix possible buffer overflow (coverity)

Revision 33915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 14:24:25 2010 UTC (4 years, 7 months ago) by bellenot
File length: 24825 byte(s)
Diff to previous 32577
Avoid potential buffer overflows (coverity)

Revision 32577 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 12 07:54:27 2010 UTC (4 years, 10 months ago) by bellenot
File length: 24779 byte(s)
Diff to previous 27475
Fix several potential buffer overflow (coverity)

Revision 27475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 10:04:21 2009 UTC (5 years, 11 months ago) by bellenot
File length: 24777 byte(s)
Diff to previous 23201
Replace Form() by TString::Format()

Revision 23201 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 14 10:07:34 2008 UTC (6 years, 9 months ago) by antcheva
File length: 24755 byte(s)
Diff to previous 23115
From Anna:
- Use BaseName of file name in TGFileContainer::AddFile to solve 
  special case of adding remote file (strips off protocol and path)

Revision 23115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 13:35:37 2008 UTC (6 years, 9 months ago) by rdm
File length: 24708 byte(s)
Copied from: trunk/gui/src/TGFSContainer.cxx revision 23114
Diff to previous 22527
moved to directory "gui" the following directories:

fitpanel, ged, gui, guibuilder, guihtml, qtgsi, qtroot, sessionviewer

Revision 22527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 7 16:37:03 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24708 byte(s)
Diff to previous 20882
more gcc 4.3 warning fixes. Remains only some warning in Cint, Reflex
and xrootd.

Revision 20882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 11:31:26 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24690 byte(s)
Diff to previous 19826
Set property svn:eol-style LF on all source and Makefiles. This should avoid
problems with Win32 line endings ending up in the repository. All MS tools
support LF eols fine.

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24690 byte(s)
Diff to previous 19825
imported svn:keywords Id property

Revision 19825 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:49:10 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24746 byte(s)
Diff to previous 19235
remove :$ from tag line

Revision 19235 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 3 07:01:00 2007 UTC (7 years, 6 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24756 byte(s)
Diff to previous 19234
Remove previous changes uploaded by mistake with Qt changes

Revision 19234 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 3 06:56:06 2007 UTC (7 years, 6 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24756 byte(s)
Diff to previous 19068
From Valeri Fine:
(unsigned int)(-1) cast to 64-bit pointer is wrong on 64-bit
platform because (unsigned int) is 32-bit value. It may or
may not cause the assert.

Revision 19068 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 19 12:55:18 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 24760 byte(s)
Diff to previous 19002
From Bertrand:
New class TRemoteObject to enable browsing of remote system files or ROOT files.

Revision 19002 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 12 08:16:02 2007 UTC (7 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 23281 byte(s)
Diff to previous 18979
In case of a broken symlink do not show a modal message box saying:
"Can't read file attributs of <filename>: No such file or directory".
Only the an info message is printed on the ROOT prompt.

Revision 18979 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 7 13:25:34 2007 UTC (7 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 23161 byte(s)
Diff to previous 18897
Fixed a SegV caused by changes in Revision 1.38 of TGFSContainer.cxx,
in which the line gSystem->ProcessEvents() was introduced while filling
TGFileContainer to not block the GUI if the current directory contains
many files. This change caused SegV in the File dialog when the Cancel
button is clicked during the directory feeling (reported by Axel).

New data member and corresponding getter/setter methods of
TGFileContainer class:
Bool_t fDisplayStat; // kFALSE to interrupt display directory
                     // contents in case of many files inside

Follow-up changes in TGFileDialog::ProcessMessage method when Cancel
button was clicked.

Revision 18897 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 29 12:41:45 2007 UTC (7 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 23091 byte(s)
Diff to previous 18853
Fixed coding conventions

Revision 18853 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 22 11:47:14 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 23080 byte(s)
Diff to previous 18753
From Valeri Onuchin:
Fixed memory leaks.

Revision 18753 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 12 20:11:41 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22971 byte(s)
Diff to previous 18536
From Bertrand:
- Process events while filling TGFileContainer to not block the GUI in case of directories containing many files.

Revision 18536 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 21:07:02 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22943 byte(s)
Diff to previous 18507
From Bertrand:
Added drag and drop support for Linux (Xdnd) and Windows (Clipboard).
It is now possible to drag an histogram (or any other graphical object)
from an opened file in TBrowser to any TCanvas.
It is also possible to drag a text file from TBrowser to a TGTextView
or TGTextEdit widget (i.e. in TGTextEditor).
On Linux, it is even possible to drag from a Root application to another
one, or to drag a text file (i.e. a macro) from the ROOT browser to an
external editor (i.e. Kate).
On Windows, drag and drop only works within the same ROOT application
(for the time being).

Revision 18507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 17 12:08:17 2007 UTC (7 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22769 byte(s)
Diff to previous 17285
- cleanup of includes

Revision 17285 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 10 17:43:14 2007 UTC (8 years ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22767 byte(s)
Diff to previous 16892
- Fix in TGFileItem ctor - in ROOT browser (detailed list view)
months were displayed as numbers from 00 to 11, instead
of from 01 to 12 (thanks to Jan for reporting this bug)

Revision 16892 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 23 13:49:11 2006 UTC (8 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22770 byte(s)
Diff to previous 15966
remove meaningless const qualifier.

Revision 15966 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 9 16:11:01 2006 UTC (8 years, 5 months ago) by antcheva
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22810 byte(s)
Diff to previous 15862
From David Gonzalez Maline:
- sort files by owner and group
- added tooltips to the header buttons as hints for sorting features
(Note: sometimes, the system doesn't grab well the information
about the group, i.e. doesn't get the correct group name. It takes the
same name as the user instead)

Revision 15862 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 27 12:21:56 2006 UTC (8 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 21465 byte(s)
Diff to previous 15844
From David Gonzalez Maline:
Implement sorting by date in TGFSContainer and fix a typo in date format.

Revision 15844 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 24 16:11:45 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20526 byte(s)
Diff to previous 15822
From David Gonzalez Maline and Bertrand:
A bunch of modifications in TGFileDialog (mainly user requests):
- Sort files by name and not by type anymore.
- Increased the vertical scroll size.
- Implemented multiple file selection; can be turned on/off with a
  checkbox on the TGFileDialog.

Here is an example of how to use multiple selection:

  TGFileInfo fi;
  new TGFileDialog(fClient->GetDefaultRoot(), this, kFDOpen,&fi);
  if (fi.fMultipleSelection && fi.fFileNamesList) {
     TObjString *el;
     TIter next(fi.fFileNamesList);
     while ((el = (TObjString *) next())) {
        new TFile(el->GetString(), "update");
     }
  }
  else if (fi.fFilename) {
     new TFile(fi.fFilename, "update");
  }

Revision 15822 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 19 13:01:49 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20069 byte(s)
Diff to previous 15672
From Bertrand:
From David Gonzalez Maline:
Add "modified" time field in TGFSContainer to show file modification time
in "details" mode.

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19627 byte(s)
Diff to previous 13278
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 13278 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 17 19:09:28 2005 UTC (9 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19620 byte(s)
Diff to previous 11867
From Ilka:
code style fixes (comments, descriptions and identation).

Revision 11867 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 25 16:20:54 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19526 byte(s)
Diff to previous 11862
From valeriy Onuchin:
- two new features added to ROOT browser

1.  on double-click on a  ROOT file  browser opens up "ROOT Files" folder
    in list tree (left pan) with newly opened file and displays this file in
the right pan.
   It makes browser navigation more simpler and more intuitive.

2. Auto generation of thumbnails for browsed  files was added.
    To test this feature try to browse any macro in ROOT tutorials or some
image file.
     If executed macro creates a new canvas the 32x32 pixel image from this
canvas
     became a thumbnail for this file.
     This feature can be switched on/off in  the ROOT resource file by
changing

3. TGListTree. Some protected methods were made public.

Browser.AutoThumbnail:       yes (or no)

Revision 11862 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 20:05:10 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19324 byte(s)
Diff to previous 11286
From Valeriy Onuchin:
- root.mimes. Default actions changed for some image types (*.png, *.gif,
*.jpg etc.)
  Drawing images in canvas is better than  drawing it as TGPictureButton.
  Image drawn in canvas can be processed via context menu,  scaled, resized
etc.

- TPad::Print - roll-back recent changes in GIF saving. Use again
TVirtualX::WriteGIF
    method for saving GIF files which produces much smaller  files.
   BTW,  the patent on LZW compression  was expired july 2004. So, making
GIF is now legal.

- TGMimeTypes - fix nasty typo-bug in GetIcon method.  The  effect of the
bug was appeared as
   no large icons were displayed for  qq.png, qq.gif etc.  files types.

- TGPicture - minory mods

-   TGFileContainer::GetFilePictures - optimised for speed. To test a gain
in performance -
     run TBrowser on slow computer and open up $ROOTSYS/icons directory.
     New data member TGFileContainer::fCachePictures was added which allows
     to switch on/off this mechanism.

- TRootBrowser.  Weired "refresh behavior" was fixed - when some macro was
   browsed/executed and then canvas was deleted, browser's icon box was
refreshed and
   currrent "page position" was changed to the most upper one.
   Now page position remains on the same place.

- Refresh TBrowser on F5 pressed action added.

- TGLVEntry - SetPictures method added, whic allows to change  list view
entry pictures  dynamically.

- TSystemFile. SetIconName, GetIconName methods addd

Revision 11286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 10 19:17:11 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 18483 byte(s)
Diff to previous 10904
From Ilka:
To avoid the case when .root directory is treated as a .root file
I've added additional check.

Revision 10904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 12 18:39:30 2005 UTC (10 years ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 18426 byte(s)
Diff to previous 10327
From Valeriy Onuchin:
- new concept of "pseudo-window" introduced.
  pseudo-window - is an object inherited from TGWindow which
  is not created by window system (X11 or M$ Windows).
  It does not consume window system resouces.

  The main use-case of pseudo-windows is GUI containers
  with very large number of items. For example, listviews, listboxes,
  where listview/listbox items/entries are pseudo-windows.
  Pseudo-window  has "window id" equal to zero.
  In order to "activate pseudo-window concept" the parent should
  have fIsMapSubwindows dat member to be kFALSE.
  So, it's backward compatible,  setting fIsMapSubwindows=kTRUE in parent window
  will activate normal behavior, i.e. will be created in window system.

 Introduction of  "pseudo-window concept" forced the changes in
 TGX11, TGWin32 classes to avoid  TVirtualX methods execution when
 "window id" is NULL (the case of  pseudo-window).

 Introduction of pseudo-windows which do not consume window system resouces
 greately improved  performance of  TGListView, TGListBox, TGComboBox objects.

 Now it's possible to have these containers with more than 10000 items.

- some optimization in TGLBContainer drawing
- add SetWindowName to most GUI classes. It's very usefull for GUI debugging.

Revision 10327 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 15 17:44:20 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 18363 byte(s)
Diff to previous 10318
provide ClassDef/ClassImp for TGFileItem.

Revision 10318 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 15 17:07:27 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 18334 byte(s)
Diff to previous 8659
remove machine dependent file mode checking code. Also export TGFileItem
to CINT (was not done due to some bug in an old version of CINT).

Revision 8659 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 22 18:23:44 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19847 byte(s)
Diff to previous 8637
From Valeriy Onuchin:
- total number of items was counted twice.Here is the fix.

Revision 8637 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 21 10:13:32 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19863 byte(s)
Diff to previous 8629
From Bertrand:
Here is another diff, allowing to use gSystem->GetUserInfo(fUid) into
TGFSContainer the same way on Win32 as on Unix.
Also gSystem->GetUserInfo(fUid) returns current user infos if fUid == 0.

Revision 8629 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 20 21:20:22 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20696 byte(s)
Diff to previous 8626
with additional fix from Bertrand 1.17 does (and can) compile under windows.

Revision 8626 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 20 17:00:02 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22755 byte(s)
Diff to previous 8616
Reintroduce previous version of this file. the new version does not (and cannot) compile
under Windows.

Revision 8616 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 20 15:08:04 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20597 byte(s)
Diff to previous 8228
remove many Win32 ifdefs, only two remaing concerning file access bits.

Revision 8228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 16:17:33 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22756 byte(s)
Diff to previous 7683
From Valeriy:
use gClient->GetDefaultRoot() instead of GetRoot(). This allows the widgets
to be embedded but ensures popups to still be a child of the real X11 root
window.

Revision 7683 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 3 00:25:19 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22741 byte(s)
Diff to previous 7652
From Valeriy Onuchin:

- SetDefaultWidth, SetDefaultHeight methods introduced to
  TGLayoutManager class. That  allows to force setting default size to
  listview container.
  Along with changes in listview related classes that fixes
   1. "missing horizontal scroll bar in detailed view" bug.
   2. "mess in the names in detailed view" bug.

Revision 7652 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 25 15:57:34 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22705 byte(s)
Diff to previous 7520
From Ilka:
- saving a frame using an externally created window
- saving TCanvas GUI in a macro
- fixing a typo in TGFSContainer::SavePrimitive()

Revision 7520 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 5 13:08:26 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 22725 byte(s)
Diff to previous 6863
From Ilka:
Any ROOT GUI can now be saved as a macro. Executing this macro brings back
the current GUI (minus the action handling). This very important development
allows to get easily the source for any GUI, which can then be inspected or
used to create other GUI's. Also this will allow a GUI builder to save and
restore GUI's.

To save the source of a GUI use the methods TGMainFrame::SaveSource() or
TGTransientFrame::SaveSource(), where the latter saves the source for dialogs.

To trigger the saving of any GUI just use ctrl-s.

Revision 6863 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 8 19:42:07 2003 UTC (11 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 21360 byte(s)
Diff to previous 6663
From Valery Onuchin
- I added new example to guitest which demonstrates
   how to use TGFileContainer/TGContainer classes.

   This example along with TestListDir example added previously
   reproduces general functionality of TRootBrowser

- added new simplified constructor to TGLVEntry class

- add new method

TGMenuBar::AddPopup(const TString &s, Int_t padleft, Int_t padright,
                   Int_t padtop, Int_t padbottom)

which also simplifies adding of popup-menus

- mods in TGFSContainer.h which allow to make #include <TGFSContainer.h>
  during ROOT session

Revision 6663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 11:55:32 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20367 byte(s)
Diff to previous 5581
major changes in the resource management of the GUI classes. Introduced the
new class TGResourcePool which loads and keeps track of the 3 main resource
pools: fonts, picture and graphics contexts. Fonts are now handled via the
new TGFont class (and TGFontPool). In the past the loading of these resources
was done in TGClient and required all GUI classes to have TGClient as friend
to have their global statics initialized by TGClient. Adding a new widget
required TGClient.cxx to be changed too. This was obviously not good.
In addition it is now possible to find the full definition of the original
resource back based on a resource handle (GContext_t or FontStruct_t yielding
a TGGC or TGFont) which is needed for the SavePrimitive() functionality.

The resource pool can be found via TGClient (e.g. gClient->GetResourcePool()).
To see all active graphics contexts, fonts and pictures do:
   gClient->GetResourcePool()->GetGCPool()->Print()
   gClient->GetResourcePool()->GetFontPool()->Print()
   gClient->GetResourcePool()->GetPicturePool()->Print()
For more examples see the widget source code.

These changes are largely backward compatible except maybe for some low
level 3rd party widgets that use some TGFrame internals. In these cases
the following sed command will patch the code:
   sed -e "s/fgBlackGC()/GetBlackGC()()/g" \
       -e "s/fgWhiteGC()/GetWhiteGC()()/g" \
       -e "s/fgHilightGC()/GetHilightGC()()/g" \
       -e "s/fgShadowGC()/GetShadowGC()()/g" \
       -e "s/fgBckgndGC()/GetBckgndGC()()/g" \
       widget.cxx > widget.cxx.new

Revision 5581 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 15 13:24:59 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20362 byte(s)
Diff to previous 5420
Several improvements and bug fixes in the browser by Valery Onuchin

Revision 5420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 12 10:49:38 2002 UTC (12 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19287 byte(s)
Diff to previous 5413
revert to previous version. Valeriy's mods still has some severe bugs and
needs much more testing.

Revision 5413 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 10 17:09:06 2002 UTC (12 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 20362 byte(s)
Diff to previous 4692
widget improvements by Valeriy Onuchin. In particular the TGListTree
should now be able to handle very large tree's (not limited anymore by
the bitmap size). Added key navigation options to TGListTree and some
new signals.

Revision 4692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 12 16:46:12 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19287 byte(s)
Diff to previous 3317
major improvements in TGListTree by Valeriy Onuchin. The TGListTree can
now display >100k's of items in a very efficient way. This is used now
in the ROOT browser.

Revision 3317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 28 16:05:42 2001 UTC (13 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 19275 byte(s)
Diff to previous 1211
win32gdk case added

Revision 1211 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 16:58:31 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 16029 byte(s)
Diff to previous 1210
A few hidden cases of ls, Print in classes defined in the implementation file.

Revision 1210 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 16:45:36 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 16016 byte(s)
Diff to previous 685
Changes related to const (reported by Hpux/acc)

Revision 685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 08:57:05 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 16004 byte(s)
Diff to previous 626
many change connected with the introduction of the TGGC (graphics context)
class (all backward compatible). Also many of the static default GC's and
fontstructs are now available to the user. This can simplify code in many
places. See change in guitest.cxx.

Revision 626 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 11 17:38:35 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 16006 byte(s)
Diff to previous 3
some source formatting changes.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGFSContainer.cxx
File length: 15949 byte(s)
Copied from: branches/rdm/gui/src/TGFSContainer.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/gui/src/TGFSContainer.cxx
File length: 15949 byte(s)
Initial import of ROOT into CVS

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9