VMConfigDisplayViewController.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright © 2019 Halts. All rights reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. #import <UIKit/UIKit.h>
  17. #import "VMConfigViewController.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. @interface VMConfigDisplayViewController : VMConfigViewController<UIPickerViewDelegate, UIPickerViewDataSource>
  20. @property (weak, nonatomic) IBOutlet UITableViewCell *graphicsTypeFullCell;
  21. @property (weak, nonatomic) IBOutlet UITableViewCell *graphicsTypeConsoleCell;
  22. @property (weak, nonatomic) IBOutlet UISwitch *resolutionFixedSwitch;
  23. @property (weak, nonatomic) IBOutlet UITableViewCell *maxResolutionCell;
  24. @property (weak, nonatomic) IBOutlet UILabel *maxResolutionLabel;
  25. @property (weak, nonatomic) IBOutlet UITableViewCell *maxResolutionPickerCell;
  26. @property (weak, nonatomic) IBOutlet UIPickerView *maxResolutionPicker;
  27. @property (nonatomic, assign) BOOL maxResolutionPickerActive;
  28. @property (weak, nonatomic) IBOutlet UISwitch *zoomScaleFitSwitch;
  29. @property (weak, nonatomic) IBOutlet UISwitch *zoomLetterboxSwitch;
  30. @property (strong, nonatomic) IBOutletCollection(UITableViewCell) NSArray *displayTypeCells;
  31. @property (strong, nonatomic) IBOutletCollection(UITableViewCell) NSArray *displayTypeCellsWithoutPicker;
  32. @property (strong, nonatomic) IBOutletCollection(UITableViewCell) NSArray *consoleTypeCells;
  33. @property (nonatomic, assign) BOOL consoleOnly;
  34. @property (nonatomic, nullable, strong) NSString *maxResolution;
  35. - (IBAction)resolutionFixedSwitchChanged:(UISwitch *)sender;
  36. - (IBAction)zoomScaleFitSwitchChanged:(UISwitch *)sender;
  37. - (IBAction)zoomLetterboxSwitchChanged:(UISwitch *)sender;
  38. @end
  39. NS_ASSUME_NONNULL_END