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

Log of /trunk/gui/gui/src/TGSlider.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: 22323 byte(s)
Diff to previous 42622
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 42622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 13:26:38 2012 UTC (3 years ago) by bellenot
File length: 22233 byte(s)
Diff to previous 41222
Fix coverity #36718 (uninitialized pointer field)

Revision 41222 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 13:53:27 2011 UTC (3 years, 3 months ago) by bellenot
File length: 22214 byte(s)
Diff to previous 41208
Better check for pointer validity (avoid possible memory leak - thanks to Timur for pointing this out!)

Revision 41208 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 12:54:17 2011 UTC (3 years, 3 months ago) by bellenot
File length: 22163 byte(s)
Diff to previous 39176
Fix coverity reports (dereference null return value)

Revision 39176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 13 08:26:44 2011 UTC (3 years, 8 months ago) by bellenot
File length: 22132 byte(s)
Diff to previous 35582
Add mouse wheel handling in sliders

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: 20758 byte(s)
Diff to previous 33776
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 33776 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 8 12:16:54 2010 UTC (4 years, 7 months ago) by bellenot
File length: 20500 byte(s)
Diff to previous 31681
Implement the disabled state of the TGSlider widget. Thanks to Matevz and Giulio Eulisse for the suggestion.

Revision 31681 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 15:58:57 2009 UTC (5 years, 1 month ago) by bellenot
File length: 18462 byte(s)
Diff to previous 27642
- More protections (coverity)

Revision 27642 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 27 16:11:02 2009 UTC (5 years, 10 months ago) by bellenot
File length: 18399 byte(s)
Diff to previous 27398
Added HandleConfigureNotify() to handle resizing events.
This fixes the bug #42358: incorrect redraw of slider after window resize

Revision 27398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 10 14:23:53 2009 UTC (5 years, 11 months ago) by bellenot
File length: 17776 byte(s)
Diff to previous 23115
- Make sure the actual value is inside min/max boundaries
  (thanks to Alja for the report)

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: 17612 byte(s)
Copied from: trunk/gui/src/TGSlider.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/TGSlider.cxx
File length: 17612 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/TGSlider.cxx
File length: 17612 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/TGSlider.cxx
File length: 17662 byte(s)
Diff to previous 15849
remove :$ from tag line

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/TGSlider.cxx
File length: 17672 byte(s)
Diff to previous 15820
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 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/TGSlider.cxx
File length: 18501 byte(s)
Diff to previous 15742
From Bertrand:
Automatically change mouse cursor shape when the pointer is over the resizing
regions of double and triple sliders.

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/TGSlider.cxx
File length: 18206 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/TGSlider.cxx
File length: 18201 byte(s)
Diff to previous 15173
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 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/TGSlider.cxx
File length: 18185 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/TGSlider.cxx
File length: 18120 byte(s)
Diff to previous 14824
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 14824 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 25 08:47:30 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGSlider.cxx
File length: 17367 byte(s)
Diff to previous 14810
- coding convention and comment fixes

Revision 14810 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 13:53:49 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGSlider.cxx
File length: 17361 byte(s)
Diff to previous 14698
From Valeriy Onuchin:
- TGSlider - minory changes

Revision 14698 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 13 15:32:35 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGSlider.cxx
File length: 17202 byte(s)
Diff to previous 14398
From Valeriy Onuchin:
- TGWindow
  o kEditDisableBtnEnable - bit intoduced, which says
    "window cannot be edited but can handle mouse button events".
    Typical usage is buttons in complex widgets like
    buttons in scroll bar, tab elements in TGTab etc.

- TGFrame
  o SetBgndColor(const char *hexvalue) method is introduced.
    This method allows to set frame background color as
    hexvalue e.g. "#0c0c0c", or by color name "white", "blue" etc.
    This method was added to guibuilder context menu.
- TGCompositeFrame
  o TGLayoutManager *GetLayoutManager() const.
    void SetLayoutManager(TGLayoutManager *l) made virtual.
    That hepled to fix bugs #15, #16 fronm guibuilder bugs list.
  o SetBgndColor(const char *hexvalue) is  overloaded in order
    to set background color for all subframes.

