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

Log of /trunk/gui/gui/src/TGProgressBar.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: 16510 byte(s)
Diff to previous 35582
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 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: 16420 byte(s)
Diff to previous 33937
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 33937 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 09:05:56 2010 UTC (4 years, 7 months ago) by bellenot
File length: 16160 byte(s)
Diff to previous 23115
Replace fixed size char array by a TString, to avoid possible buffer overflow (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: 16128 byte(s)
Copied from: trunk/gui/src/TGProgressBar.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/TGProgressBar.cxx
File length: 16128 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/TGProgressBar.cxx
File length: 16128 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/TGProgressBar.cxx
File length: 16184 byte(s)
Diff to previous 15820
remove :$ from tag line

Revision 15820 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 19 12:58:52 2006 UTC (8 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 16194 byte(s)
Diff to previous 15672
From Bertrand:
Automatically change mouse cursor shape when the pointer is over the resizing
regions of double and triple sliders.

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/TGProgressBar.cxx
File length: 16167 byte(s)
Diff to previous 15419
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 15419 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 14 10:22:37 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 16139 byte(s)
Diff to previous 15191
From Valeriy Onuchin:
- move the GUI builder specific code from TGProgressBar to TRootGuiBuilder

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/TGProgressBar.cxx
File length: 16437 byte(s)
Diff to previous 15176
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 15176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 26 09:27:12 2006 UTC (8 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 16511 byte(s)
Diff to previous 14808
Fix coding conventions violations

Revision 14808 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 13:52:12 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 16498 byte(s)
Diff to previous 13278
From Valeriy Onuchin:
- TGProgerssBar
    o some context menu methods used in GuiBuilding
      were changed to submenus and menu toggled entries.
    o TGVerticalProgerssBar is added to GuiBuilder widget palette.

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

Revision 11491 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 5 13:12:15 2005 UTC (9 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 14268 byte(s)
Diff to previous 8212
From Valeri Fine:
explicitly set the fill style to kFillSolid.

Revision 8212 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Feb 16 12:45:42 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 14225 byte(s)
Diff to previous 7576
Initialize members fDrawBar and fBarWidth in the constructors.
fDrawBar is not initialized when DoRedraw is called.

Revision 7576 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 12 19:34:59 2003 UTC (11 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 14133 byte(s)
Diff to previous 7520
From Ilka:
- the update of TGStatusbar::SavePrimitive according to
  the horizontal frame inheritance of its parts
- saving the progress bar attributes
- adding a static variable in TGFrame::fgUserColor to
  keep/check the last user color changes (to avoid
  repeating lines in the generated code)
- comment typos fixing in TGTableLayout.cxx

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/TGProgressBar.cxx
File length: 12912 byte(s)
Diff to previous 7447
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 7447 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 19 14:15:08 2003 UTC (11 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 10529 byte(s)
Diff to previous 7074
allow calling of SetRange() while progress bar is already in progress.

Revision 7074 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 11 12:51:31 2003 UTC (11 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 10445 byte(s)
Diff to previous 6663
added some Getters needed by Ilka.

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/TGProgressBar.cxx
File length: 10375 byte(s)
Diff to previous 3146
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 3146 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 1 11:39:41 2001 UTC (13 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 9992 byte(s)
Diff to previous 749
only redraw progressbar when pos has actually been changed.

Revision 749 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 11 16:13:23 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 9920 byte(s)
Diff to previous 738
correction to look of progressbar (more Window compatible).

Revision 738 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 10 10:20:10 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 8105 byte(s)
Diff to previous 734
finished implementation of TGProgessBar's. This was main missing widget in
GUI classes.

Revision 734 - (view) (download) (as text) (annotate) - [select for diffs]
Added Mon Oct 9 19:13:30 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGProgressBar.cxx
File length: 5451 byte(s)
new progress bar widget. Implements a horizontal and vertical progress bar.
Use a progress bar to show the progress of a long task.

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