git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27358
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
size_t GetCount();
wxPlotCurve *GetAt( size_t n );
size_t GetCount();
wxPlotCurve *GetAt( size_t n );
- void SetCurrent( wxPlotCurve* current );
- wxPlotCurve *GetCurrent();
+ void SetCurrentCurve( wxPlotCurve* current );
+ wxPlotCurve *GetCurrentCurve();
// mark list accessors
// -------------------
// mark list accessors
// -------------------
{
loop:
#ifdef __cplusplus
{
loop:
#ifdef __cplusplus
- while (yyinput() != '*');
+ while (yyinput() != '*') ;
- while (input() != '*');
+ while (input() != '*') ;
switch (input())
#endif
{
switch (input())
#endif
{
event1.SetPosition( (int)floor(x/m_owner->GetZoom()) );
m_owner->GetEventHandler()->ProcessEvent( event1 );
event1.SetPosition( (int)floor(x/m_owner->GetZoom()) );
m_owner->GetEventHandler()->ProcessEvent( event1 );
- if (curve != m_owner->GetCurrent())
+ if (curve != m_owner->GetCurrentCurve())
{
wxPlotEvent event2( wxEVT_PLOT_SEL_CHANGING, m_owner->GetId() );
event2.SetEventObject( m_owner );
{
wxPlotEvent event2( wxEVT_PLOT_SEL_CHANGING, m_owner->GetId() );
event2.SetEventObject( m_owner );
event2.SetCurve( curve );
if (!m_owner->GetEventHandler()->ProcessEvent( event2 ) || event2.IsAllowed())
{
event2.SetCurve( curve );
if (!m_owner->GetEventHandler()->ProcessEvent( event2 ) || event2.IsAllowed())
{
- m_owner->SetCurrent( curve );
+ m_owner->SetCurrentCurve( curve );
{
wxPlotCurve *curve = (wxPlotCurve*) node->GetData();
{
wxPlotCurve *curve = (wxPlotCurve*) node->GetData();
- if (curve == m_owner->GetCurrent())
+ if (curve == m_owner->GetCurrentCurve())
dc.SetPen( *wxBLACK_PEN );
else
dc.SetPen( *wxGREY_PEN );
dc.SetPen( *wxBLACK_PEN );
else
dc.SetPen( *wxGREY_PEN );
- wxPlotCurve *curve = m_owner->GetCurrent();
+ wxPlotCurve *curve = m_owner->GetCurrentCurve();
return (wxPlotCurve*) node->GetData();
}
return (wxPlotCurve*) node->GetData();
}
-void wxPlotWindow::SetCurrent( wxPlotCurve* current )
+void wxPlotWindow::SetCurrentCurve( wxPlotCurve* current )
{
m_current = current;
m_area->Refresh( FALSE );
{
m_current = current;
m_area->Refresh( FALSE );
if (curve == m_current) m_current = (wxPlotCurve *) NULL;
}
if (curve == m_current) m_current = (wxPlotCurve *) NULL;
}
-wxPlotCurve *wxPlotWindow::GetCurrent()
+wxPlotCurve *wxPlotWindow::GetCurrentCurve()
-\membersection{wxPlotWindow::SetCurrent}\label{wxplotwindowsetcurrent}
+\membersection{wxPlotWindow::SetCurrentCurve}\label{wxplotwindowsetcurrentcurve}
-\func{void}{SetCurrent}{\param{wxPlotCurve* }{current}}
+\func{void}{SetCurrentCurve}{\param{wxPlotCurve* }{current}}
Make one curve the current curve. This will emit a wxPlotEvent.
Make one curve the current curve. This will emit a wxPlotEvent.
-\membersection{wxPlotWindow::GetCurrent}\label{wxplotwindowgetcurrent}
+\membersection{wxPlotWindow::GetCurrentCurve}\label{wxplotwindowgetcurrentcurve}
-\func{wxPlotCurve*}{GetCurrent}{\void}
+\func{wxPlotCurve*}{GetCurrentCurve}{\void}
Returns a pointer to the current curve, or NULL.
Returns a pointer to the current curve, or NULL.