yangsu@google.com | c5aeccd | 2011-07-17 14:42:08 +0000 | [diff] [blame] | 1 | #import <UIKit/UIKit.h> |
| 2 | #import "SkUIRootViewController.h" |
| 3 | #import "SkUIView.h" |
| 4 | |
| 5 | class SampleWindow; |
| 6 | class SkData; |
| 7 | @interface SkUIDetailViewController : UIViewController { |
| 8 | UINavigationBar* fNavigationBar; |
| 9 | UIPopoverController* fPopOverController; |
| 10 | UIBarButtonItem* fPrintButton; |
| 11 | UIBarButtonItem* fCycleButton; |
| 12 | SkData* fData; |
| 13 | SkUIView* fSkUIView; |
| 14 | SampleWindow* fWind; |
| 15 | } |
| 16 | @property (nonatomic, retain) IBOutlet UINavigationBar *fNavigationBar; |
| 17 | @property (nonatomic, retain) UIBarButtonItem* fPrintButton; |
| 18 | @property (nonatomic, retain) UIBarButtonItem* fCycleButton; |
| 19 | @property (nonatomic, assign) UIPopoverController* fPopOverController; |
| 20 | |
| 21 | //Instance methods |
| 22 | - (void)redraw; |
| 23 | - (void)populateRoot:(SkUIRootViewController*)root; |
| 24 | - (void)goToItem:(NSUInteger)index; |
| 25 | - (void)createButtons; |
| 26 | //UI actions |
| 27 | - (IBAction)usePipe:(id)sender; |
| 28 | - (IBAction)enterServerIP:(id)sender; |
| 29 | - (void)printContent; |
| 30 | - (void)cycleDeviceType; |
| 31 | |
| 32 | //SplitView popover management |
| 33 | - (void)showRootPopoverButtonItem:(UIBarButtonItem *)barButtonItem; |
| 34 | - (void)invalidateRootPopoverButtonItem:(UIBarButtonItem *)barButtonItem; |
| 35 | |
| 36 | @end |