git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25556
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxLog *wxGUIAppTraitsBase::CreateLogTarget()
{
wxLog *wxGUIAppTraitsBase::CreateLogTarget()
{
+#else
+ // wem ust have something!
+ return new wxLogStderr;
+#endif
#include "wx/dcclient.h"
#endif //WX_PRECOMP
#include "wx/dcclient.h"
#endif //WX_PRECOMP
#include "wx/htmllbox.h"
#include "wx/html/htmlcell.h"
#include "wx/htmllbox.h"
#include "wx/html/htmlcell.h"
return cell->GetHeight() + cell->GetDescent() + 4;
}
return cell->GetHeight() + cell->GetDescent() + 4;
}
// wxLogGui implementation (FIXME MT-unsafe)
// ----------------------------------------------------------------------------
// wxLogGui implementation (FIXME MT-unsafe)
// ----------------------------------------------------------------------------
wxLogGui::wxLogGui()
{
Clear();
wxLogGui::wxLogGui()
{
Clear();
+#endif // wxUSE_LOGGUI
+
// ----------------------------------------------------------------------------
// wxLogWindow and wxLogFrame implementation
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// wxLogWindow and wxLogFrame implementation
// ----------------------------------------------------------------------------
wxEXPAND // No border, (mostly useless) horizontal stretching
);
wxEXPAND // No border, (mostly useless) horizontal stretching
);
if ( m_bitmap.Ok() )
{
m_statbmp = new wxStaticBitmap(this, -1, m_bitmap);
if ( m_bitmap.Ok() )
{
m_statbmp = new wxStaticBitmap(this, -1, m_bitmap);
wxEXPAND // No border, (mostly useless) vertical stretching
);
}
wxEXPAND // No border, (mostly useless) vertical stretching
);
}
// Added to m_sizerBmpAndPage in FinishLayout
m_sizerPage = new wxWizardSizer(this);
// Added to m_sizerBmpAndPage in FinishLayout
m_sizerPage = new wxWizardSizer(this);
// change the bitmap if:
// 1) a default bitmap was selected in constructor
// 2) this page was constructed with a bitmap
// change the bitmap if:
// 1) a default bitmap was selected in constructor
// 2) this page was constructed with a bitmap
bmp = m_page->GetBitmap();
m_statbmp->SetBitmap(bmp);
}
bmp = m_page->GetBitmap();
m_statbmp->SetBitmap(bmp);
}
// and update the buttons state
m_btnPrev->Enable(HasPrevPage(m_page));
// and update the buttons state
m_btnPrev->Enable(HasPrevPage(m_page));
#include "wx/msw/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
#include "wx/msw/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxAcceleratorTable, wxObject)
return Ok() && ::TranslateAccelerator(GetHwndOf(window), GetHaccel(), msg);
}
return Ok() && ::TranslateAccelerator(GetHwndOf(window), GetHaccel(), msg);
}
wxCursor::wxCursor(const wxImage& image)
{
// image has to be of the standard cursor size, otherwise we won't be able
wxCursor::wxCursor(const wxImage& image)
{
// image has to be of the standard cursor size, otherwise we won't be able
m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
}
m_refData = new wxCursorRefData(hcursor, true /* delete it later */);
}
wxCursor::wxCursor(const char WXUNUSED(bits)[],
int WXUNUSED(width),
wxCursor::wxCursor(const char WXUNUSED(bits)[],
int WXUNUSED(width),
if (str == wxT("BUTTON"))
{
int style1 = (style & 0xFF);
if (str == wxT("BUTTON"))
{
int style1 = (style & 0xFF);
if ((style1 == BS_3STATE) || (style1 == BS_AUTO3STATE) || (style1 == BS_AUTOCHECKBOX) ||
(style1 == BS_CHECKBOX))
{
win = new wxCheckBox;
}
if ((style1 == BS_3STATE) || (style1 == BS_AUTO3STATE) || (style1 == BS_AUTOCHECKBOX) ||
(style1 == BS_CHECKBOX))
{
win = new wxCheckBox;
}
- else if ((style1 == BS_AUTORADIOBUTTON) || (style1 == BS_RADIOBUTTON))
+ else
+#endif
+#if wxUSE_RADIOBTN
+ if ((style1 == BS_AUTORADIOBUTTON) || (style1 == BS_RADIOBUTTON))
{
win = new wxRadioButton;
}
{
win = new wxRadioButton;
}
#if wxUSE_BMPBUTTON
#if defined(__WIN32__) && defined(BS_BITMAP)
#if wxUSE_BMPBUTTON
#if defined(__WIN32__) && defined(BS_BITMAP)
- else if (style & BS_BITMAP)
{
// TODO: how to find the bitmap?
win = new wxBitmapButton;
wxLogError(wxT("Have not yet implemented bitmap button as BS_BITMAP button."));
}
{
// TODO: how to find the bitmap?
win = new wxBitmapButton;
wxLogError(wxT("Have not yet implemented bitmap button as BS_BITMAP button."));
}
- else if (style1 == BS_OWNERDRAW)
+ if (style1 == BS_OWNERDRAW)
{
// TODO: how to find the bitmap?
// TODO: can't distinguish between bitmap button and bitmap static.
{
// TODO: how to find the bitmap?
// TODO: can't distinguish between bitmap button and bitmap static.
// with a switch in the drawing code. Call default proc if BS_BITMAP.
win = new wxBitmapButton;
}
// with a switch in the drawing code. Call default proc if BS_BITMAP.
win = new wxBitmapButton;
}
- else if ((style1 == BS_PUSHBUTTON) || (style1 == BS_DEFPUSHBUTTON))
+#if wxUSE_BUTTON
+ if ((style1 == BS_PUSHBUTTON) || (style1 == BS_DEFPUSHBUTTON))
- else if (style1 == BS_GROUPBOX)
+ else
+#endif
+#if wxUSE_STATBOX
+ if (style1 == BS_GROUPBOX)
{
win = new wxStaticBox;
}
else
{
win = new wxStaticBox;
}
else
{
wxLogError(wxT("Don't know what kind of button this is: id = %ld"),
id);
}
}
{
wxLogError(wxT("Don't know what kind of button this is: id = %ld"),
id);
}
}
else if (str == wxT("COMBOBOX"))
{
win = new wxComboBox;
}
else if (str == wxT("COMBOBOX"))
{
win = new wxComboBox;
}
+#endif
+#if wxUSE_TEXTCTRL
// TODO: Problem if the user creates a multiline - but not rich text - text control,
// since wxWin assumes RichEdit control for this. Should have m_isRichText in
// wxTextCtrl. Also, convert as much of the window style as is necessary
// TODO: Problem if the user creates a multiline - but not rich text - text control,
// since wxWin assumes RichEdit control for this. Should have m_isRichText in
// wxTextCtrl. Also, convert as much of the window style as is necessary
{
win = new wxTextCtrl;
}
{
win = new wxTextCtrl;
}
+#endif
+#if wxUSE_LISTBOX
else if (str == wxT("LISTBOX"))
{
win = new wxListBox;
}
else if (str == wxT("LISTBOX"))
{
win = new wxListBox;
}
+#endif
+#if wxUSE_SCROLLBAR
else if (str == wxT("SCROLLBAR"))
{
win = new wxScrollBar;
}
else if (str == wxT("SCROLLBAR"))
{
win = new wxScrollBar;
}
#if defined(__WIN95__) && wxUSE_SPINBTN
else if (str == wxT("MSCTLS_UPDOWN32"))
{
#if defined(__WIN95__) && wxUSE_SPINBTN
else if (str == wxT("MSCTLS_UPDOWN32"))
{
win = new wxSlider;
}
#endif // wxUSE_SLIDER
win = new wxSlider;
}
#endif // wxUSE_SLIDER
else if (str == wxT("STATIC"))
{
int style1 = (style & 0xFF);
else if (str == wxT("STATIC"))
{
int style1 = (style & 0xFF);
#endif
#endif /* wxUSE_STATBMP */
}
#endif
#endif /* wxUSE_STATBMP */
}
else
{
wxString msg(wxT("Don't know how to convert from Windows class "));
else
{
wxString msg(wxT("Don't know how to convert from Windows class "));
// wxDataObject
// ----------------------------------------------------------------------------
// wxDataObject
// ----------------------------------------------------------------------------
wxDataObject::wxDataObject()
{
}
wxDataObject::wxDataObject()
{
}