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

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

Parent Directory Parent Directory


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

Revision 46119 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 21 14:56:38 2012 UTC (2 years, 4 months ago) by tpochep
File length: 69655 byte(s)
Diff to previous 44507
Mods for text edit

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: 68258 byte(s)
Diff to previous 42663
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 42663 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jan 17 11:25:51 2012 UTC (3 years ago) by bellenot
File length: 68223 byte(s)
Diff to previous 40431
Fix several coverity reports

Revision 40431 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 3 08:32:54 2011 UTC (3 years, 5 months ago) by bellenot
File length: 67858 byte(s)
Diff to previous 38458
Make context menus "sticky", so no need to keep the mouse button pressed anymore (make trackpad usage much simpler)

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: 67859 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: 67817 byte(s)
Diff to previous 35172
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 35172 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 6 13:11:48 2010 UTC (4 years, 4 months ago) by bellenot
File length: 67682 byte(s)
Diff to previous 33918
Remove useless checks (thanks Axel for the report)

Revision 33918 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 15 14:50:50 2010 UTC (4 years, 7 months ago) by bellenot
File length: 67720 byte(s)
Diff to previous 32903
Replace fixed size char array by a TString, to avoid possible buffer overflow (coverity)

Revision 32903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 8 10:36:22 2010 UTC (4 years, 9 months ago) by bellenot
File length: 67721 byte(s)
Diff to previous 32837
- Do not delete the search type but make it static instead (as the dialog using it may still be open)

