Log of /trunk/gui/gui/src/TGClient.cxx
Parent Directory
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
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.