Log of /trunk/graf2d/qt/inc/TQtWidget.h
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: 13221 byte(s)
Diff to
previous 32417
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: 12825 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: 12737 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: 12599 byte(s)
Diff to
previous 28205
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: 12563 byte(s)
Diff to
previous 27630
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
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: 12529 byte(s)
Diff to
previous 25523
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
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: 12687 byte(s)
Diff to
previous 25206
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
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: 12016 byte(s)
Diff to
previous 24506
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: 12127 byte(s)
Diff to
previous 23343
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
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: 12158 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: 12194 byte(s)
Diff to
previous 22932
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
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/inc/TQtWidget.h
File length: 12152 byte(s)
Diff to
previous 19065
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/inc/TQtWidget.h
File length: 11933 byte(s)
Diff to
previous 18881
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/inc/TQtWidget.h
File length: 11449 byte(s)
Diff to
previous 16742
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
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/inc/TQtWidget.h
File length: 11424 byte(s)
Diff to
previous 12981
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
12981 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Oct 18 18:53:42 2005 UTC (9 years, 3 months ago) by
brun
Original Path:
trunk/qt/inc/TQtWidget.h
File length: 11175 byte(s)
Diff to
previous 12782
From Valeri:
GQtGUI.cxx:
TQtClientFilter.cxx:
- Optimize the "SendCloseMessage" event
TQtClientFilter.cxx:
Add TQtLock thread synch mechanism
TQtClientGuard.cxx,
- keep building the protection against of the ROOT GUI dead pointers
(entails some performance degradation though)
rootcintrule:
- Add the WIN32 rule to build the RootCint dictionary
TQtWidget.h:
TQtClientWidget.h:
- Correction to compile on Windows
Revision
12782 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 20 06:38:10 2005 UTC (9 years, 4 months ago) by
brun
Original Path:
trunk/qt/inc/TQtWidget.h
File length: 11151 byte(s)
Diff to
previous 12499
From Valeri Fine:
1. Implement TVirtualX::ListFonts method to provide TGFontDialog widget
2. New static method TQtWidget::InitRint to instantiate ROOT
within Qt-based applications
3. Some extra features for rootlibs.pri and rootcintrules.pri
to facilitate the Qt build on Mac (native GUI) platform
4. Add two NEW files:
$ROOTSYS/qtroot/qtroot.pro
$ROOTSYS/qt/qt.pro
to build Qt-layer alone with Qt "qmake" utility.
The explanation will be provided with my ROOT WorkShop talk.
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/inc/TQtWidget.h
File length: 10890 byte(s)
Diff to
previous 11250
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
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/inc/TQtWidget.h
File length: 10613 byte(s)
Diff to
previous 11206
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
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/inc/TQtWidget.h
File length: 6298 byte(s)
Diff to
previous 11051
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
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/inc/TQtWidget.h
File length: 5282 byte(s)
Diff to
previous 9649
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
9620 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 30 01:13:51 2004 UTC (10 years, 5 months ago) by
rdm
Original Path:
trunk/qt/inc/TQtWidget.h
File length: 4707 byte(s)
Diff to
previous 9604
From Philippe:
his patch updates TVirtualPad::cd() (and all the implementations)
so that they return the new current pad if any.
So that the following now works:
currendPad = c1->cd(3);
if (currentPad==0) Error("we have a problem");
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/inc/TQtWidget.h
File length: 4642 byte(s)
Diff to
previous 9507
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
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/inc/TQtWidget.h
File length: 4211 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.