Move constant strings to .rodata/.data.rel.ro ELF segment from .data by making them really const.

If any more exotic toolchain decides to not export these strings into the core library anymore, let me know. Try to
compile the notebook sample, for example.
TODO: Move strings not meant for wxCore out of wxCore to the appropriate library.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mart Raudsepp 2006-01-16 14:59:55 +00:00
parent 3dbfe8f44f
commit 63ec432bd7
107 changed files with 198 additions and 197 deletions

View File

@ -19,7 +19,7 @@
#include "wx/bitmap.h"
#include "wx/button.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxButtonNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxButtonNameStr[];
// ----------------------------------------------------------------------------
// wxBitmapButton: a button which shows bitmaps instead of the usual string.

View File

@ -47,7 +47,7 @@
class WXDLLEXPORT wxBitmap;
extern WXDLLEXPORT_DATA(const wxChar*) wxButtonNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxButtonNameStr[];
// ----------------------------------------------------------------------------
// wxButton: a push button

View File

@ -49,7 +49,7 @@ enum wxCheckBoxState
};
extern WXDLLEXPORT_DATA(const wxChar *) wxCheckBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[];
// ----------------------------------------------------------------------------
// wxCheckBox: a control which shows a label and a box which may be checked

View File

@ -26,7 +26,7 @@
// global data
// ----------------------------------------------------------------------------
extern WXDLLEXPORT_DATA(const wxChar*) wxChoiceNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxChoiceNameStr[];
// ----------------------------------------------------------------------------
// wxChoice allows to select one of a non-modifiable list of strings

View File

@ -17,7 +17,7 @@
#include "wx/panel.h"
#include "wx/cocoa/NSPanel.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[];
// ========================================================================
// wxDialog

View File

@ -16,7 +16,7 @@
#if wxUSE_COMBOBOX
extern WXDLLEXPORT_DATA(const wxChar*) wxComboBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[];
// ----------------------------------------------------------------------------
// wxComboBoxBase: this interface defines the methods wxComboBox must implement

View File

@ -22,7 +22,7 @@
#include "wx/window.h" // base class
extern WXDLLEXPORT_DATA(const wxChar*) wxControlNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxControlNameStr[];
// ----------------------------------------------------------------------------
// wxControl is the base class for all controls

View File

@ -24,7 +24,7 @@
#include "wx/textctrl.h"
#include "wx/bitmap.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxDataViewCtrlNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxDataViewCtrlNameStr[];

View File

@ -27,7 +27,7 @@ class WXDLLEXPORT wxStdDialogButtonSizer;
#define wxDEFAULT_DIALOG_STYLE (wxCAPTION | wxSYSTEM_MENU | wxCLOSE_BOX)
#endif
extern WXDLLEXPORT_DATA(const wxChar*) wxDialogNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxDialogNameStr[];
class WXDLLEXPORT wxDialogBase : public wxTopLevelWindow
{

View File

@ -20,9 +20,10 @@
// constants
// ----------------------------------------------------------------------------
extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogNameStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogDefaultFolderStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxDirSelectorPromptStr;
extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogDefaultFolderStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxDirSelectorPromptStr[];
#ifdef __WXWINCE__
#define wxDD_DEFAULT_STYLE \

View File

@ -36,8 +36,8 @@ enum
wxCHANGE_DIR = 0x0040
};
extern WXDLLEXPORT_DATA(const wxChar*) wxFileSelectorPromptStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxFileSelectorDefaultWildcardStr;
extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorPromptStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorDefaultWildcardStr[];
//----------------------------------------------------------------------------
// wxFileDialogBase

View File

@ -19,9 +19,9 @@
#include "wx/toplevel.h" // the base class
// the default names for various classs
extern WXDLLEXPORT_DATA(const wxChar*) wxFrameNameStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxStatusLineNameStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxToolBarNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[];
class WXDLLEXPORT wxFrame;
class WXDLLEXPORT wxMenuBar;

View File

@ -32,7 +32,7 @@
#define wxGA_PROGRESSBAR 0
extern WXDLLEXPORT_DATA(const wxChar*) wxGaugeNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[];
// ----------------------------------------------------------------------------
// wxGauge: a progress bar

View File

