2013-02-14 17:59:12 +04:00
|
|
|
/*
|
|
|
|
Basic interface for settings editors
|
2019-11-06 17:24:51 +03:00
|
|
|
|
2013-12-04 14:37:57 +04:00
|
|
|
Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
2013-02-14 17:59:12 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
|
|
If a copy of the MPL was not distributed with this file, You can obtain one at
|
|
|
|
http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "EditTextTableViewCell.h"
|
|
|
|
#import "EditFlagTableViewCell.h"
|
|
|
|
#import "EditSelectionTableViewCell.h"
|
|
|
|
#import "EditSubEditTableViewCell.h"
|
|
|
|
#import "EditSecretTextTableViewCell.h"
|
|
|
|
#import "EditButtonTableViewCell.h"
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
extern NSString *TableCellIdentifierText;
|
|
|
|
extern NSString *TableCellIdentifierSecretText;
|
|
|
|
extern NSString *TableCellIdentifierYesNo;
|
|
|
|
extern NSString *TableCellIdentifierSelection;
|
|
|
|
extern NSString *TableCellIdentifierSubEditor;
|
|
|
|
extern NSString *TableCellIdentifierMultiChoice;
|
|
|
|
extern NSString *TableCellIdentifierButton;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
@interface EditorBaseController : UITableViewController <UITextFieldDelegate>
|
2019-11-06 17:24:51 +03:00
|
|
|
{
|
|
|
|
@private
|
|
|
|
IBOutlet EditTextTableViewCell *_textTableViewCell;
|
|
|
|
IBOutlet EditSecretTextTableViewCell *_secretTextTableViewCell;
|
|
|
|
IBOutlet EditFlagTableViewCell *_flagTableViewCell;
|
|
|
|
IBOutlet EditSelectionTableViewCell *_selectionTableViewCell;
|
|
|
|
IBOutlet EditSubEditTableViewCell *_subEditTableViewCell;
|
|
|
|
IBOutlet EditButtonTableViewCell *_buttonTableViewCell;
|
2013-02-14 17:59:12 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
// returns one of the requested table view cells
|
2019-11-06 17:24:51 +03:00
|
|
|
- (UITableViewCell *)tableViewCellFromIdentifier:(NSString *)identifier;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
// Adjust text input cells label/textfield widht according to the label's text size
|
2019-11-06 17:24:51 +03:00
|
|
|
- (void)adjustEditTextTableViewCell:(EditTextTableViewCell *)cell;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
@end
|