mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-12 22:01:27 +00:00
0ddf198875
All properties are marked (nonatomic) All table view cell reuse identifiers are now constant string objects. Where appropriate all calls to [RetroArch_iOS get] are replaced with self.navigationController. All calls to objc_setAssociatedObject use proper keys rather than string literals.
92 lines
2.8 KiB
Objective-C
92 lines
2.8 KiB
Objective-C
/* RetroArch - A frontend for libretro.
|
|
* Copyright (C) 2013 - Jason Fetters
|
|
*
|
|
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
|
* of the GNU General Public License as published by the Free Software Found-
|
|
* ation, either version 3 of the License, or (at your option) any later version.
|
|
*
|
|
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
|
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
* PURPOSE. See the GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along with RetroArch.
|
|
* If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef _RARCH_APPLE_VIEWS_H
|
|
#define _RARCH_APPLE_VIEWS_H
|
|
|
|
#import "RAModuleInfo.h"
|
|
|
|
// RALogView.m
|
|
@interface RALogView : UITableViewController
|
|
@end
|
|
|
|
// utility.m
|
|
@interface RATableViewController : UITableViewController
|
|
@property (nonatomic) NSMutableArray* sections;
|
|
@property (nonatomic) BOOL hidesHeaders;
|
|
|
|
- (id)initWithStyle:(UITableViewStyle)style;
|
|
- (bool)getCellFor:(NSString*)reuseID withStyle:(UITableViewCellStyle)style result:(UITableViewCell**)output;
|
|
- (id)itemForIndexPath:(NSIndexPath*)indexPath;
|
|
- (void)reset;
|
|
@end
|
|
|
|
// browser.m
|
|
@interface RADirectoryItem : NSObject
|
|
@property (nonatomic) NSString* path;
|
|
@property (nonatomic) bool isDirectory;
|
|
@end
|
|
|
|
// browser.m
|
|
@protocol RADirectoryListDelegate
|
|
- (bool)directoryList:(id)list itemWasSelected:(RADirectoryItem*)path;
|
|
@end
|
|
|
|
@interface RADirectoryList : RATableViewController <UIActionSheetDelegate>
|
|
@property (nonatomic, weak) id<RADirectoryListDelegate> directoryDelegate;
|
|
@property (nonatomic, weak) RADirectoryItem* selectedItem;
|
|
- (id)initWithPath:(NSString*)path delegate:(id<RADirectoryListDelegate>)delegate;
|
|
@end
|
|
|
|
// browser.m
|
|
@protocol RAModuleListDelegate
|
|
- (bool)moduleList:(id)list itemWasSelected:(RAModuleInfo*)module;
|
|
@end
|
|
|
|
@interface RAModuleList : RATableViewController
|
|
@property (nonatomic, weak) id<RAModuleListDelegate> moduleDelegate;
|
|
- (id)initWithGame:(NSString*)path delegate:(id<RAModuleListDelegate>)delegate;
|
|
@end
|
|
|
|
// browser.m
|
|
@interface RAFoldersList : RATableViewController
|
|
- (id) initWithFilePath:(NSString*)path;
|
|
@end
|
|
|
|
// RAModuleInfo.m
|
|
@interface RAModuleInfoList : RATableViewController
|
|
- (id)initWithModuleInfo:(RAModuleInfo*)info;
|
|
@end
|
|
|
|
// settings.m
|
|
@interface RASettingsSubList : RATableViewController
|
|
- (id)initWithSettings:(NSArray*)values title:(NSString*)title;
|
|
- (void)writeSettings:(NSArray*)settingList toConfig:(config_file_t*)config;
|
|
|
|
- (bool)isSettingsView;
|
|
@end
|
|
|
|
// settings.m
|
|
@interface RASettingsList : RASettingsSubList
|
|
+ (void)refreshModuleConfig:(RAModuleInfo*)module;
|
|
- (id)initWithModule:(RAModuleInfo*)module;
|
|
@end
|
|
|
|
// settings.m
|
|
@interface RASystemSettingsList : RASettingsSubList<UIAlertViewDelegate>
|
|
@end
|
|
|
|
#endif
|