mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 09:40:07 +01:00
Update wxTextCtrl OSX overrides since they're now documented
This commit is contained in:
@@ -114,9 +114,7 @@ def parseAndTweakModule():
|
||||
|
||||
|
||||
# OSX methods for controlling native features
|
||||
c.addCppMethod('void', 'OSXEnableAutomaticQuoteSubstitution', '(bool enable)',
|
||||
doc="Mac-only method for turning on/off automatic quote substitutions.",
|
||||
body="""\
|
||||
c.find('OSXEnableAutomaticQuoteSubstitution').setCppCode("""\
|
||||
#ifdef __WXMAC__
|
||||
self->OSXEnableAutomaticQuoteSubstitution(enable);
|
||||
#else
|
||||
@@ -124,9 +122,7 @@ def parseAndTweakModule():
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.addCppMethod('void', 'OSXEnableAutomaticDashSubstitution', '(bool enable)',
|
||||
doc="Mac-only method for turning on/off automatic dash substitutions.",
|
||||
body="""\
|
||||
c.find('OSXEnableAutomaticDashSubstitution').setCppCode("""\
|
||||
#ifdef __WXMAC__
|
||||
self->OSXEnableAutomaticDashSubstitution(enable);
|
||||
#else
|
||||
@@ -134,9 +130,7 @@ def parseAndTweakModule():
|
||||
#endif
|
||||
""")
|
||||
|
||||
c.addCppMethod('void', 'OSXDisableAllSmartSubstitutions', '()',
|
||||
doc="Mac-only method to disable all automatic text substitutions.",
|
||||
body="""\
|
||||
c.find('OSXDisableAllSmartSubstitutions').setCppCode("""\
|
||||
#ifdef __WXMAC__
|
||||
self->OSXDisableAllSmartSubstitutions();
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user