library: libGpad #include "TControlBarButton.h"

# TControlBarButton

class description - source file - inheritance tree (.ps)

## class TControlBarButton : public TNamed

| Inheritance Chart:

`TObject`

<-

`TNamed`

<-

`TControlBarButton`

<-

`TControlBar` |

        public:

                              TControlBarButton()
                              TControlBarButton(const char* label, const char* action, const char* hint, const char* type = "button")
                              TControlBarButton(const TControlBarButton&)
                      virtual ~TControlBarButton()
                 virtual void Action()
               static TClass* Class()
                 virtual void Create()
          virtual const char* GetAction() const
                virtual Int_t GetType() const
              virtual TClass* IsA() const
           TControlBarButton& operator=(const TControlBarButton&)
                 virtual void SetAction(const char* action)
                 virtual void SetType(const char* type)
                 virtual void SetType(Int_t type)
                 virtual void ShowMembers(TMemberInspector& insp, char* parent)
                 virtual void Streamer(TBuffer& b)
                         void StreamerNVirtual(TBuffer& b)

### Data Members

        protected:

            Int_t fType    button type
          TString fAction  action to be executed

        public:

          static const enum TControlBarButton:: kButton
          static const enum TControlBarButton:: kDrawnButton
          static const enum TControlBarButton:: kSeparator

## Class Description

     TControlBarButton

     TControlBarButtons are created by the TControlBar. Not for general
     consumption.

TControlBarButton() : TNamed()

     Default controlbar button ctor.

TControlBarButton(const char *label, const char *action, const char *hint, const char *type) : TNamed(label, hint)

     Create controlbar button.

void Action()

     Execute controlbar button command.

void SetAction(const char *action)

     Set action to be executed by this button.

void SetType(const char *type)

     Set button type. Type can be either "button", "drawnbutton" or
     "separator". String is case insensitive. Default is "button".

void SetType(Int_t type)

     Set button type. Type can be either kButton, kDrawnButton or kSeparator.
     Default is kButton.

### Inline Functions

                          void ~TControlBarButton()
                          void Create()
                   const char* GetAction() const
                         Int_t GetType() const
                       TClass* Class()
                       TClass* IsA() const
                          void ShowMembers(TMemberInspector& insp, char* parent)
                          void Streamer(TBuffer& b)
                          void StreamerNVirtual(TBuffer& b)
             TControlBarButton TControlBarButton(const TControlBarButton&)
            TControlBarButton& operator=(const TControlBarButton&)

Author: Nenad Buncic 20/02/96
Last update: root/gpad:$Name: $:$Id: TControlBarButton.cxx,v 1.1.1.1 2000/05/16 17:00:41 rdm Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *