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

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

Parent Directory Parent Directory


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

Revision 46934 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 14:48:52 2012 UTC (2 years, 2 months ago) by tpochep
File length: 20616 byte(s)
Diff to previous 45252
More pixel-hunting:

1. When it comes to tiny polygons and pixel-exact rendering, Quartz does not produce expected image
   (well, it does with HiDPI, but HiDPI has additional problems). So I have to adjust small triangles in 
   a color selector and pattern selector widgets.
2. It's really bad idea to draw a rectangle first and then try to fill some area inside this rectangle,
   trying not to overlap - this does not work with Quartz, so I have to invert the order: fill rectangle first
   and draw outline later.

These fixes require ifdefs, ugly but inevitable, if you do some hardcoded pixel-based rendering as we do.

Revision 45252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 27 10:36:51 2012 UTC (2 years, 5 months ago) by tpochep
File length: 19852 byte(s)
Diff to previous 45145
Modification for different popups: with cocoa I can not guarantee the stack order for borderless popup window
(it's "main" window can in some cases become main and key window and overlay popup).
With transient hint (which makes a popup window into a children of some other window) the problem is fixed,
now GUI does not fall to pieces at any unexpected user action.

Revision 45145 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 20 09:34:31 2012 UTC (2 years, 6 months ago) by bellenot
File length: 19730 byte(s)
Diff to previous 44507
Draw triangle with right (black) GC when the color select is enabled (thanks Timur for reporting it)

Revision 44507 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 4 12:30:41 2012 UTC (2 years, 7 months ago) by axel
File length: 19731 byte(s)
Diff to previous 43615
Remove
  using namespace std;
from Riostream.h, which has huge consequences for all of ROOT.
Riostream.h is now a simple wrapper for fstream, iostream, iomanip for backward compatibility; Riosfwd.h simply wraps iosfwd.

Because of templates and their inline functions, Riostream.h needed to be included in headers, too (e.g. TParameter.h), which violated the assumption that Riostream.h is not exposing its using namespace std to headers.
ROOT now requires R__ANSISTREAM, R__SSTREAM, which does not change the set of supported compilers.

Without "using namespace std", several identifiers are now prefixed by std::; e.g. roofit/* source files now have a using namespace std to keep their coding style.
TFile::MakeProject() now generates "using namespace std" to convert the CINT-style class names into C++ ones.

Revision 43615 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 3 08:11:16 2012 UTC (2 years, 9 months ago) by bellenot
File length: 19686 byte(s)
Diff to previous 35582
Use the "drag" mouse pointer, like in other popups

Revision 35582 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 22 13:38:27 2010 UTC (4 years, 4 months ago) by bellenot
File length: 19621 byte(s)
Diff to previous 31657
Add the "keep_names" option when saving the GUI source, to allow the users to change the name of any frame in the ROOT Gui Builder and more important to keep it across the different load/edit/save cycles. This should solve a problem reported on the forum at: http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=11216

Revision 31657 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 14:20:48 2009 UTC (5 years, 1 month ago) by bellenot
File length: 19485 byte(s)
Diff to previous 27475
- Members initialization (coverity)
- Memory leak (coverity)

Revision 27475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 10:04:21 2009 UTC (5 years, 11 months ago) by bellenot
File length: 19476 byte(s)
Diff to previous 23115
Replace Form() by TString::Format()

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: 19465 byte(s)
Copied from: trunk/gui/src/TGColorSelect.cxx revision 23114
Diff to previous 22143
moved to directory "gui" the following directories:

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

Revision 22143 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 14 14:26:00 2008 UTC (6 years, 11 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19465 byte(s)
Diff to previous 20882
parm1 needs to pass the widget Id

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/TGColorSelect.cxx
File length: 19466 byte(s)
Diff to previous 20625
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 20625 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 16:48:36 2007 UTC (7 years, 2 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19466 byte(s)
Diff to previous 20552
Fixed warning on linux about unused 'parm1' (Thanks Gerri!)

Revision 20552 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 30 15:26:52 2007 UTC (7 years, 2 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19385 byte(s)
Diff to previous 19826
ix in TGColorSelect::ProcessMessage - parm1 should 
contain widget Id

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/TGColorSelect.cxx
File length: 19381 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/TGColorSelect.cxx
File length: 19437 byte(s)
Diff to previous 18499
remove :$ from tag line

Revision 18499 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 16 14:48:05 2007 UTC (7 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19447 byte(s)
Diff to previous 18317
Do not emit a signal for color preview when the GUI Builder is invoked.

Revision 18317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Mar 17 12:03:00 2007 UTC (7 years, 10 months ago) by brun
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19405 byte(s)
Diff to previous 15849
From Ilka:
TColorWheel:
- add new method TColorWheel::SetCanvas(TCanvas *can)
- changes in Draw method related to the parent canvas
- line width changed to 1 (was 2) for better view in a small canvas

TGColorDialog:
- added two tabs: Color Wheel and Basic Colors
- in Color Wheel tab implemented visualization of TColorWheel with the possibility to select a color from it
- in Basic Colors tab is kept old functionality of this class. The text fields for RGB and HLS and OK, Cancel buttons moved to the main dialog frame. They are used also for setting a color selected from the color wheel.
- New button Preview applies the selected color to the selected object if this dialog is called from the graphics editor. The selection can be confirmed as the final one by clicking the OK button or refused - by clicking on Cancel button.
- new methods: DoPreview and SetColorInfo
- many layout changes
- added aditional frame for comparison between the old and new selected colors

TGColorSelect:
- new method PreviewColor

Revision 15849 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 13:36:44 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19114 byte(s)
Diff to previous 15763
Instead of providing default implementations for copy ctor's and assignment
operators we better make them private (and not implemented) to avoid people
from accidentally using them. Especially the collections classes and the
TQObject derived classes. In these classes the default implementations would
cause havoc due to multiple deletions of the same objects and other
potential memory corruptions.

Revision 15763 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 11 09:05:02 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 21774 byte(s)
Diff to previous 15742
correct a number of incorrect and/or ambiguous license statements.

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/TGColorSelect.cxx
File length: 22165 byte(s)
Diff to previous 15672
From Eddy:
Fix many typos in comments

Revision 15672 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 16:10:46 2006 UTC (8 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 22145 byte(s)
Diff to previous 15191
from Axel:
Change the signature of SavePrimitive from

  void SavePrimitive(ofstream &out, Option_t *option);
to
  void SavePrimitive(ostream &out, Option_t *option = "");

With this change one can do, eg
   myhist.SavePrimitive(std::cout);

WARNING: do rm -f tree/src/*.o

Revision 15191 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 28 20:08:00 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 22137 byte(s)
Diff to previous 15173
From valeriy Onuchine:

- TImage, TASImage
 o Change return type of Vectorize method  from "void" to "Double_t*".
 o Implement FromWindow method under X11. This method allows to
   create "snapshot image" from any ROOT window or frame.

- config/Makefile.depend
 Add dependency of libGuiBld lib on libGraf.
 GuiBuilder uses internally TImage/TASImage class.

- GX11Gui.cxx

 X11 error handler was slightly modified.
 Many X11 errors lead to freezing X11 server and
 did not allow debugging.
 To prevent freezing, a "forced seg.violation" was added
 to the error handler.

 The usage of the new "feature" is the following:
 0. run "gdb root.exe"
 1. set "gDebug = (int)gVirtualX" - that activates the new error handling.
 2. run application which has X11 errors.

On X11 error the application was stopped by the "forced seg.violation".

 3. "gdb>bt" - backtrace the problem.



!!! A big list of changes in libGui initiated by gui builder development !!!

- TGButton.h, TGButton.cxx
  TGButton class:
   o SetDown methods removed from context menu.
   o SetEnabled method of context menu changed to TOGGLE.
     Setting fWidgetFlags was added.

- TGTextButton class
   o GetNormGC(), GetFontStruct() methods are introduced.
   o SetFont removed from context menu.
   o ChangeText(const char *title) was introduced and added to context menu.
   o fixed an error in SetFont method which set font globally instead of
     locally.
   o SavePrimitive - save text justification

- TGPictureButton
   o added getter method GetDisabledPicture()

- TGCanvas
   o added to GuiBuilder widgets palette.

- TGColorDialog
   o new methods:
     - TGColorPalette *GetPalette(),
     - TGColorPalette *GetCustomPalette(),
     - void SetCurrentColor(Pixel_t col)
   o new signal:
      - void ColorSelected(Pixel_t)
   o new parameter added to contructor "Bool_t wait".
     If "wait" is kTRUE, "gClient->WaitForUnmap" is called internally
     (normal/old usage). If "wait" is kFALSE - "gClient->WaitForUnmap"
     should be called by user.
   o few "usefull" colors added to "custom" palette.

- TGColorSelect
   o added to GuiBuilder widgets palette.

- TGComboBox
   o new methods:
     - SortByName - allows to sort combobox entries by names.
     - SetEnabled, IsEnabled.

- TGFontDialog was rewritten.
   o Previous version worked under win32 only,
      now it works on X11 also.
      It allows to select any font available on the system.

  o new parameter added to contructor "Bool_t wait".
     If "wait" is kTRUE, "gClient->WaitForUnmap" is called internally
     (normal/old usage). If "wait" is kFALSE - "gClient->WaitForUnmap"
     should be called by user.

  o new methods:
      void SetFont(TGFont *font);
      void SetColor(Pixel_t color);
      void SetAlign(Int_t align);
      void EnableAlign(Bool_t on = kTRUE);
      void UpdateStyleSize(const char *family);

 o new signals:
   - FontSelected(char *font)
   - AlignSelected(Int_t a)
   - ColorSelected(Pixel_t c)

- TGFrame
   o unused static member fgContextMenu removed.

- TGCompositeFrame
   o TGCompositeFrame::SetEditDisabled modified. It is used for setting
     fEditDisableXX attribute during gui buildind.

   o ChangeSubframesBackground helper method was introduced.

- TGGroupFrame
   o SetTextFont, SetTextColor methods were corrected for
     "local" changing of the font.

- TGWindow
   o kEditDisableKeyEnable added to EEditMode enum.
     If this flag is set - window can handle keyboard events during gui
     building.

- TGLabel
   o new methods:
    - GetNormGC, GetFontStruct
   o fixed bugs in setting label's "local" text font.
   o SavePrimitive - saving text justification added.

- TGListBox
  o new methods:
     - SortByName - allow to sort listbox entries by names.
     - new auxilary/internal class TGLBFrameElement created.
        It's used for ascending/descending sort of list box entries.

  o reimplemented methods:
   ChangeBackground, Layout, GetDefaultWidth

  o disable changing layout manager in SetLayoutManager method.
    Layout manager is not used for layout of list box.

- TGIcon
   o SetImagePath method was corrected.

- TGScrollBarElement
   o new methods:
     - SetEnabled, IsEnabled. These methods are used in enabling/disabling
       TGNumberEntry objects.

- TGScrollBar
   o new getter methods:
      - GetHead, GetTail, GetSlider
   o new signals:
      - PositionChanged, RangeChanged, PageSizeChanged
   o ChangeBackground was reimplemented.

- TGShutter
   o new methods:
      - AddPage, RemovePage, RenamePage
   o new signal Selected.
   o disable changing layout manager in SetLayoutManager method.
     Layout manager is not used for layout.

- TGView
   o disable changing layout manager by SetLayoutManager method.
     Layout manager is not used for layout.
   o ChangeBackground(Pixel_t col) method added which changes background
     color only of the canvas frame.

- TGNumberEntry
   o more options added to context menu.

- TGProgressBar
   o new getter/setter methods:
    - GetBarColor, GetNormGC, GetFontStruct, SetForegroundColor.

- TGTab
   o disable SetEditDisabled method to avoid changing "edit disable
     attribute".

- TGTextEdit, TGTextView, TGView
   o fixed bug - "character replace" mode didn't work
   o setting insert mode added to context menu.
   o setting "read only" mode added to context menu.
   o new method which enable/disable "popup menu for edit actions" added.
   o few corrections to SavePrimitive method.

- TGTextEntry
   o guibuilder specific code was removed.

-  TGuiBuilder.h, TGuiBldAction
   o possibility to set picture for context menu entry added.

- treeviewer/inc/TSessionViewer.h
  o forward declaration of TContextMenu class added.

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/TGColorSelect.cxx
File length: 22161 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/TGColorSelect.cxx
File length: 21931 byte(s)
Diff to previous 14987
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 14987 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 10 15:25:49 2006 UTC (8 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19518 byte(s)
Diff to previous 14816
From Bertrand:
Correct usage of grayscale/color in TG16ColorSelector widget.

Revision 14816 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 14:07:47 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19468 byte(s)
Diff to previous 14666
From Valeriy Onuchin:
 - changed signature of Enable() method to Enable(Bool_t on = kTRUE)
 - added dummy methods:
   void SetDown(Bool_t on = kTRUE, Bool_t emit = kFALSE) { TGButton::SetDown(on, emit); }
   void Rename(const char *title)  { TGTextButton::SetTitle(title); }
   void SetEnabled(Bool_t e = kTRUE) {TGButton::SetEnabled(e); }

Revision 14666 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 12 15:01:48 2006 UTC (8 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 18921 byte(s)
Diff to previous 14580
Remove SetColorNoSignal() and add a Bool_t emit = kTRUE to SetColor().

Revision 14580 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 7 08:43:59 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 19087 byte(s)
Diff to previous 14549
From Matevz Tadel:
Introduce a new set of classes dedicated to event visualisation.
TGLObject:	base-class for direct GL renderers

TAttBBox:	interface, helps maintain/calculate bounding-box
		needed for TGLObject (see TPointSet3D and TPointSet3DGL)
TPointSet3D:	a demo class for direct GL rendering
TPointSet3DGL:

Mods in existing classes to interface the new classes

Revision 14549 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 5 09:37:32 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 18902 byte(s)
Diff to previous 14465
- generate unique color parameter names in SavePrimitive method

Revision 14465 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 29 15:37:45 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 18776 byte(s)
Diff to previous 13292
From Bertrand:
- make TG16ColorSelector using standard Root colors instead of custom ones

Revision 13292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 21 00:25:38 2005 UTC (9 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 18843 byte(s)
Diff to previous 10336
From Bertrand:
- added comments in TGMdi classes.
- added comments in TGColorSelect and TGColorDialog classes.
- added comments in TGFontDialog classes.
- changes in all these classes to make rulechecker happy.
- added a new member / option in TGListTree allowing to disable
  item opening on doubleclick.

Revision 10336 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 18 12:32:12 2004 UTC (10 years, 3 months ago) by brun
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 17612 byte(s)
Diff to previous 9270
Implement new function TTree::ReadFile
Long64_t TTree::ReadFile(const char *filename, const char *branchDescriptor)
{
   // Create or simply read branches from filename
   // if branchDescriptor = "" (default), it is assumed that the Tree descriptor
   //    is given in the first line of the file with a syntax like
   //     A/D:Table[2]/F:Ntracks/I:astring/s
   //  otherwise branchDescriptor must be specified with the above syntax.
   //
   // A TBranch object is created for each variable in the expression.
   // The total number of rows read from the file is returned.

TNtuple::ReadFile has been modified to be consistent with TTree::ReadFile.
New function TLeaf::ReadValue implemented (and in all TLeaf derived classes).

Revision 9270 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 21 12:42:07 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 17697 byte(s)
Diff to previous 9174
From Ilka:
gui/inc/TGColorDialog.h
- correction of signature of ColorSelected() signal

gui/src/TGColorDialog.cxx
- set the ROOT colors from index 10 to 58 as pallette colors

gui/src/TGColorSelect.cxx
- setup the first 10 ROOT colors in TG16CColorSelector + complete the
  rest with other ROOT colors (proposed by Bertrand).

Revision 9174 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 11 14:39:18 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 17816 byte(s)
Diff to previous 8228
From Ilka:
correct signature of ColorSelected() signal method so a slot can be
correctly connected to it.

Revision 8228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 16:17:33 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 17721 byte(s)
Diff to previous 7520
From Valeriy:
use gClient->GetDefaultRoot() instead of GetRoot(). This allows the widgets
to be embedded but ensures popups to still be a child of the real X11 root
window.

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/TGColorSelect.cxx
File length: 17700 byte(s)
Diff to previous 6663
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/TGColorSelect.cxx
File length: 16836 byte(s)
Diff to previous 6001
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 6001 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 28 18:31:12 2003 UTC (11 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 16787 byte(s)
Diff to previous 5717
don't set user defined colors after widget has already been
deleted, now set just before window is deleted. Reportded by Otto Schaile.

Revision 5717 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 2 18:50:12 2002 UTC (12 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 16750 byte(s)
Diff to previous 5291
mega patch to remove almost all compiler warnings on MacOS X where the
compiler is by default in pedantic mode (LHCb also like to use this option).
The following issues have been fixed:
- removal of unused arguments
- comparison between signed and unsigned integers
- not calling of base class copy ctor in copy ctor's
To be done, the TGeo classes where we get still many hundred warnings of
the above nature. List forwarded to Andrei.

Revision 5291 - (view) (download) (as text) (annotate) - [select for diffs]
Added Sat Sep 14 00:35:05 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGColorSelect.cxx
File length: 16691 byte(s)
new TGColorSelect, TGColorDialog, TGColorPalette and TGColorPick widgets.
Ported by Bertrand from xclass library to ROOT for win32gdk. Further fine-tuned
by me. See guitest(.cxx|.C) for example usage.

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