compilation fixes and minor improvements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -126,12 +126,13 @@ DECLARE_ABSTRACT_CLASS(wxHTMLHelpControllerBase)
|
||||
{
|
||||
// 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)
|
||||
{
|
||||
// does nothing by default
|
||||
return NULL;// does nothing by default
|
||||
}
|
||||
|
||||
protected:
|
||||
|
@@ -51,9 +51,9 @@ DECLARE_CLASS(wxHelpControllerHtml)
|
||||
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);
|
||||
|
||||
|
||||
private:
|
||||
|
@@ -59,9 +59,9 @@ public:
|
||||
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;
|
||||
@@ -293,7 +293,7 @@ wxHelpControllerHtml::SetFrameParameters(const wxString &title,
|
||||
m_NewFrameEachTime = newFrame;
|
||||
}
|
||||
|
||||
void
|
||||
wxFrame *
|
||||
wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL,
|
||||
wxPoint *pos = NULL,
|
||||
bool *newframe = NULL)
|
||||
@@ -301,6 +301,7 @@ wxHelpControllerHtml::GetFrameParameters(wxSize *size = NULL,
|
||||
if(size) *size = m_FrameSize;
|
||||
if(pos) *pos = m_FramePosition;
|
||||
if(newframe) *newframe = m_NewFrameEachTime;
|
||||
return m_Frame;
|
||||
}
|
||||
|
||||
#endif // wxUSE_HTML
|
||||
|
@@ -65,8 +65,11 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
|
||||
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);
|
||||
|
@@ -161,6 +161,7 @@ private:
|
||||
// -----------------------------------------------------------------------------
|
||||
// wxTreeEvent
|
||||
// -----------------------------------------------------------------------------
|
||||
IMPLEMENT_DYNAMIC_CLASS(wxTreeEvent, wxNotifyEvent)
|
||||
|
||||
wxTreeEvent::wxTreeEvent( wxEventType commandType, int id )
|
||||
: wxNotifyEvent( commandType, id )
|
||||
|
Reference in New Issue
Block a user