[root] / trunk / core / base / src / TVirtualX.cxx Repository:
ViewVC logotype

Log of /trunk/core/base/src/TVirtualX.cxx

Parent Directory Parent Directory


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

Revision 48992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 28 15:26:26 2013 UTC (21 months, 3 weeks ago) by rdm
File length: 83463 byte(s)
Diff to previous 46896
From Lifeng Sun:
The attached patchset fixes a bunch of typo in the source:
0001-succes-success.patch
0002-preceed-preced.patch
0003-informations-information.patch
0004-childs-children.patch
0005-avaliable-available.patch
0006-writeable-writable.patch
0007-comand-command.patch
0008-unkown-unknown.patch
0009-wierd-weird.patch
0010-wheter-whether.patch
0011-unecessary-unnecessary.patch
0012-splitted-split.patch
0013-registerd-registered.patch
0014-recieve-receive.patch
0015-processsing-processing.patch
0016-ouput-output.patch
0017-mutiple-multiple.patch
0018-lenght-length.patch
0019-interupted-interrupted.patch
0020-independant-independent.patch
0021-inconsistant-inconsistent.patch
0022-expresion-expression.patch
0023-explicitely-explicitly.patch
0024-enviroment-environment.patch
0025-deafult-default.patch
0026-continous-continuous.patch
0027-completly-completely.patch
0028-commited-committed.patch
0029-choosen-chosen.patch
0030-backgroud-background.patch
0031-auxilliary-auxiliary.patch
0032-authentification-authentication.patch
0033-appropiate-appropriate.patch
0034-an-other-another.patch
0035-environement-environment.patch
0036-targetting-targeting.patch
0037-suppported-supported.patch
0038-paramater-parameter.patch

Revision 46896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 30 13:29:05 2012 UTC (2 years, 2 months ago) by couet
File length: 83463 byte(s)
Diff to previous 46779
New class TMathText to Draw Math formulas using a TeX processor written by Yue Shi Lai

Revision 46779 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 24 15:04:46 2012 UTC (2 years, 2 months ago) by rdm
File length: 82558 byte(s)
Diff to previous 45298
From Timur:
add GetOpenGLScalingFactor() to handle proper scaling on Retina displays.

Revision 45298 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 30 16:11:55 2012 UTC (2 years, 5 months ago) by rdm
File length: 82307 byte(s)
Diff to previous 43914
From Timur:
additional GL method needed by native OSX Cocoa backend.

Revision 43914 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 23 22:08:24 2012 UTC (2 years, 9 months ago) by rdm
File length: 81100 byte(s)
Diff to previous 43719
From Timur:
added BeginModalSessionForWindow() - to implement modal dialogs on Cocoa.

Revision 43719 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 12 23:00:08 2012 UTC (2 years, 9 months ago) by rdm
File length: 80918 byte(s)
Diff to previous 38781
From Timur:
MacOS X native Cocoa/Quartz based backend. To build this version do:
   ./configure --enable-cocoa
Code is still rough but will be refined quickly for the May release.

Revision 38781 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 8 15:42:19 2011 UTC (3 years, 9 months ago) by rdm
File length: 80713 byte(s)
Diff to previous 35197
added missing Sync() method to the interface (method existed in TGX11).

Revision 35197 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 12:34:39 2010 UTC (4 years, 4 months ago) by rdm
File length: 80476 byte(s)
Diff to previous 32427
fix issues flagged as critical by coverity.

Revision 32427 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 1 18:25:58 2010 UTC (4 years, 10 months ago) by rdm
File length: 80457 byte(s)
Diff to previous 31347
From Matevz and me:
Add virtual function:

Int_t TVirtualX::SupportsExtension(const char *ext) const

Returns 1 if window system server supports extension given by the
argument, returns 0 in case extension is not supported and returns -1
in case of error (like server not initialized).
Examples:
  "Apple-WM" - does server run on MacOS X;
  "XINERAMA" - does server support Xinerama.

Revision 31347 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 20 18:03:00 2009 UTC (5 years, 2 months ago) by brun
File length: 80122 byte(s)
Diff to previous 22961
From Valeri,
Extension of TVirtualX to optimize the QT rendering quality.

Revision 22961 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 3 13:32:57 2008 UTC (6 years, 9 months ago) by rdm
File length: 79515 byte(s)
Diff to previous 20877
move the directories:
  base clib cont meta metautils newdelete pcre rint thread unix utils
  winnt zip
under the new core meta directory.

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

Revision 19826 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 19 19:56:11 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 79515 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/base/src/TVirtualX.cxx
File length: 79567 byte(s)
Diff to previous 19052
remove :$ from tag line

