Applied patch [ 738821 ] Allow more features to be turned off
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -72,6 +72,7 @@ maybe stripped down to
|
|||||||
|
|
||||||
"Specialization is for insects."
|
"Specialization is for insects."
|
||||||
|
|
||||||
|
============================
|
||||||
The Open-Source, Cross-Platform GUI Framework
|
The Open-Source, Cross-Platform GUI Framework
|
||||||
with Ten Years of Evolution Behind It
|
with Ten Years of Evolution Behind It
|
||||||
|
|
||||||
@@ -93,10 +94,22 @@ people would be bound to stop and ask what it was all about!
|
|||||||
.. and how about a nice silk tie (US: necktie) with the logo on ...
|
.. and how about a nice silk tie (US: necktie) with the logo on ...
|
||||||
Oh, I forgot, we programmers don't wear ties.
|
Oh, I forgot, we programmers don't wear ties.
|
||||||
|
|
||||||
|
============================
|
||||||
"I can't believe it's not native"
|
"I can't believe it's not native"
|
||||||
|
|
||||||
|
============================
|
||||||
"Because friends don't let friends use Win32".
|
"Because friends don't let friends use Win32".
|
||||||
|
|
||||||
(or MFC)
|
(or MFC)
|
||||||
|
|
||||||
|
============================
|
||||||
|
|
||||||
|
Have a photo of 3 babes wearing Linux, Windows and Mac Logo T-shirt with
|
||||||
|
words at the bottom.
|
||||||
|
|
||||||
|
"Why choose one when you can have 3?"
|
||||||
|
|
||||||
|
(Mohammad Zubair <mzubair@singnet.com.sg>)
|
||||||
|
|
||||||
|
============================
|
||||||
|
|
||||||
|
@@ -205,5 +205,10 @@ wxMiscellaneous
|
|||||||
- Add individual setters to wxScrollBar and other classes
|
- Add individual setters to wxScrollBar and other classes
|
||||||
that use a combined setter.
|
that use a combined setter.
|
||||||
- Remove traces of old resource system from wxWizard.
|
- Remove traces of old resource system from wxWizard.
|
||||||
|
- Have wxDirCtrl as alias for wxGenericDirCtrl.
|
||||||
|
- Allow instant reaction to left-up in a wxGrid cell
|
||||||
|
(extend editor API) to work around bad checkbox
|
||||||
|
behaviour (click, click, click, click away...) and
|
||||||
|
reduce checkbox size on non-Windows platforms.
|
||||||
|
|
||||||
Version: $Id$
|
Version: $Id$
|
||||||
|
@@ -35,11 +35,11 @@ public:
|
|||||||
void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
|
void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
|
||||||
int GetReturnCode() const { return m_returnCode; }
|
int GetReturnCode() const { return m_returnCode; }
|
||||||
|
|
||||||
#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
|
#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
|
||||||
// splits text up at newlines and places the
|
// splits text up at newlines and places the
|
||||||
// lines into a vertical wxBoxSizer
|
// lines into a vertical wxBoxSizer
|
||||||
wxSizer *CreateTextSizer( const wxString &message );
|
wxSizer *CreateTextSizer( const wxString &message );
|
||||||
#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
|
#endif // wxUSE_STATTEXT // && wxUSE_TEXTCTRL
|
||||||
|
|
||||||
#if wxUSE_BUTTON
|
#if wxUSE_BUTTON
|
||||||
// places buttons into a horizontal wxBoxSizer
|
// places buttons into a horizontal wxBoxSizer
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
#pragma interface "textdlgg.h"
|
#pragma interface "textdlgg.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_TEXTDLG
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
|
||||||
#include "wx/dialog.h"
|
#include "wx/dialog.h"
|
||||||
@@ -88,5 +89,7 @@ wxGetPasswordFromUser(const wxString& message,
|
|||||||
const wxString& default_value = wxEmptyString,
|
const wxString& default_value = wxEmptyString,
|
||||||
wxWindow *parent = (wxWindow *) NULL);
|
wxWindow *parent = (wxWindow *) NULL);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
// wxUSE_TEXTDLG
|
||||||
#endif
|
#endif
|
||||||
// __TEXTDLGH_G__
|
// __TEXTDLGH_G__
|
||||||
|
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
|
|
||||||
#if wxUSE_VALIDATORS
|
#if wxUSE_VALIDATORS && wxUSE_TEXTCTRL
|
||||||
|
|
||||||
#include "wx/textctrl.h"
|
#include "wx/textctrl.h"
|
||||||
#include "wx/validate.h"
|
#include "wx/validate.h"
|
||||||
@@ -106,7 +106,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_VALIDATORS
|
// wxUSE_VALIDATORS && wxUSE_TEXTCTRL
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// _WX_VALTEXTH__
|
// _WX_VALTEXTH__
|
||||||
|
@@ -67,7 +67,7 @@ void wxDialogBase::Init()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
|
#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
|
||||||
|
|
||||||
wxSizer *wxDialogBase::CreateTextSizer( const wxString& message )
|
wxSizer *wxDialogBase::CreateTextSizer( const wxString& message )
|
||||||
{
|
{
|
||||||
@@ -164,7 +164,7 @@ wxSizer *wxDialogBase::CreateTextSizer( const wxString& message )
|
|||||||
return box;
|
return box;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
|
#endif // wxUSE_STATTEXT // && wxUSE_TEXTCTRL
|
||||||
|
|
||||||
#if wxUSE_BUTTON
|
#if wxUSE_BUTTON
|
||||||
|
|
||||||
|
@@ -203,6 +203,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// string controls
|
// string controls
|
||||||
|
#if wxUSE_BUTTON
|
||||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
|
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
|
||||||
{
|
{
|
||||||
wxButton* pControl = (wxButton*) m_validatorWindow;
|
wxButton* pControl = (wxButton*) m_validatorWindow;
|
||||||
@@ -212,6 +213,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
#endif
|
||||||
#if wxUSE_COMBOBOX
|
#if wxUSE_COMBOBOX
|
||||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
|
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
|
||||||
{
|
{
|
||||||
@@ -263,6 +265,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
#if wxUSE_TEXTCTRL
|
||||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||||
{
|
{
|
||||||
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
|
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
|
||||||
@@ -279,6 +282,7 @@ bool wxGenericValidator::TransferToWindow(void)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
#endif
|
||||||
// array controls
|
// array controls
|
||||||
#if wxUSE_CHECKLISTBOX && !defined(__WIN16__)
|
#if wxUSE_CHECKLISTBOX && !defined(__WIN16__)
|
||||||
// NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
|
// NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
|
||||||
@@ -428,6 +432,7 @@ bool wxGenericValidator::TransferFromWindow(void)
|
|||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
// string controls
|
// string controls
|
||||||
|
#if wxUSE_BUTTON
|
||||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
|
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
|
||||||
{
|
{
|
||||||
wxButton* pControl = (wxButton*) m_validatorWindow;
|
wxButton* pControl = (wxButton*) m_validatorWindow;
|
||||||
@@ -436,8 +441,8 @@ bool wxGenericValidator::TransferFromWindow(void)
|
|||||||
*m_pString = pControl->GetLabel() ;
|
*m_pString = pControl->GetLabel() ;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
} else
|
||||||
else
|
#endif
|
||||||
#if wxUSE_COMBOBOX
|
#if wxUSE_COMBOBOX
|
||||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
|
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
|
||||||
{
|
{
|
||||||
@@ -479,6 +484,7 @@ bool wxGenericValidator::TransferFromWindow(void)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
#if wxUSE_TEXTCTRL
|
||||||
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
|
||||||
{
|
{
|
||||||
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
|
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
|
||||||
@@ -493,6 +499,7 @@ bool wxGenericValidator::TransferFromWindow(void)
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
|
#endif
|
||||||
// array controls
|
// array controls
|
||||||
#if wxUSE_CHECKLISTBOX
|
#if wxUSE_CHECKLISTBOX
|
||||||
#ifndef __WIN16__
|
#ifndef __WIN16__
|
||||||
|
@@ -20,7 +20,7 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_VALIDATORS
|
#if wxUSE_VALIDATORS && wxUSE_TEXTCTRL
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -332,4 +332,4 @@ bool wxTextValidator::IsNotInCharExcludeList(const wxString& val)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_VALIDATORS
|
// wxUSE_VALIDATORS && wxUSE_TEXTCTRL
|
||||||
|
@@ -51,7 +51,9 @@ enum MDI_MENU_ID
|
|||||||
IMPLEMENT_DYNAMIC_CLASS(wxGenericMDIParentFrame, wxFrame)
|
IMPLEMENT_DYNAMIC_CLASS(wxGenericMDIParentFrame, wxFrame)
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE(wxGenericMDIParentFrame, wxFrame)
|
BEGIN_EVENT_TABLE(wxGenericMDIParentFrame, wxFrame)
|
||||||
|
#if wxUSE_MENUS
|
||||||
EVT_MENU (-1, wxGenericMDIParentFrame::DoHandleMenu)
|
EVT_MENU (-1, wxGenericMDIParentFrame::DoHandleMenu)
|
||||||
|
#endif
|
||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
wxGenericMDIParentFrame::wxGenericMDIParentFrame()
|
wxGenericMDIParentFrame::wxGenericMDIParentFrame()
|
||||||
|
@@ -99,15 +99,19 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent,
|
|||||||
bitmap = wxArtProvider::GetIcon(wxART_QUESTION, wxART_MESSAGE_BOX);
|
bitmap = wxArtProvider::GetIcon(wxART_QUESTION, wxART_MESSAGE_BOX);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#if wxUSE_STATIC_BITMAP
|
||||||
wxStaticBitmap *icon = new wxStaticBitmap(this, -1, bitmap);
|
wxStaticBitmap *icon = new wxStaticBitmap(this, -1, bitmap);
|
||||||
if (is_pda)
|
if (is_pda)
|
||||||
topsizer->Add( icon, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 );
|
topsizer->Add( icon, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 );
|
||||||
else
|
else
|
||||||
icon_text->Add( icon, 0, wxCENTER );
|
icon_text->Add( icon, 0, wxCENTER );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// 2) text
|
// 2) text
|
||||||
|
#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
|
||||||
icon_text->Add( CreateTextSizer( message ), 0, wxCENTER | wxLEFT, 10 );
|
icon_text->Add( CreateTextSizer( message ), 0, wxCENTER | wxLEFT, 10 );
|
||||||
|
#endif
|
||||||
|
|
||||||
topsizer->Add( icon_text, 1, wxCENTER | wxLEFT|wxRIGHT|wxTOP, 10 );
|
topsizer->Add( icon_text, 1, wxCENTER | wxLEFT|wxRIGHT|wxTOP, 10 );
|
||||||
|
|
||||||
@@ -117,7 +121,9 @@ wxGenericMessageDialog::wxGenericMessageDialog( wxWindow *parent,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// 4) buttons
|
// 4) buttons
|
||||||
|
#if wxUSE_BUTTON
|
||||||
topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
|
topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
|
||||||
|
#endif
|
||||||
|
|
||||||
SetAutoLayout( TRUE );
|
SetAutoLayout( TRUE );
|
||||||
SetSizer( topsizer );
|
SetSizer( topsizer );
|
||||||
|
@@ -16,6 +16,7 @@
|
|||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
|
#if wxUSE_SPLITTER
|
||||||
#ifdef __BORLANDC__
|
#ifdef __BORLANDC__
|
||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
@@ -1093,5 +1094,6 @@ void wxSplitterWindow::OnSetCursor(wxSetCursorEvent& event)
|
|||||||
//else: do nothing, in particular, don't call Skip()
|
//else: do nothing, in particular, don't call Skip()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_SPLITTER
|
||||||
#endif // wxMSW
|
#endif // wxMSW
|
||||||
|
|
||||||
|
@@ -20,6 +20,7 @@
|
|||||||
#pragma implementation "statline.h"
|
#pragma implementation "statline.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_STATLINE
|
||||||
// For compilers that support precompilation, includes "wx.h".
|
// For compilers that support precompilation, includes "wx.h".
|
||||||
#include "wx/wxprec.h"
|
#include "wx/wxprec.h"
|
||||||
|
|
||||||
@@ -75,3 +76,6 @@ void wxStaticLine::DoMoveWindow(int x, int y, int width, int height)
|
|||||||
{
|
{
|
||||||
m_statbox->SetSize(x, y, width, height);
|
m_statbox->SetSize(x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
// wxUSE_STATLINE
|
||||||
|
Reference in New Issue
Block a user