2013-02-14 17:59:12 +04:00
|
|
|
/*
|
|
|
|
Generic controller to select a single item from a list of options
|
2019-11-06 17:24:51 +03:00
|
|
|
|
2013-12-04 14:37:57 +04:00
|
|
|
Copyright 2013 Thincast Technologies GmbH, Author: Martin Fleisz
|
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 "EditorBaseController.h"
|
|
|
|
|
|
|
|
@class ConnectionParams;
|
|
|
|
|
|
|
|
@interface EditorSelectionController : EditorBaseController
|
|
|
|
{
|
2019-11-06 17:24:51 +03:00
|
|
|
ConnectionParams *_params;
|
|
|
|
|
|
|
|
// array with entries in connection parameters that are altered
|
|
|
|
NSArray *_entries;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
// array with dictionaries containing label/value pairs that represent the available values for
|
|
|
|
// each entry
|
|
|
|
NSArray *_selections;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
// current selections
|
|
|
|
NSMutableArray *_cur_selections;
|
2013-02-14 17:59:12 +04:00
|
|
|
}
|
|
|
|
|
2019-11-06 17:24:51 +03:00
|
|
|
- (id)initWithConnectionParams:(ConnectionParams *)params
|
|
|
|
entries:(NSArray *)entries
|
|
|
|
selections:(NSArray *)selections;
|
2013-02-14 17:59:12 +04:00
|
|
|
|
|
|
|
@end
|