00001 // -*- C++ -*- 00002 00051 #ifndef BOXICONSHAPE_H 00052 #define BOXICONSHAPE_H 00053 00054 //#include <map> 00055 00056 //#include "wx/defs.h" 00057 //#include "wx/icon.h" 00058 //#include "wx/stattext.h" 00059 00060 #include "IconShape.h" 00061 #include "RouteIcons.h" 00062 //#include "Device.h" 00063 00064 00065 class MutBoxIconShape:public MutIconShape 00066 { 00067 public: 00068 MutBoxIconShape():MutIconShape() {} 00069 00070 MutBoxIconShape(wxWindow * parent, wxWindowID id = wxID_ANY): 00071 MutIconShape() 00072 { 00073 Create (parent, id); 00074 } 00075 00076 virtual ~MutBoxIconShape() {} 00077 00078 bool Create (wxWindow * parent = NULL, wxWindowID id = wxID_ANY) 00079 { 00080 return MutIconShape::Create(parent, id); 00081 } 00082 00083 00084 /* bool Create( wxWindow *parent, 00085 wxWindowID id, 00086 const wxString &label, 00087 const wxPoint &pos = wxDefaultPosition, 00088 const wxSize &size = wxDefaultSize, 00089 long style = 0, 00090 const wxString &name = wxStaticBoxNameStr ); 00091 */ 00092 00093 void GetBordersForSizer(int &borderTop, int &borderOther) const; 00094 00095 virtual void OnDraw (wxDC & dc); 00096 virtual bool Layout(); 00097 00098 MutIcon & GetMutIcon () { 00099 wxASSERT(BoxBitmap.IsOk()); 00100 return BoxBitmap; 00101 } 00102 00103 00104 00105 // returning true from here ensures that we act as a container window for 00106 // our children 00107 //virtual bool IsStaticBox() const { return true; } 00108 00109 private: 00110 }; 00111 00112 00113 #endif /* BOXICONSHAPE_H */ 00114 /* 00115 * \} 00116 */