/usr/include/root/TGToolBar.h is in libroot-gui-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | // @(#)root/gui:$Id$
// Author: Fons Rademakers 25/02/98
/*************************************************************************
* Copyright (C) 1995-2000, 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_TGToolBar
#define ROOT_TGToolBar
//////////////////////////////////////////////////////////////////////////
// //
// TGToolBar //
// //
// A toolbar is a composite frame that contains TGPictureButtons. //
// Often used in combination with a TGHorizontal3DLine. //
// //
//////////////////////////////////////////////////////////////////////////
#ifndef ROOT_TGFrame
#include "TGFrame.h"
#endif
class TGButton;
class TGPictureButton;
class TList;
class TMap;
struct ToolBarData_t {
const char *fPixmap;
const char *fTipText;
Bool_t fStayDown;
Int_t fId;
TGButton *fButton;
};
class TGToolBar : public TGCompositeFrame {
protected:
TList *fPictures; // list of pictures that should be freed
TList *fTrash; // list of buttons and layout hints to be deleted
TMap *fMapOfButtons; // map of button/id pairs in this group
private:
TGToolBar(const TGToolBar&); // not implemented
TGToolBar& operator=(const TGToolBar&); // not implemented
public:
TGToolBar(const TGWindow *p = 0, UInt_t w = 1, UInt_t h = 1,
UInt_t options = kHorizontalFrame,
Pixel_t back = GetDefaultFrameBackground());
virtual ~TGToolBar();
virtual TGButton *AddButton(const TGWindow *w, ToolBarData_t *button, Int_t spacing = 0);
virtual TGButton *AddButton(const TGWindow *w, TGPictureButton *button, Int_t spacing = 0);
virtual void ChangeIcon(ToolBarData_t *button, const char *new_icon);
virtual void Cleanup();
virtual TGButton *GetButton(Int_t id) const;
virtual Long_t GetId(TGButton *button) const;
virtual void SetId(TGButton *button, Long_t id);
virtual void ButtonPressed();
virtual void ButtonReleased();
virtual void ButtonClicked();
virtual void Pressed(Int_t id) { Emit("Pressed(Int_t)",id); } //*SIGNAL*
virtual void Released(Int_t id) { Emit("Released(Int_t)",id);} //*SIGNAL*
virtual void Clicked(Int_t id) { Emit("Clicked(Int_t)",id); } //*SIGNAL*
virtual void SavePrimitive(ostream &out, Option_t *option = "");
ClassDef(TGToolBar,0) //A bar containing picture buttons
};
#endif
|