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

Log of /trunk/gui/gui/src/TGMdiMainFrame.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: 43027 byte(s)
Diff to previous 40531
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 40531 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 10 13:56:13 2011 UTC (3 years, 5 months ago) by bellenot
File length: 42967 byte(s)
Diff to previous 35582
Add a method to update the MDI buttons of each MDI child when the mainframe is mapped on screen (only once)

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: 42160 byte(s)
Diff to previous 33938
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 33938 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 09:35:52 2010 UTC (4 years, 7 months ago) by bellenot
File length: 42031 byte(s)
Diff to previous 33935
TGButton.cxx: Fix uninitialized scalar variable (coverity)
TGMdiMainFrame.cxx: Remove unused code (unused pointer value reported by coverity)

Revision 33935 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jun 16 08:36:29 2010 UTC (4 years, 7 months ago) by bellenot
File length: 42103 byte(s)
Diff to previous 32846
Replace fixed size char array by a TString, to avoid possible buffer overflow (coverity)

Revision 32846 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 31 09:51:36 2010 UTC (4 years, 9 months ago) by bellenot
File length: 42081 byte(s)
Diff to previous 31669
Add a protection in TGMdiMainFrame destructor (check if the frame returned by GetMainFrame() is a TGMainFrame)

Revision 31669 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Dec 8 15:15:47 2009 UTC (5 years, 1 month ago) by bellenot
File length: 42044 byte(s)
Diff to previous 23115
- Add missing initializations (coverity)
- Fix potential memory leaks (coverity)
- Add protections against possible NULL pointers (coverity)

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: 41986 byte(s)
Copied from: trunk/gui/src/TGMdiMainFrame.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/TGMdiMainFrame.cxx
File length: 41986 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/TGMdiMainFrame.cxx
File length: 41986 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/TGMdiMainFrame.cxx
File length: 42043 byte(s)
Diff to previous 17619
remove :$ from tag line

