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

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

Parent Directory Parent Directory


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

Revision 44185 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 9 09:00:16 2012 UTC (2 years, 8 months ago) by tpochep
File length: 25495 byte(s)
Diff to previous 39352
1. TGCanvas - draws anything only if exposed region is not empty and MAKES it empty,
   thus constant (by nature) function modifies object's state. This makes it impossible
   to paint the same widget twice by calling DoRedraw, the second time exposed region is empty.
   This does not work with cocoa.
2. CreateFontCollection for a specific name always finds only 1 font, not all variations of the same font,
   instead I have to request the full list every time and filter it myself.
3. TGFontDialog: connects signal/slot only for gVirtualX inherited from TGX11 (or TGX11 itself),
   must also work for TGCocoa. all_sizes and all_styles variables also were set incorrectly for TGCocoa
   (initialization uses check InheritsFrom("TGX11")).

Revision 39352 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 10:34:40 2011 UTC (3 years, 8 months ago) by bellenot
File length: 25340 byte(s)
Diff to previous 34656
Improve layout of several common dialogs when changing the font sizes

Revision 34656 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 29 14:08:32 2010 UTC (4 years, 5 months ago) by bellenot
File length: 25089 byte(s)
Diff to previous 33877
Fix a couple of coverity reports

Revision 33877 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 14 13:07:56 2010 UTC (4 years, 7 months ago) by bellenot
File length: 25064 byte(s)
Diff to previous 27475
Add protection against possible negative array index (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: 25029 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: 24967 byte(s)
Copied from: trunk/gui/src/TGFontDialog.cxx revision 23114
Diff to previous 22419
moved to directory "gui" the following directories:

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

Revision 22419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 3 00:25:01 2008 UTC (6 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 24967 byte(s)
Diff to previous 21398
From Andrew Savchenko:
ROOT can not be compiled with gcc-4.3.
Some ROOT source files doesn't contain required #include directives,
for example, they use strlen(), but #include <string.h> is missed or
malloc() is used and #include <stdlib.h> is missed. 

Earlier versions of gcc allowed some headers to be included implicitly,
but issued a warning (-Wimplicit-function-declaration). Newer one,
gcc-4.3 denies such silly behaviour: all required headers must be explicitly
included. 

Attached patch fixes this. Also it fixes another issue, which disallows
ROOT to compile under gcc-4.3: C functions don't belong to namespace std,
so expressions like std::memcpy() are no longer valid and plain memcpy()
should be used instead.

Revision 21398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 17 09:16:14 2007 UTC (7 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 24947 byte(s)
Diff to previous 20882
From Bertrand:
- Added missing class header docs.

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/TGFontDialog.cxx
File length: 24666 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/TGFontDialog.cxx
File length: 24666 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/TGFontDialog.cxx
File length: 24720 byte(s)
Diff to previous 16228
remove :$ from tag line

Revision 16228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 11 07:40:14 2006 UTC (8 years, 4 months ago) by antcheva
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 24730 byte(s)
Diff to previous 15763
- cleanup

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/TGFontDialog.cxx
File length: 24854 byte(s)
Diff to previous 15638
correct a number of incorrect and/or ambiguous license statements.

Revision 15638 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 30 14:08:36 2006 UTC (8 years, 6 months ago) by antcheva
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 25261 byte(s)
Diff to previous 15278
from Bertrand:
- a patch to avoid empty font family names in TGFontDialog

Revision 15278 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 1 09:08:03 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 25232 byte(s)
Diff to previous 15209
From Valeriy Onuchin:
- Do not show "empty font style" for some fonts under X11.

Revision 15209 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 12:04:45 2006 UTC (8 years, 7 months ago) by brun
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 25092 byte(s)
Diff to previous 15191
Fix coding conventions violations

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/TGFontDialog.cxx
File length: 25088 byte(s)
Diff to previous 14125
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 14125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 28 16:48:17 2006 UTC (8 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 19270 byte(s)
Diff to previous 13292
From Christian Holm:
allow for a second set of free TTF fonts in case the MSFT fonts we
distribute are not available (might be the case on Debian systems where
the MSFT fonts cannot be freely distributed due to license issues).

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/TGFontDialog.cxx
File length: 18935 byte(s)
Diff to previous 13278
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 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/TGFontDialog.cxx
File length: 18903 byte(s)
Diff to previous 12659
From Ilka:
code style fixes (comments, descriptions and identation).

Revision 12659 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 14:26:43 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18801 byte(s)
Diff to previous 12644
From Ilka:
more GUI coding violation fixes.

Revision 12644 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 07:33:37 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18801 byte(s)
Diff to previous 12525
From Ilka:
fixing of coding style violations.

Revision 12525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 23 17:00:41 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18788 byte(s)
Diff to previous 10393
From Bertrand:
Added several protections in TGXXX class constructors,
used when browsing ROOT classes.

Revision 10393 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 15:21:19 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18704 byte(s)
Diff to previous 10034
From Valeriy:
- now TGViewPort Cleanup method deletes container frame.
- protect TGListBox against double deletion during hierarchical cleaning.
- minor mod in TGListTree. ClassImpQ is obsolete.
- protect TGLVEntry against double deletion during hierarchical cleaning.
- protect TRootEmbededCanvas against double deletion during hierarchical
  cleaning.
- protect TRootCanavs against double deletion during hierarchical cleaning.
- TGFontDialog. SetCleanup(kDeepCleanup) aka hierarchical cleaning is used
  in destructor.
  No segv. occured. That means all frames inside TGFontDialog are
  "consistent with hierarchical cleaning".
  Now TRootEmbededCanvas deleted without segv. during gui building.
- now TGuiBldQuickHandler is placed centered on parent when map_raised.
- TGuiBldDragManager. Double click on editable frame invokes resize/compact
  action of the main-editable frame.

Revision 10034 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 09:22:58 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18689 byte(s)
Diff to previous 10033
properly implement CloseWindow() and document return values in ctor.

Revision 10033 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 14 08:55:03 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18070 byte(s)
Diff to previous 9994
add protection in case default font is not found, use "fixed" in that case.

Revision 9994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 09:10:56 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 17986 byte(s)
Diff to previous 9207
use the new TGTransientFrame::CenterOnParent() method.

Revision 9207 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 14:13:20 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18207 byte(s)
Diff to previous 8646
From Ilka:
was missing ClassImp, which caused the HTML generator not to find the source
file.

Revision 8646 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 22 13:30:31 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18184 byte(s)
Diff to previous 8584
mods to make the TGFontDialog work on Win32.

Revision 8584 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 15 09:16:49 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 17988 byte(s)
Diff to previous 8567
In TGFontDialog::GetFontName remove unused variables width and height

Revision 8567 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Apr 13 09:52:07 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGFontDialog.cxx
File length: 18022 byte(s)
From Bertrand and me:
dialog that allows selection of fonts, style, alignment and color. Works
fine on Unix and compiles also fine on Windows except that TGWin32::ListFonts()
does not yet work correctly.

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