FreeRDP
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 
19 extern NSString *TableCellIdentifierText;
20 extern NSString *TableCellIdentifierSecretText;
21 extern NSString *TableCellIdentifierYesNo;
22 extern NSString *TableCellIdentifierSelection;
23 extern NSString *TableCellIdentifierSubEditor;
24 extern NSString *TableCellIdentifierMultiChoice;
25 extern 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 widht according to the label's text size
42 - (void)adjustEditTextTableViewCell:(EditTextTableViewCell *)cell;
43 
44 @end