@ -590,7 +590,7 @@ extern WXDLLEXPORT_DATA(wxCursor*) wxCROSS_CURSOR;
extern WXDLLEXPORT_DATA(wxColourDatabase*) wxTheColourDatabase;
extern WXDLLEXPORT_DATA(const wxChar*) wxPanelNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[];
extern WXDLLEXPORT_DATA(const wxSize) wxDefaultSize;
extern WXDLLEXPORT_DATA(const wxPoint) wxDefaultPosition;

View File

@ -20,8 +20,8 @@ class WXDLLEXPORT wxTextCtrl;
class WXDLLEXPORT wxTreeEvent;
// we may be included directly as well as from wx/dirdlg.h (FIXME)
extern WXDLLEXPORT_DATA(const wxChar*) wxDirDialogNameStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxDirSelectorPromptStr;
extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxDirSelectorPromptStr[];
#ifndef wxDD_DEFAULT_STYLE
#ifdef __WXWINCE__

View File

@ -20,8 +20,8 @@
#include "wx/panel.h"
#include "wx/notebook.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxFrameNameStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxStatusLineNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
//-----------------------------------------------------------------------------

View File

@ -18,7 +18,7 @@
// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
// Returns wxYES/NO/OK/CANCEL
extern WXDLLEXPORT_DATA(const wxChar*) wxMessageBoxCaptionStr;
extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxGenericMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -21,7 +21,7 @@
class WXDLLEXPORT wxControlContainer;
extern WXDLLEXPORT_DATA(const wxChar*) wxPanelNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[];
// ----------------------------------------------------------------------------
// wxPanel contains other controls and implements TAB traversal between them

View File

