forked from root-project/root
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New class to edit TSpider objects. git-svn-id: http://root.cern.ch/svn/root/trunk@19417 27541ba8-7e3a-0410-8455-c3a389f83636
- Loading branch information
Rene Brun
authored and
Rene Brun
committed
Jul 20, 2007
1 parent
c72757e
commit b466da3
Showing
2 changed files
with
551 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
#ifndef ROOT_TSpiderEditor | ||
#define ROOT_TSpiderEditor | ||
|
||
////////////////////////////////////////////////////////////////////////// | ||
// // | ||
// TSpiderEditor // | ||
// // | ||
// Editor widget for the TSpider. // | ||
// // | ||
////////////////////////////////////////////////////////////////////////// | ||
|
||
#ifndef ROOT_TGedFrame | ||
#include "TGedFrame.h" | ||
#endif | ||
|
||
class TSpider; | ||
class TGCheckButton; | ||
class TGNumberEntryField; | ||
class TGNumberEntry; | ||
class TGButtonGroup; | ||
class TGRadioButton; | ||
class TGPicture; | ||
class TGPictureButton; | ||
class TGTextEntry; | ||
class TGLineStyleComboBox; | ||
class TGLineWidthComboBox; | ||
class TGColorSelect; | ||
class TGedPatternSelect; | ||
|
||
class TSpiderEditor : public TGedFrame{ | ||
protected: | ||
TSpider *fSpider; // Pointer to the TSpider. | ||
TGCheckButton *fDisplayAverage; // Button for the display of the average. | ||
TGLineStyleComboBox *fAvLineStyleCombo; // line style combo box for the average. | ||
TGLineWidthComboBox *fAvLineWidthCombo; // line width combo box for the average. | ||
TGColorSelect *fAvLineColorSelect;// line color widget for the average. | ||
TGColorSelect *fAvFillColorSelect; // fill color widget for the average. | ||
TGedPatternSelect *fAvFillPatternSelect; // fill pattern widget for the average. | ||
TGNumberEntryField *fSetNx; // To set the nx number of subpads. | ||
TGNumberEntryField *fSetNy; // To set the ny number of subpads. | ||
TGButtonGroup *fBgroup; // Group of the plot type selection. | ||
TGRadioButton *fPolyLines; // Polyline option. | ||
TGRadioButton *fSegment; // Segment option. | ||
TGCompositeFrame *fBrowse; // Browse tab. | ||
TGNumberEntryField *fGotoEntry; // Jump to an entry field. | ||
TGPictureButton *fGotoNext; // Go to next entries button. | ||
const TGPicture *fPicNext; // Go to next entries picture. | ||
TGPictureButton *fGotoPrevious; // Go to previous entries button. | ||
const TGPicture *fPicPrevious; // Go to previous entries picture. | ||
TGPictureButton *fGotoFollowing; // Go to next entry button. | ||
const TGPicture *fPicFollowing; // Go to next entry picture. | ||
TGPictureButton *fGotoPreceding; // Go to last entry button. | ||
const TGPicture *fPicPreceding; // Go to last entry picture. | ||
TGTextEntry *fAddVar; // Add variable field. | ||
TGTextEntry *fDeleteVar; // Delete variable field. | ||
|
||
virtual void ConnectSignals2Slots(); | ||
void MakeBrowse(); | ||
|
||
public: | ||
TSpiderEditor(const TGWindow *p = 0, | ||
Int_t width = 140, Int_t height = 30, | ||
UInt_t options = kChildFrame, | ||
Pixel_t back = GetDefaultFrameBackground()); | ||
~TSpiderEditor(); | ||
|
||
virtual void DoAddVar(); | ||
virtual void DoDeleteVar(); | ||
virtual void DoDisplayAverage(Bool_t av); | ||
virtual void DoGotoEntry(); | ||
virtual void DoGotoNext(); | ||
virtual void DoGotoPrevious(); | ||
virtual void DoGotoFollowing(); | ||
virtual void DoGotoPreceding(); | ||
virtual void DoSetNx(); | ||
virtual void DoSetNy(); | ||
virtual void DoSetPlotType(); | ||
virtual void SetModel(TObject* obj); | ||
virtual void DoAvLineStyle(Int_t); | ||
virtual void DoAvLineWidth(Int_t); | ||
virtual void DoAvLineColor(Pixel_t); | ||
virtual void DoAvFillColor(Pixel_t); | ||
virtual void DoAvFillPattern(Style_t); | ||
|
||
ClassDef(TSpiderEditor,0) // GUI for editing the spider plot attributes. | ||
}; | ||
|
||
#endif |
Oops, something went wrong.