Revision 32837 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Mar 30 14:32:54 2010 UTC (4 years, 9 months ago) by bellenot
File length: 67722 byte(s)
Diff to previous 31685
- Replace several sprintf by using TString (coverity)

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: 67711 byte(s)
Diff to previous 26656
- More protections against possible NULL pointers (coverity)

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: 67690 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: 67682 byte(s)
Diff to previous 23448
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 23448 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 23 12:14:56 2008 UTC (6 years, 9 months ago) by brun
File length: 68265 byte(s)
Diff to previous 23115
Fix severe shadowed variables.

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: 68259 byte(s)
Copied from: trunk/gui/src/TGTextEdit.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/TGTextEdit.cxx
File length: 68259 byte(s)
Diff to previous 20869
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 20869 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 19 08:11:07 2007 UTC (7 years, 2 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 68259 byte(s)
Diff to previous 19826
Added new data member and corresponding methods allowing to hide cursor in the TGTextEditor window when when focus went out from its window.
(Requested by a user at http://root.cern.ch/phpBB2/viewtopic.php?p=23464
Bool_t fEnableCursorWithoutFocus; // enable cursor visibility when focus
                                  // went out from text editor window
                                  // (default is kTRUE)
EnableCursorWithoutFocus(Bool_t on = kTRUE) 
Bool_t IsCursorEnabledithoutFocus() const

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/TGTextEdit.cxx
File length: 68091 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/TGTextEdit.cxx
File length: 68148 byte(s)
Diff to previous 18819
remove :$ from tag line

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/TGTextEdit.cxx
File length: 68158 byte(s)
Diff to previous 18688
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 18688 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 7 15:11:36 2007 UTC (7 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 68171 byte(s)
Diff to previous 18539
Fixed error reported by valgrind about
Mismatched free() / delete / delete []

Revision 18539 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Apr 20 12:15:28 2007 UTC (7 years, 9 months ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 68168 byte(s)
Diff to previous 18534
Remove a compiler warning about a possible non initialized variable

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/TGTextEdit.cxx
File length: 67810 byte(s)
Diff to previous 15672
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 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/TGTextEdit.cxx
File length: 60187 byte(s)
Diff to previous 15503
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 15503 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 21 12:20:22 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 60179 byte(s)
Diff to previous 15487
From Bertrand:
- fixed behavior of Ctrl+End in TGTextEdit

Revision 15487 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jun 20 13:17:48 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 60070 byte(s)
Diff to previous 15453
From Bertrand:
TGTextEdit widget:
- Added Ctrl+Home and Ctrl+End key handling.
- Added a protection in HandleDoubleClick in case of empty text.
TGTextEditor:
- Fixed alignment of shortcut names.
- Added shortcut for Compile, Execute and Interrupt menu entries.
- Fixed a type casting problem on Solaris and MSVC8.

Revision 15453 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jun 16 10:06:30 2006 UTC (8 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 59389 byte(s)
Diff to previous 15220
From Bertrand:
- Fix "Find Next" problem in TGTextEdit.

Revision 15220 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 30 06:40:10 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 59340 byte(s)
Diff to previous 15217
From Valeriy Onuchin:
- remove the GUI builder specific code from TGShutter,
TGTextEdit, TGTab, TGListBox constructors

Revision 15217 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 15:40:35 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 59726 byte(s)
Diff to previous 15215
- fix in comments

Revision 15215 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon May 29 14:00:36 2006 UTC (8 years, 7 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 59715 byte(s)
Diff to previous 15191
From Valeriy Onuchin:
- side effect fixes of previous patch (broken embedded editor)

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

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

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/TGTextEdit.cxx
File length: 58531 byte(s)
Diff to previous 12247
from Ilka:
more coding convention fixes.

Revision 12247 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 5 12:36:07 2005 UTC (9 years, 6 months ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 58519 byte(s)
Diff to previous 11144
From valeriy Onuchin:
- new class TImagePlugin is introduced;
 To add possibility to read/write new image format one needs to create
 a derived class and to override two methods:
   virtual unsigned char *ReadFile(const char *filename, UInt_t &w,UInt_t &h)
   virtual Bool_t WriteFile(const char *filename, unsigned char *argb,
                             UInt_t w, UInt_t  h)
   ... and to specify it in the root resource file:

Plugin.TImagePlugin:  ps    TASPluginGS   ASPluginGS   "TASPluginGS(const char*)"
the name of plugin    file extension      DLL containing an implementation of
TImagePlugin subclass

- new class TASImagePlugin that is a subclass of TImagePlugin with ASImage
specific implementations;

- new class TASPluginGS - an image plugin class that allows to create images from
PS/EPS/PDF files and to display them in TCanvas/TPad. In addition, it allows to
browse PS/EPS/PDF files with the ROOT browser.

New files:
asimage/inc/LinkDefGS.h
asimage/inc/TASImagePlugin.h
asimage/inc/TASPluginGS.h
asimage/src/TASPluginGS.cxx

graf/inc/TImagePlugin.h

icons/pdf.xpm
icons/tb_find.xpm

libAfterImage.tar.gz

- TROOT.h
    o new data member fClipboard and corresponding getter GetClipboard();
      TSeqCollection  *fClipboard;           //List of clipboard objects;

- TGFrame
    o embedded frames resized correctly now.

- TGCanvas
    o several useful methods made public

- TGListBox, TGComboBox
    o new method FindEntry(const char *s) added which returns entry by name

- TGMdiMainFrame, TGMdiDecorFrame
    o fix bug which changed text color globally
    o add displaying scroll bars when mdi frame is moved out of mdi
      canvas viewport

- TGTextEdit/TGView, guitest
   o added processing of:
     2-clicks - selects a word
     3-clicks - selects a line
     4-clicks - selects the whole text
   o change  the key handling
     Ctrl-F - invokes Search dialog
     Ctrl-L - invokes Goto line dialog
     Correspondent changes  added to guitest.C and guitest.cxx (TextEdit test)
   o readonly mode added

- TGSearchDialog
   o Text entry was replaced by "text entry" combobox. It allows to
     "remember" a history of entered search strings.
   o new static method TGSearchDialog *&gDialog() introduced. It returns
     a global search dialog.
   o Search method - display warning message box when object is not found

- TRootBrowser, mime.types
   o  possibility to browse PS/EPS/PDF fies added
   o possibility to browse text files added. The content of text file
     appears in "icon box" window (a la netscape)
   o "Search" tool bar button added. It activates the "search dialog" for
     searching a specified icon or text when a text file is browsed.

- TGuiBldEditor.
  o fix bug which changed text color globally

Revision 11144 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Feb 18 11:22:28 2005 UTC (9 years, 11 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 54755 byte(s)
Diff to previous 10783
From Ilka:
In this patch are the necessary changes for Save dialog according to the
last TGFileDialog code with overwrite support.

Revision 10783 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 15 09:27:48 2004 UTC (10 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 54649 byte(s)
Diff to previous 9192
From Ilka:
enable the Print command in the TCanvas File menu via a proper
print dialog. The user can specify his prefered print command and
printer via the new Print.Command and Print.Printer rootrc resources.
Examples are provided in system.rootrc.

Revision 9192 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 14 10:28:52 2004 UTC (10 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 54645 byte(s)
Diff to previous 8228
SetFocus() calls directly the new TGWindow::RequestFocus() method.

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/TGTextEdit.cxx
File length: 54874 byte(s)
Diff to previous 7756
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 7756 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Dec 15 09:43:25 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 54797 byte(s)
Diff to previous 7748
Fix a bug in TGTextEdit::SavePrimitive

Revision 7748 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 18:57:22 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 54851 byte(s)
Diff to previous 7746
Fix a compiler warning (variable may be uninitialized)

Revision 7746 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Dec 12 18:21:07 2003 UTC (11 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 54850 byte(s)
Diff to previous 7712
From Ilka:
remove Win32 ifdefs by using TSystem methods and addition code to
save TGToolBar.

Revision 7712 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 10 14:23:50 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 55263 byte(s)
Diff to previous 7706
From Ilka:

- additional code for solving slash problem on Windows in:
  TGPictureButton::SavePrimitive, TGTextEdit::SavePrimitive
- removed code lines remained after the testing in
  TGIcon::SavePrimitive

Revision 7706 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 9 09:06:38 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 55177 byte(s)
Diff to previous 7670
 patch from Ilka Antcheva containing several SavePrimitive fixes for Windows.

Revision 7670 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 28 12:09:51 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 55178 byte(s)
Diff to previous 7669
From Ilka:
a few more fixes for the backslash problems on Windows

Revision 7669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 28 08:48:51 2003 UTC (11 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 55176 byte(s)
Diff to previous 7520
From Ilka:

Fix for the "slash" problem when generating GUI source code on Windows.

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/TGTextEdit.cxx
File length: 55041 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/TGTextEdit.cxx
File length: 53933 byte(s)
Diff to previous 4684
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 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/TGTextEdit.cxx
File length: 53673 byte(s)
Diff to previous 2712
smoe fixes in <TAB> display and handling.

Revision 2712 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 21 17:34:27 2001 UTC (13 years, 5 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 53648 byte(s)
Diff to previous 2514
implemented focus setting and focus event handling like in TGTextEntry.

Revision 2514 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 3 16:17:04 2001 UTC (13 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 52525 byte(s)
Diff to previous 2475
correct segv in case Find Again is selected while Find has not been
called before. Reported by Andreas Zoglauer.

Revision 2475 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 27 16:54:25 2001 UTC (13 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 52184 byte(s)
Diff to previous 1205
use new features of TGFileDialog.

Revision 1205 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 13 15:13:57 2000 UTC (14 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 52058 byte(s)
Diff to previous 813
      W A R N I N G   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     ==================================================================
A very long list of changes in this pre-release of version 3.00.
We have modified the signature of many functions (in particular TObject)
to introduce more constness in the system.
You must change your code if your class derives from TObject and uses
one of the modified functions such as ls, Print, Compare, Hash, etc.
The modified functions in TObject have the following signature:
   virtual TObject    *Clone() const;
   virtual Int_t       Compare(const TObject *obj) const;
   virtual void        Delete(Option_t *option=""); // *MENU*
   virtual void        DrawClass() const; // *MENU*
   virtual void        DrawClone(Option_t *option="") const; // *MENU*
   virtual void        Dump() const; // *MENU*
   virtual TObject    *FindObject(const TObject *obj) const;
   virtual char       *GetObjectInfo(Int_t px, Int_t py) const;
   virtual ULong_t     Hash() const;
   virtual void        Inspect() const; // *MENU*
   virtual Bool_t      IsEqual(const TObject *obj) const;
   virtual void        ls(Option_t *option="") const;
   virtual void        Print(Option_t *option="") const;

A similar operation has been done with classes such as TH1, TVirtualPad,
TTree, etc.

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/TGTextEdit.cxx
File length: 52051 byte(s)
Diff to previous 540
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 540 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 30 16:57:20 2000 UTC (14 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 51723 byte(s)
Diff to previous 369
added column position to the Goto() method, so the cursor can be positioned
not only on a specified line but also on a specified column in the line.
By default column=0 to be backward compatible. Request by Anton Fokin.

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/TGTextEdit.cxx
File length: 51580 byte(s)
Diff to previous 358
some more mods for text searching and replacing. Also some more messages
added to the TGTextEdit widget (see TGView.cxx for supported messages).

Revision 358 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Jul 11 18:03:59 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 50444 byte(s)
Diff to previous 349
some changes for printing.

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/TGTextEdit.cxx
File length: 48693 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/TGTextEdit.cxx
File length: 42319 byte(s)
Diff to previous 341
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 341 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 7 17:30:59 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 39776 byte(s)
Diff to previous 340
several more fixes in the text edit widget

Revision 340 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 7 00:34:17 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 38136 byte(s)
Diff to previous 339
fixed last HP CC compiler warning

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/TGTextEdit.cxx
File length: 38157 byte(s)
Diff to previous 331
remove large number of compiler warnings.

Revision 331 - (view) (download) (as text) (annotate) - [select for diffs]
Added Thu Jul 6 16:46:12 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextEdit.cxx
File length: 37946 byte(s)
new text edit widget TGTextEdit. First version. Compiles without warnings
on Linux, but still gives warning on other platforms. Will be cleaned up
in coming days.

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