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

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

Parent Directory Parent Directory


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

Revision 45547 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 10 12:30:44 2012 UTC (2 years, 5 months ago) by tpochep
File length: 23087 byte(s)
Diff to previous 43842
Fix for TGPrintDialog::GetPrinters.
Fix for right mouse buttons.

Revision 43842 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 13:09:11 2012 UTC (2 years, 9 months ago) by bellenot
File length: 23049 byte(s)
Diff to previous 43645
Revert rev 43645 (may cause crash if someone delete a dialog...)

Revision 43645 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 4 20:31:50 2012 UTC (2 years, 9 months ago) by bellenot
File length: 23721 byte(s)
Diff to previous 43071
Prevent closing the main frame (via the WM, with the close button) while a modal dialog is open (while the client is waiting for it)

Revision 43071 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Feb 21 17:01:01 2012 UTC (2 years, 11 months ago) by axel
File length: 23049 byte(s)
Diff to previous 42626
Fix clang warnings: strlcpy(A, B, len) with len == strlen(B) instead of sizeof(A). Was okay in all cases, but double call to strlen() for no good reason.

Revision 42626 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jan 13 13:27:03 2012 UTC (3 years ago) by bellenot
File length: 22839 byte(s)
Diff to previous 41253
Silent harmless coverity reports #36719 #36720 #36721 (uninitialized pointer field)

Revision 41253 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 7 09:23:16 2011 UTC (3 years, 3 months ago) by bellenot
File length: 22743 byte(s)
Diff to previous 41176
Fix coverity reports #34195 & #34197 (Explicit null dereferenced)

Revision 41176 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 6 08:37:03 2011 UTC (3 years, 3 months ago) by bellenot
File length: 22692 byte(s)
Diff to previous 41153
Fix coverity report (dereference null value)

Revision 41153 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 5 13:46:33 2011 UTC (3 years, 3 months ago) by bellenot
File length: 22675 byte(s)
Diff to previous 40467
Fix coverity reports (dereference null value)

Revision 40467 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 5 07:23:18 2011 UTC (3 years, 5 months ago) by bellenot
File length: 22659 byte(s)
Diff to previous 40451
Fix resource leak reported by coverity

Revision 40451 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 4 09:58:12 2011 UTC (3 years, 5 months ago) by bellenot
File length: 22574 byte(s)
Diff to previous 39352
Replace the "Printer" text entry by a combo box populated with the list of available printers, and select the default one, if any.

Revision 39352 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 24 10:34:40 2011 UTC (3 years, 8 months ago) by bellenot
File length: 20459 byte(s)
Diff to previous 39261
Improve layout of several common dialogs when changing the font sizes

Revision 39261 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 09:06:20 2011 UTC (3 years, 8 months ago) by bellenot
File length: 20457 byte(s)
Diff to previous 39257
Populate the text entry with the string passed in argument first (if any), or with the last search string if no argument is given

Revision 39257 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 19 08:53:56 2011 UTC (3 years, 8 months ago) by bellenot
File length: 20457 byte(s)
Diff to previous 39157
- Don't create useless extra TGTextBuffer, as we use the one from the TGTextEntry.
- Populate the text entry with the search string passed in argument, if any

Revision 39157 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue May 10 14:30:34 2011 UTC (3 years, 8 months ago) by bellenot
File length: 20408 byte(s)
Diff to previous 35622
Use better layout

Revision 35622 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 23 08:29:15 2010 UTC (4 years, 4 months ago) by bellenot
File length: 20400 byte(s)
Diff to previous 28845
Replace sprintf and strcpy by snprintf and strlcpy (coverity)

Revision 28845 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jun 8 13:53:44 2009 UTC (5 years, 7 months ago) by rdm
File length: 20357 byte(s)
Diff to previous 25499
changes needed to be able to compile with Solaris CC5 and stlport4 STL
library. Backward compatible with old CC5 STL and other platforms.

Revision 25499 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 22 19:54:46 2008 UTC (6 years, 4 months ago) by bellenot
File length: 20545 byte(s)
Diff to previous 23115
- Allow to search substrings in TGCanvas subframe names. 
  This e.g. allows to search for partial branch names
  when browsing a tree with the browser. To search 
  substring, just put a star anywhere in the search 
  pattern, e.g. *Track or Track* will find all branches
  with name containing the string Track.
  This has been requested on the forum:
  http://root.cern.ch/phpBB2/viewtopic.php?t=7312

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: 20371 byte(s)
Copied from: trunk/gui/src/TGTextEditDialogs.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/TGTextEditDialogs.cxx
File length: 20371 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/TGTextEditDialogs.cxx
File length: 20371 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/TGTextEditDialogs.cxx
File length: 20435 byte(s)
Diff to previous 19702
remove :$ from tag line

Revision 19702 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Aug 27 14:59:20 2007 UTC (7 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20445 byte(s)
Diff to previous 15665
don't access class static fgSearchDialog inline.

Revision 15665 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Jul 3 13:30:29 2006 UTC (8 years, 6 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20245 byte(s)
Diff to previous 15191
from Bertrand:
- fixed bad layout of Print dialog

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/TGTextEditDialogs.cxx
File length: 20252 byte(s)
Diff to previous 14626
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 14626 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Apr 11 06:25:43 2006 UTC (8 years, 9 months ago) by antcheva
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20246 byte(s)
Diff to previous 13278
From Valeriy Onuchin:
- disable editting for dialogs

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

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

Revision 12644 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 5 07:33:37 2005 UTC (9 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20108 byte(s)
Diff to previous 12525
From Ilka:
fixing of coding style violations.

Revision 12525 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 23 17:00:41 2005 UTC (9 years, 5 months ago) by brun
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20101 byte(s)
Diff to previous 12247
From Bertrand:
Added several protections in TGXXX class constructors,
used when browsing ROOT classes.

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/TGTextEditDialogs.cxx
File length: 19836 byte(s)
Diff to previous 10783
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 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/TGTextEditDialogs.cxx
File length: 19073 byte(s)
Diff to previous 9994
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 9994 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 13 09:10:56 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 18626 byte(s)
Diff to previous 8233
use the new TGTransientFrame::CenterOnParent() method.

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/TGTextEditDialogs.cxx
File length: 20443 byte(s)
Diff to previous 5328
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 5328 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 18 12:22:14 2002 UTC (12 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20422 byte(s)
Diff to previous 4692
use DeleteWindow() instead of "delete this" to close and delete the widget.

Revision 4692 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 12 16:46:12 2002 UTC (12 years, 7 months ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20413 byte(s)
Diff to previous 3510
major improvements in TGListTree by Valeriy Onuchin. The TGListTree can
now display >100k's of items in a very efficient way. This is used now
in the ROOT browser.

Revision 3510 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 20 10:19:26 2001 UTC (13 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20413 byte(s)
Diff to previous 1264
cast UInt_t's to Int_t's in calls to TVirtualX::TranslateCoordinates()
to correctly handle negative coordinate translations.

Revision 1264 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Dec 20 17:34:39 2000 UTC (14 years, 1 month ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20389 byte(s)
Diff to previous 348
Sun CC5 want std::atof() instead of just atof().

Revision 348 - (view) (download) (as text) (annotate) - [select for diffs]
Added Tue Jul 11 09:26:38 2000 UTC (14 years, 6 months ago) by rdm
Original Path: trunk/gui/src/TGTextEditDialogs.cxx
File length: 20140 byte(s)
files containing utility dialogs used by the text edit widget. There are
TGSearchDialog, TGPrintDialog and TGGotoDialog. The TGPrintDialog could
be used in several other places too.

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