2013-02-21 00:52:52 +00:00
|
|
|
/* RetroArch - A frontend for libretro.
|
2014-01-01 00:50:59 +00:00
|
|
|
* Copyright (C) 2013-2014 - Jason Fetters
|
2013-02-21 00:52:52 +00:00
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*/
|
|
|
|
|
2013-07-05 01:34:34 +00:00
|
|
|
#ifndef _RARCH_APPLE_VIEWS_H
|
|
|
|
#define _RARCH_APPLE_VIEWS_H
|
|
|
|
|
2013-11-22 14:30:02 +00:00
|
|
|
#include <UIKit/UIKit.h>
|
2014-05-22 16:54:10 +00:00
|
|
|
#include "../../frontend/info/core_info.h"
|
2013-02-13 20:46:56 +00:00
|
|
|
|
2013-06-14 04:45:35 +00:00
|
|
|
|
2013-11-22 14:30:02 +00:00
|
|
|
#include "menu.h"
|
|
|
|
|
2013-06-14 04:45:35 +00:00
|
|
|
// browser.m
|
2013-11-22 14:30:02 +00:00
|
|
|
@interface RADirectoryItem : NSObject<RAMenuItemBase>
|
2013-09-25 00:03:47 +00:00
|
|
|
@property (nonatomic) NSString* path;
|
|
|
|
@property (nonatomic) bool isDirectory;
|
2013-07-12 02:40:40 +00:00
|
|
|
@end
|
|
|
|
|
2013-11-22 14:30:02 +00:00
|
|
|
@interface RADirectoryList : RAMenuBase<UIActionSheetDelegate>
|
2013-09-24 23:34:59 +00:00
|
|
|
@property (nonatomic, weak) RADirectoryItem* selectedItem;
|
2013-12-26 06:43:10 +00:00
|
|
|
|
|
|
|
@property (nonatomic, copy) void (^chooseAction)(RADirectoryList* list, RADirectoryItem* item);
|
|
|
|
@property (nonatomic, copy) NSString* path;
|
|
|
|
@property (nonatomic, copy) NSString* extensions;
|
|
|
|
|
2013-12-24 19:03:43 +00:00
|
|
|
@property (nonatomic) bool allowBlank;
|
|
|
|
@property (nonatomic) bool forDirectory;
|
2013-12-26 06:43:10 +00:00
|
|
|
|
|
|
|
- (id)initWithPath:(NSString*)path extensions:(const char*)extensions action:(void (^)(RADirectoryList* list, RADirectoryItem* item))action;
|
2013-11-22 14:30:02 +00:00
|
|
|
- (void)browseTo:(NSString*)path;
|
2013-06-14 04:45:35 +00:00
|
|
|
@end
|
|
|
|
|
|
|
|
// browser.m
|
2013-11-22 14:30:02 +00:00
|
|
|
@interface RAFoldersList : RAMenuBase
|
2013-09-24 23:34:59 +00:00
|
|
|
- (id) initWithFilePath:(NSString*)path;
|
2013-07-12 02:40:40 +00:00
|
|
|
@end
|
|
|
|
|
2013-07-05 01:34:34 +00:00
|
|
|
#endif
|