git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39694
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
23 files changed:
#include "wx/list.h"
#include "wx/hash.h"
#include "wx/string.h"
#include "wx/list.h"
#include "wx/hash.h"
#include "wx/string.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/event.h"
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/event.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
-#include "wx/arrstr.h"
-
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
#include "wx/file.h"
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
#include "wx/file.h"
wxString wxExpandEnvVars(const wxString& str)
{
wxString strResult;
wxString wxExpandEnvVars(const wxString& str)
{
wxString strResult;
- strResult.Alloc(str.Len());
+ strResult.Alloc(str.length());
- for ( size_t n = 0; n < str.Len(); n++ ) {
+ for ( size_t n = 0; n < str.length(); n++ ) {
switch ( str[n] ) {
#ifdef __WXMSW__
case wxT('%'):
switch ( str[n] ) {
#ifdef __WXMSW__
case wxT('%'):
bracket = Bracket_Windows;
else
#endif //WINDOWS
bracket = Bracket_Windows;
else
#endif //WINDOWS
- if ( n == str.Len() - 1 ) {
+ if ( n == str.length() - 1 ) {
bracket = Bracket_None;
}
else {
bracket = Bracket_None;
}
else {
- while ( m < str.Len() && (wxIsalnum(str[m]) || str[m] == wxT('_')) )
+ while ( m < str.length() && (wxIsalnum(str[m]) || str[m] == wxT('_')) )
m++;
wxString strVarName(str.c_str() + n + 1, m - n - 1);
m++;
wxString strVarName(str.c_str() + n + 1, m - n - 1);
// check the closing bracket
if ( bracket != Bracket_None ) {
// check the closing bracket
if ( bracket != Bracket_None ) {
- if ( m == str.Len() || str[m] != (wxChar)bracket ) {
+ if ( m == str.length() || str[m] != (wxChar)bracket ) {
// under MSW it's common to have '%' characters in the registry
// and it's annoying to have warnings about them each time, so
// ignroe them silently if they are not used for env vars
// under MSW it's common to have '%' characters in the registry
// and it's annoying to have warnings about them each time, so
// ignroe them silently if they are not used for env vars
case '\\':
// backslash can be used to suppress special meaning of % and $
case '\\':
// backslash can be used to suppress special meaning of % and $
- if ( n != str.Len() - 1 &&
+ if ( n != str.length() - 1 &&
(str[n + 1] == wxT('%') || str[n + 1] == wxT('$')) ) {
strResult += str[++n];
(str[n + 1] == wxT('%') || str[n + 1] == wxT('$')) ) {
strResult += str[++n];
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/filefn.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/filefn.h"
#include "wx/dir.h"
// ============================================================================
#include "wx/dir.h"
// ============================================================================
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/string.h"
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/string.h"
-#include "wx/arrstr.h"
-
// ----------------------------------------------------------------------------
// private globals
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// private globals
// ----------------------------------------------------------------------------
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
+// Name: src/common/tokenzr.cpp
// Purpose: String tokenizer
// Author: Guilhem Lavaux
// Modified by: Vadim Zeitlin (almost full rewrite)
// Purpose: String tokenizer
// Author: Guilhem Lavaux
// Modified by: Vadim Zeitlin (almost full rewrite)
#endif
#include "wx/tokenzr.h"
#endif
#include "wx/tokenzr.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
// Required for wxIs... functions
#include <ctype.h>
// Required for wxIs... functions
#include <ctype.h>
#if wxUSE_CHOICE
#include "wx/choice.h"
#if wxUSE_CHOICE
#include "wx/choice.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
// FIXME: We use GtkOptionMenu which has been deprecated since GTK+ 2.3.0 in
// favour of GtkComboBox.
// FIXME: We use GtkOptionMenu which has been deprecated since GTK+ 2.3.0 in
// favour of GtkComboBox.
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
-#include "wx/arrstr.h"
-
// We use GtkCombo which has been deprecated since GTK+ 2.3.0
// in favour of GtkComboBox for <GTK2.4 runtime
// We also use GtkList
// We use GtkCombo which has been deprecated since GTK+ 2.3.0
// in favour of GtkComboBox for <GTK2.4 runtime
// We also use GtkList
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/checklst.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/checklst.h"
#include "wx/gtk/private.h"
#include "wx/gtk/treeentry_gtk.h"
#include "wx/gtk/private.h"
#include "wx/gtk/treeentry_gtk.h"
#if wxUSE_CHOICE
#include "wx/choice.h"
#if wxUSE_CHOICE
#include "wx/choice.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
#include "wx/gtk1/private.h"
#include "wx/gtk1/private.h"
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
#include "wx/intl.h"
#include "wx/settings.h"
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
-#include "wx/arrstr.h"
-
#include "wx/gtk1/private.h"
//-----------------------------------------------------------------------------
#include "wx/gtk1/private.h"
//-----------------------------------------------------------------------------
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/checklst.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/checklst.h"
#include "wx/gtk1/private.h"
#if wxUSE_TOOLTIPS
#include "wx/gtk1/private.h"
#if wxUSE_TOOLTIPS
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
~wxMacDataBrowserCheckListControl();
virtual wxMacListBoxItem* CreateItem();
~wxMacDataBrowserCheckListControl();
virtual wxMacListBoxItem* CreateItem();
virtual bool MacIsChecked(unsigned int n) const;
virtual void MacCheck(unsigned int n, bool bCheck = true);
};
virtual bool MacIsChecked(unsigned int n) const;
virtual void MacCheck(unsigned int n, bool bCheck = true);
};
MacPostControlCreate(pos,size);
MacPostControlCreate(pos,size);
- InsertItems( n , choices , 0 );
+ InsertItems( n , choices , 0 );
// Needed because it is a wxControlWithItems
SetBestSize( size );
// Needed because it is a wxControlWithItems
SetBestSize( size );
-wxMacCheckListControl* wxCheckListBox::GetPeer() const
-{
- return dynamic_cast<wxMacCheckListControl*>(m_peer);
+wxMacCheckListControl* wxCheckListBox::GetPeer() const
+{
+ return dynamic_cast<wxMacCheckListControl*>(m_peer);
}
const short kCheckboxColumnId = 1026;
}
const short kCheckboxColumnId = 1026;
kDataBrowserPropertyIsMutable
| kDataBrowserTableViewSelectionColumn
| kDataBrowserDefaultPropertyFlags;
kDataBrowserPropertyIsMutable
| kDataBrowserTableViewSelectionColumn
| kDataBrowserDefaultPropertyFlags;
err = AddColumn( &columnDesc, 0 );
verify_noerr( err );
}
wxMacDataBrowserCheckListControl::~wxMacDataBrowserCheckListControl()
{
err = AddColumn( &columnDesc, 0 );
verify_noerr( err );
}
wxMacDataBrowserCheckListControl::~wxMacDataBrowserCheckListControl()
{
}
class wxMacCheckListBoxItem : public wxMacListBoxItem
}
class wxMacCheckListBoxItem : public wxMacListBoxItem
~wxMacCheckListBoxItem()
{
}
~wxMacCheckListBoxItem()
{
}
virtual OSStatus GetSetData( wxMacDataItemBrowserControl *owner ,
DataBrowserPropertyID property,
DataBrowserItemDataRef itemData,
virtual OSStatus GetSetData( wxMacDataItemBrowserControl *owner ,
DataBrowserPropertyID property,
DataBrowserItemDataRef itemData,
{
OSStatus err = errDataBrowserPropertyNotSupported;
{
OSStatus err = errDataBrowserPropertyNotSupported;
wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, checklist->GetId() );
event.SetInt( owner->GetLineFromItem( this ) );
event.SetEventObject( checklist );
wxCommandEvent event( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, checklist->GetId() );
event.SetInt( owner->GetLineFromItem( this ) );
event.SetEventObject( checklist );
- checklist->GetEventHandler()->ProcessEvent( event );
+ checklist->GetEventHandler()->ProcessEvent( event );
- void Check( bool check )
+ void Check( bool check )
}
protected :
bool m_isChecked;
};
}
protected :
bool m_isChecked;
};
-wxMacListBoxItem* wxMacDataBrowserCheckListControl::CreateItem()
+wxMacListBoxItem* wxMacDataBrowserCheckListControl::CreateItem()
{
return new wxMacCheckListBoxItem();
}
{
return new wxMacCheckListBoxItem();
}
-void wxMacDataBrowserCheckListControl::MacCheck( unsigned int n, bool bCheck)
+void wxMacDataBrowserCheckListControl::MacCheck( unsigned int n, bool bCheck)
{
wxMacCheckListBoxItem* item = dynamic_cast<wxMacCheckListBoxItem*>( GetItemFromLine( n) );
item->Check( bCheck);
UpdateItem(wxMacDataBrowserRootContainer, item , kCheckboxColumnId);
}
{
wxMacCheckListBoxItem* item = dynamic_cast<wxMacCheckListBoxItem*>( GetItemFromLine( n) );
item->Check( bCheck);
UpdateItem(wxMacDataBrowserRootContainer, item , kCheckboxColumnId);
}
-bool wxMacDataBrowserCheckListControl::MacIsChecked( unsigned int n) const
+bool wxMacDataBrowserCheckListControl::MacIsChecked( unsigned int n) const
{
wxMacCheckListBoxItem * item = dynamic_cast<wxMacCheckListBoxItem*>( GetItemFromLine( n ) );
{
wxMacCheckListBoxItem * item = dynamic_cast<wxMacCheckListBoxItem*>( GetItemFromLine( n ) );
- return item->IsChecked();
+ return item->IsChecked();
#include "wx/utils.h"
#include "wx/button.h"
#include "wx/settings.h"
#include "wx/utils.h"
#include "wx/button.h"
#include "wx/settings.h"
#endif
#include "wx/toplevel.h"
#endif
#include "wx/toplevel.h"
#include "wx/mac/uma.h"
#include "wx/dynarray.h"
#include "wx/mac/uma.h"
#include "wx/dynarray.h"
// ============================================================================
// list box control implementation
// ============================================================================
// list box control implementation
#ifndef WX_PRECOMP
#include "wx/radiobut.h"
#ifndef WX_PRECOMP
#include "wx/radiobut.h"
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
#include "wx/mac/uma.h"
#include <Appearance.h>
#include "wx/mac/uma.h"
#include <Appearance.h>
#ifndef WX_PRECOMP
#include "wx/radiobut.h"
#ifndef WX_PRECOMP
#include "wx/radiobut.h"
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
#include "wx/mac/uma.h"
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
#if wxUSE_CHECKLISTBOX
#include "wx/checklst.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
// ============================================================================
// implementation
// ============================================================================
// implementation
#ifndef WX_PRECOMP
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
-#include "wx/arrstr.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/arrstr.h"
+#endif
#ifdef __VMS__
#pragma message disable nosimpint
#ifdef __VMS__
#pragma message disable nosimpint
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/settings.h"
#include "wx/log.h"
#include "wx/utils.h"
#include "wx/settings.h"
#define XtDisplay XTDISPLAY
#endif
#define XtDisplay XTDISPLAY
#endif
-#include "wx/arrstr.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifndef WX_PRECOMP
#include "wx/utils.h"
#ifndef WX_PRECOMP
#include "wx/utils.h"
-#include "wx/arrstr.h"
-
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#ifdef __VMS__
#pragma message disable nosimpint
#endif
#include "wx/icon.h"
#endif
#include "wx/intl.h"
#include "wx/icon.h"
#endif
#include "wx/intl.h"
#include "wx/hashmap.h"
#include <VFSMgr.h>
#include "wx/hashmap.h"
#include <VFSMgr.h>