[root] / trunk / gui / gui / src / TGClient.cxx Repository:
ViewVC logotype

Log of /trunk/gui/gui/src/TGClient.cxx

Parent Directory Parent Directory


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

Revision 47952 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 10 18:57:10 2012 UTC (2 years, 1 month ago) by rdm
File length: 29209 byte(s)
Diff to previous 47419
More CINT removal cleanups:
- configure: remove enable_cling and hascling as we always have cling.
- remove many R__HAS_CLING ifdef's from the code.

Revision 47419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Nov 18 23:01:24 2012 UTC (2 years, 2 months ago) by axel
File length: 29596 byte(s)
Diff to previous 47402
Move dictionary initialization into global function that has a unique, defined name for each dictionary.
This function checks (using a local static, but that's fine because it gets called also during static initialization of the library which is locked by definition) that it only registers the dictionary once.
This function can be called if an initialized dictionary is required during static initialization.

That's the case of libGui's gClient; call this new function before setting it up.

Revision 47402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 17 23:08:27 2012 UTC (2 years, 2 months ago) by pcanal
File length: 29612 byte(s)
Diff to previous 46928
Remove dependency on cint dictionary but delay (i.e. warn rather than implement) replacement

Revision 46928 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 12:03:17 2012 UTC (2 years, 2 months ago) by rdm
File length: 29134 byte(s)
Diff to previous 43917
use ROOT::gROOTLocal as gROOT might cause problems when TGClient is 
created as first ROOT object. This happens only when statically linking
the application.

Revision 43917 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 24 09:01:51 2012 UTC (2 years, 9 months ago) by tpochep
File length: 28955 byte(s)
Diff to previous 43719
Add BeginModalSessionFor(Window_t) call into TGClient.
This is noop for windows/X11, but needed on MacOSX to let
gVirtualX know, that nested loop for some specific window started -
to make it impossible for AppKit to bring other window to the front and 
overlap and hide window which we are waiting for.

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: 28607 byte(s)
Diff to previous 38843
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 38843 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 14 12:13:31 2011 UTC (3 years, 9 months ago) by bellenot
File length: 28452 byte(s)
Diff to previous 35622
Use the TGClient/TGResourcePool to set-up the style instead of using gEnv->GetValue() from TGMenu

Revision 35622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 23 08:29:15 2010 UTC (4 years, 4 months ago) by bellenot
File length: 28046 byte(s)
Diff to previous 27682
Replace sprintf and strcpy by snprintf and strlcpy (coverity)

Revision 27682 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 3 19:17:30 2009 UTC (5 years, 10 months ago) by pcanal
File length: 28010 byte(s)
Diff to previous 27681
better placement of code needed for r27681

Revision 27681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 3 19:15:10 2009 UTC (5 years, 10 months ago) by pcanal
File length: 27967 byte(s)
Diff to previous 25391
Fix order of initialization problem within the libGui.so itself (ie. insure that enough of dictionary is initialized before it is needed

Revision 25391 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 12 12:40:48 2008 UTC (6 years, 4 months ago) by rdm
File length: 27685 byte(s)
Diff to previous 25383
Change some recently added signal names to bring them inline with the
standing signal name convention (used by the recorder):

TGClient::WindowRegistered() -> TGClient::RegisteredWindow()
TGClient::ProcessingEvent() -> TGClient::ProcessedEvent()
TGFrame::ProcessConfigure() -> TGFrame::ProcessedConfigure()

Revision 25383 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 10 17:10:06 2008 UTC (6 years, 4 months ago) by bellenot
File length: 27686 byte(s)
Diff to previous 23567
- From Katerina Opocenska and me:
  - Make TGClient inherit from TQObject, allowing to emit signals
  - TGClient: Add several signals used by the coming event recorder:
    WindowRegistered(Window_t w): 
       Emitted when a Window is registered in the client
    ProcessingEvent(Event_t* event, Window_t wid): 
       Emitted when processing one event for the window "wid"
  - TGFrame: Add ProcessConfigure(Event_t *event) signal used by 
    the coming event recorder in HandleConfigureNotify()

Revision 23567 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 26 21:48:51 2008 UTC (6 years, 8 months ago) by brun
File length: 26711 byte(s)
Diff to previous 23115
From Bertrand:
- Remove extra check for Windows (since modal window option has been implemented on Windows)

Revision 23115 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 13:35:37 2008 UTC (6 years, 9 months ago) by rdm
File length: 26654 byte(s)
Copied from: trunk/gui/src/TGClient.cxx revision 23114
Diff to previous 23050
moved to directory "gui" the following directories:

fitpanel, ged, gui, guibuilder, guihtml, qtgsi, qtroot, sessionviewer

Revision 23050 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 8 13:21:49 2008 UTC (6 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGClient.cxx
File length: 26654 byte(s)
Diff to previous 22864
From Bertrand:
- Initialize fWaitForEvent in TGClient ctor
  (fix bug report #35302)

Revision 22864 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 27 14:50:48 2008 UTC (6 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGClient.cxx
File length: 26618 byte(s)
Diff to previous 22452
From Bertrand:

Fixed following case on Windows, debug mode MSVC2008, on a dual
core dead locks in 100% of all cases after a right-click on the canvas
during the "WaitPrimitive" call and select e.g. "SaveAs" from the context menu.
When the file dialog is being drawn the first time it gets grayed out 
immediately - probably because it's not getting any events to process. 
The only way out is to kill ROOT

Revision 22452 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 5 13:49:03 2008 UTC (6 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TGClient.cxx
File length: 26564 byte(s)
Diff to previous 20882
Fixed the dead lock between WaitForUnmap and WaitFor methods of TGClient
(reported at https://savannah.cern.ch/bugs/?32580 )

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/gui/src/TGClient.cxx
File length: 26500 byte(s)
Diff to previous 20411
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 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/gui/src/TGClient.cxx
File length: 26500 byte(s)
Diff to previous 20212
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 20212 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 4 14:49:41 2007 UTC (7 years, 3 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 26529 byte(s)
Diff to previous 19826
When messages like "can't figure out DISPLAY, set it manually
or other X11 server connection errors, add a message indicating
to reconnect with ssh -Y

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/gui/src/TGClient.cxx
File length: 26462 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/gui/src/TGClient.cxx
File length: 26512 byte(s)
Diff to previous 19052
remove :$ from tag line

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

Revision 18417 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 28 14:32:09 2007 UTC (7 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 26467 byte(s)
Diff to previous 18182
in static initializer call TApplication::NeedGraphicsLibs().

Revision 18182 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 17:15:01 2007 UTC (7 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 26407 byte(s)
Diff to previous 18112
revert previous change in GetFontByName(), in batch mode return
FontStruct_t -1 (i.e. font exist, which does not matter since it
will not be displayed anyway). This allows libGui to be loaded in
batch mode with out segv.

Revision 18112 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 1 01:09:02 2007 UTC (7 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 26411 byte(s)
Diff to previous 18094
make TGClient ctor protected and allow only a few friend classes to create
a TGClient (prevents accidental new TGClient from CINT).

Revision 18094 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 27 10:52:09 2007 UTC (7 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TGClient.cxx
File length: 28344 byte(s)
Diff to previous 16796
From Axel:
GetFontByName() should really return 0 if it can't find the font
because there are none.

Revision 16796 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 16 17:18:32 2006 UTC (8 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 28346 byte(s)
Diff to previous 15742
Changes to get rid of the config.h and HAVE_CONFIG define. These were way
too trivial (just do a locate config.h to see how many there are):
- replace occurances of config.h by RConfigure.h
- add #warning in config.h that is should not be used
- change HAVE_CONFIG to R__HAVE_CONFIG

Revision 15742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Jul 9 05:27:55 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 28345 byte(s)
Diff to previous 15173
From Eddy:
Fix many typos in comments

Revision 15173 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 24 18:20:12 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 28340 byte(s)
Diff to previous 15134
Fix coding conventions violations

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/gui/src/TGClient.cxx
File length: 28247 byte(s)
Diff to previous 14703
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 14703 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 14 17:54:11 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 26406 byte(s)
Diff to previous 14398
From Valeriy Onuchin:
- TGClient.
  Two getter methods GetWaitForEvent(), GetWaitForWindow() introduced.
  New method ResetWaitFor(TGWindow *w) allows to interrupt
  WaitForUnmap, WaitForDestroy event loops.

- TGComboBox
  minory mods

- TRootBrowser, TRootCanavas
  more protection against editting was added

Revision 14398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 23 15:56:03 2006 UTC (8 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TGClient.cxx
File length: 26193 byte(s)
Diff to previous 13931
From Valeriy Onuchin:
Mods in several GUI classes related to the following changes required by
the GUI builder development.

- TGWindow::fEditDisabled  converted fron Bool_t to UInt_t
  Defined new EEditMode bit flags:

   enum  EEditMode {
      kEditEnable        = 0,         // allow edit
      kEditDisable       = BIT(0),    // disable edit
      kEditDisableEvents = BIT(1),    // window events cannot be edited
      kEditDisableGrab   = BIT(2),    // window grab cannot be edited
      kEditDisableLayout = BIT(3),    // window layout cannot be edited
      kEditDisableResize = BIT(4),    // window size cannot be edited
      kEditDisableHeight = BIT(5),    // window height cannot be edited
      kEditDisableWidth  = BIT(6)     // window width cannon be edited
   };

- TGWindow::IsEditDisabled renamed as TGWindow::GetEditDisabled
- TGFrame::SavePrimitiveSubframes made public

Revision 13931 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 25 19:46:42 2006 UTC (9 years ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 26185 byte(s)
Diff to previous 13278
From Eddy:
Wolfgang Wanders traced through purify two "UMR: Uninitialized memory
read"'s

Revision 13278 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 17 19:09:28 2005 UTC (9 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 26117 byte(s)
Diff to previous 12525
From Ilka:
code style fixes (comments, descriptions and identation).

Revision 12525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 23 17:00:41 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 26034 byte(s)
Diff to previous 10434
From Bertrand:
Added several protections in TGXXX class constructors,
used when browsing ROOT classes.

Revision 10434 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Oct 30 07:30:28 2004 UTC (10 years, 2 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 26013 byte(s)
Diff to previous 9992
Initialize gClient to 0

Revision 9992 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 09:03:24 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 26010 byte(s)
Diff to previous 9986
new methods GetDisplayWidth() and GetDisplayHeight().

Revision 9986 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Sep 12 10:55:26 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 25527 byte(s)
Diff to previous 9925
From Valeriy Onuchin:
 - TGWindow::fEditDisabled value now is inherited from parent window. Setting
     fEditDisabled = kTRUE in parent constructor disables guibulding/editting in all subframes.
 -  Disable editting/guibuilding for TBrowser.
 -  SetEditDisabled, IsEditDisabled() added to TGClient which allow to disable/enable
     editting/guibuilding globally.
 -  Add TVirtualGuiBld::Instance() method which loads plugin and creates gGuiBuilder object.
 -  Correct TGButton::HandleButton when fStayDown is kTRUE. Previously after call
    TGButton::AllowStayDown(kTRUE)  button remains pressed "forever". After this fix
    button is released after next button pressing. TGButton::AllowStayDown(kTRUE)  provides
    "push button behaviour"

Revision 9925 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 16:05:30 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 25078 byte(s)
Diff to previous 9924
From Valeriy Onuchin:
- TGClient::GetWindowByName method added (needed for guibuilding).

Revision 9924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 14:36:20 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 24624 byte(s)
Diff to previous 9816
From valeriy Onuchin:
- force option added to TGClient::NeedRedraw method.
  If force is kTRUE - TGWindow::DoRedraw method is called  immediatly
  (needed for guibuilder)

Revision 9816 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Aug 22 01:43:33 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 24554 byte(s)
Diff to previous 9772
add protection against gROOT being 0 causing segv when libGui is loaded
at program startup.

Revision 9772 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 17 15:06:56 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 24528 byte(s)
Diff to previous 9654
in case of batch mode create via a static object a default TGClient object.
This will allow the creation of GUI widgets in batch mode and avoids to
have to test all gClient and fClient pointers from being 0.

Revision 9654 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 2 11:43:12 2004 UTC (10 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 24278 byte(s)
Diff to previous 9232
add idle event handler which will be called when there are no GUI events
anymore and all scheduled redraws have been performed. Needed for the
TGHtml widget.

Revision 9232 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 17 10:54:05 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 23260 byte(s)
Diff to previous 9228
From Valeriy:
- revert changes in� TGClient::WaitFor method (I appologize)
- add check "gROOT->IsLineProcessing() && !gVirtualX->IsCmdThread()"
  to TWinNTSystem::DispatchOneEvent that prevents deadlock occured
  when gClient->WaitFor method is called (directly or indirectly) from
  interpreted code.

Revision 9228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 16:45:29 2004 UTC (10 years, 7 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 23263 byte(s)
Diff to previous 8546
From Valeriy Onuchin:
- in TGClient::WaitFor repalce "gSystem->InnerLoop();"  by "gSystem->ProcessEvents();"
  That guarantee that all events in aplication loop will be processed.

Revision 8546 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 6 21:12:24 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 23259 byte(s)
Diff to previous 8408
added extra argument to GetFont() and GetFontByName() to not load the
"fixed" font by default if the requested font cannot be loaded.

Revision 8408 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 15 17:13:58 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 22752 byte(s)
Diff to previous 8330
remove a WIN32GDK special ifdef that is not needed anymore.

Revision 8330 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 5 11:29:02 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 22838 byte(s)
Diff to previous 8329
add comments to GetRoot(), GetDefaultRoot() and SetRoot().

Revision 8329 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Mar 5 11:13:04 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 21774 byte(s)
Diff to previous 8309
change fgRoot to fDefaultRoot. This allows for potentially more than one
TGClient in case of multiple displays.

Revision 8309 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 27 01:03:58 2004 UTC (10 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 21970 byte(s)
Diff to previous 8264
From Valeriy:
TCanvas::ObjectEdited() replaced by Selected() signal.

Revision 8264 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 19 15:49:43 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 21976 byte(s)
Diff to previous 7950
Move inline definition of GetDefaultRoot from inline to implementation function.

Revision 7950 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 20 10:41:11 2004 UTC (11 years ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 21822 byte(s)
Diff to previous 7520
From Valeriy Onuchin

I added new method to TGCompositeFrame::SetEditting.
This mode allows to "embed ROOT GUI applications into composite frame".
That is very similar to ActiveX, but multiplatform.
The following example demonstrates how it works:

    TGMainFrame *m = new TGMainFrame(gClient->GetRoot(), 500, 500);
    m->SetEditable();    // activate edit mode
    gSystem->Load("$ROOTSYS/test/Aclock"); // load Aclock demo
    Aclock a;    // create animated aclock canvas
    gROOT->Macro("$ROOTSYS/tutorials/guitest.C"); // execute guitest.C
    m->SetEditable(0); // back to normal mode
    m->MapWindow();

The exposited frame will contain two embedded GUI application with full functionality.

 - mods do not have side effects on ROOT GUI classes
 - tested under win32gdk and linux

Revision 7520 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 5 13:08:26 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 21765 byte(s)
Diff to previous 7454
From Ilka:
Any ROOT GUI can now be saved as a macro. Executing this macro brings back
the current GUI (minus the action handling). This very important development
allows to get easily the source for any GUI, which can then be inspected or
used to create other GUI's. Also this will allow a GUI builder to save and
restore GUI's.

To save the source of a GUI use the methods TGMainFrame::SaveSource() or
TGTransientFrame::SaveSource(), where the latter saves the source for dialogs.

To trigger the saving of any GUI just use ctrl-s.

Revision 7454 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 22 17:20:50 2003 UTC (11 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 21762 byte(s)
Diff to previous 7052
implement automatic switching to batch mode when no connection to an X server
can be established, instead of exiting the program.

Revision 7052 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 6 23:42:39 2003 UTC (11 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 21676 byte(s)
Diff to previous 7046
remove erroreous statement from class description.

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

Revision 6663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 11:55:32 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 21741 byte(s)
Diff to previous 6522
major changes in the resource management of the GUI classes. Introduced the
new class TGResourcePool which loads and keeps track of the 3 main resource
pools: fonts, picture and graphics contexts. Fonts are now handled via the
new TGFont class (and TGFontPool). In the past the loading of these resources
was done in TGClient and required all GUI classes to have TGClient as friend
to have their global statics initialized by TGClient. Adding a new widget
required TGClient.cxx to be changed too. This was obviously not good.
In addition it is now possible to find the full definition of the original
resource back based on a resource handle (GContext_t or FontStruct_t yielding
a TGGC or TGFont) which is needed for the SavePrimitive() functionality.

The resource pool can be found via TGClient (e.g. gClient->GetResourcePool()).
To see all active graphics contexts, fonts and pictures do:
   gClient->GetResourcePool()->GetGCPool()->Print()
   gClient->GetResourcePool()->GetFontPool()->Print()
   gClient->GetResourcePool()->GetPicturePool()->Print()
For more examples see the widget source code.

These changes are largely backward compatible except maybe for some low
level 3rd party widgets that use some TGFrame internals. In these cases
the following sed command will patch the code:
   sed -e "s/fgBlackGC()/GetBlackGC()()/g" \
       -e "s/fgWhiteGC()/GetWhiteGC()()/g" \
       -e "s/fgHilightGC()/GetHilightGC()()/g" \
       -e "s/fgShadowGC()/GetShadowGC()()/g" \
       -e "s/fgBckgndGC()/GetBckgndGC()()/g" \
       widget.cxx > widget.cxx.new

Revision 6522 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 2 10:28:12 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 34830 byte(s)
Diff to previous 6517
move initialization of graphics event handler (gXDisplay) just before
initialization of fRoot. This is required for moving gXDisplay->Notify()
from TWinNTSystem::DispatchOneEvent() to TGWin32::GdkThread().
This will significantly reduce thread switches.

Revision 6517 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 1 17:16:57 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 34786 byte(s)
Diff to previous 6308
iin several locations the depth of the original rootwindow was used and
not the depth of the best visual. This should solve the FindBestVisual()
problems most often seen on Solaris and eXceed. By Daniel Sigg.

Revision 6308 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 15 14:21:39 2003 UTC (11 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 34782 byte(s)
Diff to previous 5943
add comment about the need to deleting the font loaded by GetFontByName().

Revision 5943 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 20 08:44:47 2003 UTC (12 years ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 34710 byte(s)
Diff to previous 4692
Add protections in destructors in case the default constructor has been called.
Initialize pointers in some default constructors.

Revision 4692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 12 16:46:12 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 34548 byte(s)
Diff to previous 4394
major improvements in TGListTree by Valeriy Onuchin. The TGListTree can
now display >100k's of items in a very efficient way. This is used now
in the ROOT browser.

Revision 4394 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 22 18:24:06 2002 UTC (12 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 34556 byte(s)
Diff to previous 4299
fix handling of popup menus over transient windows which are waited for
(via WaitFor()). Fix by Daniel Sigg.

Revision 4299 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 3 16:40:26 2002 UTC (12 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 33329 byte(s)
Diff to previous 4295
put extended warning message in GetColorByName() in a single Warning().

Revision 4295 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 3 10:41:40 2002 UTC (12 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGClient.cxx
File length: 33454 byte(s)
Diff to previous 3317
Add additional information in TGClient::GetColorByName after printing the Warning;
"GetColorByName", "couldn't retrieve color xxxx"
 This problem typically appears when running ROOT from
 an X terminal with not enough memory and another application
 like Netscape is already running
 ====> Kill Netscape and start again ROOT

I am tired to always answer the same question.

Revision 3317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 28 16:05:42 2001 UTC (13 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 33192 byte(s)
Diff to previous 2966
win32gdk case added

Revision 2966 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 3 20:59:59 2001 UTC (13 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 32124 byte(s)
Diff to previous 2867
new method ProcessEventsFor(TGWindow *w). Use this method to instead
of TSystem::ProcessEvents() in case you want to allow on events for
the specified TGWindow to be processed (like when this is a progress
meter dialog).

Revision 2867 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 26 13:23:22 2001 UTC (13 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 31509 byte(s)
Diff to previous 2208
mime type file name can now include shell characters like ~.

Revision 2208 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 15 14:17:48 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 31391 byte(s)
Diff to previous 2099
new method ForceRedraw() which sets a flag that tells the GUI to call
DoRedraw() next time in the event processing loop instead of waiting
till there are no more X11 server events. For example of usage see
test/guiviewer.cxx.

Revision 2099 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Apr 28 16:30:14 2001 UTC (13 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 31225 byte(s)
Diff to previous 1776
changes for the handling of foreign windows, i.e. windows not created by
the ROOT GUI. This are typically windows and widgets created by Xt and Xm.
On how to use these new features see the TRootOIViewer.cxx code.

Revision 1776 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 8 20:16:28 2001 UTC (13 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 30206 byte(s)
Diff to previous 1757
root.mimes in now in $ROOTSYS/etc and not anymore in $ROOTSYS/icons.

Revision 1757 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 7 11:50:20 2001 UTC (13 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 30208 byte(s)
Diff to previous 738
use slow deletion of fWlist to be able to correctly handle recursive
removal of windows from this list.

Revision 738 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 10 10:20:10 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 30202 byte(s)
Diff to previous 736
finished implementation of TGProgessBar's. This was main missing widget in
GUI classes.

Revision 736 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 9 19:15:59 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 30303 byte(s)
Diff to previous 685
handle new TGProgressBar widgets.

Revision 685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 08:57:05 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 30000 byte(s)
Diff to previous 420
many change connected with the introduction of the TGGC (graphics context)
class (all backward compatible). Also many of the static default GC's and
fontstructs are now available to the user. This can simplify code in many
places. See change in guitest.cxx.

Revision 420 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 4 13:21:36 2000 UTC (14 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 31421 byte(s)
Diff to previous 332
fix bug in using subsequently WaitFor() and WaitForUnmap() methods.
The waitforevent was not saved. Bug reported by Andrei Mayorov.

Revision 332 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 16:47:54 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 31285 byte(s)
Diff to previous 322
modifcations in all classes providing infrastructure for the text edit
widget.

Revision 322 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 18:55:32 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 31013 byte(s)
Diff to previous 3
infrastructure for the new TGTextEdit widget. The new TGView class is
the base class for all text viewing/editing widgets. TGTextView has been
totally rewritten to use the new TGView and TGText classes. TRootHelpDialog
uses the new TGTextView widget. TGTextEdit will derive from TGTextView.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGClient.cxx
File length: 30404 byte(s)
Copied from: branches/rdm/gui/src/TGClient.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/gui/src/TGClient.cxx
File length: 30404 byte(s)
Initial import of ROOT into CVS

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9