X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/598ddd96f45745188c96f16757f7ceeaa0c8d70d..5f7bcb48fd9a642036a3bf5c70e2b0c9576df1b1:/src/common/buttoncmn.cpp diff --git a/src/common/buttoncmn.cpp b/src/common/buttoncmn.cpp deleted file mode 100644 index 7c270e56af..0000000000 --- a/src/common/buttoncmn.cpp +++ /dev/null @@ -1,65 +0,0 @@ -/////////////////////////////////////////////////////////////////////////////// -// Name: common/buttoncmn.cpp -// Purpose: wxMenu and wxMenuBar methods common to all ports -// Author: Vaclav Slavik -// Modified by: -// Created: 2004-08-15 -// RCS-ID: $Id$ -// Copyright: (c) Vaclav Slavik, 2004 -// Licence: wxWindows licence -/////////////////////////////////////////////////////////////////////////////// - -// ============================================================================ -// declarations -// ============================================================================ - -// ---------------------------------------------------------------------------- -// headers -// ---------------------------------------------------------------------------- - -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "buttonbase.h" -#endif - -// For compilers that support precompilation, includes "wx.h". -#include "wx/wxprec.h" - -#ifdef __BORLANDC__ - #pragma hdrstop -#endif - -#if wxUSE_BUTTON - -#include "wx/button.h" - -#if !defined(__WXGTK20__) || defined(__WXUNIVERSAL__) -bool wxButtonBase::CreateStock(wxWindow *parent, - wxWindowID id, - wxStockItemID stock, - const wxString& descriptiveLabel, - const wxPoint& pos, - long style, - const wxValidator& validator, - const wxString& name) -{ - wxString label; -#if !defined(__WXMAC__) && !defined(__WXCOCOA__) - wxUnusedVar(descriptiveLabel); -#else // defined(__WXMAC__) || defined(__WXCOCOA__) - if (!descriptiveLabel.empty()) - { - label = descriptiveLabel; - } - else -#endif - { - label = wxGetStockItemLabel(stock); - } - - return wxStaticCast(this, wxButton)->Create(parent, id, label, - pos, wxDefaultSize, - style, validator, name); -} -#endif - -#endif // wxUSE_BUTTON