Log of /trunk/graf2d/qt/src/TGQt.cxx
Parent Directory
Revision
33707 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 2 06:27:34 2010 UTC (4 years, 7 months ago) by
brun
File length: 99651 byte(s)
Diff to
previous 31358
From Valeri Fine:
- new Qt slot EndOfLine to connect gInterpreter->EndOfLineAction()
with the Qt signals
(TQtRootSlot)
- High contrast ROOT markers (To address some RootForum issues )
(TGQt, TQtMarker)
- Add the default implementation of TVirtualX::SupportsExtension
interface
(TGQt)
- Introduce the new pure TQtCanvasPainter abstract interface
to use Qt graphics to decorate ROOT TCanvas
(TQtWidget, TQtCanvasPainter )
- fix the MacOS build attributes
( rootcint.pri )
- Keeping removing Qt3 CPP flags
( TQtClientWidget )
- Remove the #59014 / #65402 workarounds
( TQtPadFont )
Revision
30386 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 23 19:06:28 2009 UTC (5 years, 4 months ago) by
brun
File length: 99347 byte(s)
Diff to
previous 28862
From Valeri Fine:
TGQt class:
- Introduce the new TQtTextProxy abstract interface to allow the end
user
to provide his/her own custom text handler if needed.
The "default" behavior - no TQtTextProxy is used.
- Two new methods to query the current Qt font properties:
Int_t TGQt::GetFontAscent() const
Int_t TGQt::GetFontDescent() const
TQrMarker class:
- ROOT marker rendering implementation has been moved
from TGQt to TQtMaker class
TQtSymbolCodec:
- clean up comments; remove Qt3 CPP flags.
TQtPen:
- re-implement TAttLine interface.
Add default copy ctor and "operator="
TQtBrush:
- add TAttFill interface.
TQtSymbolCodec
- add TAttFill interface
TQtWidget
- add the refresh timer to get rid of the redundant rendering.
Revision
28862 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 9 18:56:02 2009 UTC (5 years, 7 months ago) by
brun
File length: 98230 byte(s)
Diff to
previous 28820
From valeri Fine:
TGQt.cxx, TQtWidget.cxx, TQtWidget.h:
- Take in account the Qt 4.5 feature that allows for
the mouse "synthetic" Leave / Enter / Move events
without crossing the widget borders.
(Thanks Bradley T. Hughes, Senior Software Engineer from Nokia)
TQtWidget.h:
- Remove some redundant methods. (keeping cleaning after Qt3
TGQt.cxx:
- Resolve the artificial "texture" issue (see ROOT Bug: #51432)
(keeping cleaning after Qt3
Revision
28820 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 5 06:16:09 2009 UTC (5 years, 7 months ago) by
brun
File length: 97863 byte(s)
Diff to
previous 28313
From Valeri fine:
TGQt.cxx, TQtBrush, TQtWidget:
- remove the redundant Qt3 legacy code, optimize Qt 4.x rendering
- remove redundant Win32 CPP flags
- Provide workaround of Qt 4.5 bug "mouseMoveEvent"
(The bug was reported and registered by Nokia as "task # 255219")
TQtPadFont.cxx:
Initialize the fTextSize base class data-member.
Revision
28205 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Apr 14 19:38:00 2009 UTC (5 years, 9 months ago) by
brun
File length: 101052 byte(s)
Diff to
previous 28149
From Valeri Fine:
New patch attempting to remove warnings and support for Qt3.
line, and those below, will be ignored--
M graf2d/qt/src/TGQt.cxx
M graf2d/qt/src/TQMimeTypes.cxx
M graf2d/qt/src/TQtPadFont.cxx
M graf2d/qt/src/TQtClientGuard.cxx
M graf2d/qt/src/TQtSymbolCodec.cxx
M graf2d/qt/src/TQtApplication.cxx
M graf2d/qt/src/GQtGUI.cxx
M graf2d/qt/src/TQtTimer.cxx
M graf2d/qt/src/TQtEvent.cxx
M graf2d/qt/src/TQtMarker.cxx
M graf2d/qt/src/TQtPen.cxx
M graf2d/qt/src/TQtClientWidget.cxx
M graf2d/qt/src/TQtBrush.cxx
M graf2d/qt/src/TQtWidget.cxx
M graf2d/qt/src/TQtClientFilter.cxx
M graf2d/qt/inc/TQtClientWidget.h
M graf2d/qt/inc/TQtBrush.h
M graf2d/qt/inc/TGQt.h
M graf2d/qt/inc/TQtTimer.h
M graf2d/qt/inc/TQtEvent.h
M graf2d/qt/inc/TQtMarker.h
M graf2d/qt/inc/TQtWidget.h
M graf2d/qt/inc/TQtPadFont.h
Revision
28149 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 8 07:25:32 2009 UTC (5 years, 9 months ago) by
brun
File length: 105864 byte(s)
Diff to
previous 27997
From Valeri Fine:
TQtEventQueue:
- remove the redundant Qt3 code
TGQt.cxx:
- fix ROOT color index for GetPixel method
GQtGUI.cxx:
- remove the redundant Qt3 code
- replace the Q3_SUPPORT API with pure Qt4 API
- fix TImage painting issue
- take in account TASImage rounding to create the proper bitmask
- report and ignore the negative widget size (coming from ROOT GUI
classes)
TQtTimer:
- replace Q3_SUPPORT API with Qt4 API
TQtClientWidget:
- replace Q3_SUPPORT Q3Accel class with QShortcut from Qt4
- remove the redundant Qt3 code
TQtBrush:
- remove the redundant Qt3 code
Revision
27997 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Mar 31 05:54:17 2009 UTC (5 years, 9 months ago) by
brun
File length: 105975 byte(s)
Diff to
previous 27994
From Valeri Fine:
TGQt.cxx:
- Introduce the new "TGQt::UpdateColor" protected method
to optimize TPad (ROOT) color management.
Revision
27630 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 26 19:06:42 2009 UTC (5 years, 10 months ago) by
brun
File length: 104466 byte(s)
Diff to
previous 26689
From Valeri Fine:
TQtRootSlot:
- Add the new method
void ProcessLine(const QString &command)
This is an overloaded member function, provided for convenience.
It is provides the same functionality as
void ProcessLine(const char *command)
TGQt:
- Swap "y2" with "y1" provided by TBox::ExecuteEvent method
for the right low corner of the rubber box.
- Clean up. Remove some redundant code,
TQtClientWidget
- Add setAutoFillBackground(true) Qt4 property.
TQtWidget:
- Intdroduce the optional QImage-based back-end (slower operation).
QPixmap-based is the default option ( better performance )
rootlibs.pri:
- Change the list of the dictionaries for Win32 platform.
Revision
26689 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Dec 6 07:03:04 2008 UTC (6 years, 1 month ago) by
brun
File length: 104890 byte(s)
Diff to
previous 26636
From Valeri Fine:
fixes the bug that had been masked by the previous bug.
It may not affect anybody code yet. Need to be fixed also.
Might have caused the embedded TCanvas dtor crash from the
multithreaded applications.
Revision
25850 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 16 18:02:22 2008 UTC (6 years, 3 months ago) by
brun
File length: 104806 byte(s)
Diff to
previous 25658
From Valeri Fine:
TQtWidget:
- remove X11 specific widget attribute.
TGQt:
- Optimize support for TCanvas "feedback mode"
- Clean up. Remove the redundant Qt3-related code.
Revision
25658 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 2 05:18:35 2008 UTC (6 years, 3 months ago) by
brun
File length: 104582 byte(s)
Diff to
previous 25523
From Valeri fine:
class TGQt:
- a workaround to avoid the rare crash on some X11 Window managers.
class TQtToggleFeedBack:
- Remove the redundant inheritance
Revision
25401 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 15 15:10:56 2008 UTC (6 years, 4 months ago) by
brun
File length: 107948 byte(s)
Diff to
previous 25254
From valeri Fine:
This patches TGQt and TQtWidget classes:
- The paint engine was redesigned to meet Qt 4.4.1 constrain on Windows platforms
- Optimize the TCanvas rendering for Qt4
- Add the Qt4 include directories to the ACLiC list of the include directories, if needed
- Implement TCanvas "feed back" option with Qt4 by adding 3 local classes:
TQtPainter - to subclass the Qt4 QPainter
TQtFeedBackWidget - to render the "non-buffered" TCanvas painting
TQtToggleFeedBack - to toogle feedback mode
Revision
25254 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 26 09:33:11 2008 UTC (6 years, 4 months ago) by
brun
File length: 102635 byte(s)
Diff to
previous 25206
Fix one more warning
graf2d/qt/src/TGQt.cxx:944: warning: format '%p' expects type 'void*', but argument 5 has type 'Window_t'
Revision
25206 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Aug 22 08:18:13 2008 UTC (6 years, 5 months ago) by
brun
File length: 102628 byte(s)
Diff to
previous 24531
From Valeri Fine:
This is the major patch because as soon as it is applied one can not
build the QtRoot package against Qt3 anymore. This allows to resolve
some Qt4 outstanding issues:
- TGQt class:
move the font and the line attributes handling to the separated
dedicated C++ classes, namely TQtPen and TQtFont.
Fix the race condition that leaded under certain circumstances
to 100% CPU consumption under Qt4
- new class TQtPen - to handle the line drawing ROOT attributes.
- TQtFont - correctly adjust the Qt fonts scale to
the ROOT requirements
- Improve performance of the TCanvas double buffering option
- TQtBrush - implement the ROOT transparent brush style
- TQtClientWidget - fix some background color issues
(some work still needed)
- TQtWidget - use the Qt4 "redirect" painting option to handle the
ROOT double buffering. Eliminate the confusing X11 run-time error
messages at ROOT startup.
Revision
24506 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 24 09:16:30 2008 UTC (6 years, 7 months ago) by
brun
File length: 104978 byte(s)
Diff to
previous 23907
From Valeri fine:
1. New class TQtPadFont, TGQt:
- Move the Qt font operations from the TGQt class to the new dedicated TQtPadFont
2. TQtBrush, TGQt
- No need for the special Win32 case for Qt4 to manage the ROOT fill styles
3. TQtRConfig.h
- Adjust CPP flags to built Qt layer on Mac OS with X11 version of Qt4
4. TQtWidget
- Remove the clash with Qt4 shared lib name. It fixes the ROOT context menu issue.
- Fix the logical expression bug
Revision
23907 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 19 14:47:45 2008 UTC (6 years, 8 months ago) by
brun
File length: 109162 byte(s)
Diff to
previous 23343
From Valeri Fine:
- class TGQt: Provide the correct Qt-based implementation of TVirtualX::QueryPointer(int &ix, int &iy) method
Revision
23343 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Apr 21 04:44:58 2008 UTC (6 years, 9 months ago) by
brun
File length: 109018 byte(s)
Diff to
previous 23251
From Valeri Fine:
- remove Q3PtrList, Q3ValuerList, Q3PointArray classes from Q3Support
use QVector, QList, QQueue, QPolygon from the pure Qt4 instead.
Revision
23140 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 11 11:01:39 2008 UTC (6 years, 9 months ago) by
rdm
File length: 105187 byte(s)
Diff to
previous 20882
move the following directories to "graf2d":
asimage, freetype, gpad, graf, postscript, qt, win32gdk, x11, x11ttf
move the following directories to "graf3d":
eve, ftgl, g3d, gl, x3d
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/qt/src/TGQt.cxx
File length: 103577 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
19704 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 27 16:05:17 2007 UTC (7 years, 4 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 104075 byte(s)
Diff to
previous 19234
From Valeri Fine:
TVirtualX.interface.h GQtGUI.cxx:
- add the new methods from TVirtualX.h
rootlibs.pri:
Add the new mandatory ROOT libraries to the Qt project files
TQtWidget.h TQUserEvent.h:
Compile against of Qt4 with no Qt3Support
TGQt.cxx, GQtGUI.cxx , TQtWidget.cxx
Fix some compilation issues for VC++ v.8.0
Revision
19065 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Jun 19 06:51:46 2007 UTC (7 years, 7 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 103798 byte(s)
Diff to
previous 18486
From Valeri Fine:
The various corrections to account the difference between Qt3
and Qt4 API and fix the ROOT Bug report 23601.
TGQt, TQtClientWidget::
- new method TGQt::NeedRedraw
and custom TQtClientWidget::paintEvent handler
to synchronize Qt and ROOT paint operation
TQtWidget:
- The new data-member "shadow widget" to provide
the "rubber band" like operations.
- Provide the custom paintEvent handler to
TQtApplication:
- Apply CoreApplication::setAttribute(Qt::AA_ImmediateWidgetCreation)
to optimize X11 drawing under Qt4
TGQt:
- Implement an interface to the Qt4 font and line attribute handling.
Revision
17523 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jan 26 07:51:09 2007 UTC (7 years, 11 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 99236 byte(s)
Diff to
previous 17198
From Valeri Fine:
TQtSymbolCodec.h:
================
- remove the compilation warning
TGQt.cxx, TGQt.h
================
- Two new methods:
SetFileName
GetNewFileName
to generate the file names for the simple animations
- Add QTDIR to include path and lib path to build
the Qt-based applications via ACliC
- Fix to take in account the pixmap file name
may be followed by the sumbol "+NN"
TQtWidget.cxx:
=============
- Remove the CPP flags that introduced
the redundant ROOT version dependency.
- Fix to take in account the pixmap file name
may be followed by the symbol "+NN"
LinkDef.h:
===========
Add two ROOT C++ function (to be ROOT Slots):
QConnectCint
QConnectTerminate
and the new class
TQtRootSlot
to the ROOT dictionary
TQtMarker:
=========
- Copy ctor and operator=() have been introduced
QtWidget.h, TQtTimer.h, TQtClientWidget.h TQtClientFilter.h, TQMimeTypes.h
=====================================================================
- Clean up. Remove the redundant CPP flags
TQtApplication.h
================
Clean up. The dummy copy ctor and operator=() have been introduced
New TQtRootSlot class:
======================
(see: TQtRootSlot.h, TQtRootSlot.cxx)
The new class TQtRootSlot to connect the Qt signals with the arbitrary ROOT slots.
Revision
16651 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 30 17:15:22 2006 UTC (8 years, 2 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 95805 byte(s)
Diff to
previous 16429
From Christian Holm Christensen:
The Qt plug-in does not respect installs when the ROOT sources have been
configured with the `--prefix' option. The problem is in `qt/src/TGQt.cxx'.
I've attached a patch that fixes the problem.
Revision
15222 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 30 07:06:51 2006 UTC (8 years, 7 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 94497 byte(s)
Diff to
previous 14950
From Valeri Fine:
TGQt.cxx,GQtGUI.cxx, TGQt.h:
- protection: SetDynamicPath caused SegFault on Win32
- Add "const" to some methods as needed
- Activate setCompositionMode for Qt 4.1.2
- Add Getter/Setter for the alpha channel with Qt 4.1.2
TQtClientGuard.cxx:
- Compilation warning with Qt 4.1.2
TQtBrsuh:
- Add "const" to some methods as needed
Revision
14950 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon May 8 13:16:56 2006 UTC (8 years, 8 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 93083 byte(s)
Diff to
previous 14901
From Valeri Fine:
Qt 4.1.2 adjustment in:
TQtWidget.cxx
- replace the deprecated by Qt4 "bitBlt" method
with QPainter::drawPixmap
GQt.cxx.cxx
- comment out "QPainter::setCompositionMode" to avoid the
Qt4 run-time warning for time being.
QtGUI.cxx:
- Qt4 corrections accidentally missed in the previous merge
TQtClientWidget.cxx, TQtClientWidget.h:
- Move class ctor to the implementation code
Revision
14901 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed May 3 09:55:49 2006 UTC (8 years, 8 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 93048 byte(s)
Diff to
previous 14421
From Valeri Fine:
TQtEmitter.h
- fixed the missing forward declaration
TQtApplication
- Change TQtApplication signature to avoid crash under Qt 4.1.2
rootlibs.pri
- Rename the QtRoot DLL name to avoid the clash with Qt 4.1
TGQt.cxx
- Extra protection against of crash under Qt 4.1
TQtWidget
- Add the default "cint/include" library path
Revision
14410 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 24 15:31:10 2006 UTC (8 years, 10 months ago) by
antcheva
Original Path:
trunk/qt/src/TGQt.cxx
File length: 92646 byte(s)
Diff to
previous 13848
From Valeri Fine:
- removed redundand classes:
TQtApplicationThread.h, TQtRootThread.h, TQtTermInputHandler.h,
TQtThread.h, TQtThreadStub.h, TRootMainThread.h,
TQtApplicationThread.cxx, TQtRootThread.cxx, TQtTermInputHandler.cxx,
TQtThread.cxx, GQtGUIThread.cxx
- removed from the rest Qt code the statements related to the classes above
- added TQtLockGuard.h, TQtEmitter.h
- removed all WiN32 redundant dependencies
- added Qt4 CPP compilation flag for future transition to Qt4
TQtWidget - for "pure" Qt GUI application disable ROOT prompt, ROOT terminal
input handler and CTRL-C signal handler "by default".
To get the ROOT interactive command mode back the statement:
"Gui.Prompt true"
should be present in the .rootrc file to enable the standard ROOT command mode option
Revision
12499 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Aug 17 20:08:37 2005 UTC (9 years, 5 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 88614 byte(s)
Diff to
previous 12307
From Valeri Fine:
- TQtClientWidget.cxx, TQtClientFilter.cxx:
An extra protection against a dead pointer of the grabbing widget
- TQtClientGuard.cxx:
Remove a redundant "disconnect" to improve the performance.
- TGQt.cxx:
Add Olivier's comment about the "fill area pattern convention"
- TQtWidget.cxx:
An extra protection against dead pointers in the ROOT GUI
Extra ROOT env parameter "Gui.Prompt yes/no" to enable/disable
RootCint prompt for Qt based ROOT application.
Add an instantiation of TQLock class (CMS user demand)
- rootcinrule.pri rootlibs.pri
Fix typo: $QTROOTSYS should be $QTROOTSYSDIR
- TQtWidget.h, TQtThread.h, TQtClientWidget.h, TQtClientFilter.h, TGQt.h
Add CPP flags to facilitate the coming QT4 transition.
Revision
12307 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 13 20:10:12 2005 UTC (9 years, 6 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 88428 byte(s)
Diff to
previous 12302
From Valeri Fine:
1. Restores the hatch style pattern been changed with the previous
patch.
2. Provides the real fix of the 2 problems reported by Bruno
2.1. Inverse order of the background/foreground pixels.
2.2. Non-transparent background of the hatched styles.
Revision
12272 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Jul 7 06:06:05 2005 UTC (9 years, 6 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 88483 byte(s)
Diff to
previous 12179
From Valeri Fine:
This patch that fixes
1. The "rotated string wrong alignment issue" (reported by Bruno)
2. The issue "Dead lock" reported earlier via ROOT Bug report.
3. Compilation problem for Sun Solaris
4. Compilation problem for MacOSX with gcc 4.0
Revision
12179 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 24 12:27:30 2005 UTC (9 years, 7 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 88114 byte(s)
Diff to
previous 12101
From Ilka, Valeri & Valeriy
TCanvas.cxx:
- Minory mods which allow to solve QtRoot Canvas activation problems (move "
Set Pad parameters" to the beginning).
TPad.cxx:
- The current Pad is saved using TVirtualX::WritePixmap method to allow ROOT to
save pixmap under Qt even no TImage class implementation is provided.
TGPicture.cxx:
- Removed QtRoot specific code.
TGQt.h:
- Add as a "friend class" TQtClientGuard and a new IsRegistered method for
extra protection.
TGQt.cxx:
- Restore the initial state of 4.04. and a new guard method IsRegisitered
added.
- the following GUI related methods moved to GQtGUI.cxx source code:
unsigned char *GetColorBits(Drawable_t wid, Int_t x = 0, Int_t y = 0, UInt_t w =
0, UInt_t h = 0);
Pixmap_t CreatePixmapFromData(unsigned char *bits, UInt_t width, UInt_t
height);
Window_t GetCurrentWindow() const;
- Fixed later assignment of canvas for TQtWidget object. That allows to fix
initialization problems for TRootEmbeddedCanavs under QtRoot.
TVirtualX.interface.h:
- Add the three new methods listed above
GQTGui.cxx:
- Compilation warning removed
- 3 methods listed above moved from TGQt.cxx (by Onuchine to back ASImage)
- GetWidbiwID - restored the original version and lift a protection against
the Windows_t misuse. That is errore prone correction - to be
revised
TQtClientGuard.cxx:
- An extra protection to check whether the widget is registered
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/qt/src/TGQt.cxx
File length: 90180 byte(s)
Diff to
previous 11960
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
11592 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 15 07:19:50 2005 UTC (9 years, 9 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 87699 byte(s)
Diff to
previous 11500
From Valeri Fine
- TQtApplication, TQRConfig
Test the proper Qt package version.
- TGQt
An extra protection against of the dead widgets
- TQtClientFilter, TQtClientWidget, GQtGUI
Fix to manage the ROOT GUI keyboard navigation
The issue is still open.
In fact, the patch may cause some troubles due apparent
clash between ROOT (X11 style) GrabButton and GrabPointer and the way
Qt internally handles the "FocusIn / FocusOut" events.
Revision
11500 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 6 09:32:11 2005 UTC (9 years, 9 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 87819 byte(s)
Diff to
previous 11433
From Ilka and Valeri:
In the attached patch are the Qt changes sent by Valeri yesterday. The
last modification required by him is also included. The major problem
remains the different font size related to the qt-version 3.1 that
comes with SLC3. Many SegV cases when running guitest.C persist but we
need more time to solve them case by case.
Revision
11427 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 25 19:41:04 2005 UTC (9 years, 10 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 86993 byte(s)
Diff to
previous 11250
From valeri Fine:
TGQt, TQtWidget
- Fixed the crash in the embedded TCanvas dtor (Thanks Maxim Nikulin)
TGQt, TVirtualX.interface.h, TGQtThread, GQtGUI GQtGUIThread
- New method SetBackground (a'la SetForeground) to change
the background color of the ROOT graphical context.
Revision
11250 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 7 07:44:12 2005 UTC (9 years, 10 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 86504 byte(s)
Diff to
previous 11224
From Valeri Fine:
TGQt:
* Comments clean up
* 2 news protected static methods:
static Int_t RegisterWid(QPaintDevice *wid);
static void UnRegisterWid(QPaintDevice *wid);
to resolved the potential 64-bits platform problems
* Some extra fixes to facilitate the 64-bits platforms
* TQtWidget
- new Qt signal:
RootEventProcessed(TObject *selected, unsigned int event,TCanvas
*canvas)
where
"selected" - is a TObject has been selected
by the current TPad
"event" - ROOT event processed by TCanvas.
This Qt signal allows forward the "ROOT signal" to Qt "slot".
By default, TQtWidget emits no "RootEventProcessed" for sake
of the performance.
Any user-code can activate the signal emitting with a bunch
of the new methods. See next point
* A bunch of the methods to facilitate the new Qt Signal:
void EnableSignalEvents (UInt_t f);
void DisableSignalEvents (UInt_t f);
Bool_t IsSignalEventEnabled(UInt_t f) const;
where "f" is logical combination of the bits to activate
the emitting the RootEventProcessed Qt signal as soon as
TCanvas ROOT event forwarded by Qt-layer
kMousePressEvent = BIT(0), // mousePressEvent QMouseEvent
kMouseMoveEvent = BIT(1), // mouseMoveEvent QMouseEvent
kMouseReleaseEvent = BIT(2), // mouseReleaseEvent QMouseEvent
kMouseDoubleClickEvent = BIT(3), // mouseDoubleClickEvent QMouseEvent
kKeyPressEvent = BIT(4), // keyPressEvent QKeyEvent
kEnterEvent = BIT(5), // enterEvent QEvent
kLeaveEvent = BIT(6) // leaveEvent QEvent
* TQtApplication
A special DISPLAY env varaible value QT_BATCH
to use Qt layer with "non-gui" mode
(in case when no X11 connection is provided)
Revision
11224 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Mar 4 07:11:54 2005 UTC (9 years, 10 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 86325 byte(s)
Diff to
previous 11206
From Valeri Fine:
1. Better handling the 64-bits ROOT widget IDs ("Widnows_t" type)
and the integer TCanvas IDs ("Int_t" type).
2. Adjust TGQt.h interface in respect with the current version of
TVirtualX
Disable the redundant "OpenGL method"
3. Some fixes to provide the "pseudo-widget" support
Revision
11206 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Mar 1 07:24:01 2005 UTC (9 years, 10 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 85423 byte(s)
Diff to
previous 11083
From Valeri Fine:
version of Qt tailored to create RootCint dictionary
In addition there are a few corrections for
TGQt:
- Remove the redundant TVirtualGL dependency
- Qt font size calculation has been improved.
- Env variable ROOTFONTFACTOR to facilitate the debugging of the font-size-related problem was added
TQtApplication:
- Remove the redundant TQtApplicationThread dependency
Revision
11083 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 10 07:22:15 2005 UTC (9 years, 11 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 83745 byte(s)
Diff to
previous 11071
From Valeri Fine:
a minor correction of TGQt.cxx
It is essentally to document the Fons's advice hwo to make RPPT fomts
available for Qt-layer. However I have to play a little bit with this new
feature to make it up to resolve the issue.
Revision
11071 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Feb 9 06:19:40 2005 UTC (9 years, 11 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 83100 byte(s)
Diff to
previous 11051
From Valeri Fine:
Clean solution for 64-but platform for TCanvas's. However I
am realizing I have to check some other objects (fonts, pixmaps) also. I am
keeping checking things. They are casted to Window_t ROOT type, that I hope
is safe in 64-bit env to hold the pointers.
Revision
11051 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Feb 8 07:36:08 2005 UTC (9 years, 11 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 79280 byte(s)
Diff to
previous 9749
From Valeri Fine:
Optimization:
------------------
- Change the default value for "quality" parameters of TGQtWidget::save method
- Add the "maxTime" parameter to "processQtEvents "method with the default value "maxtime=300"
- some comments clean up
- new CPP macros for the threaded version of TVirtualX
Fixes:
--------
TQtSymbolCodec class introduced to treat the ROOT font 12 in the case of the system lack of "symbol.ttf" installed
New:
-------
TQtWidget - Introduce a Qt QTimer to manage ROOT events from within Qt event loop
for Qt main applications
TGQt - Introduce a ROOT TTimer to manage Qt events from within ROOT event loop
Revision
9604 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jul 28 00:12:41 2004 UTC (10 years, 5 months ago) by
rdm
Original Path:
trunk/qt/src/TGQt.cxx
File length: 77093 byte(s)
Diff to
previous 9594
update:
- use standard ROOT cvs tag line
- standard ROOT copyright notice + Valery Fine
- fixed several multiple inclusion ifdef's to use standard ROOT format
- added new Window_t argument to Warp() method. This method still
needs to be implemented for Window_t != 0
Revision
9587 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jul 25 07:26:01 2004 UTC (10 years, 6 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 77075 byte(s)
Diff to
previous 9507
From Valeri Fine:
1. To provide the backward compatibility with Qt 3.1
by in introducing one extra static method TGQt::PostQtEvent
2. Add the full path to the root.exe needed by Qt
on Mac with the MAC native interface at run-time
Revision
9490 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sun Jul 11 04:14:11 2004 UTC (10 years, 6 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 76362 byte(s)
Diff to
previous 9471
From Valeri Fine:
Remove the erroneous default code page "ISO8859-5"
This fixes the wrong representation of some LaTeX symbols
with the Cyrillic :-) letters.
The Default codepage is to be defined by "Gui.DefaultFont" from ROOT
resource file.
Revision
9471 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Jul 9 09:21:24 2004 UTC (10 years, 6 months ago) by
brun
Original Path:
trunk/qt/src/TGQt.cxx
File length: 76394 byte(s)
Add a new package "qt". Developed by Valeri Fine (fine@bnl.gov), this new
package is an implementation of TVirtualX based on the Qt library from Trolltech AS, Norway.
The package is optional. When configuring ROOT, you can generate the libQtRoot
library by adding, eg
--enable-qt \
--with-qt-incdir=$QT/include \
--with-qt-libdir=$QT/lib \
where $QT points to the directory where the Qt software has been installed.
The Qt version >= 3.1 is required for this interface.
The Qt package itself must have been compiled with the same compiler
and compiler options used to compile ROOT.
Once the $ROOTSYS/lib/libQtRoot.so (dll) library is created, one has
the possibility to select this library as an alternative to libGX11
by adding the following two lines in the local ".rootrc" file
Gui.Backend: qt
Gui.Factory: qt
The package has currently been tested on Linux only.
This first implementation may show some deficiencies compared to
the libGX11 default version.
Please report any problems with this version to
rootdev@root.cern.ch as well as fine@bnl.gov
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.