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

Log of /trunk/gui/gui/src/TGTextView.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: 49115 byte(s)
Diff to previous 42628
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 42628 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 13:27:11 2012 UTC (3 years ago) by bellenot
File length: 49090 byte(s)
Diff to previous 41260
Fix coverity report #36014 (dereference null return)

Revision 41260 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 09:55:40 2011 UTC (3 years, 3 months ago) by bellenot
File length: 49076 byte(s)
Diff to previous 41226
Fix coverity report #30922 (unchecked return value)

Revision 41226 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 14:18:24 2011 UTC (3 years, 3 months ago) by bellenot
File length: 49077 byte(s)
Diff to previous 39366
Fix coverity reports (dereference null return value)

Revision 39366 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 20:02:36 2011 UTC (3 years, 8 months ago) by bellenot
File length: 48952 byte(s)
Diff to previous 39361
Go to the top of the page _before_ loading a file

Revision 39361 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 15:09:08 2011 UTC (3 years, 8 months ago) by bellenot
File length: 48952 byte(s)
Diff to previous 38458
Go to the top of the page when loading a file

Revision 38458 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 16 14:39:48 2011 UTC (3 years, 10 months ago) by bellenot
File length: 48938 byte(s)
Diff to previous 35582
Ignore several secure coding reports (coverity) until proper solution is found

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: 48902 byte(s)
Diff to previous 33919
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 33919 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 15:01:19 2010 UTC (4 years, 7 months ago) by bellenot
File length: 48766 byte(s)
Diff to previous 31770
Replace fixed size char arrays by TStrings, to avoid possible buffer overflow (coverity)

Revision 31770 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 10 11:28:18 2009 UTC (5 years, 1 month ago) by bellenot
File length: 48767 byte(s)
Diff to previous 31685
- Fix uninitialized variable (valgrind)

Revision 31685 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 16:33:13 2009 UTC (5 years, 1 month ago) by bellenot
File length: 48768 byte(s)
Diff to previous 28659
- More protections against possible NULL pointers (coverity)

Revision 28659 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 18 09:17:07 2009 UTC (5 years, 8 months ago) by bellenot
File length: 48736 byte(s)
Diff to previous 26656
Fix a scrollbar layout problem on Windows

Revision 26656 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 4 15:08:13 2008 UTC (6 years, 1 month ago) by bellenot
File length: 48702 byte(s)
Diff to previous 25229
- Silent a couple of compiler warnings (warning: format not a string literal and no format arguments) on Ubuntu

Revision 25229 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 25 15:14:34 2008 UTC (6 years, 5 months ago) by bellenot
File length: 48694 byte(s)
Diff to previous 23115
From Matevz and me:
Merge changes from branches/dev/fireworks (CMS event display)

TGSplitFrame
------------
- Added Docked(TGFrame*) and  Undocked(TGFrame*) signals
- Added GetUndocked() getter

TGView
------
- Added a protection against possible negative scroll values

TGTextView
----------
- Fix bottom line not being properly updated while scrolling TGTextView
- Solve a problem with vertical slider (avoid negative value when scrolling)

TGTextEdit
----------
- Fix blinking cursor on some platforms/compilers in TGTextEdit

TGToolTip
---------
- Add new constructor with global x, y position.
If neither fWindow nor fPad are set use global fX, fY that was passed from outside.

TGListTree
----------
DeleteItem/Children() - for list-tree in stand-alone mode set below-mouse/current item to zero before deleting the item; remove corresponding comments.

TGSplitter
----------
- Add option to handle frame resizing externally.

TGPack
------
New Container class for vertical and horizontal grouping of frames. It enforces a predictable resizing behaviour on children.

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: 48639 byte(s)
Copied from: trunk/gui/src/TGTextView.cxx revision 23114
Diff to previous 20933
moved to directory "gui" the following directories:

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

