FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
ScreenSelectionController Class Reference
Inheritance diagram for ScreenSelectionController:
Collaboration diagram for ScreenSelectionController:

Instance Methods

(id) - initWithConnectionParams:
 
(id) - initWithConnectionParams:keyPath:
 
- Instance Methods inherited from EditorBaseController
(UITableViewCell *) - tableViewCellFromIdentifier:
 
(void) - adjustEditTextTableViewCell:
 

Detailed Description

Definition at line 16 of file ScreenSelectionController.h.

Method Documentation

◆ initWithConnectionParams:

- (id) initWithConnectionParams: (ConnectionParams *)  params

Definition at line 1 of file ScreenSelectionController.m.

22 :(ConnectionParams *)params
23{
24 return [self initWithConnectionParams:params keyPath:nil];
25}

◆ initWithConnectionParams:keyPath:

- (id) initWithConnectionParams: (ConnectionParams *)  params
keyPath: (NSString *)  keyPath 

Definition at line 1 of file ScreenSelectionController.m.

27 :(ConnectionParams *)params keyPath:(NSString *)keyPath
28{
29 self = [super initWithStyle:UITableViewStyleGrouped];
30 if (self)
31 {
32 _params = [params retain];
33 _keyPath = (keyPath != nil ? [keyPath retain] : nil);
34
35 _color_options = (OrderedDictionary *)[SelectionForColorSetting() retain];
36 _resolution_modes = [ResolutionModes() retain];
37
38 // init current selections
39 NSUInteger idx = [_color_options
40 indexForValue:[NSNumber
41 numberWithInt:[_params
42 intForKeyPath:[self keyPathForKey:@"colors"]]]];
43 _selection_color = (idx != NSNotFound) ? idx : 0;
44
45 idx = [_resolution_modes
46 indexOfObject:ScreenResolutionDescription(
47 [_params
48 intForKeyPath:[self keyPathForKey:@"screen_resolution_type"]],
49 [_params intForKeyPath:[self keyPathForKey:@"width"]],
50 [_params intForKeyPath:[self keyPathForKey:@"height"]])];
51 _selection_resolution = (idx != NSNotFound) ? idx : 0;
52 }
53 return self;
54}

The documentation for this class was generated from the following files: