Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TGedMarkerSelect.h
Go to the documentation of this file.
1// @(#)root/ged:$Id$
2// Author: Marek Biskup, Ilka Antcheva 24/07/03
3
4/*************************************************************************
5 * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TGedMarkerSelect
13#define ROOT_TGedMarkerSelect
14
15
16#include "TGedPatternSelect.h"
17
18class TGToolTip;
19class TGPicture;
20
21
22class TGedMarkerPopup : public TGedPopup {
23
24protected:
25 Style_t fCurrentStyle; //currently selected style
26
27public:
28 TGedMarkerPopup(const TGWindow *p, const TGWindow *m, Style_t markerStyle);
29 virtual ~TGedMarkerPopup();
30
31 virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2);
32
33 ClassDef(TGedMarkerPopup,0) //marker select popup
34};
35
36
38
39protected:
40 Style_t fMarkerStyle; ///< marker style
41 const TGPicture *fPicture; ///< image used for popup window
42
43 virtual void DoRedraw();
44
45public:
46 TGedMarkerSelect(const TGWindow *p, Style_t markerStyle, Int_t id);
47 virtual ~TGedMarkerSelect() { if(fPicture) gClient->FreePicture(fPicture);}
48
49 virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2);
51 void SetMarkerStyle(Style_t pattern);
52 virtual void MarkerSelected(Style_t marker = 0) { Emit("MarkerSelected(Style_t)", marker ? marker : GetMarkerStyle()); } // *SIGNAL*
53 virtual void SavePrimitive(std::ostream &out, Option_t * = "");
54 virtual TGDimension GetDefaultSize() const { return TGDimension(38, 21); }
55
56 ClassDef(TGedMarkerSelect,0) // Marker selection button
57};
58
59#endif
long Longptr_t
Definition RtypesCore.h:82
bool Bool_t
Definition RtypesCore.h:63
short Style_t
Definition RtypesCore.h:89
const char Option_t
Definition RtypesCore.h:66
#define ClassDef(name, id)
Definition Rtypes.h:325
#define gClient
Definition TGClient.h:157
The TGPicture class implements pictures and icons used in the different GUI elements and widgets.
Definition TGPicture.h:25
ROOT GUI Window base class.
Definition TGWindow.h:23
The TGedMarkerPopup is a popup containing buttons to select marker style.
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process messages generated by the marker popup window.
virtual ~TGedMarkerPopup()
Destructor.
The TGedMarkerSelect widget is a button showing selected marker and a little down arrow.
void SetMarkerStyle(Style_t pattern)
Set marker.
virtual TGDimension GetDefaultSize() const
default size
virtual void DoRedraw()
Draw selected marker type as current one.
Style_t fMarkerStyle
marker style
virtual Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2)
Process messages according to the user input.
Style_t GetMarkerStyle() const
virtual void SavePrimitive(std::ostream &out, Option_t *="")
Save the pattern select widget as a C++ statement(s) on output stream out.
const TGPicture * fPicture
image used for popup window
virtual ~TGedMarkerSelect()
virtual void MarkerSelected(Style_t marker=0)
is a popup window.
is button that shows popup window when clicked.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Definition TQObject.h:164
auto * m
Definition textangle.C:8