Skip to content
Snippets Groups Projects
Commit e4232a96 authored by Olivier Couet's avatar Olivier Couet
Browse files

- Coding conventions.

git-svn-id: http://root.cern.ch/svn/root/trunk@19500 27541ba8-7e3a-0410-8455-c3a389f83636
parent 8311eeee
No related branches found
No related tags found
No related merge requests found
// @(#)root/gl:$Name$:$Id$ // @(#)root/gl:$Name: $:$Id: TGLClipSetEditor.cxx,v 1.1 2007/07/23 15:01:36 rdm Exp $
// Author: Matevz Tadel, Jun 2007 // Author: Matevz Tadel, Jun 2007
/************************************************************************* /*************************************************************************
...@@ -19,14 +19,15 @@ ...@@ -19,14 +19,15 @@
#include "TGNumberEntry.h" #include "TGNumberEntry.h"
//______________________________________________________________________ //______________________________________________________________________________
// TGLClipSetSubEditor // TGLClipSetSubEditor
// //
// //
ClassImp(TGLClipSetSubEditor) ClassImp(TGLClipSetSubEditor)
//______________________________________________________________________
//______________________________________________________________________________
TGLClipSetSubEditor::TGLClipSetSubEditor(const TGWindow *p) : TGLClipSetSubEditor::TGLClipSetSubEditor(const TGWindow *p) :
TGVerticalFrame(p), TGVerticalFrame(p),
fM(0), fM(0),
...@@ -102,7 +103,8 @@ TGLClipSetSubEditor::TGLClipSetSubEditor(const TGWindow *p) : ...@@ -102,7 +103,8 @@ TGLClipSetSubEditor::TGLClipSetSubEditor(const TGWindow *p) :
fApplyButton->Connect("Pressed()", "TGLClipSetSubEditor", this, "UpdateViewerClip()"); fApplyButton->Connect("Pressed()", "TGLClipSetSubEditor", this, "UpdateViewerClip()");
} }
//______________________________________________________________________
//______________________________________________________________________________
void TGLClipSetSubEditor::SetModel(TGLClipSet* m) void TGLClipSetSubEditor::SetModel(TGLClipSet* m)
{ {
// Set model object. // Set model object.
...@@ -146,7 +148,8 @@ void TGLClipSetSubEditor::SetModel(TGLClipSet* m) ...@@ -146,7 +148,8 @@ void TGLClipSetSubEditor::SetModel(TGLClipSet* m)
} }
} }
//______________________________________________________________________
//______________________________________________________________________________
void TGLClipSetSubEditor::Changed() void TGLClipSetSubEditor::Changed()
{ {
// Emit Changed signal. // Emit Changed signal.
...@@ -154,6 +157,7 @@ void TGLClipSetSubEditor::Changed() ...@@ -154,6 +157,7 @@ void TGLClipSetSubEditor::Changed()
Emit("Changed()"); Emit("Changed()");
} }
//______________________________________________________________________________ //______________________________________________________________________________
void TGLClipSetSubEditor::ClipValueChanged() void TGLClipSetSubEditor::ClipValueChanged()
{ {
...@@ -162,6 +166,7 @@ void TGLClipSetSubEditor::ClipValueChanged() ...@@ -162,6 +166,7 @@ void TGLClipSetSubEditor::ClipValueChanged()
fApplyButton->SetState(kButtonUp); fApplyButton->SetState(kButtonUp);
} }
//______________________________________________________________________________ //______________________________________________________________________________
void TGLClipSetSubEditor::ClipTypeChanged(Int_t id) void TGLClipSetSubEditor::ClipTypeChanged(Int_t id)
{ {
...@@ -179,6 +184,7 @@ void TGLClipSetSubEditor::ClipTypeChanged(Int_t id) ...@@ -179,6 +184,7 @@ void TGLClipSetSubEditor::ClipTypeChanged(Int_t id)
Changed(); Changed();
} }
//______________________________________________________________________________ //______________________________________________________________________________
void TGLClipSetSubEditor::UpdateViewerClip() void TGLClipSetSubEditor::UpdateViewerClip()
{ {
...@@ -205,14 +211,15 @@ void TGLClipSetSubEditor::UpdateViewerClip() ...@@ -205,14 +211,15 @@ void TGLClipSetSubEditor::UpdateViewerClip()
} }
//______________________________________________________________________ //______________________________________________________________________________
// TGLClipSetEditor // TGLClipSetEditor
// //
// //
ClassImp(TGLClipSetEditor) ClassImp(TGLClipSetEditor)
//______________________________________________________________________
//______________________________________________________________________________
TGLClipSetEditor::TGLClipSetEditor(const TGWindow *p, Int_t width, Int_t height, TGLClipSetEditor::TGLClipSetEditor(const TGWindow *p, Int_t width, Int_t height,
UInt_t options, Pixel_t back) : UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options | kVerticalFrame, back), TGedFrame(p, width, height, options | kVerticalFrame, back),
...@@ -228,13 +235,12 @@ TGLClipSetEditor::TGLClipSetEditor(const TGWindow *p, Int_t width, Int_t height, ...@@ -228,13 +235,12 @@ TGLClipSetEditor::TGLClipSetEditor(const TGWindow *p, Int_t width, Int_t height,
fSE->Connect("Changed()", "TGLClipSetEditor", this, "Update()"); fSE->Connect("Changed()", "TGLClipSetEditor", this, "Update()");
} }
/**************************************************************************/
//______________________________________________________________________ //______________________________________________________________________________
void TGLClipSetEditor::SetModel(TObject* obj) void TGLClipSetEditor::SetModel(TObject* obj)
{ {
// Set model object. // Set model object.
fM = dynamic_cast<TGLClipSet*>(obj); fM = dynamic_cast<TGLClipSet*>(obj);
fSE->SetModel(fM); fSE->SetModel(fM);
} }
// @(#)root/treeviewer:$Name: $:$Id: TSpiderEditor.cxx,v 1.2 2007/07/20 14:37:37 rdm Exp $ // @(#)root/treeviewer:$Name: $:$Id: TSpiderEditor.cxx,v 1.1 2007/07/24 20:00:46 brun Exp $
// Author: Bastien Dalla Piazza 20/07/07 // Author: Bastien Dalla Piazza 20/07/07
/************************************************************************* /*************************************************************************
...@@ -173,8 +173,8 @@ void TSpiderEditor::MakeBrowse() ...@@ -173,8 +173,8 @@ void TSpiderEditor::MakeBrowse()
TGHorizontalFrame *f3 = new TGHorizontalFrame(fBrowse); TGHorizontalFrame *f3 = new TGHorizontalFrame(fBrowse);
TGLabel *GotoEntryLabel = new TGLabel(f3,"Go to:"); TGLabel *gotoEntryLabel = new TGLabel(f3,"Go to:");
f3->AddFrame(GotoEntryLabel, new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 3, 18, 1, 5)); f3->AddFrame(gotoEntryLabel, new TGLayoutHints(kLHintsLeft | kLHintsCenterY, 3, 18, 1, 5));
fGotoEntry = new TGNumberEntryField(f3, kGotoEntry, 0, fGotoEntry = new TGNumberEntryField(f3, kGotoEntry, 0,
TGNumberFormat::kNESInteger, TGNumberFormat::kNESInteger,
TGNumberFormat::kNEANonNegative); TGNumberFormat::kNEANonNegative);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment