git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41008
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Called from wxExit() function, should terminate the application a.s.a.p.
virtual void Exit();
// Called from wxExit() function, should terminate the application a.s.a.p.
virtual void Exit();
// Return the layout direction for the current locale
virtual wxLayoutDirection GetLayoutDirection() const;
// Return the layout direction for the current locale
virtual wxLayoutDirection GetLayoutDirection() const;
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/defs.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
#include "wx/fontenc.h"
#if wxUSE_INTL
#include "wx/fontenc.h"
// --- --- --- generated code ends here --- --- ---
// --- --- --- generated code ends here --- --- ---
-enum wxLayoutDirection
-{
- wxLayout_Default,
- wxLayout_LeftToRight,
- wxLayout_RightToLeft
-};
-
// ----------------------------------------------------------------------------
// wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc.
// translation information
// ----------------------------------------------------------------------------
// wxLanguageInfo: encapsulates wxLanguage to OS native lang.desc.
// translation information
#endif
#endif // _WX_INTL_H_
#endif
#endif // _WX_INTL_H_
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
long flags = wxSTOCK_WITH_MNEMONIC);
WXDLLEXPORT wxString wxGetStockLabel(wxWindowID id,
long flags = wxSTOCK_WITH_MNEMONIC);
-// Returns the accelerator that should be used for given stock UI element
-// (e.g. "Ctrl+x" for wxSTOCK_EXIT)
-WXDLLEXPORT wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id);
+#if wxUSE_ACCEL
+
+ // 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
// it is wxID_ANY which means "don't care"
void SetId( wxWindowID winid ) { m_windowId = winid; }
wxWindowID GetId() const { return m_windowId; }
// it is wxID_ANY which means "don't care"
void SetId( wxWindowID winid ) { m_windowId = winid; }
wxWindowID GetId() const { return m_windowId; }
// get or change the layout direction (LTR or RTL) for this window,
// wxLayout_Default is returned if layout direction is not supported
virtual wxLayoutDirection GetLayoutDirection() const
// get or change the layout direction (LTR or RTL) for this window,
// wxLayout_Default is returned if layout direction is not supported
virtual wxLayoutDirection GetLayoutDirection() const
wxAccessible* GetOrCreateAccessible() ;
#endif
wxAccessible* GetOrCreateAccessible() ;
#endif
// Set window transparency if the platform supports it
virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; }
virtual bool CanSetTransparent() { return false; }
// Set window transparency if the platform supports it
virtual bool SetTransparent(wxByte WXUNUSED(alpha)) { return false; }
virtual bool CanSetTransparent() { return false; }
{
const wxLanguageInfo *const
info = wxLocale::GetLanguageInfo(locale->GetLanguage());
{
const wxLanguageInfo *const
info = wxLocale::GetLanguageInfo(locale->GetLanguage());
if ( info )
return info->LayoutDirection;
}
if ( info )
return info->LayoutDirection;
}
stockLabel = wxStripMenuCodes( stockLabel );
}
stockLabel = wxStripMenuCodes( stockLabel );
}
if (!stockLabel.empty() && (flags & wxSTOCK_WITH_ACCELERATOR))
{
stockLabel += _T("\t");
if (!stockLabel.empty() && (flags & wxSTOCK_WITH_ACCELERATOR))
{
stockLabel += _T("\t");
stockLabel += accel.ToString();
}
stockLabel += accel.ToString();
}
wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
{
wxAcceleratorEntry ret;
wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
{
wxAcceleratorEntry ret;
bool wxIsStockLabel(wxWindowID id, const wxString& label)
{
if (label.empty())
bool wxIsStockLabel(wxWindowID id, const wxString& label)
{
if (label.empty())