Revision 17619 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 1 16:00:28 2007 UTC (7 years, 11 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 42053 byte(s)
Diff to previous 15672
Add missing include TList.h

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/TGMdiMainFrame.cxx
File length: 42038 byte(s)
Diff to previous 14998
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 14998 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 11 12:50:07 2006 UTC (8 years, 8 months ago) by antcheva
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 42030 byte(s)
Diff to previous 14382
From Bertrand:
Solves this problem from GUI todo list -
decoration buttons disappeared if frames were maximized,
one frame from them was deleted and after the remaining
frames were tiled vertically or horizontally. [29-Mar-06]

Revision 14382 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Mar 23 09:40:01 2006 UTC (8 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 42006 byte(s)
Diff to previous 14315
From Bertrand:
- make TGMdiMainFrame::CloseAll() working properly

Revision 14315 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Mar 20 13:34:03 2006 UTC (8 years, 10 months ago) by antcheva
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 41975 byte(s)
Diff to previous 13292
From Bertrand:
- maximized MDI children behave correctly after this fix

Revision 13292 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Nov 21 00:25:38 2005 UTC (9 years, 2 months ago) by rdm
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 40556 byte(s)
Diff to previous 12247
From Bertrand:
- added comments in TGMdi classes.
- added comments in TGColorSelect and TGColorDialog classes.
- added comments in TGFontDialog classes.
- changes in all these classes to make rulechecker happy.
- added a new member / option in TGListTree allowing to disable
  item opening on doubleclick.

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/TGMdiMainFrame.cxx
File length: 38831 byte(s)
Diff to previous 10904
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 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/TGMdiMainFrame.cxx
File length: 38691 byte(s)
Diff to previous 10743
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 10743 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 9 22:55:06 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 38671 byte(s)
Diff to previous 10742
From Valeriy Onuchin:
- TRootGuiBuilder,TGuiBldDragManager - more mods to make GuiBuilder
  re-entrant.
  That allows to create, close ROOT GuiBuilder during single ROOT session.
- TGMdiMainFrame - made methods virtual.
  CloseAll method added , which allows to close all opened mdi frames.
- TGMdiDecorFrame - mods for hierarchical cleaning.

Revision 10742 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Dec 9 17:05:41 2004 UTC (10 years, 1 month ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 38304 byte(s)
Diff to previous 10414
From valeriy Onuchin:
- TGMdiMainFrame. Prevent double freeing of "current font".
- TRootGuiBuilder, TGuiBldDragManager fix  for segv. occured after
   creation, closing ROOT Gui Builder several times
- TGLBEntry - do not register window in fClient window list, because list box entries
  (like list view entries) are "virtual frames". That's speedup performance
  with large nummber of entries, e.g. 100000.

Revision 10414 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Oct 26 09:39:23 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 38286 byte(s)
Diff to previous 10402
From Valeriy:
- Disable editting  GuiBuilder popup menus. That fixes undesirable effect
  discribed by Ilka "2-click on the main frame-->Window menu/Cascade-->click
  on the main frame title Properties tab shows the popup menu frame21
  as selected one".
- Fix handling  hot keys in GuiBuilder menu bar, menus, e.g. Alt-F, Alt-W.
- TGMdiMainFrame::SetCurrent(TGMdiFrame*) signal added, which
  emittied when mdi frame is chosen/map_raised by mouse clicking on mdi title.
  That allows  to fix an effect discribed by Ilka
   "Click on a main frame title bar does not make this frame selected".
- Fix "Ctrl-O" handling in GuiBuilder. Previously it had "Save As" dialog
  title instead of "Open ..".
- Forbid Ctrl-S handling if there is no active mdi frame. That fixes an
  segv. violation discribed by Ilka when one wants to "SaveAs" GuiBuilder
  itself.
- Fix name clashes when TRootEmbeddedCanvas saved. It was discovered
  when Cut&Paste embedded canvases during gui building.

Revision 10402 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Oct 25 12:06:50 2004 UTC (10 years, 3 months ago) by rdm
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37940 byte(s)
Diff to previous 10125
From Valeriy:
- TGFrame::MustCleanup now returns Int_t value (was Bool_t).
  Backward compatible.
- Int_t TGWindow::MustCleanup method added.
- TGTextButton dtor. Checking added. If kDeepCleanup is on call
  of GetMainFrame() gave segv.
- in TGMainFrame handing Ctrl-S it was not possible to save macro
  in other directory than the current.
- The same fix as above for ROOT GuiBuilder. Thanks to
  Christian Stratova for reporting it.
- TGMdiDecorFrame now using hierarchical cleaning. That fixes
  many memory leaks and improves robustness of GuiBuilder.
- TRootCanvas/TRootEmbeddedCanvas - disable swithching to
  editable mode (canvas became black after that) for container frame.
- Gui Builder highlights any plain composite frame under pointer.
  Protection added that highlighted frame exists and is a ROOT frame.
- improvements in TGuiBldQuickHandler. Sometimes it gave segv.

Revision 10125 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Sep 21 16:23:36 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37902 byte(s)
Diff to previous 10103
From Valeriy Onuchin:

- Fix appearance of X11 error message when editable MdiFrame is  closed.

Revision 10103 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Mon Sep 20 14:28:12 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37835 byte(s)
Diff to previous 10056
From Valeriy Onuchin:
- remove AddInput(kButtonPressMask); from TGMainFrame constructor.
- do not call   ((TGMainFrame *)((TGMdiMainFrame *)fMdiWin)->GetMainFrame())->Layout();
  when button pressed in TGMdiTitleFrame.  That generates segv.
  while running GuiBuilder. This is quick fix. I'll try to find solution later.
- TGMdiMainFrame::RemoveMdiFrame(TGMdiFrame *frame) use ID
  of removed frame in SendMessage and  FrameClosed signal

Revision 10056 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 15 10:26:15 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37853 byte(s)
Diff to previous 9973
From Valeriy Onuchin
Replace fClient->GetRoot by GetDefaultRoot

Revision 9973 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 16:06:49 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37840 byte(s)
Diff to previous 9972
From Ilka:
Minor fix in TGMdiMainFrame::SavePrimitive

Revision 9972 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 10 14:00:40 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37830 byte(s)
Diff to previous 9954
From Ilka:
Implementation of SavePrimitive for all MDI classes.

In addition:
- setting of new x,y coordinates in TGMdiFrame::Move method;
- fMdiHints was not initialized in the TGMdiFrame ctor
- new data member TGMdiMainFrame::fArrangementMode for saving the
selected arrangement mode
- included a getter: GetMenuBar() in TGMdiMenuBar

Revision 9954 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 8 16:03:57 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 36077 byte(s)
Diff to previous 9903
From Valeriy Onuchin:

- two classes introduced TVirtualDragManager, TVirtualGuiBld
- TGWindow
  o move some TGFrame methods to here
  o fEditDisabled data member and  setter/getter methods introduced
     That allows to disable switch to edit mode

- TGFrame, TGCompositeFrame
 o new data members introduced  and correspondent setter/getters
   UInt_t   fMinWidth;      // minimal frame width
   UInt_t   fMinHeight;     // minimal frame height
   UInt_t   fMaxWidth;      // maximal frame width
   UInt_t   fMaxHeight;     // maximal frame height

 Correction to layout under development.

  o fCleanup data member is renamed to  fMustCleanup (to avoid name clashes)
  o methods required for handling drag and drop as weel for guibuilding added, i.e.
   HandleDragEnter, HandleDragLeave, HandleDragMotion, HandleDragDrop etc.

Revision 9903 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 3 16:19:37 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37152 byte(s)
Diff to previous 9891
change color arguments from ULong_t to Pixel_t.

Revision 9891 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 3 13:39:55 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37153 byte(s)
Diff to previous 9882
From Ilka:
added missing protection.

Revision 9882 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 3 08:17:37 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37169 byte(s)
Diff to previous 9881
Remove unused variables

Revision 9881 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 3 08:15:35 2004 UTC (10 years, 4 months ago) by brun
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37212 byte(s)
Diff to previous 9878
From Bertrand Bellenot
Patch calling correct gVirtualX->Warp() version.

Revision 9878 - (view) (download) (as text) (annotate) - [select for diffs]
Added Fri Sep 3 00:25:48 2004 UTC (10 years, 4 months ago) by rdm
Original Path: trunk/gui/src/TGMdiMainFrame.cxx
File length: 37289 byte(s)
new MDI (Multiple Document Interface) GUI classes. Ported from xclass 95
by Bertrand Bellenot and me. To see how this works and for example code
see $ROOTSYS/tutorials/mditest.C.

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