Revision 19052 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 18 07:26:36 2007 UTC (7 years, 7 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 79577 byte(s)
Diff to previous 18536
From Valeri Fine:
-Add a new method in TVirtualx to facilitate the integration of Qt4
   virtual Bool_t       NeedRedraw(ULong_t tgwindow, Bool_t force);
-Modify Makefile.depend to add new dependencies for libQt

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/base/src/TVirtualX.cxx
File length: 78915 byte(s)
Diff to previous 18026
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 18026 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 20 09:44:44 2007 UTC (7 years, 11 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 75843 byte(s)
Diff to previous 15049
From Valeri Onuchin:
add Xft support to ROOT X11. This is an important extension as it allows
GUI text to be rendered (server side) with TrueType fonts making the GUI
much more readable. During configuration we check for Xft availability.
At run time the user can decide to use or not use it via the:

X11.UseXft:   yes/no

flag in the rootrc file. The default is to use it when the capability
is compiled in the ROOT libraries.

Revision 15049 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 15 13:31:01 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 75650 byte(s)
Diff to previous 13991
From Bertrand:
new method:
   TVirtualX::ShapeCombineMask(Window_t id, Int_t x, Int_t y,
                               Pixmap_t mask)
The Nonrectangular Window Shape Extension adds nonrectangular
windows to the System. This allows for making shaped (partially transparent)
windows. One point is that this method depends on <X11/extensions/shape.h>.
For the few old X11 servers that might not support this we have to add a
special case. It is for future skins/themes in ROOT.

Revision 13991 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 6 16:15:13 2006 UTC (8 years, 11 months ago) by couet
Original Path: trunk/base/src/TVirtualX.cxx
File length: 75331 byte(s)
Diff to previous 12495
From Timur:

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

Revision 12495 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 17 09:10:44 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 75350 byte(s)
Diff to previous 12101
From Timur:
In view of the coming GL-in-TPad new features, I have changes in
several modules and want to add them step by step. This is the first
update, these classes are auxiliary stuff. I'm planning to add other stuff
tomorrow (and modification in pad and canvas, which will enable
gl-in-pad).

TGLManager is a base abstract class, responsible for
window creation, gl-context/glpixmap and context creation,
manipulation with gl-context and gl-pixmap.

TGWin32GLManager - concrete implementation for Win32
TGX11GLManager - concrete implementation for X11.

Revision 12101 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 21 17:09:26 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 75021 byte(s)
Diff to previous 11817
From Valeriy and Ilka:

The last patch of Valeriy with some additional comments by Ilka:

- TVirtualX/TGWin32/TGWin32VirtualXProxy, TGQt new methods added
 o unsigned char *GetColorBits(Drawable_t  wid, Int_t  x, Int_t  y,  UInt_t w, U
   Int_t h)rns an array of pixels created from a part of drawable (defined by x, y,
     w, h)n format:  b1, g1, r1, 0,  b2, g2, r2, 0 ... bn, gn, rn, 0 ..
     Pixels are numbered from left to right and from top to bottom.
     By default all pixels from the whole drawable are returned.
     Note that return array is 32-bit aligned

  o Pixmap_t CreatePixmapFromData(unsigned char * bits, UInt_t  width,  UInt_t h
          eight)create pixmap from RGB data. RGB data is in format :
          b1, g1, r1, 0,  b2, g2, r2, 0 ... bn, gn, rn, 0 ..
       Pixels are numbered from left to right and from top to bottom.
       Note that data must be 32-bit aligned

- TGQt (*provided changes do not work; I cannot run rose_image.C tutorials under
 tRoot because of SegV in:
#3  0x0114172a in TGQt::GetWindowID (this=0xa1a2ab8, id=4)
    at qt/src/GQtGUI.cxx:507
#4  0x01b56914 in TASImage::Paint (this=0xaa80d68, option=0xac85d1c "xxx")
    at asimage/src/TASImage.cxx:1047
#5  0x02ddc948 in TPad::PaintModified (this=0xacb85d8)
    at gpad/src/TPad.cxx:2396
#6  0x02ddc834 in TPad::PaintModified (this=0xac1f108)
    at gpad/src/TPad.cxx:2381
#7  0x02db7cdb in TCanvas::Update (this=0xac1f108)
    at gpad/src/TCanvas.cxx:1858
*
TGQt::GetWindowID (this=0xa1a2ab8, id=4)  at qt/src/GQtGUI.cxx:507

    o  corrected an implementation  of "Window_t TGQt::GetWindowID(Int_t id)"
        That allows to run rose_image.C tutorials under QtRoot
    o implemented TGQt::GetCurrentWindow()
        That allows to save canvas/pad in in image formats  by using TASImage cl

- TImage/TASImage:

  o new method added PaintImage(Drawable_t wid, Int_t x, Int_t y) which allows t
  o the Draw option which allows to expand image to the pad size was renamed fro
  o new Draw/Paint option added -  if "z" is specified an image palette is drawn
  o TAttImage: SetPaletteEnabled/IsPaletteEnabled introduced - which allows to s
  o image convertion to gray is now "toggable"
  o new method :PaintImage(Drawable_t wid, Int_t x, Int_t y) introduced which al

- tutorials/galaxy_image.C. Unnecessary "img->SetName("n4254"); was removed

- TPad::Print - remove QtRoot specific code

- TToggle - "sanity" check added

- TGPicture.cxx - *added QtRoot specific code by gVirtualX->InheritsFrom("TGQt")

Revision 11817 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 18 16:58:42 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 74120 byte(s)
Diff to previous 10367
From Valeriy Onuchin:
- TVirtualX, TGX11, TGWin32, TGWin32VirtualXProxy -  protected method
made public.
GetCurrentWindow() returns pointer to the current internal window
used in canvas graphic.
That allows to  fix a bug of producing bad gif, png, etc. canvas images
when canvas is obscured by another window. Thanks to Mike Kordosky who
reported it.

Revision 10367 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 22:32:45 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 73895 byte(s)
Diff to previous 10362
From Bertrand Bellenot:
Added TASImage::GetPicture() support on win32
Modified TGWin32::GetWindowSize, in order to handle also pixmaps.
Added new TGWin32 method :
static Pixmap_tDIB2Pixmap(ULong_t bmi, ULong_t bmbits);
allowing to convert a DIB (from libAfterImage) into a Pixmap_t
and declared as :
R__EXTERN Pixmap_t (*gDIB2Pixmap)(ULong_t bmbits, ULong_t bmi);
into TVirtualX.h, to avoid to add thisnew method in TVirtualX class.

It can be easily tested with a macro like this :

{
 gSystem->Load("libASImage");
 TImage *img = TImage::Open("Alice.jpg");
 const TGPicture *pic = img->GetPicture();
 TGMainFrame *m = new TGMainFrame(gClient->GetRoot(), 10, 10);
 TGPictureButton *btn = new TGPictureButton(m, pic);
 m->AddFrame(btn);
 m->MapSubwindows();
 m->MapWindow();
 m->Resize();
}

Revision 10362 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 20 13:11:39 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 73838 byte(s)
Diff to previous 9694
From Bertrand:
port of asimage classes to Win32. Includes new version of libAfterImage
that will generate some compiler warnings (known issue) but will hopefully
compile on all platforms (but not yet guarenteed).

Revision 9694 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 9 15:35:52 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 73692 byte(s)
Diff to previous 9603
From Valeriy Onuchin and Timur  Pocheptsov
New OpenGL interface should be now operational on Linux and Windows

Revision 9603 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 27 23:02:11 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 105912 byte(s)
Diff to previous 9170
add additional Window_t argument to Warp(), this is used by the
coming MDI widget.

Revision 9170 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 11 13:34:34 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 105850 byte(s)
Diff to previous 8544
new methods: DestroySubwindows() and ReparentWindow(), needed for new
widgets.

Revision 8544 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 6 16:40:32 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 105050 byte(s)
Diff to previous 7792
change first argument of ListFonts() from "char*" to "const char*".

Revision 7792 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 21 19:07:57 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 105051 byte(s)
Diff to previous 7768
Fix a long list of badly formatted comments (when commenting unused pointers)

Revision 7768 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 16 16:22:56 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 104999 byte(s)
Diff to previous 7651
From valeriy Onuchin
- TGX11, TGWin32 CreatePictureFromFile method
  modified. That allows to create TGPicture, TGpictureButton etc.
 from GIF files.

Revision 7651 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 25 15:51:24 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/base/src/TVirtualX.cxx
File length: 104873 byte(s)
Diff to previous 7601
From Ilka:
added documentation to all member functions.

Revision 7601 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 14 17:34:55 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 80374 byte(s)
Diff to previous 7046
Ilka has nicely documented all the TVirtualX functions in the implementation file.
Still remains to be documented the gl interface.
This is a first attempt in CVS to see how it looks like with html.

Revision 7046 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 6 20:25:05 2003 UTC (11 years, 5 months ago) by brun
Original Path: trunk/base/src/TVirtualX.cxx
File length: 4188 byte(s)
Diff to previous 3
New version of the win32gdk implementation by Valeriy Onuchin.
This version should be faster.

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/base/src/TVirtualX.cxx
File length: 3881 byte(s)
Copied from: branches/rdm/base/src/TVirtualX.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/base/src/TVirtualX.cxx
File length: 3881 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