|
Packit |
1fb8d4 |
/*
|
|
Packit |
1fb8d4 |
Advanced keyboard view interface
|
|
Packit Service |
5a9772 |
|
|
Packit |
1fb8d4 |
Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
Packit Service |
5a9772 |
If a copy of the MPL was not distributed with this file, You can obtain one at
|
|
Packit Service |
5a9772 |
http://mozilla.org/MPL/2.0/.
|
|
Packit Service |
5a9772 |
*/
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
#import <UIKit/UIKit.h>
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
// forward declaration
|
|
Packit |
1fb8d4 |
@protocol AdvancedKeyboardDelegate <NSObject>
|
|
Packit |
1fb8d4 |
@optional
|
|
Packit |
1fb8d4 |
// called when a function key was pressed and a virtual keycode is provided
|
|
Packit |
1fb8d4 |
// @key: virtual key code
|
|
Packit Service |
5a9772 |
- (void)advancedKeyPressedVKey:(int)key;
|
|
Packit |
1fb8d4 |
// called when a function key was pressed and the keys unicode is provided
|
|
Packit |
1fb8d4 |
// @key: unicode character
|
|
Packit Service |
5a9772 |
- (void)advancedKeyPressedUnicode:(int)key;
|
|
Packit |
1fb8d4 |
@end
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
@interface AdvancedKeyboardView : UIView
|
|
Packit |
1fb8d4 |
{
|
|
Packit Service |
5a9772 |
@private
|
|
Packit Service |
5a9772 |
// view containing function keys (F-keys) and function block (ins, del, home, end, ...)
|
|
Packit Service |
5a9772 |
UIView *_function_keys_view;
|
|
Packit Service |
5a9772 |
|
|
Packit Service |
5a9772 |
// view containing numpad keys (0-9, +-/*)
|
|
Packit Service |
5a9772 |
UIView *_numpad_keys_view;
|
|
Packit Service |
5a9772 |
|
|
Packit Service |
5a9772 |
// view containing cursor keys (up, down, left, right)
|
|
Packit Service |
5a9772 |
UIView *_cursor_keys_view;
|
|
Packit Service |
5a9772 |
|
|
Packit Service |
5a9772 |
// currently visible view
|
|
Packit Service |
5a9772 |
UIView *_cur_view;
|
|
Packit Service |
5a9772 |
|
|
Packit Service |
5a9772 |
// delegate
|
|
Packit Service |
5a9772 |
NSObject<AdvancedKeyboardDelegate> *_delegate;
|
|
Packit |
1fb8d4 |
}
|
|
Packit |
1fb8d4 |
|
|
Packit Service |
5a9772 |
@property(assign) NSObject<AdvancedKeyboardDelegate> *delegate;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
// init keyboard view with frame and delegate
|
|
Packit Service |
5a9772 |
- (id)initWithFrame:(CGRect)frame delegate:(NSObject<AdvancedKeyboardDelegate> *)delegate;
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
@end
|