Include wx/arrstr.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
#include "wx/list.h"
|
#include "wx/list.h"
|
||||||
#include "wx/hash.h"
|
#include "wx/hash.h"
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/event.h"
|
#include "wx/event.h"
|
||||||
|
@@ -31,10 +31,9 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/app.h"
|
#include "wx/app.h"
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
|
#if wxUSE_CONFIG && ((wxUSE_FILE && wxUSE_TEXTFILE) || wxUSE_CONFIG_NATIVE)
|
||||||
|
|
||||||
#include "wx/file.h"
|
#include "wx/file.h"
|
||||||
@@ -309,10 +308,10 @@ enum Bracket
|
|||||||
wxString wxExpandEnvVars(const wxString& str)
|
wxString wxExpandEnvVars(const wxString& str)
|
||||||
{
|
{
|
||||||
wxString strResult;
|
wxString strResult;
|
||||||
strResult.Alloc(str.Len());
|
strResult.Alloc(str.length());
|
||||||
|
|
||||||
size_t m;
|
size_t m;
|
||||||
for ( size_t n = 0; n < str.Len(); n++ ) {
|
for ( size_t n = 0; n < str.length(); n++ ) {
|
||||||
switch ( str[n] ) {
|
switch ( str[n] ) {
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
case wxT('%'):
|
case wxT('%'):
|
||||||
@@ -325,7 +324,7 @@ wxString wxExpandEnvVars(const wxString& str)
|
|||||||
bracket = Bracket_Windows;
|
bracket = Bracket_Windows;
|
||||||
else
|
else
|
||||||
#endif //WINDOWS
|
#endif //WINDOWS
|
||||||
if ( n == str.Len() - 1 ) {
|
if ( n == str.length() - 1 ) {
|
||||||
bracket = Bracket_None;
|
bracket = Bracket_None;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -347,7 +346,7 @@ wxString wxExpandEnvVars(const wxString& str)
|
|||||||
|
|
||||||
m = n + 1;
|
m = n + 1;
|
||||||
|
|
||||||
while ( m < str.Len() && (wxIsalnum(str[m]) || str[m] == wxT('_')) )
|
while ( m < str.length() && (wxIsalnum(str[m]) || str[m] == wxT('_')) )
|
||||||
m++;
|
m++;
|
||||||
|
|
||||||
wxString strVarName(str.c_str() + n + 1, m - n - 1);
|
wxString strVarName(str.c_str() + n + 1, m - n - 1);
|
||||||
@@ -372,7 +371,7 @@ wxString wxExpandEnvVars(const wxString& str)
|
|||||||
|
|
||||||
// check the closing bracket
|
// check the closing bracket
|
||||||
if ( bracket != Bracket_None ) {
|
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
|
// under MSW it's common to have '%' characters in the registry
|
||||||
// and it's annoying to have warnings about them each time, so
|
// and it's annoying to have warnings about them each time, so
|
||||||
// ignroe them silently if they are not used for env vars
|
// ignroe them silently if they are not used for env vars
|
||||||
@@ -398,7 +397,7 @@ wxString wxExpandEnvVars(const wxString& str)
|
|||||||
|
|
||||||
case '\\':
|
case '\\':
|
||||||
// backslash can be used to suppress special meaning of % and $
|
// 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('$')) ) {
|
(str[n + 1] == wxT('%') || str[n + 1] == wxT('$')) ) {
|
||||||
strResult += str[++n];
|
strResult += str[++n];
|
||||||
|
|
||||||
|
@@ -29,9 +29,9 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/filefn.h"
|
#include "wx/filefn.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif //WX_PRECOMP
|
#endif //WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
#include "wx/dir.h"
|
#include "wx/dir.h"
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -236,4 +236,3 @@ size_t wxDir::GetAllFiles(const wxString& dirname,
|
|||||||
|
|
||||||
return nFiles;
|
return nFiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,10 +31,9 @@
|
|||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/list.h"
|
#include "wx/list.h"
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// private globals
|
// private globals
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
// Name: tokenzr.cpp
|
// Name: src/common/tokenzr.cpp
|
||||||
// Purpose: String tokenizer
|
// Purpose: String tokenizer
|
||||||
// Author: Guilhem Lavaux
|
// Author: Guilhem Lavaux
|
||||||
// Modified by: Vadim Zeitlin (almost full rewrite)
|
// Modified by: Vadim Zeitlin (almost full rewrite)
|
||||||
@@ -25,7 +25,10 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/tokenzr.h"
|
#include "wx/tokenzr.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Required for wxIs... functions
|
// Required for wxIs... functions
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@@ -12,7 +12,10 @@
|
|||||||
#if wxUSE_CHOICE
|
#if wxUSE_CHOICE
|
||||||
|
|
||||||
#include "wx/choice.h"
|
#include "wx/choice.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// FIXME: We use GtkOptionMenu which has been deprecated since GTK+ 2.3.0 in
|
// FIXME: We use GtkOptionMenu which has been deprecated since GTK+ 2.3.0 in
|
||||||
// favour of GtkComboBox.
|
// favour of GtkComboBox.
|
||||||
|
@@ -18,10 +18,9 @@
|
|||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
|
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
// We use GtkCombo which has been deprecated since GTK+ 2.3.0
|
// We use GtkCombo which has been deprecated since GTK+ 2.3.0
|
||||||
// in favour of GtkComboBox for <GTK2.4 runtime
|
// in favour of GtkComboBox for <GTK2.4 runtime
|
||||||
// We also use GtkList
|
// We also use GtkList
|
||||||
|
@@ -22,9 +22,9 @@
|
|||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
#include "wx/gtk/private.h"
|
#include "wx/gtk/private.h"
|
||||||
#include "wx/gtk/treeentry_gtk.h"
|
#include "wx/gtk/treeentry_gtk.h"
|
||||||
|
|
||||||
|
@@ -12,7 +12,10 @@
|
|||||||
#if wxUSE_CHOICE
|
#if wxUSE_CHOICE
|
||||||
|
|
||||||
#include "wx/choice.h"
|
#include "wx/choice.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/gtk1/private.h"
|
#include "wx/gtk1/private.h"
|
||||||
|
|
||||||
|
@@ -18,10 +18,9 @@
|
|||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
|
#include "wx/textctrl.h" // for wxEVT_COMMAND_TEXT_UPDATED
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
#include "wx/gtk1/private.h"
|
#include "wx/gtk1/private.h"
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
@@ -20,9 +20,9 @@
|
|||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
#include "wx/gtk1/private.h"
|
#include "wx/gtk1/private.h"
|
||||||
|
|
||||||
#if wxUSE_TOOLTIPS
|
#if wxUSE_TOOLTIPS
|
||||||
|
@@ -17,7 +17,10 @@
|
|||||||
#if wxUSE_CHECKLISTBOX
|
#if wxUSE_CHECKLISTBOX
|
||||||
|
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
|
|
||||||
@@ -87,7 +90,7 @@ bool wxCheckListBox::Create(
|
|||||||
|
|
||||||
MacPostControlCreate(pos,size);
|
MacPostControlCreate(pos,size);
|
||||||
|
|
||||||
InsertItems( n , choices , 0 );
|
InsertItems( n , choices , 0 );
|
||||||
|
|
||||||
// Needed because it is a wxControlWithItems
|
// Needed because it is a wxControlWithItems
|
||||||
SetBestSize( size );
|
SetBestSize( size );
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#include "wx/button.h"
|
#include "wx/button.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/toplevel.h"
|
#include "wx/toplevel.h"
|
||||||
@@ -34,7 +35,6 @@ END_EVENT_TABLE()
|
|||||||
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
#include "wx/dynarray.h"
|
#include "wx/dynarray.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// list box control implementation
|
// list box control implementation
|
||||||
|
@@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/radiobut.h"
|
#include "wx/radiobut.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
|
||||||
|
@@ -18,7 +18,10 @@
|
|||||||
#if wxUSE_CHECKLISTBOX
|
#if wxUSE_CHECKLISTBOX
|
||||||
|
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
#include <Appearance.h>
|
#include <Appearance.h>
|
||||||
|
@@ -21,9 +21,9 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/radiobut.h"
|
#include "wx/radiobut.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
#include "wx/mac/uma.h"
|
#include "wx/mac/uma.h"
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
|
IMPLEMENT_DYNAMIC_CLASS(wxRadioBox, wxControl)
|
||||||
|
@@ -19,7 +19,10 @@
|
|||||||
#if wxUSE_CHECKLISTBOX
|
#if wxUSE_CHECKLISTBOX
|
||||||
|
|
||||||
#include "wx/checklst.h"
|
#include "wx/checklst.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
// implementation
|
// implementation
|
||||||
|
@@ -23,10 +23,9 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
#ifdef __VMS__
|
#ifdef __VMS__
|
||||||
#pragma message disable nosimpint
|
#pragma message disable nosimpint
|
||||||
#endif
|
#endif
|
||||||
|
@@ -15,7 +15,10 @@
|
|||||||
#if wxUSE_COMBOBOX
|
#if wxUSE_COMBOBOX
|
||||||
|
|
||||||
#include "wx/combobox.h"
|
#include "wx/combobox.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __VMS__
|
#ifdef __VMS__
|
||||||
#pragma message disable nosimpint
|
#pragma message disable nosimpint
|
||||||
|
@@ -15,7 +15,10 @@
|
|||||||
#if wxUSE_COMBOBOX
|
#if wxUSE_COMBOBOX
|
||||||
|
|
||||||
#include "wx/combobox.h"
|
#include "wx/combobox.h"
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
#ifndef WX_PRECOMP
|
||||||
|
#include "wx/arrstr.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __VMS__
|
#ifdef __VMS__
|
||||||
#pragma message disable nosimpint
|
#pragma message disable nosimpint
|
||||||
|
@@ -21,6 +21,7 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
#include "wx/settings.h"
|
#include "wx/settings.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __VMS
|
#ifdef __VMS
|
||||||
@@ -28,8 +29,6 @@
|
|||||||
#define XtDisplay XTDISPLAY
|
#define XtDisplay XTDISPLAY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
#ifdef __VMS__
|
#ifdef __VMS__
|
||||||
#pragma message disable nosimpint
|
#pragma message disable nosimpint
|
||||||
#endif
|
#endif
|
||||||
|
@@ -22,10 +22,9 @@
|
|||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
|
|
||||||
#ifdef __VMS__
|
#ifdef __VMS__
|
||||||
#pragma message disable nosimpint
|
#pragma message disable nosimpint
|
||||||
#endif
|
#endif
|
||||||
|
@@ -32,9 +32,9 @@
|
|||||||
#include "wx/icon.h"
|
#include "wx/icon.h"
|
||||||
#endif
|
#endif
|
||||||
#include "wx/intl.h"
|
#include "wx/intl.h"
|
||||||
|
#include "wx/arrstr.h"
|
||||||
#endif // WX_PRECOMP
|
#endif // WX_PRECOMP
|
||||||
|
|
||||||
#include "wx/arrstr.h"
|
|
||||||
#include "wx/hashmap.h"
|
#include "wx/hashmap.h"
|
||||||
|
|
||||||
#include <VFSMgr.h>
|
#include <VFSMgr.h>
|
||||||
|
Reference in New Issue
Block a user