| 1 |
/* GemRB - Infinity Engine Emulator |
| 2 |
* Copyright (C) 2011 The GemRB Project |
| 3 |
* |
| 4 |
* This program is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU General Public License |
| 6 |
* as published by the Free Software Foundation; either version 2 |
| 7 |
* of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This program is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU General Public License |
| 15 |
* along with this program; if not, write to the Free Software |
| 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 17 |
* |
| 18 |
* |
| 19 |
*/ |
| 20 |
|
| 21 |
#import <UIKit/UIKit.h> |
| 22 |
|
| 23 |
@protocol GEM_ConfControllerDelegate |
| 24 |
- (void)setupComplete:(NSString*)configPath; |
| 25 |
@end |
| 26 |
|
| 27 |
@interface GEM_NavController : UINavigationController { |
| 28 |
@private |
| 29 |
} |
| 30 |
@end |
| 31 |
|
| 32 |
@interface GEM_ConfController : NSObject <UINavigationControllerDelegate> { |
| 33 |
@private |
| 34 |
|
| 35 |
NSString* docDir; |
| 36 |
NSArray* configFiles; |
| 37 |
NSArray* installFiles; |
| 38 |
NSArray* installedGames; |
| 39 |
NSArray* logFiles; |
| 40 |
|
| 41 |
NSArray* toolBarItems; |
| 42 |
|
| 43 |
NSIndexPath* configIndexPath; |
| 44 |
|
| 45 |
UITextView* editor; |
| 46 |
UITableView* controlTable; |
| 47 |
|
| 48 |
UINavigationController* rootVC; |
| 49 |
UIViewController* editorVC; |
| 50 |
|
| 51 |
UIBarButtonItem* editorButton; |
| 52 |
UIBarButtonItem* playButton; |
| 53 |
} |
| 54 |
@property(nonatomic, retain) IBOutlet UITableView* controlTable; |
| 55 |
@property(nonatomic, retain) NSIndexPath* configIndexPath; |
| 56 |
@property(nonatomic, retain) IBOutlet UITextView* editor; |
| 57 |
@property(nonatomic, retain) IBOutlet UINavigationController* rootVC; |
| 58 |
@property(nonatomic, retain) IBOutlet UIViewController* editorVC; |
| 59 |
@property(nonatomic, retain) IBOutlet UIBarButtonItem* playButton; |
| 60 |
@property(nonatomic, retain) id delegate; |
| 61 |
|
| 62 |
- (void)reloadTableData; |
| 63 |
- (NSString*)selectedConfigPath; |
| 64 |
- (BOOL)installGame:(NSIndexPath*)indexPath; |
| 65 |
|
| 66 |
- (NSInteger)numberOfSectionsInTableView:(UITableView*)tableView; |
| 67 |
- (UITableViewCell*)tableView:(UITableView*)tableView cellForRowAtIndexPath:(NSIndexPath*)indexPath; |
| 68 |
- (NSInteger)tableView:(UITableView*)tableView numberOfRowsInSection:(NSInteger)section; |
| 69 |
- (NSString*)tableView:(UITableView*)tableView titleForHeaderInSection:(NSInteger)section; |
| 70 |
- (void)tableView:(UITableView*)tableView didDeselectRowAtIndexPath:(NSIndexPath*)indexPath; |
| 71 |
- (void)tableView:(UITableView*)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath; |
| 72 |
|
| 73 |
- (IBAction)saveConfig:(id)sender; |
| 74 |
- (IBAction)launchGEM:(id)sender; |
| 75 |
|
| 76 |
- (void)navigationController:(UINavigationController*)navigationController willShowViewController:(UIViewController*)viewController animated:(BOOL)animated; |
| 77 |
@end |