Changed wxMenu::GetTitle to return a wxString.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-08-16 08:03:13 +00:00
parent 714e6a9e26
commit f7387de542
6 changed files with 10 additions and 60 deletions

View File

@@ -65,7 +65,7 @@ public:
// item properties // item properties
// title // title
void SetTitle(const wxString& label); void SetTitle(const wxString& label);
const wxString& GetTitle() const; const wxString GetTitle() const;
// label // label
void SetLabel(int id, const wxString& label); void SetLabel(int id, const wxString& label);
wxString GetLabel(int id) const; wxString GetLabel(int id) const;

View File

@@ -161,49 +161,6 @@
// will be used to write, in a portable way, // will be used to write, in a portable way,
// float on the disk // float on the disk
/*
* Motif and XView
*
*/
#define WX_STANDARD_GRAPHICS 0
// If 1, normalizes X drawing code to behave exactly as
// as MSW. If 0, is compatible with existing applications.
// Some Xlib drawing primitives have non-intuitive behaviour!
#define USE_GADGETS 0
// More efficient to use gadgets for some
// widgets in Motif. 0 for no gadgets.
// Please note: there is no reason to not
// use it except if you intend to modify
// color of individuals items OR
// you need to move panel items interactively
#define USE_BUTTON_GADGET 0
// On JACS's system, gadget buttons
// interfere with default button setting.
#define PIXEL0_DISABLE 0
// Define as 1 to disallow allocation
// of pixel #0 (wxXOR problem).
// JACS - I found this caused problems.
#define MOTIF_MENUBAR_DELETE_FIX 0
// On some systems (Ultrix, OSF), deleting a frame
// from within a menu callback causes a crash.
// Set to 1 to avoid deleting the menubar handle directly,
// which seems to cure it.
#define DEFAULT_FILE_SELECTOR_SIZE 0
// Let Motif defines the size of File
// Selector Box (if 1), or fix it to
// wxFSB_WIDTH x wxFSB_HEIGHT (if 0)
#define wxFSB_WIDTH 600
#define wxFSB_HEIGHT 500
#define MOTIF_MANAGE 1
// Control default style of Dialogs
// 1: use wxMOTIF_RESIZE as default
// 0: do not use wxMOTIF_RESIZE as default
/* /*
* MS Windows/Windows NT * MS Windows/Windows NT
* *
@@ -224,14 +181,9 @@
// Switching this off also switches off // Switching this off also switches off
// the printing architecture and interactive // the printing architecture and interactive
// wxPrinterDC. // wxPrinterDC.
#define USE_GREY_BACKGROUND 1
// If 1, uses grey (gray!) panels
// in FAFA and non-FAFA, non-CTL3D modes.
// I (JACS) think the controls look better
// this way. CTL3D always uses grey panels.
#define USE_ITSY_BITSY 1 #define USE_ITSY_BITSY 1
// Define 1 to use Microsoft's ItsyBitsy // Define 1 to use Microsoft's ItsyBitsy
// small title bar library // small title bar library, for wxMiniFrame
#define USE_BITMAP_MESSAGE 1 #define USE_BITMAP_MESSAGE 1
// Define 1 to use bitmap messages. // Define 1 to use bitmap messages.
#define USE_PORTABLE_FONTS_IN_MSW 0 #define USE_PORTABLE_FONTS_IN_MSW 0

View File

@@ -65,7 +65,7 @@ public:
// item properties // item properties
// title // title
void SetTitle(const wxString& label); void SetTitle(const wxString& label);
const wxString& GetTitle() const; const wxString GetTitle() const;
// label // label
void SetLabel(int id, const wxString& label); void SetLabel(int id, const wxString& label);
wxString GetLabel(int id) const; wxString GetLabel(int id) const;

View File

@@ -312,7 +312,7 @@ void wxMenu::SetTitle(const wxString& label)
(UINT)-2, (const char *)m_title); (UINT)-2, (const char *)m_title);
} }
const wxString& wxMenu::GetTitle() const const wxString wxMenu::GetTitle() const
{ {
return m_title; return m_title;
} }

View File

@@ -181,7 +181,7 @@ void wxMenu::SetTitle(const wxString& label)
// TODO // TODO
} }
const wxString& wxMenu::GetTitle() const const wxString wxMenu::GetTitle() const
{ {
return m_title; return m_title;
} }

View File

@@ -1,7 +1,7 @@
lib/dummy docs/*.*
src/win/*.cpp win/*.cpp
src/win/*.h win/*.h
src/win/make*.* win/make*.*
samples/cube/*.cpp samples/cube/*.cpp
samples/cube/*.h samples/cube/*.h
samples/cube/*.rc samples/cube/*.rc
@@ -14,8 +14,6 @@ samples/isosurf/*.rc
samples/isosurf/*.ico samples/isosurf/*.ico
samples/isosurf/*.xbm samples/isosurf/*.xbm
samples/isosurf/*.dat samples/isosurf/*.dat
samples/isosurf/*.dat.gz
samples/isosurf/make*.* samples/isosurf/make*.*
wx/*.h
wx/*.cpp
distrib/*.*