#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"
class WXDLLIMPEXP_PLOT wxPlotXAxisArea;
class WXDLLIMPEXP_PLOT wxPlotYAxisArea;
class WXDLLIMPEXP_PLOT wxPlotWindow;
+class WXDLLIMPEXP_CORE wxStaticText;
//-----------------------------------------------------------------------------
// consts
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 )
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;
void ResetScrollbar();
+ void AddChartTitle( const wxString&, wxFont = *wxNORMAL_FONT, wxColour = *wxBLACK );
+
private:
friend class wxPlotArea;
friend class wxPlotXAxisArea;
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()
};