[root] / trunk / gui / gui / inc / TGFont.h Repository:
ViewVC logotype

Log of /trunk/gui/gui/inc/TGFont.h

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: 10480 byte(s)
Diff to previous 42684
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 42684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 17 16:59:45 2012 UTC (3 years ago) by bellenot
File length: 10475 byte(s)
Diff to previous 42633
Fix coverity #36402: Unsafe assignment operator

Revision 42633 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 14:10:57 2012 UTC (3 years ago) by bellenot
File length: 10457 byte(s)
Diff to previous 35912
ignore harmless coverity report (unsafe assignment operator)

Revision 35912 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 30 13:43:06 2010 UTC (4 years, 3 months ago) by couet
File length: 10425 byte(s)
Diff to previous 23115
- fix coverity report #11106

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: 10336 byte(s)
Copied from: trunk/gui/inc/TGFont.h revision 23114
Diff to previous 21809
moved to directory "gui" the following directories:

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

Revision 21809 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 22 16:11:46 2008 UTC (7 years ago) by brun
Original Path: trunk/gui/inc/TGFont.h
File length: 10336 byte(s)
Diff to previous 20882
From Matevz:
Fix effc++ warnings in gui/ and xmlparser/.

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/inc/TGFont.h
File length: 9767 byte(s)
Diff to previous 20765
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 20765 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 12 13:44:33 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/gui/inc/TGFont.h
File length: 9767 byte(s)
Diff to previous 19826
From Ilka:
remove warnings converning conversion from const char* to char*.

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/inc/TGFont.h
File length: 9767 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/inc/TGFont.h
File length: 9813 byte(s)
Diff to previous 19699
remove :$ from tag line

Revision 19699 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 27 14:47:42 2007 UTC (7 years, 4 months ago) by antcheva
Original Path: trunk/gui/inc/TGFont.h
File length: 9823 byte(s)
Diff to previous 19263
From Valeriy Onuchin:
Added comment. Cosmetics.

Revision 19263 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 5 13:29:55 2007 UTC (7 years, 6 months ago) by rdm
Original Path: trunk/gui/inc/TGFont.h
File length: 9959 byte(s)
Diff to previous 19253
From Ilka:
Fixed warnings reported at URL: <http://savannah.cern.ch/bugs/?27651>.

Revision 19253 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 4 09:05:40 2007 UTC (7 years, 6 months ago) by brun
Original Path: trunk/gui/inc/TGFont.h
File length: 9619 byte(s)
Diff to previous 18662
From Federico:
Changes required to compile with the gcc option -weffc++

Revision 18662 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 4 15:47:14 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/gui/inc/TGFont.h
File length: 9488 byte(s)
Diff to previous 18657
Remove spurious comma in the last item of the enum statement

Revision 18657 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 4 15:18:08 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/inc/TGFont.h
File length: 9485 byte(s)
Diff to previous 15672
From Valeriy Onuchin:
Changes in font handling connected with html widget development and allows to find  the best matching font specified by family, point size, weight, slant. They include:

- new structure describing font  attributes
struct FontAttributes_t {

   const char *fFamily; // Font family. The most important field.
   Int_t fPointsize;    // Pointsize of font, 0 for default size,
                        // or negative number meaning pixel size.
   Int_t fWeight;       // Weight flag
   Int_t fSlant;        // Slant flag
   Int_t fUnderline;    // Non-zero for underline font.
   Int_t fOverstrike;   // Non-zero for overstrike font.
};

- new class TGTextLayout is used to keep track of  string
measurement information.

- new TGFont methods (see descriptions in the source):
Int_t  TextWidth(const char *string, Int_t numChars = -1) const;
Int_t  XTextWidth(const char *string, Int_t numChars = -1) const;
Int_t  TextHeight() const { return fFM.fLinespace; }
void   UnderlineChars(Drawable_t dst, GContext_t gc,
                      const char *string, Int_t x, Int_t y,
                      Int_t firstChar, Int_t lastChar) const;
TGTextLayout *ComputeTextLayout(const char *string, Int_t numChars,
                                Int_t wrapLength, Int_t justify,
                                Int_t flags, UInt_t *width,
                                UInt_t *height) const;
Int_t  MeasureChars(const char *source, Int_t numChars, Int_t maxLength,
                    Int_t flags, Int_t *length) const;
void   DrawCharsExp(Drawable_t dst, GContext_t gc, const char *source,
                    Int_t numChars, Int_t x, Int_t y) const;
void   DrawChars(Drawable_t dst, GContext_t gc, const char *source,
                 Int_t numChars, Int_t x, Int_t y) const;

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/inc/TGFont.h
File length: 3534 byte(s)
Diff to previous 15134
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 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/inc/TGFont.h
File length: 3529 byte(s)
Diff to previous 15047
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 15047 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 15 11:01:14 2006 UTC (8 years, 8 months ago) by rdm
Original Path: trunk/gui/inc/TGFont.h
File length: 3441 byte(s)
Diff to previous 15040
coding conventions (put methods after data members, after Fed's changes).

Revision 15040 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun May 14 10:23:27 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/gui/inc/TGFont.h
File length: 3380 byte(s)
Diff to previous 9932
From Federico:
More headers changed to support the gcc option effc++

Revision 9932 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 7 08:13:56 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/inc/TGFont.h
File length: 3307 byte(s)
Diff to previous 8546
From Valeriy Onuchin:
- new  method TGFont *TGFontPool::GetFont(FontStruct_t fs)  added

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/inc/TGFont.h
File length: 3267 byte(s)
Diff to previous 7520
added extra argument to GetFont() and GetFontByName() to not load the
"fixed" font by default if the requested font cannot be loaded.

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/inc/TGFont.h
File length: 3238 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]
Added Wed May 28 11:55:32 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/inc/TGFont.h
File length: 3133 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.

  Diffs between and
  Type of Diff should be a

Sort log by:

Subversion Admin
ViewVC Help
Powered by ViewVC 1.0.9