JG ROOT Tools libraries  version 5.0 - august 2014
RGFillStyleSelect Class Reference

#include <RGFillStyleSelect.hh>

Inheritance diagram for RGFillStyleSelect:

Public Member Functions

 RGFillStyleSelect (TGWindow *p, Style_t c=0, Int_t w=5, Int_t sep=4)
 
virtual ~RGFillStyleSelect ()
 
virtual void SetState (const Bool_t b=kTRUE)
 
Style_t GetStyleNumber () const
 
void SetStyleNumber (const Style_t s, const Bool_t emit=kTRUE)
 
virtual void StyleChanged (Style_t s)
 
void StyleNumberEntryChanged (const char *str)
 
void StyleSelected (Style_t s)
 
 ClassDef (RGFillStyleSelect, 0)
 

Protected Attributes

Style_t style
 Fill style number.
 
TGNumberEntry * w_number_entry
 Pointer to style number entry field.
 
TGedPatternSelect * w_style_select
 Pointer to style selection widget.
 

Private Member Functions

 GObject (RGFillStyleSelect)
 
 RGFillStyleSelect (const RGFillStyleSelect &original)
 

Detailed Description

Widget for filling style selection, from style number entry or from a style selection widget (TGedPatternSelect).

RGFillStyleSelect.gif

Constructor & Destructor Documentation

RGFillStyleSelect::RGFillStyleSelect ( TGWindow *  p,
Style_t  s = 0,
Int_t  w = 5,
Int_t  sep = 4 
)

Constructor.

Parameters
pparent widget
sinitial style number
wnumerical field width (number of digits)
sepseparation between numerical field and selector

References style, w_number_entry, and w_style_select.

RGFillStyleSelect::RGFillStyleSelect ( const RGFillStyleSelect original)
private

Copy constructor, not implemented.

Parameters
originalobject to copy
RGFillStyleSelect::~RGFillStyleSelect ( )
virtual

Destructor.

Member Function Documentation

RGFillStyleSelect::GObject ( RGFillStyleSelect  )
private

Macro from GCpp library that defines the following functions:

  • ClassName(): return the real class name of the object
  • StaticClassName(): return the used class name of the object (that may be a base class of the real object).
  • IsInstanceOf<T>(): return true if the current object is an instance of the template class name argument
  • Clone(): return an allocated copy of the object.
void RGFillStyleSelect::SetState ( const Bool_t  b = kTRUE)
virtual

Set the widget state (active/inactive)

Parameters
bstate

References w_number_entry, and w_style_select.

Referenced by RGFillAttrSelect::SetState().

Style_t RGFillStyleSelect::GetStyleNumber ( ) const
inline

Get the selected style number.

References style.

Referenced by RGFillAttrSelect::GetFillStyle().

void RGFillStyleSelect::SetStyleNumber ( const Style_t  s,
const Bool_t  emit = kTRUE 
)

Select a new style from its number.

Parameters
sstyle number
emitflag if signal must be emitted

References style, StyleChanged(), w_number_entry, and w_style_select.

Referenced by RGFillAttrSelect::SetFillStyle().

void RGFillStyleSelect::StyleChanged ( Style_t  s)
inlinevirtual

Signal sent when a style is selected.

Parameters
sselected style

Referenced by SetStyleNumber(), StyleNumberEntryChanged(), and StyleSelected().

void RGFillStyleSelect::StyleNumberEntryChanged ( const char *  str)

Slot called when style number is modified.

References style, StyleChanged(), w_number_entry, and w_style_select.

void RGFillStyleSelect::StyleSelected ( Style_t  s)

Slot called when style selector is modified.

References style, StyleChanged(), and w_number_entry.

RGFillStyleSelect::ClassDef ( RGFillStyleSelect  ,
 
)

For ROOT dictionary.


The documentation for this class was generated from the following files: