[root] / trunk / gui / gui / inc / TRootBrowserLite.h Repository:
ViewVC logotype

Log of /trunk/gui/gui/inc/TRootBrowserLite.h

Parent Directory Parent Directory


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

Revision 37996 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 7 15:33:10 2011 UTC (3 years, 11 months ago) by rdm
File length: 6918 byte(s)
Diff to previous 30884
From Bertrand:
- Properly close the main frames (created via the plugins) embedded in
  the new browser tabs before deleting the browser itself.
  This should fix the bug #77768, crash on deleting new TBrowser
  (https://savannah.cern.ch/bugs/?77768)

Revision 30884 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 27 12:26:33 2009 UTC (5 years, 2 months ago) by rdm
File length: 6886 byte(s)
Diff to previous 23115
From Bertrand:
- Add GetMainFrame() method, to make easier the connection to the
  TGMainFrame::CloseWindow() signal.

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: 6813 byte(s)
Copied from: trunk/gui/inc/TRootBrowserLite.h revision 23114
Diff to previous 20932
moved to directory "gui" the following directories:

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

Revision 20932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 20 17:08:42 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowserLite.h
File length: 6813 byte(s)
Diff to previous 20882
white space.

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/inc/TRootBrowserLite.h
File length: 6817 byte(s)
Diff to previous 20550
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 20550 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 30 15:00:39 2007 UTC (7 years, 2 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowserLite.h
File length: 6817 byte(s)
Diff to previous 20516
From Bertrand:
Added TBrowser::SetStatusText(const char* txt, int col), as asked by Sergey Linev to remove dependency of their code from ROOT gui (TG..) classes.

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/inc/TRootBrowserLite.h
File length: 6758 byte(s)
Copied from: branches/dev/bertrand/gui/inc/TRootBrowserLite.h revision 20514
Diff to previous 20127
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.

Revision 20127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 09:27:00 2007 UTC (7 years, 3 months ago) by bellenot
Original Path: branches/dev/bertrand/gui/inc/TRootBrowserLite.h
File length: 6758 byte(s)
Copied from: branches/dev/bertrand/gui/inc/TRootBrowser.h revision 20126
Diff to previous 20120
rename TRootBrowser to TRootBrowserLite

Revision 20120 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 28 08:24:06 2007 UTC (7 years, 3 months ago) by bellenot
Original Path: branches/dev/bertrand/gui/inc/TRootBrowser.h
File length: 6446 byte(s)
Diff to previous 19826
My development branch

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/inc/TRootBrowser.h
File length: 6446 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/inc/TRootBrowser.h
File length: 6499 byte(s)
Diff to previous 15879
remove :$ from tag line

Revision 15879 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 1 10:54:37 2006 UTC (8 years, 5 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 6509 byte(s)
Diff to previous 13688
From David Gonzalez Maline and Bertrand:
- Implemented resizable TGListView headers.
- Implemented files sorting by clicking header buttons in TGFileDialog
  and TRootBrowser.

Revision 13688 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 13 16:03:42 2005 UTC (9 years, 1 month ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 6497 byte(s)
Diff to previous 12658
From Valeriy Onoutchin
TBrowser, TRootBrowser:

- possiblity to edit and execute browsed macro in the
  righgt pane of the browser added.
  New toolbar buttons added (buttons appeared only when
  ROOT macro is being browsed):
   "Execute Macro", "Interrupt Macro", "Save Macro"
- default size of browser was increased on 25%

Revision 12658 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 14:21:53 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 6332 byte(s)
Diff to previous 12518
from Bertrand:
add new check box feature to TGListTree widget. This option allows checkboxes
on the tree nodes to turn on/off pieces of the tree hierarchy. Used in the
ROOT browser to toggle visibility of geometries.
In TGListTree see for example the new methods:
   void  CheckItem(TGListTreeItem *item, Bool_t check = kTRUE);
   void  SetCheckBox(TGListTreeItem *item, Bool_t on = kTRUE);
   void  ToggleItem(TGListTreeItem *item);
   void  Checked(TObject *obj, Bool_t check);  //*SIGNAL*
and the checkbox option in:
   AddItem(..., Bool_t checkbox);

Revision 12518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 19 09:46:37 2005 UTC (9 years, 5 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 6046 byte(s)
Diff to previous 12247
From Ilka:
The attached patch fixes memory leaks caused by the method
TGMainFrame::SetIconPixmap following way:
- changed method signature to (the backward compatibility is kept)
    const TGPicture *TGMainFrame::SetIconPixmap(const char *iconName);
- added new data members cost TGPicture* fIconPic for TRootCanvas,
  TRootBrowser, TRootGuiBuilder classes that allow the icon picture to
  be freed in the destructors
- code changes for  fixing the memory leaks in TRootCanvas, TRootBrowser
  and TRootGuiBuilder.

Revision 12247 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 5 12:36:07 2005 UTC (9 years, 6 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5984 byte(s)
Diff to previous 11907
From valeriy Onuchin:
- new class TImagePlugin is introduced;
 To add possibility to read/write new image format one needs to create
 a derived class and to override two methods:
   virtual unsigned char *ReadFile(const char *filename, UInt_t &w,UInt_t &h)
   virtual Bool_t WriteFile(const char *filename, unsigned char *argb,
                             UInt_t w, UInt_t  h)
   ... and to specify it in the root resource file:

Plugin.TImagePlugin:  ps    TASPluginGS   ASPluginGS   "TASPluginGS(const char*)"
the name of plugin    file extension      DLL containing an implementation of
TImagePlugin subclass

- new class TASImagePlugin that is a subclass of TImagePlugin with ASImage
specific implementations;

- new class TASPluginGS - an image plugin class that allows to create images from
PS/EPS/PDF files and to display them in TCanvas/TPad. In addition, it allows to
browse PS/EPS/PDF files with the ROOT browser.

New files:
asimage/inc/LinkDefGS.h
asimage/inc/TASImagePlugin.h
asimage/inc/TASPluginGS.h
asimage/src/TASPluginGS.cxx

graf/inc/TImagePlugin.h

icons/pdf.xpm
icons/tb_find.xpm

libAfterImage.tar.gz

- TROOT.h
    o new data member fClipboard and corresponding getter GetClipboard();
      TSeqCollection  *fClipboard;           //List of clipboard objects;

- TGFrame
    o embedded frames resized correctly now.

- TGCanvas
    o several useful methods made public

- TGListBox, TGComboBox
    o new method FindEntry(const char *s) added which returns entry by name

- TGMdiMainFrame, TGMdiDecorFrame
    o fix bug which changed text color globally
    o add displaying scroll bars when mdi frame is moved out of mdi
      canvas viewport

- TGTextEdit/TGView, guitest
   o added processing of:
     2-clicks - selects a word
     3-clicks - selects a line
     4-clicks - selects the whole text
   o change  the key handling
     Ctrl-F - invokes Search dialog
     Ctrl-L - invokes Goto line dialog
     Correspondent changes  added to guitest.C and guitest.cxx (TextEdit test)
   o readonly mode added

- TGSearchDialog
   o Text entry was replaced by "text entry" combobox. It allows to
     "remember" a history of entered search strings.
   o new static method TGSearchDialog *&gDialog() introduced. It returns
     a global search dialog.
   o Search method - display warning message box when object is not found

- TRootBrowser, mime.types
   o  possibility to browse PS/EPS/PDF fies added
   o possibility to browse text files added. The content of text file
     appears in "icon box" window (a la netscape)
   o "Search" tool bar button added. It activates the "search dialog" for
     searching a specified icon or text when a text file is browsed.

- TGuiBldEditor.
  o fix bug which changed text color globally

Revision 11907 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 30 10:21:14 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5674 byte(s)
Diff to previous 11898
From Valeriy:
- TSystemFile. New methods Rename, Delete, Copy, Move  added.
  These methods can be invoked via ContextMenu  (press right mouse button)
  in ROOT browser.
- TRootBrowser. More improvments in browsing history navigation added.

Revision 11898 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 27 12:24:44 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5624 byte(s)
Diff to previous 11862
From Valeriy:
-TASImage:
  o CreateThumbnail() - add more contrastness to generated thumbnails
  o GetMask() - gVirtualX->CreateBitmap requires a width of input bitmap to be
    even to 8 . This mod fixes the problem of XPM images reading.

- TGListView - more corrections in adjusting page position after
  changing vew mode.

- TGPicture. Prblem with reading XPM files via TImage is fixed
  (TASImage::GetMask) I removed platform dependent code.

- TRootBrowser
   o minory mod in dynamic thumbnal generation
   o possibility to navigate through "browsing  history" added.
   o 3 new buttons added to ROOT browser toolbar -
     "Back", "Forward", "Refresh"

- root.mimes - minory mods.

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/inc/TRootBrowser.h
File length: 5377 byte(s)
Diff to previous 9945
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 9945 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 08:13:11 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5331 byte(s)
Diff to previous 9415
From Valeriy Onuchin:
- provide default constructors for most TGxxx classes.
  The goal:
    1.  required for  guibuilder
     2. providing  ROOT I/O for GUI classes.
  In all default constructors parent window is NULL,
  that means that parent window is currently editted window.

Revision 9415 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 15:02:25 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5298 byte(s)
Diff to previous 9402
From Valeriy Onuchin:
- keep history of draw option settings in browser
- add few usefull methods, i.e.
  TGCombobox::GetNumberOfEntries()
  TGLBEntry *TGListBox::GetEntry(Int_t id)

Revision 9402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 6 10:55:57 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5269 byte(s)
Diff to previous 9283
From Valeri Onuchin:

 - new constructor added to TGComboBox class
   TGComboBox(const TGWindow *p, const char *text)
   That creates editable combobox.
 - Use editable combobox for setting "Draw Option" in TBrowser

Revision 9283 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 22 15:36:42 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5270 byte(s)
Diff to previous 8147
From Valeriy Onuchin:
- this patch allows to set draw option while  browsing TFiles/TTrees

Revision 8147 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Feb 7 10:42:19 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 5084 byte(s)
Diff to previous 7415
From Valeriy Onuchin:
- console corruption problem under win32gdk (after stdout redirection) is solved
- I reverted all my mods in cint/src/pause.c
- GetMenuBar(),  GetToolBar() methods added to TRootBrowser
  which would be usefull for embedded browser. i.e. hiding tool,menu bars

Revision 7415 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 8 09:50:47 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4956 byte(s)
Diff to previous 7408
From valeriy Onuchin:
Add possibility to put a progress bar into a status bar.
Deriving TGStatusBarPart from TGCompositeFrame
allows to do it.

- Derive TGStatusBarPart from TGCompositeFrame
- Add getters returning TGStatusBar to TRootBrowser,TRootCanvas
- Add getter returning TGStatusBarPart to TGStatusBar


Example:

  TBrowser b;
  TRootBrowser *imp= (TRootBrowser*)b.GetBrowserImp();
  TGStatusBar *bar = imp->GetStatusBar();
  TGCompositeFrame *part = bar->GetBarPart(1);
  TGHProgressBar *hb = new TGHProgressBar(part, 300);
  hb->Move(300,0);
  part->MapSubwindows();

Revision 7408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 7 19:02:26 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4891 byte(s)
Diff to previous 6454
From Valeriy Onuchin:
  added getters to TRootBrowser
   TGListTree      *GetListTree() const;
   TGFileContainer *GetIconBox() const;

Revision 6454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 16 11:15:14 2003 UTC (11 years, 9 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4773 byte(s)
Diff to previous 5923
added DoubleClicked(TObject* obj) signal which is emitted when user
double clicks on an icon in TBrowser. By Valeriy O.

Revision 5923 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 16 17:57:37 2003 UTC (12 years ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4711 byte(s)
Diff to previous 5620
Two changes in TRootBrowser:
1. two signals added to TRootBrowser class

   void     BrowseObj(TObject *obj);            //*SIGNAL*
   void     ExecuteDefaultAction(TObject *obj); //*SIGNAL*

2. few data members of TRootBrowser made protected, so one can
   gain access to these methods via a derived class.

How to use it?
   TBrowser *b;
   TRootBrowser *imp = (TRoorBrowser*)b->GetBrowserImp();
   imp->Connect("BrowseObj(TObject*)", ...
   imp->Connect("ExecuteDefaultAction(TObject*)", ...

Revision 5620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 20 08:24:06 2002 UTC (12 years, 2 months ago) by brun
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4659 byte(s)
Diff to previous 5329
From valeriy
Implement;
1. up level directory navigation
2. clicking on folder at icon-box highlights correspondent
   folder at list-tree and adjust postition in list-tree

Revision 5329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 18 13:12:59 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4627 byte(s)
Diff to previous 4692
better closing strategy for the canvas, browser and controlbar. No need anymore
for the DetachImp() method (which has been removed).

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/inc/TRootBrowser.h
File length: 4599 byte(s)
Diff to previous 2527
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 2527 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 5 16:50:12 2001 UTC (13 years, 6 months ago) by rdm
Original Path: trunk/gui/inc/TRootBrowser.h
File length: 4575 byte(s)
Diff to previous 3
made SetDefaults() public plus added two default arguments iconType and
sortBy. This allows the customization of the browser via the API.

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/inc/TRootBrowser.h
File length: 4465 byte(s)
Copied from: branches/rdm/gui/inc/TRootBrowser.h 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/inc/TRootBrowser.h
File length: 4465 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