Log of /trunk/gui/ged/src/TGedEditor.cxx
Parent Directory
Revision
33457 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue May 11 07:11:07 2010 UTC (4 years, 8 months ago) by
bellenot
File length: 21730 byte(s)
Diff to
previous 32185
From Matevz:
* TGedFrame: Remove function TGedFrame::GetLayoutHints() and data-member fLayoutHints caching these layout-hints as it led to double deletion in TGedEditor destruction.
* TGedEditor: Directly instantiate layout-hints instead of calling TGedFrame::GetLayoutHints().
Revision
31206 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Nov 16 16:48:49 2009 UTC (5 years, 2 months ago) by
bellenot
File length: 21574 byte(s)
Diff to
previous 27157
Form Matevz:
Create name-frame in new virtual function CreateNameFrame() to allow sub-classes to override the default look or add new functionality.
Revision
20292 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Oct 10 14:08:48 2007 UTC (7 years, 3 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 21298 byte(s)
Diff to
previous 19826
From Matevz & Alja
* base/inc/TVirtualViewer3D.h:
Add function virtual void ObjectPaint(TObject*, Option_t*).
/**************************************************************************/
* ged/src/TGedEditor.cxx:
When adding top-level TGFrame for the extra tabs specify layout
hints with kLHintsExpandX.
/**************************************************************************/
* gl/inc/TGLScenePad.h:
* gl/src/TGLScenePad.cxx:
Implement virtual TVirtualViewer3D::ObjectPaint().
* gl/src/TGLCamera.cxx:
* gl/inc/TGLCamera.h:
* gl/src/TGLPerspectiveCamera.cxx:
* gl/inc/TGLPerspectiveCamera.h:
* gl/src/TGLOrthoCamera.cxx:
* gl/inc/TGLOrthoCamera.h:
Introduce two transformation matrices to clearly define movement
of camera around the center point. The first transformation matrix
fCamBase defines the coordinate system placed at the camera center
point with camera up-vector as the third base vector. The second
transformation matrix fCamTrans defines the camera transformation
relative to fCamBase.
Implement a common Truck(), Rotate() and Dolly() function for
orthographic and perspective camera.
Implement an option to define camera center point
externally. Center can also be determined via picking.
* gl/src/TGLUtil.cxx:
* gl/inc/TGLUtil.h:
TGLMatrix: add new functions to get/set the base vectors
directly.
TGLUtil: add member UInt_t fgDefaultDrawQuality.
TGLRect: bugfix in Diagonal(), integer calculation overflowed.
* gl/src/TGLViewer.cxx:
* gl/inc/TGLViewer.h:
Make interface to draw camera center point.
Add option to disable/enable depth test when drawing axis guides.
* gl/src/TGLViewerEditor.cxx:
* gl/inc/TGLViewerEditor.h:
Add GUI to manipulate camera center and to disable/enable depth
test when drawing axis guides.
* gl/src/TGLClipSetEditor.cxx:
Change layout of labeled number entries.
* gl/src/TGLLightSet.cxx:
Fix positioning of front light. White-space consolidation.
* gl/src/TGLLightSetEditor.cxx:
* gl/inc/TGLLightSetEditor.h:
Put GUI for the 6 lights in two columns.
/**************************************************************************/
* tutorials/gl/glViewerExercise.C:
Follow-up on changes in TGLCamera. Enable rotation on
orthographic camera.
* tutorials/gl/glViewerLOD.C:
Workourond for cint bug with switch statements.
Revision
17561 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Jan 29 15:10:49 2007 UTC (7 years, 11 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 21213 byte(s)
Diff to
previous 17560
-Add include "TROOT.h" in all implementation files that were assuming
that TROOT was included via TClass.h
-In TClass.h:
--Remove the include of TROOT.h
--add the following static member
static IdMap_t *fgIdMap; //Map from typeid to TClass pointer
--add the following functions:
static void AddClass(TClass *cl);
static void RemoveClass(TClass *cl);
--Replace the inline definitions of GetClass functions by
template <typename T> TClass* GetClass( T** /* dummy */) { return GetClass((T*)0); }
template <typename T> TClass* GetClass(const T** /* dummy */) { return GetClass((T*)0); }
-In TClass.cxx:
--Instead of forwarding the calls to gROOT->GetClass, move the code
originally in TROOT in the TClass::GetClass functions
--Move class TMapTypeToTClass from TROOT to TClass.
Revision
16327 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Sep 25 13:31:54 2006 UTC (8 years, 4 months ago) by
rdm
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 18996 byte(s)
Diff to
previous 15849
From Matevz:
Reimplementation of TGedFrame and tab management.
1. Change creation of class-editors:
Use TClass::New() for instantiation. When fModel is changed, store
it in a local map fFrameMap. During construction get
them from pool or instantiate.
2. Handle visibility and order of class-editors:
Traverse the class hierarchy and construct a list of visible
frames. Each class-editor can override the default behavior by
implementing the virtual TGedFrame::ActivateBaseClassEditors()
method.
3. New SetModel scheme:
Hide currently shown tabs and their contents, then return them
to fFrameMap pool.
Activate desired TGedFrames and appropriate extra tabs Recursively
descend via
TGedEditor::ActivateEditor(TClass* c, Bool t recurse) and
TGedEditor::ActivateEditors(TList* classes, Bool t recurse).
For each encountered class-editor (not all classes have editors)
redirect recursion via virtual
TGedFrame::ActivateBaseClassEditors(TClass* c).
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/ged/src/TGedEditor.cxx
File length: 13982 byte(s)
Diff to
previous 15526
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
15526 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 23 15:19:22 2006 UTC (8 years, 7 months ago) by
antcheva
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 14946 byte(s)
Diff to
previous 15166
- fixed problem of object editor performance caused by freely emitted
signals of used GUI elements and corresponding slots execution.
TGedFrame
- new data member fAvoidSignal = kFALSE by default. In SetModel method of any editor it is set to kTRUE to avoid executing slot method and in the end of SetModet is set to kFALSE again;
TGedEditor
- move the call of TGMainFrame::Layout from TGedFrame::SetActive in
TGedEditor::SetModel
TPadEditor
- no need of TGCompositeFrame *f7 as data member
- added new data member TGButtonGroup *fBgrop
- connected DoBorderMode slot with TGButtonGroup::Released signal
TGraphEditor
- changed signature of DoShape method
- connected DoShape slot with TGButtonGroup::Released signal
TH1Editor
- new method DoHistView()
- fixed problem shown with MSVS 8 (thaks to Timur and Bertrand)
- connected DoHistView slot with TGButtonGroup::Released signal
TH2Editor
- new method DoHistView()
- fixed problem shown with MSVS 8 (thaks to Timur and Bertrand)
- connected DoHistView slot with TGButtonGroup::Released signal
All other editors - follow-up changes in the code related to the
fAvoidSignal use.
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/ged/src/TGedEditor.cxx
File length: 14538 byte(s)
Diff to
previous 14336
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
14336 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Mar 20 21:43:44 2006 UTC (8 years, 10 months ago) by
pcanal
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 13663 byte(s)
Diff to
previous 13508
Reduce direct dependencies on TClass.h, TROOT.h and TStreamerInfo.h.
Warning: This means that some file that relied on the indirect
inclusion of these header file might now fail to compile with
an error message mention that gROOT is no known or that TClass,
TROOT or TStreamerInfo is incompletely defined. Simply add the
proper include directive.
Revision
13508 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 6 17:32:15 2005 UTC (9 years, 1 month ago) by
rdm
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 13644 byte(s)
Diff to
previous 13358
From Ilka:
- fix of the bug 13809 reported on Savannah in Dividers methods of
TH1/2Editors (thanks to Axel).
- improved performance of both histogram editors.
- memory leak fixes.
- comment fixes.
- code layout changes of TH1/2 editors to make the code readable
(some lines had > 150 symbols).
Revision
11844 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 20 16:22:37 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 13091 byte(s)
Diff to
previous 11843
From Ilka:
Additional fix for :
- TGedEditor.cxx - change the height in the Show() method too
- TGraphEditor - fix a side effect seen in ntuple1.C
- draw2dopt.C - change the canvas name to "surfopt" to avoid overwriting on
Windows
(Thanks to Philippe)
Revision
11843 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri May 20 14:39:22 2005 UTC (9 years, 8 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 13090 byte(s)
Diff to
previous 11789
From Ilka:
ged/src/TGedEditor.cxx
- change the height in the constructor to avoid scrollbars
ged/src/TGraphEditor.cxx
- graph editor works for TGraphErrors objects too
tutorials/draw2dopt.C
- change the canvas name from "surfaces" to "Surfaces" to avoid overwriting
the macro surfaces.C when saving this canvas as a macro .C file via Save
menu.
Revision
11221 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Mar 3 22:06:49 2005 UTC (9 years, 10 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 12362 byte(s)
Diff to
previous 11021
From Ilka:
TVirtualPadEditor.h, cxx
- new methids IsGlobal(), SetGlobal()
- setting of globel editor in Show() method
TGedEditor.h, cxx
- new data member:Bool_t fGlobal; //true if editor is global
- new methods: IsGlobal(), SetGlobal(), SetCanvas(), GetCanvas(),
DisconnectEditors()
TRootCanvas.cxx
- code changes that allow only one editor (embedded or global) to be activated
per canvas
- activating the global editor via the context menu of another canvas will
connect this canvas to it and will close the embedded editor if it was opened
- the global editor works for any embedded canvas
Revision
10675 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 3 12:07:44 2004 UTC (10 years, 1 month ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 9481 byte(s)
Diff to
previous 10558
From Ilka:
fix of bug #2582. The changes are:
base/inc/TVirtualPadEditor.h,cxx
- the signature of GetPadEditor method
- new method Terminate() via which the global editor is closed
ged/src/TGedEditor.cxx
- fixes in Hide and RecursiveRemove methods
gui/src/TRootCanvas.cxx
- fix in dtor: deletion of fEditor has nothing to do with MustCleanup;
this caused double deletion in some cases
- close of the global editor in case it was activated
tutorials/guitest.C
- close of the global editor in case it was activated via embedded
canvas context menu
Revision
10558 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Nov 18 15:52:17 2004 UTC (10 years, 2 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 9504 byte(s)
Diff to
previous 10505
From Ilka:
changes that provide scroll bars for the object editors:
TGedEditor.h,.cxx
- new data member: TGCanvas *fCan
- set the name of editor window 'canvasname_Editor'
TRootCanvas.cxx
- minor layout changes required by the scroll bar appearance
Revision
9320 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 25 17:13:23 2004 UTC (10 years, 7 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 8509 byte(s)
Diff to
previous 9260
From Ilka:
- implemented new method ConnectSignals2Slots() to avoid non pleasant
behavior of selected object in the canvas;
- improved comments;
- TGGroupFrame::DrawBorder() - fix in border drawing to avoid extra space
in the bottom of the group frame;
-TRootCanvas::ReallyDelete() - missing a call to DeleteEditors() method;
TPadEditor class provides GUI for an easy control of pad/canvas attributes.
Users can set log scales, ticks and grids along x, y,z; border mode and
size, etc.
TPaveStatsEditor provides GUI for editing TPaveStats options.
Revision
9254 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jun 18 15:50:43 2004 UTC (10 years, 7 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 8388 byte(s)
Diff to
previous 8655
From Ilka:
- TGedEditor class is changed completely to allow the freedom of loading any
available attribute editor. There is a name convention to follow for this
purpose: the name of the attribute editor is the class name + 'Editor',
(i.e. the attribute editor of TAxis should be called TAxisEditor)
Revision
8655 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Apr 22 16:28:29 2004 UTC (10 years, 9 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 2992 byte(s)
Diff to
previous 8484
Mega patch from Ilka:
base/inc/TAttAxis.h
~ SetTitleSize default value was wrong
ged/inc/LinkDef.h
~ included the new classes:
TGedAttAxisFrame,
TGedAttAxisTitle,
TGedAttAxisLabel
ged/inc/TGedAttFrame.h, cxx
~ add comments on data members
~ new classes:
TGedAttAxisFrame - axis attribute frame
TGedAttAxisTitle - axis title attribute frame
TGedAttAxisLabel - axis label attribute frame
~ layout hints changed mostly everywhere to gain space for axis
attribute widgets in the editor window
~ code cleaning
~ added comments everywhere
~ new methods in class TGedAttFrame: ExecuteChar(), Update()
ged/inc/TGedEditor.h, cxx
~ removed fToolBox data member
~ changes required by removing of fToolBox
ged/inc/TGedPropertyFrame.h, cxx
~ added three new property farmes
~ the number of property frames is set via kNPropertyFrames
~ added axis, axis title, axis label attribute frames
ged/src/TGedToolBox.cxx
~ changes in: layout manager and button names
gpad/inc/TCanvas.h, cxx
~ new data members: fSelectedX, fSelectedY keeping the (X,Y)
of selected object + corresponding getters
~ removed '!' from the comments of fShowToolBar, fShowEditor
~ changed class version from 4 to 5
~ changes in SaveSource to save the status of toolbar and pad
editor in .C macro
gui/inc/TGNumberEntry.h, cxx
~ new signal ValueSet() needed by pad editor
gui/inc/TRootCanvas.h, cxx
~ new data members:
fFileSaveMenu // save cascade submenu
fEditClearMenu // clear cascade submenu
fViewWithMenu // view with... cascade submenu
~ menu reorganization
~ keeping the canvas size when showing the pad editor
~ moving the canvas scroll bars according to the (X,Y) of
selected object to make it visible
~ draw primitive buttons added to the tool bar
Revision
8280 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Feb 20 16:30:49 2004 UTC (10 years, 11 months ago) by
rdm
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 2983 byte(s)
Diff to
previous 8261
fix to avoid confusion between embedded editor and editor in dialog.
Each TCanvas (i.e. via TRootCanvas) own its editor obtained via
TVirtualPadEditor::LoadEditor(). However, there is only one editor dialog
for the entire application, which is referenced via
TVirtualPadEditor::GetPadEditor() (using the fgPadEditor static member).
Clicking the WM close button on this dialog does not delete, but just hide
the dialog for later use. Assigning an object to be edited by the editor in
the dialog is not yet fully functional.
Revision
8233 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Wed Feb 18 20:13:43 2004 UTC (10 years, 11 months ago) by
brun
Original Path:
trunk/ged/src/TGedEditor.cxx
File length: 2476 byte(s)
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.
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.