Build fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,6 +16,16 @@
|
|||||||
#include "wx/defs.h"
|
#include "wx/defs.h"
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
|
|
||||||
|
// Make wxLayoutDirection enum available without need for wxUSE_INTL so wxWindow, wxApp
|
||||||
|
// and other classes are not distrubed by wxUSE_INTL
|
||||||
|
|
||||||
|
enum wxLayoutDirection
|
||||||
|
{
|
||||||
|
wxLayout_Default,
|
||||||
|
wxLayout_LeftToRight,
|
||||||
|
wxLayout_RightToLeft
|
||||||
|
};
|
||||||
|
|
||||||
#if wxUSE_INTL
|
#if wxUSE_INTL
|
||||||
|
|
||||||
#include "wx/fontenc.h"
|
#include "wx/fontenc.h"
|
||||||
@@ -302,13 +312,6 @@ enum wxLanguage
|
|||||||
|
|
||||||
// --- --- --- generated code ends here --- --- ---
|
// --- --- --- generated code ends here --- --- ---
|
||||||
|
|
||||||
enum wxLayoutDirection
|
|
||||||
{
|
|
||||||
wxLayout_Default,
|
|
||||||
wxLayout_LeftToRight,
|
|
||||||
wxLayout_RightToLeft
|
|
||||||
};
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc.
|
// wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc.
|
||||||
// translation information
|
// translation information
|
||||||
@@ -604,4 +607,3 @@ inline const wxChar *wxGetTranslation(const wxChar *sz1, const wxChar *sz2,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // _WX_INTL_H_
|
#endif // _WX_INTL_H_
|
||||||
|
|
||||||
|
@@ -43,9 +43,13 @@ enum wxStockLabelQueryFlag
|
|||||||
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
|
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
|
||||||
long flags = wxSTOCK_WITH_MNEMONIC);
|
long flags = wxSTOCK_WITH_MNEMONIC);
|
||||||
|
|
||||||
// Returns the accelerator that should be used for given stock UI element
|
#if wxUSE_ACCEL
|
||||||
// (e.g. "Ctrl+x" for wxSTOCK_EXIT)
|
|
||||||
WXDLLEXPORT wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id);
|
// Returns the accelerator that should be used for given stock UI element
|
||||||
|
// (e.g. "Ctrl+x" for wxSTOCK_EXIT)
|
||||||
|
WXDLLEXPORT wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
|
|
||||||
|
@@ -174,6 +174,8 @@ wxString wxGetStockLabel(wxWindowID id, long flags)
|
|||||||
stockLabel = wxStripMenuCodes( stockLabel );
|
stockLabel = wxStripMenuCodes( stockLabel );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_ACCEL
|
||||||
|
|
||||||
if (!stockLabel.empty() && (flags & wxSTOCK_WITH_ACCELERATOR))
|
if (!stockLabel.empty() && (flags & wxSTOCK_WITH_ACCELERATOR))
|
||||||
{
|
{
|
||||||
stockLabel += _T("\t");
|
stockLabel += _T("\t");
|
||||||
@@ -183,9 +185,13 @@ wxString wxGetStockLabel(wxWindowID id, long flags)
|
|||||||
stockLabel += accel.ToString();
|
stockLabel += accel.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_ACCEL
|
||||||
|
|
||||||
return stockLabel;
|
return stockLabel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if wxUSE_ACCEL
|
||||||
|
|
||||||
wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
|
wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
|
||||||
{
|
{
|
||||||
wxAcceleratorEntry ret;
|
wxAcceleratorEntry ret;
|
||||||
@@ -220,6 +226,8 @@ wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // wxUSE_ACCEL
|
||||||
|
|
||||||
bool wxIsStockLabel(wxWindowID id, const wxString& label)
|
bool wxIsStockLabel(wxWindowID id, const wxString& label)
|
||||||
{
|
{
|
||||||
if (label.empty())
|
if (label.empty())
|
||||||
|
Reference in New Issue
Block a user