X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/298a3f2ee8a54964a8ba79931a9a5b1d8be200b4..88ef3a57a47f840adea9d38bc11cb30689a0838a:/contrib/include/wx/plot/plot.h diff --git a/contrib/include/wx/plot/plot.h b/contrib/include/wx/plot/plot.h index d4468d6242..d9de1776df 100644 --- a/contrib/include/wx/plot/plot.h +++ b/contrib/include/wx/plot/plot.h @@ -12,10 +12,6 @@ #ifndef _WX_PLOT_H_ #define _WX_PLOT_H_ -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "plot.h" -#endif - #include "wx/defs.h" #include "wx/scrolwin.h" @@ -44,6 +40,7 @@ class WXDLLIMPEXP_PLOT wxPlotArea; class WXDLLIMPEXP_PLOT wxPlotXAxisArea; class WXDLLIMPEXP_PLOT wxPlotYAxisArea; class WXDLLIMPEXP_PLOT wxPlotWindow; +class WXDLLIMPEXP_CORE wxStaticText; //----------------------------------------------------------------------------- // consts @@ -128,15 +125,15 @@ public: void SetStartY( double startY ) { m_startY = startY; } - double GetStartY() + double GetStartY() const { return m_startY; } void SetEndY( double endY ) { m_endY = endY; } - double GetEndY() + double GetEndY() const { return m_endY; } void SetOffsetY( int offsetY ) { m_offsetY = offsetY; } - int GetOffsetY() + int GetOffsetY() const { return m_offsetY; } void SetPenNormal( const wxPen &pen ) @@ -144,6 +141,11 @@ public: void SetPenSelected( const wxPen &pen ) { m_penSelected = pen; } + const wxPen& GetPenNormal() const + { return m_penNormal; } + const wxPen& GetPenSelected() const + { return m_penSelected; } + private: int m_offsetY; double m_startY; @@ -358,6 +360,8 @@ public: void ResetScrollbar(); + void AddChartTitle( const wxString&, wxFont = *wxNORMAL_FONT, wxColour = *wxBLACK ); + private: friend class wxPlotArea; friend class wxPlotXAxisArea; @@ -377,6 +381,14 @@ private: bool m_scrollOnThumbRelease; bool m_enlargeAroundWindowCentre; + wxString m_title; + wxFont m_titleFont; + wxColour m_titleColour; + wxStaticText* m_titleStaticText; + wxBoxSizer* m_plotAndTitleSizer; + + void DrawChartTitle(); + DECLARE_CLASS(wxPlotWindow) DECLARE_EVENT_TABLE() };