Log of /trunk/core/base/inc/TVirtualX.h
Parent Directory
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: 19335 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
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: 19231 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
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: 19077 byte(s)
Diff to
previous 21570
move the directories:
base clib cont meta metautils newdelete pcre rint thread unix utils
winnt zip
under the new core meta directory.
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/inc/TVirtualX.h
File length: 19013 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/inc/TVirtualX.h
File length: 18028 byte(s)
Diff to
previous 18022
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
17996 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Feb 18 14:56:42 2007 UTC (7 years, 11 months ago) by
brun
Original Path:
trunk/base/inc/TVirtualX.h
File length: 18011 byte(s)
Diff to
previous 15134
For abstract interfaces, generate the CINT stub functions only for
the strict minimum of functions.
Keep only one pure function known to CINT such that CINT can
recognize that the class is abstract and has pure functions.
This optimization gains about one megabyte of generated code.
Revision
15134 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 23 04:47:42 2006 UTC (8 years, 8 months ago) by
brun
Original Path:
trunk/base/inc/TVirtualX.h
File length: 17983 byte(s)
Diff to
previous 15049
From Federico Carminati:
"I have implemented all copy and equal operators needed to silence all
warnings in AliRoot, as requested. I have implemented shallow copies as
would do the default operators synthetized by the compiler.
Most operators are protected. If users complain, you just have to move
them into the public area, but class derivation is of course supported.
It has been a terrible job, I have modified 278 files, but the changes
are backward compabile, and this goes a long way to permitting user to
use the effc++ flag with root headers."
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/inc/TVirtualX.h
File length: 17972 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
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/inc/TVirtualX.h
File length: 17904 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/inc/TVirtualX.h
File length: 17817 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/inc/TVirtualX.h
File length: 17863 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/inc/TVirtualX.h
File length: 17815 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/inc/TVirtualX.h
File length: 17752 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
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/base/inc/TVirtualX.h
File length: 20516 byte(s)
Diff to
previous 9603
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
8842 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 10 12:08:15 2004 UTC (10 years, 8 months ago) by
brun
Original Path:
trunk/base/inc/TVirtualX.h
File length: 20316 byte(s)
Diff to
previous 8544
From Valeriy Onuchin:
- TVirtualX::IsCmdThread is introduced.
By default (for UNIX) ROOT is a single thread application
For multithreaded ROOT it returns kTRUE if "we are" inside of server/cmd thread,
otherwise kFALSE.
Revision
5717 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by
rdm
Original Path:
trunk/base/inc/TVirtualX.h
File length: 30826 byte(s)
Diff to
previous 5391
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.
Revision
4048 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 21 11:30:17 2002 UTC (12 years, 11 months ago) by
rdm
Original Path:
trunk/base/inc/TVirtualX.h
File length: 29002 byte(s)
Diff to
previous 3605
added new methods:
Visual_t GetVisual() const;
Int_t GetScreen() const;
Int_t GetDepth() const;
Colormap_t GetColormap() const;
these methods are usefull in some cases where direct X11 manipulation outside
of TVirtualX is needed. Also added code in TGX11 to detect the best X11
visual available. Some X servers insist on using by default an 8 bit
PseudoColor visual while 16 or 24 bit TrueColor (or DirectColor) visual are
available. Using the best visual is in particular important for image
processing classes.
Revision
760 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Oct 13 09:54:28 2000 UTC (14 years, 3 months ago) by
rdm
Original Path:
trunk/base/inc/TVirtualX.h
File length: 26535 byte(s)
Diff to
previous 594
added method GetNativeEvent(). This method returns a Handle_t to the native
event structure (XEvent for X11). By casting the Handle_t to an XEvent* you
can access the current X event. This is useful to dispatch events to a 3rd
party application that knows nothing about ROOT's Event_t.
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.