FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
EditorBaseController.h
1/*
2 Basic interface for settings editors
3
4 Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
5
6 This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
7 If a copy of the MPL was not distributed with this file, You can obtain one at
8 http://mozilla.org/MPL/2.0/.
9 */
10
11#import <UIKit/UIKit.h>
12#import "EditTextTableViewCell.h"
13#import "EditFlagTableViewCell.h"
14#import "EditSelectionTableViewCell.h"
15#import "EditSubEditTableViewCell.h"
16#import "EditSecretTextTableViewCell.h"
17#import "EditButtonTableViewCell.h"
18
19extern NSString *TableCellIdentifierText;
20extern NSString *TableCellIdentifierSecretText;
21extern NSString *TableCellIdentifierYesNo;
22extern NSString *TableCellIdentifierSelection;
23extern NSString *TableCellIdentifierSubEditor;
24extern NSString *TableCellIdentifierMultiChoice;
25extern NSString *TableCellIdentifierButton;
26
27@interface EditorBaseController : UITableViewController <UITextFieldDelegate>
28{
29 @private
30 IBOutlet EditTextTableViewCell *_textTableViewCell;
31 IBOutlet EditSecretTextTableViewCell *_secretTextTableViewCell;
32 IBOutlet EditFlagTableViewCell *_flagTableViewCell;
33 IBOutlet EditSelectionTableViewCell *_selectionTableViewCell;
34 IBOutlet EditSubEditTableViewCell *_subEditTableViewCell;
35 IBOutlet EditButtonTableViewCell *_buttonTableViewCell;
36}
37
38// returns one of the requested table view cells
39- (UITableViewCell *)tableViewCellFromIdentifier:(NSString *)identifier;
40
41// Adjust text input cells label/textfield width according to the label's text size
42- (void)adjustEditTextTableViewCell:(EditTextTableViewCell *)cell;
43
44@end