[root] / trunk / graf2d / qt / src / TQtWidget.cxx Repository:
ViewVC logotype

Log of /trunk/graf2d/qt/src/TQtWidget.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: 34078 byte(s)
Diff to previous 43127
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 43127 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Feb 26 14:25:04 2012 UTC (2 years, 10 months ago) by rdm
File length: 34078 byte(s)
Diff to previous 36066
fix localArgv access. Fixes issue 89905.

Revision 36066 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 4 19:41:50 2010 UTC (4 years, 3 months ago) by brun
File length: 34076 byte(s)
Diff to previous 35883
From Valeri:
several fixes for coverity reports

Revision 35883 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 08:40:14 2010 UTC (4 years, 3 months ago) by brun
File length: 34041 byte(s)
Diff to previous 34706
Use strlcpy. Fix coverity CID 13304

Revision 34706 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 3 05:40:37 2010 UTC (4 years, 5 months ago) by brun
File length: 34003 byte(s)
Diff to previous 34357
From Artur Szostak:
fix uninitialized member: https://savannah.cern.ch/patch/?4319

Revision 34357 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 9 06:30:44 2010 UTC (4 years, 6 months ago) by brun
File length: 33981 byte(s)
Diff to previous 34308
From Artur Szostak:
fix 
https://savannah.cern.ch/bugs/?69475

Revision 34308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 3 05:00:09 2010 UTC (4 years, 6 months ago) by brun
File length: 33637 byte(s)
Diff to previous 33707
From Artur Szostak
I think a bug was introduced in rev. 27993 for file
$ROOTSYS/graf2d/qt/src/TQtWidget.cxx on line 545. The line was commented out
that sets the ROOT button event type to kButton3Down; leaving it as kNoEvent.
Thus, even when contextMenuPolicy() returns false it is not possible to trap
this event with RootEventProcessed like all other mouse events.
http://savannah.cern.ch/bugs/?69475

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: 33639 byte(s)
Diff to previous 30386
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: 33017 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: 32498 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: 32832 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: 33509 byte(s)
Diff to previous 27993
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 27993 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 30 16:26:02 2009 UTC (5 years, 9 months ago) by brun
File length: 33236 byte(s)
Diff to previous 27630
From Valeri Fine:
TQtRootSlot.cxx
  - invoke gProcessLine(".q") to terminate ROOT session smoothly
  
TQtPadFont.cxx
   - improve the font size calibration.
   - re-initialize the TAttText::fTextFont data-member.
   - remove Qt3 CPP flag
   
TQtBrush.cxx
   - remove Qt3 and Win32 CPP flags

TQtWidget.cxx:
   - respect Qt4 QWidget::contextMenuPolicy flag.
   - remove Qt3 CPP flag and redundant code
   
inc/rootcint.pri:
  - Add "_CRT_SECURE_NO_WARNINGS" CPP flag for win32 to suppress the
annoying warning messages

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: 32836 byte(s)
Diff to previous 26999
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 26999 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 18 07:47:00 2008 UTC (6 years, 1 month ago) by brun
File length: 31620 byte(s)
Diff to previous 25850
From Valeri Fine:
- Force painting of the  TCanvas background 
  for the embedded object at the time of 
  the Qt GUI instantiation to avoid the annoying 
  "black widget" 

- Remove the redundant Qt 3.x CPP flag.

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: 31565 byte(s)
Diff to previous 25523
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 25523 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 25 07:28:17 2008 UTC (6 years, 3 months ago) by brun
File length: 32044 byte(s)
Diff to previous 25401
From Valeri Fine:
  - Clean up: remove  the redundant  Qt3-related code and Qt3-related CPP flags:

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: 36429 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: 35741 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: 32551 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: 32265 byte(s)
Diff to previous 23140
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: 32267 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 22932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 2 07:11:06 2008 UTC (6 years, 9 months ago) by antcheva
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 32267 byte(s)
Diff to previous 21231
From Valeri Fine:
  - Set correctly Qt4 QWidget size policy
  - Respond to the Qt4 QContextMenu event (new for Qt 4.3.x)

Revision 21231 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 6 15:22:14 2007 UTC (7 years, 1 month ago) by rdm
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 31638 byte(s)
Diff to previous 20882
change all occurances where %x is used to format a pointer to %lx.

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/qt/src/TQtWidget.cxx
File length: 31693 byte(s)
Diff to previous 20737
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 20737 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 9 13:04:52 2007 UTC (7 years, 2 months ago) by antcheva
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 31693 byte(s)
Diff to previous 19826
From Valeri Fine:
the various corrections to accommodate Qt4 features for X11/Win32 platforms.

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/qt/src/TQtWidget.cxx
File length: 31267 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/qt/src/TQtWidget.cxx
File length: 31319 byte(s)
Diff to previous 19704
remove :$ from tag line

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/TQtWidget.cxx
File length: 31329 byte(s)
Diff to previous 19079
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 19079 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 20 07:00:38 2007 UTC (7 years, 7 months ago) by antcheva
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 30608 byte(s)
Diff to previous 19065
From Valeri Fine:
The small patch to remove run-time Qt4 warning.

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/TQtWidget.cxx
File length: 30555 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 18881 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 25 07:45:10 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 27276 byte(s)
Diff to previous 18149
From Valeri Fine:
Changes to install ROOT with QT4.