@ -17,7 +17,7 @@
#include "wx/statusbr.h"
#include "wx/arrstr.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxPanelNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[];
class WXDLLEXPORT wxStatusBarGeneric : public wxStatusBarBase
{

View File

@ -24,8 +24,8 @@
class WXDLLEXPORT wxTextCtrl;
extern WXDLLEXPORT_DATA(const wxChar*) wxGetTextFromUserPromptStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxGetPasswordFromUserPromptStr;
extern WXDLLEXPORT_DATA(const wxChar) wxGetTextFromUserPromptStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxGetPasswordFromUserPromptStr[];
#define wxTextEntryDialogStyle (wxOK | wxCANCEL | wxCENTRE | wxWS_EX_VALIDATE_RECURSIVELY)

View File

@ -25,7 +25,7 @@ class WXDLLIMPEXP_CORE wxButton;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar *wxButtonNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxButtonNameStr[];
//-----------------------------------------------------------------------------
// wxButton

View File

@ -27,7 +27,7 @@ class WXDLLIMPEXP_CORE wxComboBox;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar* wxComboBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[];
extern WXDLLIMPEXP_BASE const wxChar* wxEmptyString;
//-----------------------------------------------------------------------------

View File

@ -23,7 +23,7 @@ class WXDLLIMPEXP_CORE wxDialog;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar *wxDialogNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxDialogNameStr[];
//-----------------------------------------------------------------------------
// wxDialog

View File

@ -28,7 +28,7 @@ class WXDLLIMPEXP_CORE wxGauge;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar* wxGaugeNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxGaugeNameStr[];
//-----------------------------------------------------------------------------
// wxGaugeBox

View File

@ -30,8 +30,8 @@ class WXDLLIMPEXP_CORE wxMDIChildFrame;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar* wxFrameNameStr;
extern WXDLLIMPEXP_CORE const wxChar* wxStatusLineNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
//-----------------------------------------------------------------------------
// wxMDIParentFrame

View File

@ -18,7 +18,7 @@
// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
// Returns wxYES/NO/OK/CANCEL
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -26,7 +26,7 @@ class WXDLLIMPEXP_CORE wxToggleBitmapButton;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar *wxCheckBoxNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxCheckBoxNameStr[];
//-----------------------------------------------------------------------------
// wxToggleBitmapButton

View File

@ -25,7 +25,7 @@ class WXDLLIMPEXP_CORE wxButton;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar *wxButtonNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxButtonNameStr[];
//-----------------------------------------------------------------------------
// wxButton

View File

@ -27,7 +27,7 @@ class WXDLLIMPEXP_CORE wxComboBox;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar* wxComboBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[];
extern WXDLLIMPEXP_BASE const wxChar* wxEmptyString;
//-----------------------------------------------------------------------------

View File

@ -23,7 +23,7 @@ class WXDLLIMPEXP_CORE wxDialog;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar *wxDialogNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxDialogNameStr[];
//-----------------------------------------------------------------------------
// wxDialog

View File

@ -28,7 +28,7 @@ class WXDLLIMPEXP_CORE wxGauge;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar* wxGaugeNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxGaugeNameStr[];
//-----------------------------------------------------------------------------
// wxGaugeBox

View File

@ -30,8 +30,8 @@ class WXDLLIMPEXP_CORE wxMDIChildFrame;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar* wxFrameNameStr;
extern WXDLLIMPEXP_CORE const wxChar* wxStatusLineNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
//-----------------------------------------------------------------------------
// wxMDIParentFrame

View File

@ -18,7 +18,7 @@
// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
// Returns wxYES/NO/OK/CANCEL
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -26,7 +26,7 @@ class WXDLLIMPEXP_CORE wxToggleBitmapButton;
// global data
//-----------------------------------------------------------------------------
extern WXDLLIMPEXP_CORE const wxChar *wxCheckBoxNameStr;
extern WXDLLIMPEXP_CORE const wxChar wxCheckBoxNameStr[];
//-----------------------------------------------------------------------------
// wxToggleBitmapButton

View File

@ -30,7 +30,7 @@ class WXDLLIMPEXP_BASE wxArrayString;
// global data
// ----------------------------------------------------------------------------
extern WXDLLEXPORT_DATA(const wxChar*) wxListBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxListBoxNameStr[];
// ----------------------------------------------------------------------------
// wxListBox interface is defined by the class wxListBoxBase

View File

@ -22,7 +22,7 @@
// constants
// ----------------------------------------------------------------------------
extern WXDLLEXPORT_DATA(const wxChar*) wxListCtrlNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxListCtrlNameStr[];
// ----------------------------------------------------------------------------
// include the wxListCtrl class declaration

View File

@ -14,7 +14,7 @@
#include "wx/button.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
#define wxDEFAULT_BUTTON_MARGIN 4

View File

@ -15,7 +15,7 @@
#include "wx/control.h"
#include "wx/gdicmn.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
// Pushbutton
class WXDLLEXPORT wxButton: public wxButtonBase

View File

@ -17,7 +17,7 @@
#include "wx/dynarray.h"
#include "wx/arrstr.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxChoiceNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxChoiceNameStr[];
WX_DEFINE_ARRAY( char * , wxChoiceDataArray ) ;

View File

@ -14,7 +14,7 @@
#include "wx/choice.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxComboBoxNameStr[];
// forward declaration of private implementation classes

View File

@ -12,7 +12,7 @@
#ifndef _WX_CONTROL_H_
#define _WX_CONTROL_H_
WXDLLEXPORT_DATA(extern const wxChar*) wxControlNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxControlNameStr[];
// General item class
class WXDLLEXPORT wxControl : public wxControlBase

View File

@ -14,7 +14,7 @@
#include "wx/panel.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[];
class WXDLLEXPORT wxMacToolTip ;

View File

@ -17,8 +17,8 @@
#include "wx/accel.h"
#include "wx/icon.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxFrameNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[];
class WXDLLEXPORT wxMenuBar;
class WXDLLEXPORT wxStatusBar;

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
// Group box
class WXDLLEXPORT wxGauge: public wxGaugeBase

View File

@ -16,8 +16,8 @@
#include "wx/frame.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStatusLineNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxFrameNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStatusLineNameStr[];
class WXDLLEXPORT wxMDIClientWindow;
class WXDLLEXPORT wxMDIChildFrame;

View File

@ -20,7 +20,7 @@
* Message box dialog
*/
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -56,7 +56,7 @@ public:
#if 0
class WXDLLEXPORT wxBitmap ;
WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxBitmapRadioButtonNameStr[];
class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
{

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxScrollBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxScrollBarNameStr[];
// Scrollbar item
class WXDLLEXPORT wxScrollBar: public wxControl

View File

@ -16,7 +16,7 @@
#include "wx/slider.h"
#include "wx/stattext.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxSliderNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxSliderNameStr[];
// Slider
class WXDLLEXPORT wxSlider: public wxSliderBase

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxStaticBoxNameStr[];
// Group box
class WXDLLEXPORT wxStaticBox: public wxControl

View File

@ -22,7 +22,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxTextCtrlNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxTextCtrlNameStr[];
class wxMacTextControl ;

View File

@ -13,7 +13,7 @@
#ifndef _WX_TOGGLEBUTTON_H_
#define _WX_TOGGLEBUTTON_H_
WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxCheckBoxNameStr[];
// Checkbox item (single checkbox)
class WXDLLEXPORT wxToggleButton : public wxControl

View File

@ -17,7 +17,7 @@
#include "wx/tbarbase.h"
#include "wx/dynarray.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[];
class WXDLLEXPORT wxToolBar: public wxToolBarBase
{

View File

@ -14,7 +14,7 @@
#include "wx/button.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
#define wxDEFAULT_BUTTON_MARGIN 4

View File

@ -15,7 +15,7 @@
#include "wx/control.h"
#include "wx/gdicmn.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
// Pushbutton
class WXDLLEXPORT wxButton: public wxButtonBase

View File

@ -17,7 +17,7 @@
#include "wx/dynarray.h"
#include "wx/arrstr.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxChoiceNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxChoiceNameStr[];
WX_DEFINE_ARRAY( char * , wxChoiceDataArray ) ;

View File

@ -14,7 +14,7 @@
#include "wx/choice.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxComboBoxNameStr[];
// Combobox item
class WXDLLEXPORT wxComboBox : public wxControl, public wxComboBoxBase

View File

@ -12,7 +12,7 @@
#ifndef _WX_CONTROL_H_
#define _WX_CONTROL_H_
WXDLLEXPORT_DATA(extern const wxChar*) wxControlNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxControlNameStr[];
// General item class
class WXDLLEXPORT wxControl : public wxControlBase

View File

@ -14,9 +14,9 @@
#include "wx/panel.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[];
class WXDLLEXPORT wxMacToolTip ;
class WXDLLEXPORT wxMacToolTip;
// Dialog boxes
class WXDLLEXPORT wxDialog : public wxDialogBase

View File

@ -17,8 +17,8 @@
#include "wx/accel.h"
#include "wx/icon.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxFrameNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[];
class WXDLLEXPORT wxMenuBar;
class WXDLLEXPORT wxStatusBar;

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
// Group box
class WXDLLEXPORT wxGauge: public wxGaugeBase

View File

@ -16,8 +16,8 @@
#include "wx/frame.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStatusLineNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxFrameNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStatusLineNameStr[];
class WXDLLEXPORT wxMDIClientWindow;
class WXDLLEXPORT wxMDIChildFrame;

View File

@ -20,7 +20,7 @@
* Message box dialog
*/
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -54,7 +54,7 @@ public:
#if 0
class WXDLLEXPORT wxBitmap ;
WXDLLEXPORT_DATA(extern const char*) wxBitmapRadioButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxBitmapRadioButtonNameStr[];
class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
{

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxScrollBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxScrollBarNameStr[];
// Scrollbar item
class WXDLLEXPORT wxScrollBar: public wxControl

View File

@ -16,7 +16,7 @@
#include "wx/slider.h"
#include "wx/stattext.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxSliderNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxSliderNameStr[];
// Slider
class WXDLLEXPORT wxSlider: public wxControl

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxStaticBoxNameStr[];
// Group box
class WXDLLEXPORT wxStaticBox: public wxControl

View File

@ -14,7 +14,7 @@
#include "wx/control.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxTextCtrlNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxTextCtrlNameStr[];
// Single-line text item
class WXDLLEXPORT wxTextCtrl: public wxTextCtrlBase

View File

@ -13,7 +13,7 @@
#ifndef _WX_TOGGLEBUTTON_H_
#define _WX_TOGGLEBUTTON_H_
WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxCheckBoxNameStr[];
// Checkbox item (single checkbox)
class WXDLLEXPORT wxToggleButton : public wxControl

View File

@ -17,7 +17,7 @@
#include "wx/tbarbase.h"
#include "wx/dynarray.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[];
class WXDLLEXPORT wxToolBar: public wxToolBarBase
{

View File

@ -20,7 +20,7 @@
// Message box dialog
// ----------------------------------------------------------------------------
WXDLLEXPORT_DATA(extern const char*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -14,13 +14,13 @@
#include "wx/panel.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxDialogNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxDialogNameStr[];
class WXDLLEXPORT wxDialogModalData;
#if wxUSE_TOOLBAR && (defined(__SMARTPHONE__) || defined(__POCKETPC__))
class WXDLLEXPORT wxToolBar;
extern WXDLLEXPORT_DATA(const wxChar*) wxToolBarNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[];
#endif
// Dialog boxes

View File

@ -14,7 +14,7 @@
#if wxUSE_GAUGE
extern WXDLLEXPORT_DATA(const wxChar*) wxGaugeNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[];
// Group box
class WXDLLEXPORT wxGauge95 : public wxGaugeBase

View File

@ -14,8 +14,8 @@
#include "wx/frame.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxFrameNameStr;
extern WXDLLEXPORT_DATA(const wxChar*) wxStatusLineNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[];
extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[];
class WXDLLEXPORT wxMDIClientWindow;
class WXDLLEXPORT wxMDIChildFrame;

View File

@ -19,7 +19,7 @@
* Message box dialog
*/
extern WXDLLEXPORT_DATA(const wxChar*) wxMessageBoxCaptionStr;
extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -16,7 +16,7 @@
#include "wx/icon.h"
#include "wx/bitmap.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxStaticBitmapNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxStaticBitmapNameStr[];
// a control showing an icon or a bitmap
class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase

View File

@ -14,7 +14,7 @@
class WXDLLIMPEXP_CORE wxImageList;
// extern WXDLLEXPORT_DATA(const wxChar*) wxToolBarNameStr;
// extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[];
/*
* Flags returned by HitTest

View File

@ -16,7 +16,7 @@
#include "wx/tbarbase.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxButtonBarNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxButtonBarNameStr[];
class WXDLLEXPORT wxMemoryDC;

View File

@ -13,7 +13,7 @@
#ifndef _WX_TOGGLEBUTTON_H_
#define _WX_TOGGLEBUTTON_H_
extern WXDLLEXPORT_DATA(const wxChar*) wxCheckBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[];
// Checkbox item (single checkbox)
class WXDLLEXPORT wxToggleButton : public wxControl

View File

@ -37,7 +37,7 @@ enum
typedef wxWindow wxNotebookPage; // so far, any window can be a page
extern WXDLLEXPORT_DATA(const wxChar*) wxNotebookNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxNotebookNameStr[];
#if WXWIN_COMPATIBILITY_2_4
#define wxNOTEBOOK_NAME wxNotebookNameStr

View File

@ -15,7 +15,7 @@
#include "wx/button.h"
#include "wx/dcclient.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
#define wxDEFAULT_BUTTON_MARGIN 4

View File

@ -14,7 +14,7 @@
#include "wx/panel.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[];
class WXDLLEXPORT wxDialogModalData;

View File

@ -14,7 +14,7 @@
#include "wx/dialog.h"
WXDLLEXPORT_DATA(extern const char*) wxFileSelectorPromptStr;
WXDLLEXPORT_DATA(extern const wxChar) wxFileSelectorPromptStr[];
class WXDLLEXPORT wxDirDialog: public wxDialog
{

View File

@ -93,42 +93,42 @@ class WXDLLEXPORT wxBitmap;
//
// Controls
//
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxCanvasNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxChoiceNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxComboBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxListBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxMultiTextNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxPanelNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxRadioBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxRadioButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxBitmapRadioButtonNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxScrollBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxSliderNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxTextCtrlWindowNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxTextCtrlNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxVirtListBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxButtonBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxEnhDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStatusLineNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxGetTextFromUserPromptStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxFileSelectorPromptStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxFileSelectorDefaultWildcardStr;
WXDLLEXPORT_DATA(extern const wxChar) wxButtonNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxCanvasNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxCheckBoxNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxChoiceNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxComboBoxNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxFrameNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStaticBoxNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxListBoxNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStaticTextNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStaticBitmapNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxMultiTextNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxPanelNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxRadioBoxNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxRadioButtonNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxBitmapRadioButtonNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxScrollBarNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxSliderNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStaticNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxTextCtrlWindowNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxTextCtrlNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxVirtListBoxNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxButtonBarNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxEnhDialogNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStatusLineNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxGetTextFromUserPromptStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxFileSelectorPromptStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxFileSelectorDefaultWildcardStr[];
WXDLLEXPORT_DATA(extern const wxChar*) wxInternalErrorStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxFatalErrorStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxTreeCtrlNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxDirDialogDefaultFolderStr;
WXDLLEXPORT_DATA(extern const wxChar) wxTreeCtrlNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxDirDialogNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxDirDialogDefaultFolderStr[];
//
// Class names

View File

@ -13,7 +13,7 @@
#ifndef _WX_TOGGLEBUTTON_H_
#define _WX_TOGGLEBUTTON_H_
extern WXDLLEXPORT_DATA(const wxChar*) wxCheckBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[];
// Checkbox item (single checkbox)
class WXDLLEXPORT wxToggleButton : public wxControl

View File

@ -14,7 +14,7 @@
#include "wx/panel.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxDialogNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxDialogNameStr[];
class WXDLLEXPORT wxDialogModalData;

View File

@ -14,7 +14,7 @@
#if wxUSE_GAUGE
WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[];
// Group box
class WXDLLEXPORT wxGauge : public wxGaugeBase

View File

@ -14,8 +14,8 @@
#include "wx/frame.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxFrameNameStr;
WXDLLEXPORT_DATA(extern const wxChar*) wxStatusLineNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxFrameNameStr[];
WXDLLEXPORT_DATA(extern const wxChar) wxStatusLineNameStr[];
class WXDLLEXPORT wxMDIClientWindow;
class WXDLLEXPORT wxMDIChildFrame;

View File

@ -19,7 +19,7 @@
* Message box dialog
*/
WXDLLEXPORT_DATA(extern const wxChar*) wxMessageBoxCaptionStr;
WXDLLEXPORT_DATA(extern const wxChar) wxMessageBoxCaptionStr[];
class WXDLLEXPORT wxMessageDialog: public wxDialog, public wxMessageDialogBase
{

View File

@ -16,7 +16,7 @@
#include "wx/icon.h"
#include "wx/bitmap.h"
WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxStaticBitmapNameStr[];
// a control showing an icon or a bitmap
class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase

View File

@ -14,7 +14,7 @@
class wxImageList;
// WXDLLEXPORT_DATA(extern const wxChar*) wxToolBarNameStr;
// WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[];
/*
* Flags returned by HitTest

View File

@ -13,7 +13,7 @@
#ifndef _WX_TOGGLEBUTTON_H_
#define _WX_TOGGLEBUTTON_H_
WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
WXDLLEXPORT_DATA(extern const wxChar) wxCheckBoxNameStr[];
// Checkbox item (single checkbox)
class WXDLLEXPORT wxToggleButton : public wxControl

View File

@ -16,7 +16,7 @@
#include "wx/ctrlsub.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxRadioBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxRadioBoxNameStr[];
// ----------------------------------------------------------------------------
// wxRadioBoxBase is not a normal base class, but rather a mix-in because the

View File

@ -33,7 +33,7 @@
#include "wx/control.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxRadioButtonNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxRadioButtonNameStr[];
#if defined(__WXUNIVERSAL__)
#include "wx/univ/radiobut.h"

View File

@ -18,7 +18,7 @@
#include "wx/control.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxScrollBarNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxScrollBarNameStr[];
// ----------------------------------------------------------------------------
// wxScrollBar: a scroll bar control

View File

@ -44,7 +44,7 @@
#define wxSL_NOTIFY_DRAG 0x0000
extern WXDLLEXPORT_DATA(const wxChar*) wxSliderNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxSliderNameStr[];
// ----------------------------------------------------------------------------
// wxSliderBase: define wxSlider interface

View File

@ -20,7 +20,7 @@
#include "wx/bitmap.h"
#include "wx/icon.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxStaticBitmapNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxStaticBitmapNameStr[];
// a control showing an icon or a bitmap
class WXDLLEXPORT wxStaticBitmapBase : public wxControl

View File

@ -18,7 +18,7 @@
#include "wx/control.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxStaticBoxNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxStaticBoxNameStr[];
// ----------------------------------------------------------------------------
// wxStaticBox: a grouping box with a label

View File

@ -28,7 +28,7 @@
// ----------------------------------------------------------------------------
// the default name for objects of class wxStaticLine
extern WXDLLEXPORT_DATA(const wxChar*) wxStaticTextNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[];
// ----------------------------------------------------------------------------
// wxStaticLine - a line in a dialog

View File

@ -18,7 +18,7 @@
#include "wx/control.h"
extern WXDLLEXPORT_DATA(const wxChar*) wxStaticTextNameStr;
extern WXDLLEXPORT_DATA(const wxChar) wxStaticTextNameStr[];
class WXDLLEXPORT wxStaticTextBase : public wxControl
{

Some files were not shown because too many files have changed in this diff Show More