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

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

Parent Directory Parent Directory


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

Revision 45252 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 27 10:36:51 2012 UTC (2 years, 5 months ago) by tpochep
File length: 31423 byte(s)
Diff to previous 45132
Modification for different popups: with cocoa I can not guarantee the stack order for borderless popup window
(it's "main" window can in some cases become main and key window and overlay popup).
With transient hint (which makes a popup window into a children of some other window) the problem is fixed,
now GUI does not fall to pieces at any unexpected user action.

Revision 45132 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 18 15:21:10 2012 UTC (2 years, 6 months ago) by tpochep
File length: 31325 byte(s)
Diff to previous 44507
Fix for a combobox. The problem is quite subtle and tough - with Cocoa I have to
process "paint events" immediately, but ROOT also can draw outside of paint event.
And with combobox there are 2 "rendering passes", one is with incorrect sizes, the second one 
is with correct sizes. With X11/Win32 these passes are sequenced - and the second
one is initiated by expose event. With Cocoa the second pass actually happens before the 
first one. This, plus some implementation details and different event order results
in quite ugly visual artefact - the button in the right part of combobox is 
not correctly repainted.

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: 30991 byte(s)
Diff to previous 43556
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 43556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 29 14:14:16 2012 UTC (2 years, 9 months ago) by bellenot
File length: 30871 byte(s)
Diff to previous 42641
Fix a weird behavior in combo boxes: When the mouse button was pressed on the scrollbar of the combobox popup, and then released outside, the "dragging" flag was not released, and the scrollbar element was following the mouse move events (as if it was grabbed). Thanks Timur for pointing out this oddity.

Revision 42641 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jan 16 09:06:00 2012 UTC (3 years ago) by bellenot
File length: 30686 byte(s)
Diff to previous 42610
Try to silent coverity reports about dereference null return (stat)

Revision 42610 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 13:23:56 2012 UTC (3 years ago) by bellenot
File length: 30581 byte(s)
Diff to previous 41891
Fix several coverity reports(dereference null return)

Revision 41891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 10 22:46:31 2011 UTC (3 years, 2 months ago) by pcanal
File length: 30476 byte(s)
Diff to previous 39338
Remove all assigned but unused variable discovered by g++ 4.6.1 (including one completely nop function)

Revision 39338 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 23 11:50:22 2011 UTC (3 years, 8 months ago) by bellenot
File length: 30465 byte(s)
Diff to previous 36649
Implement keyboard navigation in combo boxes.

Revision 36649 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 13 06:10:53 2010 UTC (4 years, 2 months ago) by brun
File length: 27873 byte(s)
Diff to previous 35582
From Mattias Ellert:
If the TGFontTypeComboBox constructor detects that the requested X11 font is not installed and falls back to TGTextLBEntry::GetDefaultFontStruct(), then the destructor must not call gVirtualX->DeleteFont() on this font. 
The current version lacks protection for this which leads crashes when the default font struct is used after it has been wrongfully deleted by the TGFontTypeComboBox destructor. The backtrace generated can piont anywhere where the default font struct is used, but there is also an error message that says: 
Root > Error in <RootX11ErrorHandler>: BadFont (invalid Font parameter) (XID: 71303382, XREQ: 46) 
https://savannah.cern.ch/bugs/?75281

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: 27810 byte(s)
Diff to previous 34814
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 34814 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 16 08:59:15 2010 UTC (4 years, 5 months ago) by bellenot
File length: 27411 byte(s)
Diff to previous 28896
Solve a problem reported on the forum: http://root.cern.ch/phpBB3//viewtopic.php?f=3&t=11010

Revision 28896 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 11 09:31:36 2009 UTC (5 years, 7 months ago) by bellenot
File length: 26733 byte(s)
Diff to previous 28893
Remove trailing spaces.

Revision 28893 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 11 09:19:07 2009 UTC (5 years, 7 months ago) by bellenot
File length: 26755 byte(s)
Diff to previous 27475
- Implement modification in TGListBox::FindEntry() as proposed there:
  https://savannah.cern.ch/bugs/index.php?51655
- Simplify TGComboBox::FindEntry() according to this change

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: 26904 byte(s)
Diff to previous 26622
Replace Form() by TString::Format()

Revision 26622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 3 11:41:23 2008 UTC (6 years, 1 month ago) by bellenot
File length: 26850 byte(s)
Diff to previous 26084
- Remove pointer motion event mask to avoid mouse 
  move events between the mouse click event and the 
  window unmapping (Fixes bug #32579)
  https://savannah.cern.ch/bugs/?32579

Revision 26084 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 5 14:48:33 2008 UTC (6 years, 2 months ago) by bellenot
File length: 26709 byte(s)
Diff to previous 23115
- Fix problem of TGComboBox::FindEntry(const char *s)
  not finding the currently selected entry

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: 26322 byte(s)
Copied from: trunk/gui/src/TGComboBox.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/TGComboBox.cxx
File length: 26322 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/TGComboBox.cxx
File length: 26322 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/TGComboBox.cxx
File length: 26379 byte(s)
Diff to previous 19700
remove :$ from tag line

Revision 19700 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 27 14:48:37 2007 UTC (7 years, 4 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 26389 byte(s)
Diff to previous 17281
From Valeriy Onuchin:
TGComboBox::Layout() - resize list box for a few number of entries.

Revision 17281 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 10 14:55:08 2007 UTC (8 years ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 26072 byte(s)
Diff to previous 16005
- Removed empty statement in TGFontTypeComboBox ctor

Revision 16005 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 15 10:06:19 2006 UTC (8 years, 5 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 26065 byte(s)
Diff to previous 15879
From Alja and Matevz:
- ungrab pointer in destructor ONLY if pop-up window is mapped.
Unconditional grab-pointer causes side-effects if the widget is
deleted in a response to click-on-canvas event.

Revision 15879 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 1 10:54:37 2006 UTC (8 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 26038 byte(s)
Diff to previous 15721
From David Gonzalez Maline and Bertrand:
- Implemented resizable TGListView headers.
- Implemented files sorting by clicking header buttons in TGFileDialog
  and TRootBrowser.

Revision 15721 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 09:39:18 2006 UTC (8 years, 6 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 26035 byte(s)
Diff to previous 15672
- do not emit signals when selecting the first entry in ctors of TGFontTypeComboBox, TGLineStyleComboBox and TGLineWidthComboBox

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/TGComboBox.cxx
File length: 26015 byte(s)
Diff to previous 15280
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 15280 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jun 1 09:13:17 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 25991 byte(s)
Diff to previous 15232
From Valeriy Onuchin:
- remove the guibuilder specific code from combobox ctor
- new method RemoveAll for removing all combobox entries

Revision 15232 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 30 11:45:59 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 26006 byte(s)
Diff to previous 15191
- improvements in SetEnabled method: the default frame
background color is used for a disabled combo box; it makes
this state more visible.

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/TGComboBox.cxx
File length: 25527 byte(s)
Diff to previous 14805
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 14805 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 24 13:49:56 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 25242 byte(s)
Diff to previous 14703
From Valeriy Onuchin:
- TGComboBox
   o Erase display window after removing the current entry.

Revision 14703 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 14 17:54:11 2006 UTC (8 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 24759 byte(s)
Diff to previous 14698
From Valeriy Onuchin:
- TGClient.
  Two getter methods GetWaitForEvent(), GetWaitForWindow() introduced.
  New method ResetWaitFor(TGWindow *w) allows to interrupt
  WaitForUnmap, WaitForDestroy event loops.

- TGComboBox
  minory mods

- TRootBrowser, TRootCanavas
  more protection against editting was added

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/TGComboBox.cxx
File length: 24884 byte(s)
Diff to previous 14691
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 14691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 13 13:02:56 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 21984 byte(s)
Diff to previous 14667
From Olivier and me:
- added new TGLineWidthComboBox entry "None" for the case line width = 0 according to the value of the last parameter in the constructor Bool_t none = kFALSE by default (needed by TGraph's exclusion zone GUI)
- follow up changes in TGListBox class

Revision 14667 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 12 15:28:31 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 21744 byte(s)
Diff to previous 14618
Add a second parameter to the Select method Select(Int_t id, Bool_t emit = kTRUE);
signals Selected are emitted if this parameter is kTRUE (default value)

Revision 14618 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 10 13:03:17 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 21625 byte(s)
Diff to previous 13278
-  added SavePrimitive methods to TGLineStyleComboBox and TGLineWidthComboBox

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

Revision 13030 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 27 13:28:51 2005 UTC (9 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 20306 byte(s)
Diff to previous 13023
some streamlining of Valeriy's changes.

Revision 13023 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 27 06:48:59 2005 UTC (9 years, 2 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 20444 byte(s)
Diff to previous 12983
From Valeri:
Protection proposed in TGComboBox that helps the Qt version.

Revision 12983 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 18 20:39:07 2005 UTC (9 years, 3 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 20312 byte(s)
Diff to previous 12656
From Valeri:
This patch  eliminates the SyGV with "Ilka' combo box example.
 http://antcheva.home.cern.ch/antcheva/QtToDo1.html
 Combo Box [6]:
    After opening the combo box list entries,
    closing the canvas on the right upper corner cross
    leaves the popped up list entries open.
    Selecting on entry after causes SegV.
    For example: Load Macro --> Run: ComboBox() -->
    Do the needed actions to reproduce the problems listed above.
 http://antcheva.home.cern.ch/antcheva/ComboBox-Macro.C

Revision 12656 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 13:33:08 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 20130 byte(s)
Diff to previous 12470
from Ilka:
more coding convention fixes.

Revision 12470 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 12 09:49:19 2005 UTC (9 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 20119 byte(s)
Diff to previous 11928
From Ilka:
release combobox picture in dtor.

Revision 11928 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 1 12:35:55 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 20086 byte(s)
Diff to previous 11924
From Valeriy Onuchin:
- TRootBrowser.  Execution of macro can delete browser itself.
    Some protection against  deletion of browser by calling gROOT->Reset()
   from inside a macro added.

- TGComboBox. When return key was pressed in combo box text entry,
   do not add new entry if such entry already exists.

Revision 11924 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 31 18:52:45 2005 UTC (9 years, 7 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19656 byte(s)
Diff to previous 11770
From Valeriy Onuchin:
- TGComboBox. New signal ReturnPressed added which is
  emitted when Return key pressed in combo box text entry.
  The current text entry string is added to combo box list.

- TSystemDirectory. Move, Delete, Copy methods removed from
   context menu (will be implemented later).

Thanks to Ilka for both suggestions.

Revision 11770 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 11 15:51:57 2005 UTC (9 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19283 byte(s)
Diff to previous 11683
From Ilka:
fix in the TGLineStyleComboBox ctor - because of added new line styles
we do not need to resize it, i.e. we use the default size.

Revision 11683 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 28 08:30:57 2005 UTC (9 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19342 byte(s)
Diff to previous 11340
From Olivier:
- Line styles 5 to 10 are available in the line editor.

Revision 11340 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 15 09:38:09 2005 UTC (9 years, 10 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19342 byte(s)
Diff to previous 10904
From Daniel Sigg and Ilka:
TGTab was setting the input mask for button press for its entire window.
This then interferes with combo boxes that are located inside a TGTab
and makes it that none of the mouse clicks outside the pop-up are sent
to the combo box. This is particular annoying if you have a tabbed
application.

Revision 10904 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 12 18:39:30 2005 UTC (10 years ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19296 byte(s)
Diff to previous 10389
From Valeriy Onuchin:
- new concept of "pseudo-window" introduced.
  pseudo-window - is an object inherited from TGWindow which
  is not created by window system (X11 or M$ Windows).
  It does not consume window system resouces.

  The main use-case of pseudo-windows is GUI containers
  with very large number of items. For example, listviews, listboxes,
  where listview/listbox items/entries are pseudo-windows.
  Pseudo-window  has "window id" equal to zero.
  In order to "activate pseudo-window concept" the parent should
  have fIsMapSubwindows dat member to be kFALSE.
  So, it's backward compatible,  setting fIsMapSubwindows=kTRUE in parent window
  will activate normal behavior, i.e. will be created in window system.

 Introduction of  "pseudo-window concept" forced the changes in
 TGX11, TGWin32 classes to avoid  TVirtualX methods execution when
 "window id" is NULL (the case of  pseudo-window).

 Introduction of pseudo-windows which do not consume window system resouces
 greately improved  performance of  TGListView, TGListBox, TGComboBox objects.

 Now it's possible to have these containers with more than 10000 items.

- some optimization in TGLBContainer drawing
- add SetWindowName to most GUI classes. It's very usefull for GUI debugging.

Revision 10389 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 22 07:31:58 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19194 byte(s)
Diff to previous 10245
From Valeriy:
- TGFrame dtor, TGFrame::Cleanup I omitted a call fList->Remove(el);
  That caused a lot of problems. I appologize.
- TPad::Print(".gif") - added protection against warnings when loading
  libAfterImage. Typo fixed.
- added protection against double deletion in TGComboBox, TGView dtors.
- TGListBoxt::InsertEntry - correct init of TGFrameElement

Revision 10245 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 7 14:08:18 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19149 byte(s)
Diff to previous 10083
From Ilka:
minor change in TGLineStyleComboBox ctor to avoid empty space in the combo box.

Revision 10083 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 17 08:46:25 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19124 byte(s)
Diff to previous 9414
From Carsten Hof
 when seleting the already selected item in a combo box,
(For example: calling SetModel of an editor just resets the old value in most of the time)

Revision 9414 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 10:17:20 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19062 byte(s)
Diff to previous 9412
From Valeri Onuchin:
 - followups after last changes. Unmap listbox on button press outside listbox area.
 - small correction to TRootBrowser "Draw Option"

Revision 9412 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 7 09:23:21 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 18714 byte(s)
Diff to previous 9402
From Valeri Onuchin:
 - place combo box's listbox when arrow button is pressed
 - add  text selection to text entry combo box
 - code cleaning

Revision 9402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 6 10:55:57 2004 UTC (10 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 19345 byte(s)
Diff to previous 9080
From Valeri Onuchin:

 - new constructor added to TGComboBox class
   TGComboBox(const TGWindow *p, const char *text)
   That creates editable combobox.
 - Use editable combobox for setting "Draw Option" in TBrowser

Revision 9080 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 1 15:26:18 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 17176 byte(s)
Diff to previous 8562
From Ilka:
TGComboBox::Select(Int_t id) was not emitting the Selected() signals.

Revision 8562 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Apr 11 21:35:34 2004 UTC (10 years, 9 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 17126 byte(s)
Diff to previous 8347
make some globals static (file scope only).

Revision 8347 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 9 14:34:30 2004 UTC (10 years, 10 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 17143 byte(s)
Diff to previous 8261
From Ilka:
minor fix about linewidth combo box.
the first entry with 0 width is removed from the list.

Revision 8261 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 19 15:36:46 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 17143 byte(s)
Diff to previous 8256
From Valeriy
- ged works on linux OK
- OK (except line styles) on windows

Revision 8256 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 19 09:44:38 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 17136 byte(s)
Diff to previous 8233
Replace static member by a const kMaxFonts

Revision 8233 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 20:13:43 2004 UTC (10 years, 11 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 17132 byte(s)
Diff to previous 8228
The following mega patch is from Ilka. She has integrated and further
developed the original classes from Marek Biskup (summer student last year)..
Valeriy Onuchin has also contributed by extending/adapting existing
GUI classes.

Very first prototype of the new pad editor is available for testing and
feedbacks. It was started by Marek Biskup as his project during the
Summer Student Program 2003.
The new pad editor helps ROOT GUI to become closer to the well known
application GUIs; to be user friendly, having easier and faster access
to the ROOT graphics, to be more intuitive. It is embedded in the
TCanvas window every canvas has an editor.
The editor frame is on the left side of the canvas window. The user can
show it via Edit/Editor menu selection. The editor frame contains a set
of picture buttons for selecting well known graphical primitives for
drawing; below them there are widgets for attribute changing. When an
object is selected its name appears with a set of options available for
changing: fill style and color; line style, width and color; text font,
size and style; marker style, size and color.

New Classes:
TGFontTypeComboBox - a combo box with fonts for a choice;
TGLineWidthComboBox - a combo box with line widths;
TGLineWidthLBEntry - list box entry for different line widths
TGLineStyleComboBox - a combo box with line styles;
TGLineStyleLBEntry - list box entry for a line style

TGedEditor - the new editor containing tool-box and attribute frames of
the selected object;
TGedToolBox - frame with picture buttons for a primitive drawing

TGedAttFrame - a base class for all attribute frames
TGedAttNameFrame - a frame showing the selected object name (if exists)
TGedAttFillFrame - a frame showing the fill attributes
TGedAttLineFrame - a frame showing the line attributes
TGedAttTextFrame - a frame showing the text attributes
TGedAttMarkerFrame - a frame showing the marker attributes

TGedPatternFrame - popup window for fill pattern selection
TGedPatternSelector - a button for pattern selection
TGedSelect - service class for selecting
TGedPopup - service class for popup attribute window
TGPatternSelect - a button for selected pattern
TGedMarkerPopup - popup window for marker selection
TGedMarkerSelect - a button for selected marker

Several changes are made in TCanvas, TPad, TRootCanvas to adapt them for
the new GUI interface. The old GUI interface is kept and it can be used
too. The class TPadEditorOld provides its functionality.

Revision 8228 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Feb 18 16:17:33 2004 UTC (10 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 12290 byte(s)
Diff to previous 7547
From Valeriy:
use gClient->GetDefaultRoot() instead of GetRoot(). This allows the widgets
to be embedded but ensures popups to still be a child of the real X11 root
window.

Revision 7547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 7 22:47:53 2003 UTC (11 years, 2 months ago) by brun
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 12282 byte(s)
Diff to previous 7520
Add missing parenthesis in expressions like
      if (GetOptions() == (kSunkenFrame | kDoubleBorder)) {

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/TGComboBox.cxx
File length: 12279 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/TGComboBox.cxx
File length: 10946 byte(s)
Diff to previous 781
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 781 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 17 12:34:53 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 10840 byte(s)
Diff to previous 755
added signal/slot capability for most widgets. TGWidget now derives from
TQObject.

Revision 755 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 12 16:53:38 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 10274 byte(s)
Diff to previous 723
added support for wheel mice. Via the mouse wheel you can scroll most
windows that have a scrollbar. How to enable it for your own containers
is shown in guitest (see TileFrame).

Revision 723 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sun Oct 8 14:27:54 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 10235 byte(s)
Diff to previous 714
fix bug related to pointer grab in TGScrollBar (causing TGComboBox popup
not to pop down).

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/TGComboBox.cxx
File length: 10151 byte(s)
Diff to previous 691
remove some compiler warnings and replace gVirtualX->SelectInput() calls
by TGFrame::AddInput().

Revision 691 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Sep 30 11:11:21 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 10176 byte(s)
Diff to previous 689
remove workaround for Sun CC compiler bug.

Revision 689 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 29 13:55:24 2000 UTC (14 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGComboBox.cxx
File length: 10209 byte(s)
Diff to previous 685
try work around for Sun CC compiler bug.

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/TGComboBox.cxx
File length: 10180 byte(s)
Diff to previous 3
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 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/TGComboBox.cxx
File length: 10017 byte(s)
Copied from: branches/rdm/gui/src/TGComboBox.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/TGComboBox.cxx
File length: 10017 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