Revision 18149 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 5 08:42:50 2007 UTC (7 years, 10 months ago) by antcheva
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 27186 byte(s)
Diff to previous 17523
From Valeri Fine:

Allow the symbol "+" to be a part of the file directory
name. There was a clash with the ROOT file name convention
to treat "+" as a flag of the "animated" pixmap file.
-----
PS: STAR NFS directory do have the "+" in the directory
name. This is why the problem was discovered.

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/TQtWidget.cxx
File length: 26940 byte(s)
Diff to previous 17206
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 17206 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 08:16:07 2006 UTC (8 years, 1 month ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 26871 byte(s)
Diff to previous 17198
From Valeri Fine;
"An extra protection against an erroneous "Gui.Prompt" value"

 the use case was reported via
 http://root.cern.ch/phpBB2/viewtopic.php?p=17124#17124 )

Revision 17198 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 12 20:12:47 2006 UTC (8 years, 1 month ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 26877 byte(s)
Diff to previous 16168
From Valeri Fine:
This is to make Qt compiled against of the newest  version of the �winnt�

Revision 16168 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 30 14:46:18 2006 UTC (8 years, 4 months ago) by antcheva
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 26825 byte(s)
Diff to previous 14950
From Valeri Fine:
- fix a resize widget bug for Win32

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/TQtWidget.cxx
File length: 26073 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/TQtWidget.cxx
File length: 25872 byte(s)
Diff to previous 14410
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/TQtWidget.cxx
File length: 25798 byte(s)
Diff to previous 13866
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 13866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 19 13:24:37 2006 UTC (9 years ago) by antcheva
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 25521 byte(s)
Diff to previous 13632
From Valeri Fine:
  - Add documentation.
  - Add QT_VERSION 4 CPP flag (no test has been performed against Qt4 yet).
  - Remove the redundant code.
  - Add the enforcement of the Qt-ROOT layer for Qt-applications
    to eliminate the need to adjust ".rootrc" and eventually crash.
    If user started the  Qt-application then Gui.Backend "native"
    must be treated as "qt". (thanks CMS feedback )

Revision 13632 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Dec 11 10:51:39 2005 UTC (9 years, 1 month ago) by rdm
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 23274 byte(s)
Diff to previous 12782
From Valeriy Fine:
Major clean up and the new implementation of the active
pointer grabbing to preserve the ROOT GUI design untouched.

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/src/TQtWidget.cxx
File length: 23025 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/src/TQtWidget.cxx
File length: 22208 byte(s)
Diff to previous 11500
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 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/TQtWidget.cxx
File length: 22206 byte(s)
Diff to previous 11427
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/TQtWidget.cxx
File length: 22192 byte(s)
Diff to previous 11420
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 11420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 24 07:16:02 2005 UTC (9 years, 10 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 21931 byte(s)
Diff to previous 11250
From Valeri fine:
 TQtWidget:

   - Extra documentation about Qt signal /slot  available

TQtClientWidget
   - Fix the "grab button" implementation. This correction disables
   the Qt-based implementation of the X11 man page
   the "pointer is not grabbed" clause:

    //X11: ButtonPress event is reported if all of the following
    //    conditions are true:
    //   *    The pointer is not grabbed, and the specified button is
logically

     As result the scroll bar of the TGComboBox object  is properly
     grabbed (from the ROOT Gui point of view);


TGQt:
  - Some optimization
      use SetEraseColor method instead of setPaletteBackgroundColor

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/TQtWidget.cxx
File length: 19858 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/src/TQtWidget.cxx
File length: 19042 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/src/TQtWidget.cxx
File length: 18984 byte(s)
Diff to previous 9987
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 9987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 12 11:00:22 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 18856 byte(s)
Diff to previous 9748
From Valeri Fine:
avoid the 100% CPU consumption for Qt embedded TCanvas widget.

Revision 9748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 13 06:05:17 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 18856 byte(s)
Diff to previous 9649
From Valeri Fine:


    1. Fix the keyboard accelerator handling

    2. Reduce the size of the Qt designer "Custom Widget"
       descriptor by choosing the smaller icon.

    3.1. Add the TRint object instantiation to allow
         user to plug-in the TCanvas in to Qt application
         with no changing of his/her Qt "main"

    3.2. Introduce the new class TQtTimer to handle
         the ROOT event loop in case the user starts from the "pure" Qt "main"

    4. Fix typo in TQtThread::HasTTFonts causing an infinite loop on Windows.

    5. Add Warp method implementation.

Revision 9649 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 2 08:14:43 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 18609 byte(s)
Diff to previous 9647
fix headers and copyright statement.

Revision 9647 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 1 07:16:11 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 18540 byte(s)
Diff to previous 9623
New version from Valeri Fine

Revision 9623 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 30 06:45:56 2004 UTC (10 years, 5 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 16047 byte(s)
Diff to previous 9620
A forward declaration of TVirtualPad was missing in the header file.
TQtWidget::cd() did not compile: missing return.

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/src/TQtWidget.cxx
File length: 16040 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/src/TQtWidget.cxx
File length: 15905 byte(s)
Diff to previous 9587
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/TQtWidget.cxx
File length: 15870 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 9507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 13 05:50:37 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/qt/src/TQtWidget.cxx
File length: 15632 byte(s)
Diff to previous 9471
From Valeri Fine:
to replace the plain numbers with the enumerated values for the sake of
better documentation/ Some clean up

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/TQtWidget.cxx
File length: 15369 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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9