mirror of
https://github.com/libretro/RetroArch
synced 2025-02-08 15:40:14 +00:00
Allow requesting to browse for a directory. Allow requesting the browser to display an option to return a black item. Swap the ‘Up’ and back buttons in the browser. Properly reset string settings that were changed in rgui.
52 lines
1.7 KiB
Objective-C
52 lines
1.7 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
|
|
|
|
#include <UIKit/UIKit.h>
|
|
#include "core_info.h"
|
|
|
|
|
|
// browser.m
|
|
@class RADirectoryItem;
|
|
@protocol RADirectoryListDelegate
|
|
- (bool)directoryList:(id)list itemWasSelected:(RADirectoryItem*)path;
|
|
@end
|
|
|
|
#include "menu.h"
|
|
|
|
// browser.m
|
|
@interface RADirectoryItem : NSObject<RAMenuItemBase>
|
|
@property (nonatomic) NSString* path;
|
|
@property (nonatomic) bool isDirectory;
|
|
@end
|
|
|
|
@interface RADirectoryList : RAMenuBase<UIActionSheetDelegate>
|
|
@property (nonatomic, weak) id<RADirectoryListDelegate> directoryDelegate;
|
|
@property (nonatomic, weak) RADirectoryItem* selectedItem;
|
|
@property (nonatomic) bool allowBlank;
|
|
@property (nonatomic) bool forDirectory;
|
|
- (id)initWithPath:(NSString*)path extensions:(const char*)extensions delegate:(id<RADirectoryListDelegate>)delegate;
|
|
- (void)browseTo:(NSString*)path;
|
|
@end
|
|
|
|
// browser.m
|
|
@interface RAFoldersList : RAMenuBase
|
|
- (id) initWithFilePath:(NSString*)path;
|
|
@end
|
|
|
|
#endif
|