ROOT logo
// @(#)root/ged:$Id: TGraphEditor.h 20882 2007-11-19 11:31:26Z rdm $
// Author: Carsten Hof 28/07/04

/*************************************************************************
 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TGraphEditor
#define ROOT_TGraphEditor

//////////////////////////////////////////////////////////////////////////
//                                                                      //
//  TGraphEditor                                                        //
//                                                                      //
//  Editor for changing Graph attributes.                               //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#ifndef ROOT_TGedFrame
#include "TGedFrame.h"
#endif

class TGraph;
class TGButtonGroup;
class TGTextEntry;
class TGCheckButton;
class TGRadioButton;
class TGLineWidthComboBox;

class TGraphEditor : public TGedFrame {

protected:
   char                 fDrawShape;   // Shape of the Graph (simple, smooth, bar)
   TGTextEntry         *fTitle;       // Contains the title of the graph
   Int_t                fTitlePrec;   // font precision level
   TGraph              *fGraph;       // Graph object
   TGButtonGroup       *fgr;          // Group the Radiobuttons:
   TGRadioButton       *fShape;       // just draw unconnected points
   TGRadioButton       *fShape0;      // set smooth graph curve
   TGRadioButton       *fShape1;      // set simple poly-line between every graph point
   TGRadioButton       *fShape2;      // set graph draw mode to bar chart
   TGRadioButton       *fShape3;      // set graph draw mode to fill area
   TGLayoutHints       *fShape1lh;    // layout-hints for fShape1
   TGCheckButton       *fMarkerOnOff; // set Marker visible/unvisible
   TGLineWidthComboBox *fWidthCombo;  // Exclusion zone width 
   TGCheckButton       *fExSide;      // set the exclusion zone side

   virtual void ConnectSignals2Slots();

public:
   TGraphEditor(const TGWindow *p = 0, 
               Int_t width = 140, Int_t height = 30,
               UInt_t options = kChildFrame,
               Pixel_t back = GetDefaultFrameBackground());
   virtual ~TGraphEditor();
   virtual void SetModel(TObject* obj);

   // slots related to graph attributes
   virtual void DoShape();
   virtual void DoMarkerOnOff(Bool_t on);
   virtual void DoTitle(const char *text);
   virtual void DoGraphLineWidth();

   ClassDef(TGraphEditor,0)        // graph editor
};
#endif

 TGraphEditor.h:1
 TGraphEditor.h:2
 TGraphEditor.h:3
 TGraphEditor.h:4
 TGraphEditor.h:5
 TGraphEditor.h:6
 TGraphEditor.h:7
 TGraphEditor.h:8
 TGraphEditor.h:9
 TGraphEditor.h:10
 TGraphEditor.h:11
 TGraphEditor.h:12
 TGraphEditor.h:13
 TGraphEditor.h:14
 TGraphEditor.h:15
 TGraphEditor.h:16
 TGraphEditor.h:17
 TGraphEditor.h:18
 TGraphEditor.h:19
 TGraphEditor.h:20
 TGraphEditor.h:21
 TGraphEditor.h:22
 TGraphEditor.h:23
 TGraphEditor.h:24
 TGraphEditor.h:25
 TGraphEditor.h:26
 TGraphEditor.h:27
 TGraphEditor.h:28
 TGraphEditor.h:29
 TGraphEditor.h:30
 TGraphEditor.h:31
 TGraphEditor.h:32
 TGraphEditor.h:33
 TGraphEditor.h:34
 TGraphEditor.h:35
 TGraphEditor.h:36
 TGraphEditor.h:37
 TGraphEditor.h:38
 TGraphEditor.h:39
 TGraphEditor.h:40
 TGraphEditor.h:41
 TGraphEditor.h:42
 TGraphEditor.h:43
 TGraphEditor.h:44
 TGraphEditor.h:45
 TGraphEditor.h:46
 TGraphEditor.h:47
 TGraphEditor.h:48
 TGraphEditor.h:49
 TGraphEditor.h:50
 TGraphEditor.h:51
 TGraphEditor.h:52
 TGraphEditor.h:53
 TGraphEditor.h:54
 TGraphEditor.h:55
 TGraphEditor.h:56
 TGraphEditor.h:57
 TGraphEditor.h:58
 TGraphEditor.h:59
 TGraphEditor.h:60
 TGraphEditor.h:61
 TGraphEditor.h:62
 TGraphEditor.h:63
 TGraphEditor.h:64
 TGraphEditor.h:65
 TGraphEditor.h:66
 TGraphEditor.h:67
 TGraphEditor.h:68
 TGraphEditor.h:69
 TGraphEditor.h:70
 TGraphEditor.h:71