Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TGedMarkerSelect.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/ged:$Id$
0002 // Author: Marek Biskup, Ilka Antcheva   24/07/03
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TGedMarkerSelect
0013 #define ROOT_TGedMarkerSelect
0014 
0015 
0016 #include "TGedPatternSelect.h"
0017 
0018 class TGToolTip;
0019 class TGPicture;
0020 
0021 
0022 class TGedMarkerPopup : public TGedPopup {
0023 
0024 protected:
0025    Style_t  fCurrentStyle;     //currently selected style
0026 
0027 public:
0028    TGedMarkerPopup(const TGWindow *p, const TGWindow *m, Style_t markerStyle);
0029    ~TGedMarkerPopup() override;
0030 
0031    Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override;
0032 
0033    ClassDefOverride(TGedMarkerPopup,0)  //marker select popup
0034 };
0035 
0036 
0037 class TGedMarkerSelect : public TGedSelect {
0038 
0039 protected:
0040    Style_t          fMarkerStyle;   ///< marker style
0041    const TGPicture *fPicture;       ///< image used for popup window
0042 
0043    void     DoRedraw() override;
0044 
0045 public:
0046    TGedMarkerSelect(const TGWindow *p, Style_t markerStyle, Int_t id);
0047    ~TGedMarkerSelect() override { if(fPicture) gClient->FreePicture(fPicture);}
0048 
0049    Bool_t ProcessMessage(Longptr_t msg, Longptr_t parm1, Longptr_t parm2) override;
0050    Style_t        GetMarkerStyle() const { return fMarkerStyle; }
0051    void           SetMarkerStyle(Style_t pattern);
0052    virtual void   MarkerSelected(Style_t marker = 0) { Emit("MarkerSelected(Style_t)", marker ? marker : GetMarkerStyle()); }  // *SIGNAL*
0053    void   SavePrimitive(std::ostream &out, Option_t * = "") override;
0054    TGDimension GetDefaultSize() const override { return TGDimension(38, 21); }
0055 
0056    ClassDefOverride(TGedMarkerSelect,0)  // Marker selection button
0057 };
0058 
0059 #endif