git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3119
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
// does nothing by default
}
{
// does nothing by default
}
- /// Obtains the latest settings used by the help frame.
- virtual void GetFrameParameters(wxSize *size = NULL,
+ /// Obtains the latest settings used by the help frame and the help
+ /// frame.
+ virtual wxFrame *GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newFrameEachTime = NULL)
{
wxPoint *pos = NULL,
bool *newFrameEachTime = NULL)
{
- // does nothing by default
+ return NULL;// does nothing by default
const wxPoint &pos = wxDefaultPosition,
bool newFrameEachTime = FALSE);
/// Obtains the latest settings used by the help frame.
const wxPoint &pos = wxDefaultPosition,
bool newFrameEachTime = FALSE);
/// Obtains the latest settings used by the help frame.
- virtual void GetFrameParameters(wxSize *size = NULL,
- wxPoint *pos = NULL,
- bool *newFrameEachTime = NULL);
+ virtual wxFrame * GetFrameParameters(wxSize *size = NULL,
+ wxPoint *pos = NULL,
+ bool *newFrameEachTime = NULL);
wxString doc;
if (s == NULL) return wxEmptyString;
wxString doc;
if (s == NULL) return wxEmptyString;
- src = new char[s -> StreamSize()+1];
- src[s -> StreamSize()] = 0;
- s -> Read(src, s -> StreamSize());
+ src = new char[s -> GetSize()+1];
+ src[s -> GetSize()] = 0;
+ s -> Read(src, s -> GetSize());
doc = src;
delete [] src;
return doc;
doc = src;
delete [] src;
return doc;
m_NewFrameEachTime = newFrame;
}
m_NewFrameEachTime = newFrame;
}
wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newframe = NULL)
wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL,
wxPoint *pos = NULL,
bool *newframe = NULL)
if(size) *size = m_FrameSize;
if(pos) *pos = m_FramePosition;
if(newframe) *newframe = m_NewFrameEachTime;
if(size) *size = m_FrameSize;
if(pos) *pos = m_FramePosition;
if(newframe) *newframe = m_NewFrameEachTime;
m_maximum = maximum;
m_elapsed = m_estimated = m_remaining = NULL;
m_maximum = maximum;
m_elapsed = m_estimated = m_remaining = NULL;
- if ((style & (wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME | wxPD_REMAINING_TIME)) != 0) m_time = new wxTime;
- else m_time = NULL;
+ if ((style & (wxPD_ELAPSED_TIME | wxPD_ESTIMATED_TIME |
+ wxPD_REMAINING_TIME)) != 0)
+ m_time = new wxTime;
+ else
+ m_time = NULL;
wxFrame::Create(m_parent, -1, title, wxDefaultPosition,
wxDefaultSize, wxDEFAULT_DIALOG_STYLE);
wxFrame::Create(m_parent, -1, title, wxDefaultPosition,
wxDefaultSize, wxDEFAULT_DIALOG_STYLE);
// -----------------------------------------------------------------------------
// wxTreeEvent
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// wxTreeEvent
// -----------------------------------------------------------------------------
+IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
wxTreeEvent::wxTreeEvent( wxEventType commandType, int id )
: wxNotifyEvent( commandType, id )
wxTreeEvent::wxTreeEvent( wxEventType commandType, int id )
: wxNotifyEvent( commandType, id )