Revision 20933 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 20 17:11:22 2007 UTC (7 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48639 byte(s)
Diff to previous 20882
From Bertrand:
fix naming conventions, after acronym, next word starts with upper case.

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/TGTextView.cxx
File length: 48639 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/TGTextView.cxx
File length: 48639 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/TGTextView.cxx
File length: 48696 byte(s)
Diff to previous 18852
remove :$ from tag line

Revision 18852 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 22 11:46:31 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48706 byte(s)
Diff to previous 18819
From Valeri Onuchin:
Fixed a side effect from previous patch: when opening macro files in
the ROOT Browser or TGTextEditor, the text was not displayed until
one moves the scrollbar, or selects the text with the mouse

Revision 18819 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 18 12:13:22 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48706 byte(s)
Diff to previous 18714
From Valeriy Onuchin:
- fixed problem running text editor with Qt layer
- SetForegroundColor(Pixel_t) method was implemented which allows to
  set text color for text view/editor.

Revision 18714 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 9 15:03:34 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48465 byte(s)
Diff to previous 18659
Added new data member fDNDTypeList for drag & drop type settings to
avoid memory leak (fixes Savannah bug 26190)

Revision 18659 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri May 4 15:21:04 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48414 byte(s)
Diff to previous 18609
From valeriy Onuchin:
added set background color of fCanvas

Revision 18609 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 27 08:45:15 2007 UTC (7 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48379 byte(s)
Diff to previous 18556
From Bertrand:
- Replace hidden class TGTextEditHist by its base class TList as return code of TGTextEdit::GetHistory()
- Improve IsTextFile() in TGTextView.cxx

Revision 18556 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Apr 23 09:07:27 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48265 byte(s)
Diff to previous 18536
From Bertrand:
 - Improve TGLVEntry picking for Drag operation
 - Use Turl for uri-list format in TGTextView::HandleDNDdrop
 - Update file infos in TGTextEditor when a file has been dropped
 - Change highlight color in TGTextEditor

Revision 18536 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 21:07:02 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 48222 byte(s)
Diff to previous 18534
From Bertrand:
Added drag and drop support for Linux (Xdnd) and Windows (Clipboard).
It is now possible to drag an histogram (or any other graphical object)
from an opened file in TBrowser to any TCanvas.
It is also possible to drag a text file from TBrowser to a TGTextView
or TGTextEdit widget (i.e. in TGTextEditor).
On Linux, it is even possible to drag from a Root application to another
one, or to drag a text file (i.e. a macro) from the ROOT browser to an
external editor (i.e. Kate).
On Windows, drag and drop only works within the same ROOT application
(for the time being).

Revision 18534 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 16:23:13 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 44218 byte(s)
Diff to previous 16616
From Valeriy Onuchin:
TGView, TGTextView, TGTextEdit classes
The main changes :

o restructuring and revisiting the code
 - move all text methods from TGView to TGTextView class.

o new methods
  TGTextEdit::SetSelectBack - setting selection background  color
  TGTextEdit::SetSelectfore - setting color for slected text
  TGText::AsString - return content as ROOT string.

o improved painting: exposed events, resizing
 - compression of exposed events added which
   eliminates flickering when text_edit widget is resized or
   exposed.
 - repaint only whose areas which where modified or
   overlapped.

o undo management on Ctrl-Z
o autoscrolling when  text is selected
o many small bug fixes:
  - crash on double click on blank field
  - selected text in some cases was not correctly removed
  - etc.

Revision 16616 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 25 08:03:31 2006 UTC (8 years, 3 months ago) by antcheva
Original Path: trunk/gui/src/TGTextView.cxx
File length: 29113 byte(s)
Diff to previous 15849
From Bertrand:
- Implemented HandleSelectionClear() in TGTextEntry and TGTextView
- Fixed issue with copy/paste on KDE (added handling of "TARGETS" atom in HandleSelectionRequest())

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/TGTextView.cxx
File length: 28373 byte(s)
Diff to previous 15742
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 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/TGTextView.cxx
File length: 29395 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/TGTextView.cxx
File length: 29394 byte(s)
Diff to previous 15340
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 15340 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 6 07:44:28 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGTextView.cxx
File length: 29382 byte(s)
Diff to previous 15191
- implemented SavePrimitive methods of TGTextView class

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/TGTextView.cxx
File length: 28333 byte(s)
Diff to previous 15173
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 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/TGTextView.cxx
File length: 28326 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/TGTextView.cxx
File length: 28252 byte(s)
Diff to previous 13278
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 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/TGTextView.cxx
File length: 27308 byte(s)
Diff to previous 9869
From Ilka:
code style fixes (comments, descriptions and identation).

Revision 9869 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 1 14:35:33 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 27103 byte(s)
Diff to previous 9867
small changes in preparation for the MDI widget.

Revision 9867 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 1 12:56:14 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 27108 byte(s)
Diff to previous 9005
Add new functions suggested by Maxim Nikulin

 "I use TGTextView widgets in my monitor program. Several thousands calls
of the AddLine() method make the program extremely slow. Using the
callgrind program I found that the AddLine() is most expensive in my
case because of Layout() invocations.

I suggest add methods AddLineFast() and Update(). Together they do the
same work to AddLine(), but it becomes possible to invoke AddLineFast()
many times and call the slow Update() method only once.

Revision 9005 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 24 14:31:11 2004 UTC (10 years, 8 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 26633 byte(s)
Diff to previous 8615
Initialize members fMarkedFromX fMarkedFromY in the Init function.
Problem reported by valgrind

Revision 8615 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 20 14:48:01 2004 UTC (10 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGTextView.cxx
File length: 26582 byte(s)
Diff to previous 7866
From Valeriy

Remove ifdefs on GDK_WIN32

Revision 7866 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jan 8 22:45:18 2004 UTC (11 years ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 26607 byte(s)
Diff to previous 6663
fix comment, resources are set in TGResourcePool and not in TGClient anymore.

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/TGTextView.cxx
File length: 26641 byte(s)
Diff to previous 6583
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 6583 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 8 17:20:16 2003 UTC (11 years, 8 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25758 byte(s)
Diff to previous 4684
fix backward searching. By Thomas Bretz.

Revision 4684 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 10 18:35:38 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25673 byte(s)
Diff to previous 3317
smoe fixes in <TAB> display and handling.

Revision 3317 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 28 16:05:42 2001 UTC (13 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25345 byte(s)
Diff to previous 813
win32gdk case added

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/TGTextView.cxx
File length: 25320 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/TGTextView.cxx
File length: 25282 byte(s)
Diff to previous 444
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 444 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 11 14:49:22 2000 UTC (14 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25276 byte(s)
Diff to previous 369
fix in TGTextView::AddLine(), line was added before instead of after
the last line. Also corrected range checking in TGText::InsLine().

Revision 369 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 12 17:58:05 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25221 byte(s)
Diff to previous 349
some more mods for text searching and replacing. Also some more messages
added to the TGTextEdit widget (see TGView.cxx for supported messages).

Revision 349 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 11 09:29:10 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25223 byte(s)
Diff to previous 342
mods for the text edit widget. Use the new search, print and goto dialogs.

Revision 342 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 10 01:07:19 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 25077 byte(s)
Diff to previous 339
many improvements and fixes in the text edit widget. Fully implemented
cut/copy/paste between editor and any X11 window supporting text (and
vice versa). Also added a context menu giving access to the most essential
text editor actions (open, close, save, print, search, etc.). Fixed several
text navigation and selection issues.

Revision 339 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 7 00:29:49 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 24483 byte(s)
Diff to previous 332
remove large number of compiler warnings.

Revision 332 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Jul 6 16:47:54 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 24431 byte(s)
Diff to previous 327
modifcations in all classes providing infrastructure for the text edit
widget.

Revision 327 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 4 11:35:36 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 24178 byte(s)
Diff to previous 322
fix typos

Revision 322 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 18:55:32 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextView.cxx
File length: 24116 byte(s)
Diff to previous 3
infrastructure for the new TGTextEdit widget. The new TGView class is
the base class for all text viewing/editing widgets. TGTextView has been
totally rewritten to use the new TGView and TGText classes. TRootHelpDialog
uses the new TGTextView widget. TGTextEdit will derive from TGTextView.

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/TGTextView.cxx
File length: 14344 byte(s)
Copied from: branches/rdm/gui/src/TGTextView.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/TGTextView.cxx
File length: 14344 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