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

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

Parent Directory Parent Directory


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

Revision 45007 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 11 15:17:27 2012 UTC (2 years, 6 months ago) by tpochep
File length: 66686 byte(s)
Diff to previous 44996
1. "Drag and drop" inside ROOT (based on properties).
2. Remove modifications from TRootCanvas (accident).

Revision 44996 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 11 09:17:56 2012 UTC (2 years, 6 months ago) by tpochep
File length: 66736 byte(s)
Diff to previous 44507
Add class and methods (in the protocol and its implementations) to support X11 properties.

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: 66687 byte(s)
Diff to previous 44173
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 44173 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 8 11:59:51 2012 UTC (2 years, 8 months ago) by bellenot
File length: 66652 byte(s)
Diff to previous 44170
Fix to prevent a potential crash when deleting canvas with toolbar, as reported on the forum (http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=14627)

Revision 44170 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 8 09:06:34 2012 UTC (2 years, 8 months ago) by tpochep
File length: 66624 byte(s)
Diff to previous 42790
TRootCanvas: when "Colors" selected from the "View" menu,
color wheel object creates a canvas (step 1), appends itself 
into this canvas (step 2). This code relies on the fact, that
all events (configure/expose/etc) will be received _after_ step 2
and canvas will be eventually repainted later. This is not true in case
of cocoa: window is created and made visible on step 1, it's repainted
after step 1 and before step 2, so any contents added after step 2
will become visible only after gPad->Update() call (BTW, this is how it's 
done in TRootCanvas for "View"->"Markers".

Call gPad->Update(), do not rely on X11 specific (events in a queue at the end
of event loop iteration).

Revision 42790 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 13:28:42 2012 UTC (2 years, 11 months ago) by bellenot
File length: 66340 byte(s)
Diff to previous 42630
Stay in the current (working) directory when using "File -> Save as..." from a canvas or from a text editor (as the file dialog changes the current directory). This solves the bug #90474: When savin a TCanvas from Canvas Window the current working directory in python shell get's changed (https://savannah.cern.ch/bugs/?90474)

Revision 42630 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 13:27:19 2012 UTC (3 years ago) by bellenot
File length: 66203 byte(s)
Diff to previous 42460
Fix coverity report #36016 (dereference null return)

Revision 42460 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 12 08:36:29 2011 UTC (3 years, 1 month ago) by bellenot
File length: 66196 byte(s)
Diff to previous 41267
Add a check for the case where the canvas is embedded (e.g. in the browser), then the layout of the main frame has to be re-applied when showing/hiding the editor

Revision 41267 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 10:43:04 2011 UTC (3 years, 3 months ago) by bellenot
File length: 65882 byte(s)
Diff to previous 41231
Fix coverity report (dereference null return value)

Revision 41231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 15:21:36 2011 UTC (3 years, 3 months ago) by bellenot
File length: 65870 byte(s)
Diff to previous 41021
Fix coverity reports (dereference null return value)

Revision 41021 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 27 10:31:00 2011 UTC (3 years, 3 months ago) by bellenot
File length: 65845 byte(s)
Diff to previous 38343
Fix bug #87176: ROOT crash using Quit from TCanvas (https://savannah.cern.ch/bugs/?87176)

Revision 38343 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 9 15:49:34 2011 UTC (3 years, 10 months ago) by bellenot
File length: 65838 byte(s)
Diff to previous 35327
- Replace "ACP" to "ALP" to be compatible with the double-click default option
- Remove "ALP" option from the browser

Revision 35327 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 16 10:43:04 2010 UTC (4 years, 4 months ago) by bellenot
File length: 65838 byte(s)
Diff to previous 34286
Remove dead (unreachable) code (coverity)

Revision 34286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 20:38:57 2010 UTC (4 years, 6 months ago) by rdm
File length: 65938 byte(s)
Diff to previous 33923
fix format errors related to TString::Form(), TString::Format(), Form()
and Printf().

Revision 33923 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 15:20:19 2010 UTC (4 years, 7 months ago) by bellenot
File length: 65929 byte(s)
Diff to previous 32725
Replace fixed size char array by a TString, to avoid possible buffer overflow (coverity)

Revision 32725 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 24 08:11:16 2010 UTC (4 years, 10 months ago) by bellenot
File length: 65923 byte(s)
Diff to previous 32320
Make sure the pad is highlighted when passing over it during drag and drop operations

Revision 32320 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 10 14:57:14 2010 UTC (4 years, 11 months ago) by bellenot
File length: 65847 byte(s)
Diff to previous 30690
Drag and drop improvements for images + protection against possible null pointers.

Revision 30690 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 12 18:12:30 2009 UTC (5 years, 3 months ago) by rdm
File length: 65629 byte(s)
Diff to previous 29408
From Olivier:
add support for mousewheel in TCanvas.

Revision 29408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 9 10:20:29 2009 UTC (5 years, 6 months ago) by bellenot
File length: 65676 byte(s)
Diff to previous 29403
Add a special case for displaying tooltip information:
  if the string returned by GetObjectInfo begins with
  '-' display only the object info

Revision 29403 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 9 07:17:16 2009 UTC (5 years, 6 months ago) by brun
File length: 65354 byte(s)
Diff to previous 28464
From Bertrand:
Implement tooltip displaying information about the primitive below the mouse pointer in a canvas.

It is possible to enable/disable this optional feature with the "Tooltip info" menu entry from the "View" menu of the canvas.

To change the default behaviour (off by default), a new option has been added in system.rootrc:

Canvas.ShowToolTips:        false

Revision 28464 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 6 12:37:21 2009 UTC (5 years, 8 months ago) by brun
File length: 63044 byte(s)
Diff to previous 28054
From Timur:
New GL interface for TPad (to be documented in next check-in)

Revision 28054 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 2 09:30:48 2009 UTC (5 years, 9 months ago) by couet
File length: 62776 byte(s)
Diff to previous 27475
- In SetWindowSize, make sure the size change is really done by flushing the event queue.

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: 62604 byte(s)
Diff to previous 26760
Replace Form() by TString::Format()

Revision 26760 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 15:56:43 2008 UTC (6 years, 1 month ago) by brun
File length: 62593 byte(s)
Diff to previous 26370
From Axel, Matevz and me:

Added several methods to be able to properly generate pictures from macros (for html):

- Added Bool_t HasViewer3D() to TVirtualPad/TPad

- Added Bool_t HasEditor() HasMenuBar() HasStatusBar() HasToolBar() to TCanvasImp /TRootCanvas

Revision 26370 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 21 20:24:09 2008 UTC (6 years, 2 months ago) by brun
File length: 61699 byte(s)
Diff to previous 26358
From Bertrand:
- TFitEditor.cxx: Fix Windows compilation warning C4138: '*/' found outside of comment
- TRootCanvas.cxx: pass correct pointer to TVirtualPad as argument to handler->ExecPlugin() (used as first argument in TFitEditor constructor) instead of a pointer to TRootCanvas

Revision 26358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 21 16:18:46 2008 UTC (6 years, 2 months ago) by brun
File length: 61696 byte(s)
Diff to previous 25900
From Lorenzo/david
The Fitpanel can now be invoked from the canvas "Tools" menu

Revision 25900 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 21 06:58:37 2008 UTC (6 years, 3 months ago) by bellenot
File length: 60978 byte(s)
Diff to previous 25891
- Remove unused variables

Revision 25891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 20 15:14:46 2008 UTC (6 years, 3 months ago) by bellenot
File length: 61006 byte(s)
Diff to previous 25603
From Otto Schaile:
Solve bug: https://savannah.cern.ch/bugs/?43081
If a TCanvas has a vertical scrollbar scrolling downwards works 
as expected. Upwards jumps to the top of the canvas.

Revision 25603 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 30 07:58:03 2008 UTC (6 years, 3 months ago) by bellenot
File length: 60967 byte(s)
Diff to previous 23115
- From Katerina Opocenska and me:
  TRecorder classes provide interface for recording and replaying
  events in ROOT.
  Recorded events are:
  - Commands typed by user in command line (e.g. 'new TCanvas')
  - GUI events (mouse movement, button clicks, ...)
  All the recorded events from one session are stored in one TFile
  and can be replayed again anytime.
- Added icons needed by TGRecorder
- Modifications in TRootCanvas menu:
  Renamed "Inspect" menu title to "Tools"
  Added "Event Recorder" menu entry

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: 60995 byte(s)
Copied from: trunk/gui/src/TRootCanvas.cxx revision 23114
Diff to previous 22056
moved to directory "gui" the following directories:

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

Revision 22056 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 8 09:02:03 2008 UTC (6 years, 11 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60995 byte(s)
Diff to previous 21299
From Mathieu de Naurois:
Added entry to File / Save submenu for saving canvas as .png file.

Revision 21299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 15:54:16 2007 UTC (7 years, 1 month ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60793 byte(s)
Diff to previous 20933
From Bertrand:
- Allow to drag and drop ps, eps and pdf files in TRootCanvas and
TRootEmbeddedCanvas.

Revision 20933 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 20 17:11:22 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60676 byte(s)
Diff to previous 20912
From Bertrand:
fix naming conventions, after acronym, next word starts with upper case.

Revision 20912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 20 09:26:46 2007 UTC (7 years, 2 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60676 byte(s)
Diff to previous 20882
From Bertrand:
Added handling TKey objects in HandleDNDdrop.

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/TRootCanvas.cxx
File length: 60433 byte(s)
Diff to previous 20411
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 20411 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 19 12:37:58 2007 UTC (7 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60433 byte(s)
Diff to previous 19826
remove conditional around include of RConfigure.h:

#ifdef R__HAVE_CONFIG
#include "RConfigure.h"
#endif 

Having this conditional caused RConfigure.h to be missing from the .d
files and hence these files would not be recompiled after re-configuring
using --prefix.

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/TRootCanvas.cxx
File length: 60462 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/TRootCanvas.cxx
File length: 60516 byte(s)
Diff to previous 19740
remove :$ from tag line

Revision 19740 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 30 20:46:37 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60526 byte(s)
Diff to previous 19419
From Bertrand:
In ctor replace calls to 'gClient->GetDefaultRoot()' with
'gClient->GetRoot()'.

Revision 19419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 20 14:28:22 2007 UTC (7 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60540 byte(s)
Diff to previous 19406
From Bertrand:
work-around for gVirtualX->GetName() returning "" on Windows.

Revision 19406 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 19 14:20:06 2007 UTC (7 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60559 byte(s)
Diff to previous 19044
make sure to load the right TGLManager plugin (x11 or win32).

Revision 19044 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 15 14:13:02 2007 UTC (7 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60441 byte(s)
Diff to previous 18715
Removed settings of the windows' decoration - this takes place
in TGMainFrame ctor now

Revision 18715 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 9 15:04:17 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60500 byte(s)
Diff to previous 18620
No need to create again drag & drop type list - used fDNDTypeList
from TGMainFrame for drag and drop type settings

Revision 18620 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 29 07:06:48 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60701 byte(s)
Diff to previous 18557
From Bertrand:
 - Allow to drag and drop any object that has a default constructor
   (required by TBufferFile) but is not a TFolder and not a TClass
   (to avoid dragging ROOT class from list of classes) from TBrowser.
 - Added check (obj->IsA()->GetMethodAllAny("Draw")) in method
   HandleDNDdrop() of TRootCanvas and TRootEmbeddedCanvas
   before calling obj->Draw().

Revision 18557 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 23 10:40:05 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60660 byte(s)
Diff to previous 18551
From Bertrand:
- Use also TUrl for uri-list format in TRootCanvas::HandleDNDdrop
  and in TRootEmbeddedCanvas::HandleDNDdrop

Revision 18551 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 22 15:48:59 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 60620 byte(s)
Diff to previous 18542
From Bertrand:
Added ability to drag and drop picture files from TBrowser to TCanvas and TRootEmbeddedCanvas.

Revision 18542 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 20 15:07:46 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 59708 byte(s)
Diff to previous 18536
From Bertrand:
Fix coding conventions.

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/TRootCanvas.cxx
File length: 59575 byte(s)
Diff to previous 18240
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 18240 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 12 13:39:33 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57832 byte(s)
Diff to previous 18061
In TRootCanvas::ProcessMessage the new TColorWheel object is shown instead of the old table.

Revision 18061 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 22 15:40:02 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57620 byte(s)
Diff to previous 17967
From Axel:
Remove unnecessary includes.

Revision 17967 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 15 15:04:41 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57647 byte(s)
Diff to previous 17581
-replace calls to gROOT->GetMakeDefCanvas()() by gROOT->MakeDefCanvas()

Revision 17581 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 30 11:49:15 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57652 byte(s)
Diff to previous 17320
-Replace calls to gROOT->GetClass by TClass::GetClass
-Remove unused references to TROOT.h
-Add include TClass.h in classes assuming an implicit include by other classes

Revision 17320 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 15 11:00:00 2007 UTC (8 years ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57629 byte(s)
Diff to previous 16796
Remove dependency on TMath.h in TGDimension that forced a complete recompilation
of the gui ged geombuilder fitpanel proff, etc packages

Revision 16796 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 16 17:18:32 2006 UTC (8 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57615 byte(s)
Diff to previous 16518
Changes to get rid of the config.h and HAVE_CONFIG define. These were way
too trivial (just do a locate config.h to see how many there are):
- replace occurances of config.h by RConfigure.h
- add #warning in config.h that is should not be used
- change HAVE_CONFIG to R__HAVE_CONFIG

Revision 16518 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 13 07:52:00 2006 UTC (8 years, 3 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57608 byte(s)
Diff to previous 16512
- coding conventions fixes

Revision 16512 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 13:52:23 2006 UTC (8 years, 3 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57612 byte(s)
Diff to previous 16510
- handle left mouse button + shift for GL interactions

Revision 16510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 07:57:23 2006 UTC (8 years, 3 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57489 byte(s)
Diff to previous 16326
- fixed minor memory leak in canvas GUI

Revision 16326 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 25 13:30:22 2006 UTC (8 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57454 byte(s)
Diff to previous 15677
From Matevz:
Update handling of visibility and creation according to new
structure of TGedEditor.

Revision 15677 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 09:24:43 2006 UTC (8 years, 6 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57728 byte(s)
Diff to previous 15672
from Bertrand:
- do not remove temporary pdf file when printing on windows

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/TRootCanvas.cxx
File length: 57711 byte(s)
Diff to previous 15215
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 15215 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 14:00:36 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57695 byte(s)
Diff to previous 15191
From Valeriy Onuchin:
- side effect fixes of previous patch (broken embedded editor)

Revision 15191 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 28 20:08:00 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57764 byte(s)
Diff to previous 15181
From valeriy Onuchine:

- TImage, TASImage
 o Change return type of Vectorize method  from "void" to "Double_t*".
 o Implement FromWindow method under X11. This method allows to
   create "snapshot image" from any ROOT window or frame.

- config/Makefile.depend
 Add dependency of libGuiBld lib on libGraf.
 GuiBuilder uses internally TImage/TASImage class.

- GX11Gui.cxx

 X11 error handler was slightly modified.
 Many X11 errors lead to freezing X11 server and
 did not allow debugging.
 To prevent freezing, a "forced seg.violation" was added
 to the error handler.

 The usage of the new "feature" is the following:
 0. run "gdb root.exe"
 1. set "gDebug = (int)gVirtualX" - that activates the new error handling.
 2. run application which has X11 errors.

On X11 error the application was stopped by the "forced seg.violation".

 3. "gdb>bt" - backtrace the problem.



!!! A big list of changes in libGui initiated by gui builder development !!!

- TGButton.h, TGButton.cxx
  TGButton class:
   o SetDown methods removed from context menu.
   o SetEnabled method of context menu changed to TOGGLE.
     Setting fWidgetFlags was added.

- TGTextButton class
   o GetNormGC(), GetFontStruct() methods are introduced.
   o SetFont removed from context menu.
   o ChangeText(const char *title) was introduced and added to context menu.
   o fixed an error in SetFont method which set font globally instead of
     locally.
   o SavePrimitive - save text justification

- TGPictureButton
   o added getter method GetDisabledPicture()

- TGCanvas
   o added to GuiBuilder widgets palette.

- TGColorDialog
   o new methods:
     - TGColorPalette *GetPalette(),
     - TGColorPalette *GetCustomPalette(),
     - void SetCurrentColor(Pixel_t col)
   o new signal:
      - void ColorSelected(Pixel_t)
   o new parameter added to contructor "Bool_t wait".
     If "wait" is kTRUE, "gClient->WaitForUnmap" is called internally
     (normal/old usage). If "wait" is kFALSE - "gClient->WaitForUnmap"
     should be called by user.
   o few "usefull" colors added to "custom" palette.

- TGColorSelect
   o added to GuiBuilder widgets palette.

- TGComboBox
   o new methods:
     - SortByName - allows to sort combobox entries by names.
     - SetEnabled, IsEnabled.

- TGFontDialog was rewritten.
   o Previous version worked under win32 only,
      now it works on X11 also.
      It allows to select any font available on the system.

  o new parameter added to contructor "Bool_t wait".
     If "wait" is kTRUE, "gClient->WaitForUnmap" is called internally
     (normal/old usage). If "wait" is kFALSE - "gClient->WaitForUnmap"
     should be called by user.

  o new methods:
      void SetFont(TGFont *font);
      void SetColor(Pixel_t color);
      void SetAlign(Int_t align);
      void EnableAlign(Bool_t on = kTRUE);
      void UpdateStyleSize(const char *family);

 o new signals:
   - FontSelected(char *font)
   - AlignSelected(Int_t a)
   - ColorSelected(Pixel_t c)

- TGFrame
   o unused static member fgContextMenu removed.

- TGCompositeFrame
   o TGCompositeFrame::SetEditDisabled modified. It is used for setting
     fEditDisableXX attribute during gui buildind.

   o ChangeSubframesBackground helper method was introduced.

- TGGroupFrame
   o SetTextFont, SetTextColor methods were corrected for
     "local" changing of the font.

- TGWindow
   o kEditDisableKeyEnable added to EEditMode enum.
     If this flag is set - window can handle keyboard events during gui
     building.

- TGLabel
   o new methods:
    - GetNormGC, GetFontStruct
   o fixed bugs in setting label's "local" text font.
   o SavePrimitive - saving text justification added.

- TGListBox
  o new methods:
     - SortByName - allow to sort listbox entries by names.
     - new auxilary/internal class TGLBFrameElement created.
        It's used for ascending/descending sort of list box entries.

  o reimplemented methods:
   ChangeBackground, Layout, GetDefaultWidth

  o disable changing layout manager in SetLayoutManager method.
    Layout manager is not used for layout of list box.

- TGIcon
   o SetImagePath method was corrected.

- TGScrollBarElement
   o new methods:
     - SetEnabled, IsEnabled. These methods are used in enabling/disabling
       TGNumberEntry objects.

- TGScrollBar
   o new getter methods:
      - GetHead, GetTail, GetSlider
   o new signals:
      - PositionChanged, RangeChanged, PageSizeChanged
   o ChangeBackground was reimplemented.

- TGShutter
   o new methods:
      - AddPage, RemovePage, RenamePage
   o new signal Selected.
   o disable changing layout manager in SetLayoutManager method.
     Layout manager is not used for layout.

- TGView
   o disable changing layout manager by SetLayoutManager method.
     Layout manager is not used for layout.
   o ChangeBackground(Pixel_t col) method added which changes background
     color only of the canvas frame.

- TGNumberEntry
   o more options added to context menu.

- TGProgressBar
   o new getter/setter methods:
    - GetBarColor, GetNormGC, GetFontStruct, SetForegroundColor.

- TGTab
   o disable SetEditDisabled method to avoid changing "edit disable
     attribute".

- TGTextEdit, TGTextView, TGView
   o fixed bug - "character replace" mode didn't work
   o setting insert mode added to context menu.
   o setting "read only" mode added to context menu.
   o new method which enable/disable "popup menu for edit actions" added.
   o few corrections to SavePrimitive method.

- TGTextEntry
   o guibuilder specific code was removed.

-  TGuiBuilder.h, TGuiBldAction
   o possibility to set picture for context menu entry added.

- treeviewer/inc/TSessionViewer.h
  o forward declaration of TContextMenu class added.

Revision 15181 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 15:13:03 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57767 byte(s)
Diff to previous 14964
one more round of code cleanup: change NULL by 0 in all C++ code.

Revision 14964 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 9 07:53:32 2006 UTC (8 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57853 byte(s)
Diff to previous 14871
From Bertrand:
- Update gPad after handling ESC key in TRootCanvas (needed for windows)

Revision 14871 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 28 08:32:35 2006 UTC (8 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57822 byte(s)
Diff to previous 14703
From Olivier:
- Modification in HandleContainerKey to handle the ESC key. When changing
  interactively graphics on a canvas it is possible to cancel the ongoing
  change by pressing ESC. This modification allows to immediately cancel,
  before releasing the left mouse button. This behavior is agreement with
  many windows manager and popular tools like power-point.

Revision 14703 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 14 17:54:11 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57609 byte(s)
Diff to previous 14630
From Valeriy Onuchin:
- TGClient.
  Two getter methods GetWaitForEvent(), GetWaitForWindow() introduced.
  New method ResetWaitFor(TGWindow *w) allows to interrupt
  WaitForUnmap, WaitForDestroy event loops.

- TGComboBox
  minory mods

- TRootBrowser, TRootCanavas
  more protection against editting was added

Revision 14630 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 11 06:57:05 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57608 byte(s)
Diff to previous 14397
From Valeriy Onuchin:
- disable editting for ROOT canvas and its subframes

Revision 14397 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 23 15:49:16 2006 UTC (8 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57389 byte(s)
Diff to previous 14314
- white space cleanups

Revision 14314 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 12:31:02 2006 UTC (8 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57383 byte(s)
Diff to previous 14244
- changed View menu entry from Event Status to Event Statusbar
- status bar can be seen when the canvas window is maximized
(thanks Axel)

Revision 14244 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 13 15:04:58 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57218 byte(s)
Diff to previous 14203
From Timur:
Small changes in TGLHistPainter to turn on/off gl-in-pad.

Revision 14203 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 8 21:09:43 2006 UTC (8 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57234 byte(s)
Diff to previous 13993
From Timur Pocheptsov:

-TGLPixmap - removed and replaced by TGLViewer (most of the TGLViewer
    functionality is available in pad now);
-TGLHistPainter - zooming/panning added for legoes/surfaces;
-TGLViewerEditor - TGLViewer's editor for pad (lights/clipping/guides
    manipulation).

-TRootCanvas :
  minor changes to support mouse wheel event in gl viewer in a pad

-TCanvas :
  a)changes to process keyboard events correctly
  b)changes to process mouse will events

-TVirtualViewer3D :
  changes in interface for TGLManager (win32 implementation of TGLManager
  requires some functions and cannot be dependant from TGLViewer)

-Added class TVirtualGLManipulator - base for TGLManip - again, required
 mostly by TGWin32GL.

Revision 13993 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 6 16:46:41 2006 UTC (8 years, 11 months ago) by antcheva
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56847 byte(s)
Diff to previous 13812
From Timur:

- Changes to replace rendering into DIB/pixmap with direct rendering
  (result will be read into pixmap/DIB and used by pad)

Revision 13812 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 10 09:24:59 2006 UTC (9 years ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56853 byte(s)
Diff to previous 13631
From Ilka:
removes hard-coded ".pdf" print output format in
TRootCanvas::PrintCanvas(). Users  have the possibility to specify the print output
file format  in .rootrc file by:
Print.FileType              ps

The print file format by default is ".pdf".

Revision 13631 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 11 10:36:41 2005 UTC (9 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56808 byte(s)
Diff to previous 13560
add kPointerMotionMask to GrabButton events to facilitate TGQt layer.

Revision 13560 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 8 21:48:48 2005 UTC (9 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56790 byte(s)
Diff to previous 13278
From Ilka:
This patch fixes a memory leak in TRootCanvas: picture buttons of the tool
bar were not deleted.

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/TRootCanvas.cxx
File length: 56877 byte(s)
Diff to previous 13274
From Ilka:
code style fixes (comments, descriptions and identation).

Revision 13274 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 17 14:43:17 2005 UTC (9 years, 2 months ago) by couet
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56896 byte(s)
Diff to previous 12925
From Timur:

- Mods needed to paint legos and surfaces thanks to TGLHistPainter

Revision 12925 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 11 09:09:18 2005 UTC (9 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56850 byte(s)
Diff to previous 12688
white space and some comment typos.

Revision 12688 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 8 14:22:17 2005 UTC (9 years, 4 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 57040 byte(s)
Diff to previous 12536
From Ilka & Denis:
The Style Manager handles a list of styles in the ROOT session. It loads by
default the five styles provided by ROOT: Default, Plain, Bold, Video, and
Pub. If this list does not contain a style with the characteristics you
want, you can create a new one and than apply it.

The Style Manager interface is composed of two parts:
- the top level interface that manages a list of styles;
- the style editor, which deals with the current style settings.

The combo box 'Available Styles' contains the list of available styles for
the current ROOT session and the currently selected one. The field on the
right shows the setting of the gStyle. You can set the global variable
gStyle to the selected style by the button in the middle.

The group frame 'Apply on' displays information for the currently selected
canvas and object in the ROOT session. This selection might be changed by
clicking on another object with the middle mouse button. You have a choice
to apply the selected style on the selected object or on all available
canvases. WARNING: You cannot undo the changes after applying the style! If
you are not sure of that action, it may be better to see a preview of what
you are going to apply.\n"

If the check button 'Preview' is selected,  a preview of the selected canvas
according to the selected style will be shown. The selection of the next
check button 'Run Time Preview' will apply updates of the preview any time a
value of the selected style is changed. For drawings that take a time it is
better to disable this option.

Create a new style / delete a style:
You can access these functionalities via the menu or the tool bar. If you
create a style, a clone of the selected style will be created; you will have
the opportunity to modify it later via the editor. Moreover, during the
creation process, you will be asked for a name and a description for your
brand new style. The name can obviously not be the same as another already
existing style. When you choose 'delete', the selected style is removed from
the ROOT session. The selected style will be lost if you didn't saved it in
a C++ macro file before.

Export a style (in a C++ macro file) / Import a style (from a macro):
To store a style longer than for one session of ROOT or in order to share
some styles with others, you can save it in a C++ macro file. This can be
done via the menu and the tool bar. The selected style will be saved. The
name of the macro must be 'Style_*.C', where * can be replaced by anything
you want. A style macro can be imported at any time. The new imported style
in ROOT will become the selected one.
Apply a style (on an object) / Import a style (from an object):
There is a specific button to apply a style on an object and its use has
already been described in the overview. To import a style from a canvas,
choose the 'Style / Import from... / Canvas' menu or the corresponding Tool
bar button. A new style will be created in the ROOT session and will become
the selected one. This style is a clone of gStyle where every style's
information contained in the selected canvas (the canvas containing the
current selected pad) is written. You can consequently import a style from a
canvas and apply it later on another object.

Preview a style:
The predicted result when applying a style can be seen if the 'Preview'
check button is selected. The preview includes the original canvas.

Editor's buttons:
Open / close the editor:\n"
The button 'Edit >>' opens the style editor. Its label changes to 'Close
<<'. For all details of what can be changed and how please see the provided
Help on the right of the Style Manager menu bar.

Reset a style (to a previously saved state):
When the editor is opened, in the bottom of the main window of the style
manager, a 'Reset' button enables you to reset the values of the selected
style. So doing, you cancel all changes made since the last time you saved
that style in a macro file. If the selected style is one of the five
predefined styles of ROOT (Plain, Bold, Video, Pub or  Default), it will be
reset using the specific code in the ROOT files.

Update the preview:
The button 'Update Preview' is available when a preview is shown and the run
time option is disabled. This button allows you to refresh the preview and
to see how the edited style looks like.

Revision 12536 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 25 16:38:43 2005 UTC (9 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 56544 byte(s)
Diff to previous 12525
From Ilka:
fixes in the TRootCanvas (side effects of recent code changes):
- keeping the canvas height when showing/hiding the dockable tool bar
  and the status bar
- View/Toolbar menu does not switch off the toolbar if it is undocked
  (it remains on screen)
- editor frame width changed to avoid the horizontal scrollbar appearance

Revision 12525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 23 17:00:41 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 54978 byte(s)
Diff to previous 12518
From Bertrand:
Added several protections in TGXXX class constructors,
used when browsing ROOT classes.

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/src/TRootCanvas.cxx
File length: 54968 byte(s)
Diff to previous 12503
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 12503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 18 11:12:59 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 54908 byte(s)
Diff to previous 12008
From Timur:

Add a new member to TStyle
   Bool_t  fCanvasPreferGL;    //if true, rendering in canvas is with GL
and the corresponding Get/set functions:
   Bool_t  GetCanvasPreferGL() const {return fCanvasPreferGL;}
   void    SetCanvasPreferGL(Bool_t prefer = kTRUE) {fCanvasPreferGL=prefer;}

 Changes to enable gl-in-pad. 1.You should type
  gStyle->SetCanvasPreferGL(kTRUE) to turn on GL support.
2. Do not try to use at the same time gl-viewer and gl-in-pad :)) -
   do not work at the moment.
3. GL-in-pad can be used with g3d and geom now (not with hists, polylines
  or polymarkers, composite shapes do not work).
4. You can rotate scene, zoom (with J,K and context menu), select :
  TGLPixmap (viewer) - interesting only with context menu item
  Pad under viewer - you can change color of pad (==3d scene background)
  Object from the scene (g3d node or geom volume). For selected object
  you can change the color (geom volumes, when selected, higlight
  themselves)
5. In case of complex geometry the selection is very slow now (will be fixed
   soon)
6. IMPORTANT! TGLPixmap is only a temporary testing facility, will be
   replaced ASAP.
7. IMPORTANT! this new stuff is unstable :)

Revision 12008 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 10 07:02:44 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 53946 byte(s)
Diff to previous 11995
From Ilka:
This patch provides the following changes in TRootCanvas.cxx - the tool bar window
title shows the title of the corresponding canvas window when it is undocked. This helps
users to identify which one corresponds to which canvas in the case of several opened
canvases in a root session.

Revision 11995 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 8 17:05:56 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 53870 byte(s)
Diff to previous 11912
From Valeriy Onuchin:
- TRootCanvas.  Canvas toolbar made dockable.
   Canvas tool bar is  created dynamically now - only when  "View
   Toolbar" option is choosen from canvas "View" menu. This minimizes
  ressources allocation and speed-up a the canvas creation time.
- TRootGuiBuilder - correction for parent window of guibuilder toolbar.
- fix segv.  occured when  TGDockableFrame was deleted at undocked state.

Revision 11912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 30 22:47:27 2005 UTC (9 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 53229 byte(s)
Diff to previous 11795
From Ilka:
this patch allows to put canvas window on the top of the window stack using
the canvas pointer - requested by Andrea Bulgarelli on RootForum at
http://root.cern.ch/phpBB2/viewtopic.php?t=2050.

Revision 11795 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 15 07:30:17 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 53018 byte(s)
Diff to previous 11773
From Valeriy Onuchin:
- TASImage, TRootBrowser, TGMimeTypes.cxx
  The size of image thumbnail was enlarged from 32x32 to 64x64 pixels.
  Appearance of picture thumbnails was much improved.
- TGPicture. Fix possible buffer overflow in HashName method.
- TRootCanvas.  Possibility to save canvas in XCF format added.
  This format is used in the GIMP (image processing  program).

In general the new method of dynamical creation of object's icon can be
extended for any kind of objects.

Revision 11773 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 12 12:07:07 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52904 byte(s)
Diff to previous 11660
From Ilka:
Last changes in TRootCanvas (cvs log: - do not delete TRootCanvas on
"File->Quit ROOT" action when TApplication::SetReturnFromRun() is kTRUE)
need some modifications related to the  editor interface. If the global
editor is activated in some cases root hangs after File /Quit ROOT
displaying the message:
Error in <RootX11ErrorHandler>: BadDrawable (invalid Pixmap or Window
      parameter) (XID: 23069152, XREQ: 62)

Revision 11660 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 23 10:55:07 2005 UTC (9 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52718 byte(s)
Diff to previous 11356
From Valeriy Onuchin:
- do not delete TRootCanvas on "File->Quit ROOT" action
    when TApplication::SetReturnFromRun() is kTRUE.
- TCanvas::Closed signal added which is emitted when canvas is closed by
   either destructor or by "window close button".

Revision 11356 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 17:18:13 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52682 byte(s)
Diff to previous 11303
From Richard Maunder:
More fixes to the external viewer creation/closedown. We now:

i) Always call Modified() and Update() we create an external viewer 3D
(non-pad tyep - x3d or ogl) so that an externally spwaned viewer is
painted automcatically when created. For an internal TViewer3DPad we
asssume this was

ii) No longer paint the pad when the external viewer is closed. This
leaves the pad blank - but this is preferable to causing a double redraw
of the pad as the external viewer is closed - very slow....

This all needs to be revisited as part of supporting multiple viewers
properly on the pad.

Revision 11303 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 11 15:02:43 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52754 byte(s)
Diff to previous 11272
From Richard Maunder
Fixes to TViewer3DPad and TView creation - causing 3D histogram plots
etc in pad to be incorrectly scaled.

Also added brief class descriptions etc.

Revision 11272 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 9 18:19:27 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52682 byte(s)
Diff to previous 11221
From Richard Maunder:

Changes to viewer infrastructure (TBuffer3D,TVirtualViewer3D) to
support:

i) Proper shape specific (sphere, tube, etc) descriptions in TBuffer3D
derived classes - c.f. abuse of raw tesselation blocks before.
ii) On demand filling of buffer sections as required by viewer.
iii) Support for local/master frame shapes descriptions & child object
rejection.
iv) Template/placed shapes ids - enabling viewer to detect/receive
common shapes once and just obtain the new position and id of the
duplicate.

Cleans up all producer (g3d/geom) code so no longer has an viewer
specific knowledge - Paint() methods replaced with
GetBuffer3D/FillBuffer3D methods which complete requested sections of
the buffer.

All viewer specific code now sits on the viewer implementation side of
TVirtualViewer3D. Added a TViewer3DPad class for performing the 3D draws
into pad. In future this should be merged with TView/TView3D possibly.

TBuffer3D is now stripped of functional code (aside from memory
management) and various viewer passback options there previously.
Enforced one way passing a const & to viewer.

Buffers (various types) are held as single static inside producer
function e.g. TGeoShape::GetBuffer3D (c.f. single generic buffer type
fetched from pad previously).

For g3d and geom shapes the top level geometry painter (TNode /
TGeoPainter) controlls painting process, requesting shapes to fill
buffer and passing to 3D viewer.

Exceptions are g3d's TPolyLine3D, TPolyMarker3D & TMarker3DBox. These
are 'standalone' shapes - no controlling 'painter' object. They still
implement Paint(), fill buffer and add to viewer directly.

3D viewer still held / created by pad - and pad has it's own viewer
object (TViewer3DPad).

NOTE:

1. Current scheme supports one 3D viewer only - pad, x3d or OpenGL. This
means that pad goes blank when x3d/OGL is spawned, and is updated again
when it is closed. To be revisited - need to support multiple viewers,
of multiple types - which implies explicit naming or pad controlling
enumeration.

2. OGL viewer now responds correct to modifications in pad, without
having to be reinvoked (as previously). x3d is still decoupled (as
previously) so does not rebuild - too difficult to get working.

Revision 11221 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 3 22:06:49 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52665 byte(s)
Diff to previous 11142
From Ilka:

TVirtualPadEditor.h, cxx
  - new methids IsGlobal(), SetGlobal()
  - setting of globel editor in Show() method
TGedEditor.h, cxx
  - new data member:Bool_t fGlobal;  //true if editor is global
  - new methods: IsGlobal(), SetGlobal(), SetCanvas(), GetCanvas(),
DisconnectEditors()
TRootCanvas.cxx
  - code changes that allow only one editor (embedded or global) to be activated
per canvas
  - activating the global editor via the context menu of another canvas will
connect this canvas to it and will close the embedded editor if it was opened
  - the global editor works for any embedded canvas

Revision 11142 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 18 09:26:54 2005 UTC (9 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52294 byte(s)
Diff to previous 11021
Frol Ilka:
class TGFileInfo:
- a new data member: Bool_t fOverwrite (if true overwrite the file with
  existing name on save without the confirmation message)

class TGFileDialog:
- added a new data member TGCheckButton *fOverWR for setting file
  overwriting on/off via the GUI; setting the check box ON will
  suppress the confirmation message for overwriting an existing file;
  the user choice is saved for the next time the Save dialog is shown
- layout changes
- code cleaning

Revision 11021 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 2 17:45:47 2005 UTC (9 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52142 byte(s)
Diff to previous 10930
From Ilka:
With this patch an embedded editor can be activated via View/Editor menu
in any canvas created in a root session.

Revision 10930 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 14 18:10:26 2005 UTC (10 years ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52055 byte(s)
Diff to previous 10819
From Ilka:
fix in TRootCanvas::Close() method to protect the
case when the canvas is deleted via cint. Thanks to Otto Schaile.

Revision 10819 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 16 19:42:26 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 52012 byte(s)
Diff to previous 10783
From Ilka:
use a proper temp file name to print the canvas too.

Revision 10783 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 15 09:27:48 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 51933 byte(s)
Diff to previous 10749
From Ilka:
enable the Print command in the TCanvas File menu via a proper
print dialog. The user can specify his prefered print command and
printer via the new Print.Command and Print.Printer rootrc resources.
Examples are provided in system.rootrc.

Revision 10749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 10 12:54:17 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50428 byte(s)
Diff to previous 10695
Change width of editor frames from 160 to 170 pixels to avoid the scroll bar overlapping
with the editor

Revision 10695 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 7 01:38:14 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50429 byte(s)
Diff to previous 10675
From Ilka:
- reduced the number of entries in the Save menu
- fix in SaveAs allowing to save all supported file types
From me:
- if no file type extension is given the currently selected file type
  extension is appended to the filename.

Revision 10675 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 3 12:07:44 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50530 byte(s)
Diff to previous 10558
From Ilka:
fix of bug #2582. The changes are:
base/inc/TVirtualPadEditor.h,cxx
- the signature of GetPadEditor method
- new method Terminate() via which the global editor is closed

ged/src/TGedEditor.cxx
- fixes in Hide and RecursiveRemove methods

gui/src/TRootCanvas.cxx
- fix in dtor: deletion of fEditor has nothing to do with MustCleanup;
this caused double deletion in some cases
- close of the global editor in case it was activated

tutorials/guitest.C
- close of the global editor in case it was activated via embedded
canvas context menu

Revision 10558 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 18 15:52:17 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50188 byte(s)
Diff to previous 10402
From Ilka:
changes that provide scroll bars for the object editors:
TGedEditor.h,.cxx
- new data member: TGCanvas *fCan
- set the name of editor window 'canvasname_Editor'

TRootCanvas.cxx
- minor layout changes required by the scroll bar appearance

Revision 10402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 25 12:06:50 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50199 byte(s)
Diff to previous 10393
From Valeriy:
- TGFrame::MustCleanup now returns Int_t value (was Bool_t).
  Backward compatible.
- Int_t TGWindow::MustCleanup method added.
- TGTextButton dtor. Checking added. If kDeepCleanup is on call
  of GetMainFrame() gave segv.
- in TGMainFrame handing Ctrl-S it was not possible to save macro
  in other directory than the current.
- The same fix as above for ROOT GuiBuilder. Thanks to
  Christian Stratova for reporting it.
- TGMdiDecorFrame now using hierarchical cleaning. That fixes
  many memory leaks and improves robustness of GuiBuilder.
- TRootCanvas/TRootEmbeddedCanvas - disable swithching to
  editable mode (canvas became black after that) for container frame.
- Gui Builder highlights any plain composite frame under pointer.
  Protection added that highlighted frame exists and is a ROOT frame.
- improvements in TGuiBldQuickHandler. Sometimes it gave segv.

Revision 10393 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 15:21:19 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50166 byte(s)
Diff to previous 10364
From Valeriy:
- now TGViewPort Cleanup method deletes container frame.
- protect TGListBox against double deletion during hierarchical cleaning.
- minor mod in TGListTree. ClassImpQ is obsolete.
- protect TGLVEntry against double deletion during hierarchical cleaning.
- protect TRootEmbededCanvas against double deletion during hierarchical
  cleaning.
- protect TRootCanavs against double deletion during hierarchical cleaning.
- TGFontDialog. SetCleanup(kDeepCleanup) aka hierarchical cleaning is used
  in destructor.
  No segv. occured. That means all frames inside TGFontDialog are
  "consistent with hierarchical cleaning".
  Now TRootEmbededCanvas deleted without segv. during gui building.
- now TGuiBldQuickHandler is placed centered on parent when map_raised.
- TGuiBldDragManager. Double click on editable frame invokes resize/compact
  action of the main-editable frame.

Revision 10364 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 14:25:56 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 50066 byte(s)
Diff to previous 10363
From valeriy Onuchin:
- xpm, jpg, png, tiff file types to canvas "Save As.. dialog "

Revision 10363 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 13:48:21 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 49813 byte(s)
Diff to previous 10358
From Valeriy Onuchin:
- remove warnings  "ASImage does not exist " when canvas is created.

Revision 10358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 19 17:13:28 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 49654 byte(s)
Diff to previous 10315
From Valeriy Onuchin:
- SetImage(Pixmap_t pxm),  SetImage(const TGPicture *pic) added to TImage, TASImage classes
- added possibility to save canvas in xpm, jpeg, png, tiff formats
- set correct default value in TGSlider, TGHSlider, TGVSlider ctors.
- correction in handling Ctrl-S key by TRootGuiBuilder

Revision 10315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 15 15:36:41 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48748 byte(s)
Diff to previous 10278
From Valeriy:
add new member (TGLayoutHints *fHints) to TGuiBldAction class.
That allows to specify layout hints for frame created by gui builder,
useful, for example, for allocation of menu/toolbars

Revision 10278 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 11 16:27:13 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48754 byte(s)
Diff to previous 10277
From Valeriy:
- do not emit Selected signal on kKeyPress event in TCanvas.

Revision 10277 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 11 16:25:10 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48754 byte(s)
Diff to previous 10234
From Valeriy:
- disable activation of editing when GuiBuillder is not initialized.
- disable editing TRootContainer in TRootCanvas.
- disable editing of buttons in TGNumberEntry.
- use Cleanup method in TGNumberEntry destructor.

Revision 10234 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 6 12:51:30 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48728 byte(s)
Diff to previous 10062
From Ilka
fix in TRootCanvas.cxx for keeping the canvas height when showing/hiding the
tool bar and the status bar.

Revision 10062 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 15 14:56:35 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48406 byte(s)
Diff to previous 10005
From Ilka and Carsten:
ged/*/TGedFrame.h,cxx
- a pointer to the parent tab fTab added as a new data member
- deactivate/activate additional tab in the method TGedFrame::SetActive()

gpad/src/TUtilPad.cxx
- in TUtilPad::DrawPanel invoke the new editor with GUI interface by
Carsten when           fgPanelVersion > 0

gui/src/TRootCanvas.cxx
- reintroduced lines in CreateEditor() method for showing the old editor

Revision 10005 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 12:47:36 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48224 byte(s)
Diff to previous 9843
From Valeriy:
new guibuilder module.

Revision 9843 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 25 15:34:00 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 47994 byte(s)
Diff to previous 9665
fix segv in case "Canvas.ShowEditor: true" is set in rootrc file.

Revision 9665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 3 16:01:19 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48320 byte(s)
Diff to previous 9510
From Olivier, Timur Pocheptsov , Andrei Gheata and Rene
Mega patch to introduce the new 3-d interface (to be described later).
The new interface has been tested with both X3D and OpenGL under Linux.
Being tested under Windows.
Note that several changes are expected in these classes (OpenGL in particular)
in the coming days.

Revision 9510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 13 12:46:06 2004 UTC (10 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48319 byte(s)
Diff to previous 9321
forgot to include config.h so ROOTBINDIR was never set when configured
for absolute path names. This caused the splash screen not to show up.

Revision 9321 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 25 17:15:23 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48278 byte(s)
Diff to previous 9252
From Ilka
Changes descrived in previous check-in

Revision 9252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 18 15:48:42 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48232 byte(s)
Diff to previous 9139
From Ilka:
- call fEditor->DeleteEditors() to clean up all attribute editors connected
  to the canvas before to delete the real canvas (TCanvas)

Revision 9139 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 8 10:49:02 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48112 byte(s)
Diff to previous 8876
From Ilka:
don't show by default the 3d horizontal line that is part of the GED.

Revision 8876 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 11 12:01:10 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 47992 byte(s)
Diff to previous 8851
Add case "xml" in ProcessMessage for "SaveAs"

Revision 8851 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 14:16:44 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 47931 byte(s)
Diff to previous 8847
Add the menu item "SaveAs canvas.xml" in the "File" menu

Revision 8847 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 10 12:09:45 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 47669 byte(s)
Diff to previous 8818
From Valeriy Onuchin:
 - thread safe technique introduced for TCanvas::Update, TCanvas::Resize
   methods, i.e. use gInterpreter->Execute.
   These mods should improve robustness of win32gdk version and remove
   platform dependency of TRootCanvas.

Revision 8818 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 7 13:01:18 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48212 byte(s)
Diff to previous 8776
From Valeri Onuchin:
Fix a problem when calling "Quit" from the canvas menu. The canvas was not deleted.

Revision 8776 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 4 14:41:52 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48177 byte(s)
Diff to previous 8757
Modify TCanvasImp::GetWindowGeometry (and TRootCanvas::GetWindowGeometry) to return the editor width.
Change TCanvas::Streamer to save the effective canvas size excluding the editor.

Revision 8757 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 3 10:42:55 2004 UTC (10 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48096 byte(s)
Diff to previous 8718
three separator widgets were not deleted while their windows had been
closed. Caused benchmarks.C to fail.

Revision 8718 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 28 09:15:06 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 47762 byte(s)
Diff to previous 8657
From Ilka;
code that keeps the canvas
size while the pad editor is shown avoiding the scrollbars.

Revision 8657 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 22 17:04:37 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48784 byte(s)
Diff to previous 8655
Fix a compilation error on hp-ux (loop index redefined)

Revision 8655 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 22 16:28:29 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 48780 byte(s)
Diff to previous 8503
Mega patch from Ilka:

base/inc/TAttAxis.h
   ~ SetTitleSize default value was wrong

ged/inc/LinkDef.h
   ~ included the new classes:
     TGedAttAxisFrame,
     TGedAttAxisTitle,
     TGedAttAxisLabel

ged/inc/TGedAttFrame.h, cxx
   ~ add comments on data members
   ~ new classes:
     TGedAttAxisFrame - axis attribute frame
     TGedAttAxisTitle - axis title attribute frame
     TGedAttAxisLabel - axis label attribute frame
   ~ layout hints changed mostly everywhere to gain space for axis
     attribute widgets in the editor window
   ~ code cleaning
   ~ added comments everywhere
   ~ new methods in class TGedAttFrame: ExecuteChar(), Update()

ged/inc/TGedEditor.h, cxx
   ~ removed fToolBox data member
   ~ changes required by removing of fToolBox

ged/inc/TGedPropertyFrame.h, cxx
   ~ added three new property farmes
   ~ the number of property frames is set via kNPropertyFrames
   ~ added axis, axis title, axis label attribute frames

ged/src/TGedToolBox.cxx
   ~ changes in: layout manager and button names

gpad/inc/TCanvas.h, cxx
   ~ new data members: fSelectedX, fSelectedY keeping the (X,Y)
     of selected object + corresponding getters
   ~ removed '!' from the comments of fShowToolBar, fShowEditor
   ~ changed class version from 4 to 5
   ~ changes in SaveSource to save the status of toolbar and pad
     editor in .C macro

gui/inc/TGNumberEntry.h, cxx
   ~ new signal ValueSet() needed by pad editor

gui/inc/TRootCanvas.h, cxx
   ~ new data members:
     fFileSaveMenu   // save cascade submenu
     fEditClearMenu  // clear cascade submenu
     fViewWithMenu   // view with... cascade submenu
   ~ menu reorganization
   ~ keeping the canvas size when showing the pad editor
   ~ moving the canvas scroll bars according to the (X,Y) of
     selected object to make it visible
   ~ draw primitive buttons added to the tool bar

Revision 8503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 26 13:00:39 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41745 byte(s)
Diff to previous 8309
From Valeriy Onuchin:
- More fixes for TGWin32::GrabKey method.

I also added
gVirtualX->SetInputFocus(GetMainFrame()->GetId());
to TRootContainer::HandleButton. That will make easy "Ctrl-S" for TCanvas

Back to "case-un-sensitive Ctrl-S problem"
http://www.xfree86.org/4.3.0/XGrabKey.3.html says:
"The keyboard is not grabbed and the specified key (which can itself be a modifier key)
is logically pressed when the specified modifier keys are logically down, and no other modifier keys are logically down"

Revision 8309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 27 01:03:58 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41691 byte(s)
Diff to previous 8293
From Valeriy:
TCanvas::ObjectEdited() replaced by Selected() signal.

Revision 8293 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 23 23:52:00 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41704 byte(s)
Diff to previous 8281
From Valeriy Onuchin:
- TRootCanvas: added protection against NULL fEditor pointer in destructor
- TGLineLBEntry code improved (previous was driven by the problem with
   setting line GCs under windows)

Revision 8281 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 20 17:09:33 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41690 byte(s)
Diff to previous 8280
Fix a few bugs with the old editor.

Revision 8280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 20 16:30:49 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41494 byte(s)
Diff to previous 8278
fix to avoid confusion between embedded editor and editor in dialog.
Each TCanvas (i.e. via TRootCanvas) own its editor obtained via
TVirtualPadEditor::LoadEditor(). However, there is only one editor dialog
for the entire application, which is referenced via
TVirtualPadEditor::GetPadEditor() (using the fgPadEditor static member).
Clicking the WM close button on this dialog does not delete, but just hide
the dialog for later use. Assigning an object to be edited by the editor in
the dialog is not yet fully functional.

Revision 8278 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 20 12:32:06 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41514 byte(s)
Diff to previous 8233
From Valeriy Onuchin:
The graphics editor is now craeted dynamically. This should fix a problem
under Windows when running benchmarks.C

Revision 8233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 20:13:43 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 41298 byte(s)
Diff to previous 8199
The following mega patch is from Ilka. She has integrated and further
developed the original classes from Marek Biskup (summer student last year)..
Valeriy Onuchin has also contributed by extending/adapting existing
GUI classes.

Very first prototype of the new pad editor is available for testing and
feedbacks. It was started by Marek Biskup as his project during the
Summer Student Program 2003.
The new pad editor helps ROOT GUI to become closer to the well known
application GUIs; to be user friendly, having easier and faster access
to the ROOT graphics, to be more intuitive. It is embedded in the
TCanvas window every canvas has an editor.
The editor frame is on the left side of the canvas window. The user can
show it via Edit/Editor menu selection. The editor frame contains a set
of picture buttons for selecting well known graphical primitives for
drawing; below them there are widgets for attribute changing. When an
object is selected its name appears with a set of options available for
changing: fill style and color; line style, width and color; text font,
size and style; marker style, size and color.

New Classes:
TGFontTypeComboBox - a combo box with fonts for a choice;
TGLineWidthComboBox - a combo box with line widths;
TGLineWidthLBEntry - list box entry for different line widths
TGLineStyleComboBox - a combo box with line styles;
TGLineStyleLBEntry - list box entry for a line style

TGedEditor - the new editor containing tool-box and attribute frames of
the selected object;
TGedToolBox - frame with picture buttons for a primitive drawing

TGedAttFrame - a base class for all attribute frames
TGedAttNameFrame - a frame showing the selected object name (if exists)
TGedAttFillFrame - a frame showing the fill attributes
TGedAttLineFrame - a frame showing the line attributes
TGedAttTextFrame - a frame showing the text attributes
TGedAttMarkerFrame - a frame showing the marker attributes

TGedPatternFrame - popup window for fill pattern selection
TGedPatternSelector - a button for pattern selection
TGedSelect - service class for selecting
TGedPopup - service class for popup attribute window
TGPatternSelect - a button for selected pattern
TGedMarkerPopup - popup window for marker selection
TGedMarkerSelect - a button for selected marker

Several changes are made in TCanvas, TPad, TRootCanvas to adapt them for
the new GUI interface. The old GUI interface is kept and it can be used
too. The class TPadEditorOld provides its functionality.

Revision 8199 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 13 17:04:35 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37744 byte(s)
Diff to previous 8097
From Olivier;
First version of the PDF driver. All the basics are there except the
markers and the fill patterns.

Revision 8097 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 30 18:44:44 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37549 byte(s)
Diff to previous 8091
This patch reintroduces the simplified version of
TRootCanvas::GetWindowGeometry proposed by Valeri Fine and the code
layout introduced by Fons.

Revision 8091 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 30 08:12:57 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37768 byte(s)
Diff to previous 8089
Withdraw all changes made since yesterday night.
The changes were unfortunately introduced withouth enough testing.

Revision 8089 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 30 02:28:40 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37549 byte(s)
Diff to previous 8075
add #include <string> to TString.h and provide ifdef for compilers where
string is in global namespace. Also since <string> pulls in <new> we have to
define R__PLACEMENTINLINE for icc otherwise NewDelete.cxx does not compile.

Replace index() by strchr() in TClassEdit.cxx.

Revision 8075 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 29 10:21:38 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37518 byte(s)
Diff to previous 7946
A simplified version of TRootCanvas::GetWindowGeometry proposed by Valeri Fine.

Revision 7946 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 19 18:33:11 2004 UTC (11 years ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37769 byte(s)
Diff to previous 7903
tidying of comments.

Revision 7903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 13 21:02:14 2004 UTC (11 years ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37766 byte(s)
Diff to previous 7870
From Bertrand:

The new splash screen and corresponding changes to show the splash screen
in the canvas and browser.

Revision 7870 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 8 23:07:40 2004 UTC (11 years ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 37631 byte(s)
Diff to previous 7652
the "About ROOT..." menu item calls now "root -a" to show the splash screen
with the scrolling credits.

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/TRootCanvas.cxx
File length: 37251 byte(s)
Diff to previous 7637
From Ilka:
- saving a frame using an externally created window
- saving TCanvas GUI in a macro
- fixing a typo in TGFSContainer::SavePrimitive()

Revision 7637 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 24 10:51:55 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 36535 byte(s)
Diff to previous 7440
From valeriy Onuchin:

I updated several base and win32gdk classes.
The goals of these changes are:
 - providing thread safety for CINT and canvas graphics
 - improve perforamnce

The list of the changes.

  win32gdk:
    - new TGWin32Interpreter class introduced. Along with
      redefinition of gInterpreter global that allows to have thread-safe
      interface to CINT functions and methods.
    - TGWin32Proxy class renamed to TGWin32VirtualXProxy and
       modified in "not-radical way".
    - TGWin32ProxyBase.cxx contains "howto create proxy class".

 canvas thread-safety:
   - locking methods added to TCanvasImp, TRootCanvas and TCanvas
     classes. That prevents from simultanious canvas updating from
     different threads.

The results:
   - overall improvement of thread safety and stability of win32gdk version
   - improved performance. benchmarks.C 15-20%, some cases (3D graphics)
     more than 30%.

Revision 7440 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 16 16:39:31 2003 UTC (11 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 36039 byte(s)
Diff to previous 7433
correction in comments.

Revision 7433 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 13 20:21:32 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 35938 byte(s)
Diff to previous 7426
From Valeriy Onuchin:

- reduce a step for mouse scroll wheel from 1 to 1/4 page
- reduce a time  displaying win32gdk splash screen
  from 6 to 2 sec

Revision 7426 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 10 14:24:33 2003 UTC (11 years, 3 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 35935 byte(s)
Diff to previous 6053
From valeriy Onuchin

 - handling mouse wheel in TCanvas added
 - "improved" splash screen.

Revision 6053 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 3 00:58:25 2003 UTC (11 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 35293 byte(s)
Diff to previous 5329
typo in comment.

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/src/TRootCanvas.cxx
File length: 35297 byte(s)
Diff to previous 5328
better closing strategy for the canvas, browser and controlbar. No need anymore
for the DetachImp() method (which has been removed).

Revision 5328 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 18 12:22:14 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 35201 byte(s)
Diff to previous 5255
use DeleteWindow() instead of "delete this" to close and delete the widget.

Revision 5255 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 10 14:58:13 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 35115 byte(s)
Diff to previous 5249
in plugin manager use virtual base class and not specific derived class name
directly (like TSVG).

Revision 5249 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 10 13:17:42 2002 UTC (12 years, 4 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 35113 byte(s)
Diff to previous 3139
Patch from Olivier to support SVG at the same level as Postscript.

Revision 3139 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 30 17:21:46 2001 UTC (13 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34793 byte(s)
Diff to previous 2475
handle fixed aspect ratio option in canvas.

Revision 2475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 27 16:54:25 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34486 byte(s)
Diff to previous 2162
use new features of TGFileDialog.

Revision 2162 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 10 14:31:48 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34314 byte(s)
Diff to previous 1892
additional change for Denis Bertini's Qt interface. Add Close() method to
TCanvasImp().

Revision 1892 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 4 13:36:12 2001 UTC (13 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34122 byte(s)
Diff to previous 1608
in HandleContainerKey() pass now also keysym as 3rd argument to
TCanvas::HandleInput(). This allows one to check for non-ascii keys
(like up, down, etc. keys). For the value of the keysym see KeySymbols.h

Revision 1608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 14 15:39:35 2001 UTC (13 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34117 byte(s)
Diff to previous 840
handle again graphics exposure events. Was working before but during some
API change the graphics exposure option was accidentally left out.

Revision 840 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 30 11:00:41 2000 UTC (14 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34101 byte(s)
Diff to previous 724
use SendCloseMessage() to close the window via the close menu button. This
will cause the CloseWindow() signal to be emitted so slots connected to it
will be called.

Revision 724 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 8 14:30:43 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34303 byte(s)
Diff to previous 714
don't propagate enter/leave events coming from pointer grabs to TCanvas.

Revision 714 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 4 23:40:08 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34127 byte(s)
Diff to previous 608
remove some compiler warnings and replace gVirtualX->SelectInput() calls
by TGFrame::AddInput().

Revision 608 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 07:41:01 2000 UTC (14 years, 4 months ago) by brun
Original Path: trunk/gui/src/TRootCanvas.cxx
File length: 34174 byte(s)
Diff to previous 3
Several classes modified to :
 - take into account the renaming of kObjInCanvas to kMustCleanup
 - the introduction of FindObject instead of GetPrimitive

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/TRootCanvas.cxx
File length: 34119 byte(s)
Copied from: branches/rdm/gui/src/TRootCanvas.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/TRootCanvas.cxx
File length: 34119 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