diff options
author | mixedpuppy <devnull@localhost> | 2007-12-05 23:06:58 +0000 |
---|---|---|
committer | mixedpuppy <devnull@localhost> | 2007-12-05 23:06:58 +0000 |
commit | ffa2c5b99b0eb534498a550d11ac5debc1204c32 (patch) | |
tree | 7a56a2c74170e09c85b98ecdeebce310d001ad7d /macosx/ExtInput.h | |
parent | a9e5e58a8d7875426b4d6d009254fc6ec191cbba (diff) | |
download | scintilla-mirror-ffa2c5b99b0eb534498a550d11ac5debc1204c32.tar.gz |
modified version of adobe OSX patches. Most of these patches are provided by Adobe, though I've
reorganized a lot of them
- improved drag/drop
- make copy/paste use modern pasteboard api's
- optimized textlayout usage
- reduce assertions for debug builds
- implement IME support
- other minor things
patches are available in openkomodo, which is a good test ground for scintilla osx (until someone
ports SCiTE).
Diffstat (limited to 'macosx/ExtInput.h')
-rw-r--r-- | macosx/ExtInput.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/macosx/ExtInput.h b/macosx/ExtInput.h new file mode 100644 index 000000000..0179e83b9 --- /dev/null +++ b/macosx/ExtInput.h @@ -0,0 +1,64 @@ +/******************************************************************************* + +Copyright (c) 2007 Adobe Systems Incorporated + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +********************************************************************************/ + +#ifndef _ExtInput_h +#define _ExtInput_h + +#include <Carbon/Carbon.h> +#include "Scintilla.h" + +namespace Scintilla +{ + +/** +The ExtInput class provides TSM input services to Scintilla. +It uses the indicators 0 and 1 (see SCI_INDICSETSTYLE) to apply +underlines to partially converted text. +*/ + +class ExtInput +{ +public: + /** + Attach extended input to a HIView with attached Scintilla. This installs the needed + event handlers etc. + */ + static void attach (HIViewRef ref); + /** + Detach extended input from a HIViewwith attached Scintilla. + */ + static void detach (HIViewRef ref); + /** + Activate or deactivate extended input. This method should be called whenever + the view gains or loses focus. + */ + static void activate (HIViewRef ref, bool on); + /** + Terminate extended input. + */ + static void stop (HIViewRef ref); +}; + +} // end namespace + +#endif |