Log of /trunk/gui/gui/src/TGResourcePool.cxx
Parent Directory
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/TGResourcePool.cxx
File length: 11584 byte(s)
Diff to
previous 19826
remove conditional around include of RConfigure.h:
#ifdef R__HAVE_CONFIG
#include "RConfigure.h"
#endif
Having this conditional caused RConfigure.h to be missing from the .d
files and hence these files would not be recompiled after re-configuring
using --prefix.
Revision
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/TGResourcePool.cxx
File length: 11706 byte(s)
Diff to
previous 14985
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
7755 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Dec 15 08:54:29 2003 UTC (11 years, 1 month ago) by
brun
Original Path:
trunk/gui/src/TGResourcePool.cxx
File length: 12479 byte(s)
Diff to
previous 6663
From Valeriy Onuchin
- few improvements from my todo list:
o TGButton, TGLabel
SetTextColor, SetFont methods added.
Font, color can be changed globally (for every frame of some type),
or locally (for some particular frame) - default option
o TGNumberEntry
Accelerate the speed for changing numbers when button is
permanently pressed
o TGPicture (inspired by Ilka's recent changes)
for picture specified by file name mods added:
pname = gSystem->ExpandPathName(gSystem->UnixPathName(pname.Data()));
o TGResourcePool
add current directory to the icon_path for WIN32GDK
o cosmetic changes in WorldMap.C example
This tutorial is now working under win32gdk
o TGWin32, TGWin32ProxyBase
Anather try to fix a problem reported by Ed Oltman recently
Revision
6663 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Wed May 28 11:55:32 2003 UTC (11 years, 8 months ago) by
rdm
Original Path:
trunk/gui/src/TGResourcePool.cxx
File length: 12419 byte(s)
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
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.