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

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

Parent Directory Parent Directory


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

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: 36835 byte(s)
Diff to previous 34286
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 34286 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 20:38:57 2010 UTC (4 years, 6 months ago) by rdm
File length: 36670 byte(s)
Diff to previous 34258
fix format errors related to TString::Form(), TString::Format(), Form()
and Printf().

Revision 34258 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 1 06:51:28 2010 UTC (4 years, 6 months ago) by brun
File length: 36672 byte(s)
Diff to previous 34223
Fix formats

Revision 34223 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 30 11:01:48 2010 UTC (4 years, 6 months ago) by bellenot
File length: 36640 byte(s)
Diff to previous 33919
Fix format in Warning and Error statements

Revision 33919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 15:01:19 2010 UTC (4 years, 7 months ago) by bellenot
File length: 36637 byte(s)
Diff to previous 32545
Replace fixed size char arrays by TStrings, to avoid possible buffer overflow (coverity)

Revision 32545 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 11 09:28:45 2010 UTC (4 years, 10 months ago) by bellenot
File length: 36431 byte(s)
Diff to previous 31758
- Fix the following clang diagnostics:
  warning: switch condition is a bool
  note: jump bypasses variable initialization
  error: illegal switch case into protected

Revision 31758 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 10 09:54:59 2009 UTC (5 years, 1 month ago) by bellenot
File length: 36545 byte(s)
Diff to previous 31669
- Add missing member initialization (coverity)

Revision 31669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 15:15:47 2009 UTC (5 years, 1 month ago) by bellenot
File length: 36528 byte(s)
Diff to previous 23115
- Add missing initializations (coverity)
- Fix potential memory leaks (coverity)
- Add protections against possible NULL pointers (coverity)

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

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

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/TGGC.cxx
File length: 36511 byte(s)
Diff to previous 19826
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 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/TGGC.cxx
File length: 36511 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/TGGC.cxx
File length: 36562 byte(s)
Diff to previous 15672
remove :$ from tag line

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/TGGC.cxx
File length: 36572 byte(s)
Diff to previous 15103
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 15103 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 18 16:32:02 2006 UTC (8 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGGC.cxx
File length: 36559 byte(s)
Diff to previous 13278
- move the unique name generation for SavePrimitive methods
  in TGWindow::GetName method and follow up changes in
  those methods in several classes (related to the GUI builder
  development by Valeriy Onuchine)

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/TGGC.cxx
File length: 36560 byte(s)
Diff to previous 9921
From Ilka:
code style fixes (comments, descriptions and identation).

Revision 9921 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 14:12:51 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGGC.cxx
File length: 36560 byte(s)
Diff to previous 9915
From valeriy Onuchin:
- final fix for TGGCPool::FreeGC(const TGGC *gct).
    o The statement in ged/src/TGedPatternSelect.cxx
      "delete fDrawGC;" replaced by "fClient->FreeGC(fDrawGC);"
      The rule is :
         any TGGC allocated via TGClient::GetGC
         must deallocated via TGClient::FreeGC (not by delete)
  o correction in TGLineLBEntry::Update method

Revision 9915 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 10:26:47 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGGC.cxx
File length: 36560 byte(s)
Diff to previous 9910
From Valeriy Onuchin:
temporary rollback of TGGCPool::FreeGC(const TGGC *gct)

Revision 9910 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 08:19:51 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGGC.cxx
File length: 36558 byte(s)
Diff to previous 8548
From valeriy Onuchin;
- fix typo bug in TGGCPool::FreeGC(const TGGC *gct) method
- add new  method TGGC *TGGCPool::GetGC(GContext_t gct)

Revision 8548 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 6 21:24:06 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGGC.cxx
File length: 36282 byte(s)
Diff to previous 7520
some code layout changes.

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/TGGC.cxx
File length: 36281 byte(s)
Diff to previous 6665
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 6665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 28 14:03:30 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGGC.cxx
File length: 23461 byte(s)
Diff to previous 6663
explicitely initialize TRefCnt in copy ctor.

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/TGGC.cxx
File length: 23450 byte(s)
Diff to previous 2439
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 2439 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 22 16:10:23 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGGC.cxx
File length: 19605 byte(s)
Diff to previous 714
make code more const char* correct (i.e. "strings" must be const char*) and
declare several functions extern "C". Mods by Dave Morrison.

Revision 714 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 4 23:40:08 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGGC.cxx
File length: 19599 byte(s)
Diff to previous 705
remove some compiler warnings and replace gVirtualX->SelectInput() calls
by TGFrame::AddInput().

Revision 705 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 2 15:46:49 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGGC.cxx
File length: 19837 byte(s)
Diff to previous 683
make operator()() outline since the inline version causes a compiler
crash with option -O on gcc 2.96 20000731 (Red Hat Linux 7.0).

Revision 683 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Sep 29 08:52:52 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGGC.cxx
File length: 19577 byte(s)
convenient class to handle setting, copying and sharing of graphics contexts.

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