- TGListBox. Few methods added to context menu.
   o New method  NewEntry(const char *s = "Entry") -
     creates new entry placed next to selected entry.
   o void RemoveEntry(Int_t id = -1) - remove selected
     entry/entries from listbox
   o void SetBgndColor(const char *color) - overloaded to
      set background color for list box entries.
   o void SetMultipleSelections(Bool_t) - toggle on/off
     multiple selection

   o TGListBox widget was added to guibuilder widgte palette.

- TGMenu.
   o new method was introduced: CheckEntryByData(void *user_data)
     It allows to check/uncheck menu entry by specifying
     user data associated with entry.

- TGNumberEntry. Few methods added as submemu of context menu
  of guibuilder. That greatly simplifies paremeter selection.
  o Set fixed height for guibuilding.

- TGScrollBars, TGSliders. Fix height for horizontal bar/slider,
  fix width for vertical bar/slider when it is resized during
  guibuilding.

- TGTextEntry.
   o Several context menu methods are now selected via context
   submenu.
   o Set fixed height for guibuilding.

- TGComboBox. Changes made in order add
  TGComboBox widget to guibuilder.

Revision 14398 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 23 15:56:03 2006 UTC (8 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TGSlider.cxx
File length: 17201 byte(s)
Diff to previous 13278
From Valeriy Onuchin:
Mods in several GUI classes related to the following changes required by
the GUI builder development.

- TGWindow::fEditDisabled  converted fron Bool_t to UInt_t
  Defined new EEditMode bit flags:

   enum  EEditMode {
      kEditEnable        = 0,         // allow edit
      kEditDisable       = BIT(0),    // disable edit
      kEditDisableEvents = BIT(1),    // window events cannot be edited
      kEditDisableGrab   = BIT(2),    // window grab cannot be edited
      kEditDisableLayout = BIT(3),    // window layout cannot be edited
      kEditDisableResize = BIT(4),    // window size cannot be edited
      kEditDisableHeight = BIT(5),    // window height cannot be edited
      kEditDisableWidth  = BIT(6)     // window width cannon be edited
   };

- TGWindow::IsEditDisabled renamed as TGWindow::GetEditDisabled
- TGFrame::SavePrimitiveSubframes made public

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

Revision 10070 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 16 09:44:11 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGSlider.cxx
File length: 17172 byte(s)
Diff to previous 8790
From Valeriy Onuchin:

- grab pointer before emitting signals
to fix a problem reported by Carsten Hof

Revision 8790 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 5 12:19:05 2004 UTC (10 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 17170 byte(s)
Diff to previous 7520
From Ilka:
I have decided to override the TGFrame::Resize methods in
TGVSlider/TGHSlider classes and to hide from the users the
additional 16 pixels needed by both DoRedraw algorithms.

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/TGSlider.cxx
File length: 17170 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/TGSlider.cxx
File length: 13857 byte(s)
Diff to previous 6585
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 6585 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 8 17:42:43 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 13809 byte(s)
Diff to previous 1330
ungrabpointer before dispatching any messages, this avoids long message
handling routines from locking up X11. Suggestion by Brett Viren.

Revision 1330 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 8 11:45:12 2001 UTC (14 years ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 13809 byte(s)
Diff to previous 813
add protection against division by 0 when resizing. Fix provided by
Andreas Zoglauer.

Revision 813 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 22 19:28:58 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 13745 byte(s)
Diff to previous 685
changed inheritance tree. Move TQObject inheritance from TGWidget to
TGFrame. This allows all frames to emit signals (all widgets were frames,
but not all frames were widgets). Added several missing signals in several
different widgets to get tutorials/guitest.C working.

Revision 685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 08:57:05 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 12283 byte(s)
Diff to previous 613
many change connected with the introduction of the TGGC (graphics context)
class (all backward compatible). Also many of the static default GC's and
fontstructs are now available to the user. This can simplify code in many
places. See change in guitest.cxx.

Revision 613 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 8 16:11:58 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 12251 byte(s)
Diff to previous 599
when dragging make sure that HandleMotion() sees all events.

Revision 599 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 7 00:44:42 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 11605 byte(s)
Diff to previous 3
initialize fDragging in ctor.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGSlider.cxx
File length: 11520 byte(s)
Copied from: branches/rdm/gui/src/TGSlider.cxx revision 2
Diff to previous 2
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue May 16 17:00:58 2000 UTC (14 years, 8 months ago) by rdm
Original Path: branches/rdm/gui/src/TGSlider.cxx
File length: 11520 byte(s)
Initial import of ROOT into CVS

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