2011-07-28 14:26:00 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2011 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
2011-07-17 14:42:08 +00:00
|
|
|
#import <UIKit/UIKit.h>
|
2011-08-02 13:20:22 +00:00
|
|
|
#import "SkOptionsTableViewController.h"
|
2011-07-17 14:42:08 +00:00
|
|
|
#import "SkUIRootViewController.h"
|
|
|
|
#import "SkUIView.h"
|
|
|
|
|
|
|
|
class SampleWindow;
|
|
|
|
class SkData;
|
|
|
|
@interface SkUIDetailViewController : UIViewController {
|
|
|
|
UIPopoverController* fPopOverController;
|
2011-08-02 13:20:22 +00:00
|
|
|
SkOptionsTableViewController* fOptionsController;
|
2011-07-17 14:42:08 +00:00
|
|
|
UIBarButtonItem* fPrintButton;
|
2011-08-02 13:20:22 +00:00
|
|
|
UIBarButtonItem* fOptionsButton;
|
2011-07-17 14:42:08 +00:00
|
|
|
SkData* fData;
|
|
|
|
SkUIView* fSkUIView;
|
|
|
|
SampleWindow* fWind;
|
|
|
|
}
|
2011-08-02 13:20:22 +00:00
|
|
|
|
2011-07-17 14:42:08 +00:00
|
|
|
@property (nonatomic, retain) UIBarButtonItem* fPrintButton;
|
2011-08-02 13:20:22 +00:00
|
|
|
@property (nonatomic, retain) UIBarButtonItem* fOptionsButton;
|
|
|
|
@property (nonatomic, retain) SkOptionsTableViewController* fOptionsController;
|
2011-07-17 14:42:08 +00:00
|
|
|
@property (nonatomic, assign) UIPopoverController* fPopOverController;
|
|
|
|
|
|
|
|
//Instance methods
|
|
|
|
- (void)populateRoot:(SkUIRootViewController*)root;
|
|
|
|
- (void)goToItem:(NSUInteger)index;
|
|
|
|
- (void)createButtons;
|
|
|
|
//UI actions
|
|
|
|
- (void)printContent;
|
2011-08-02 13:20:22 +00:00
|
|
|
- (void)presentOptions;
|
2011-07-17 14:42:08 +00:00
|
|
|
|
|
|
|
//SplitView popover management
|
|
|
|
- (void)showRootPopoverButtonItem:(UIBarButtonItem *)barButtonItem;
|
|
|
|
- (void)invalidateRootPopoverButtonItem:(UIBarButtonItem *)barButtonItem;
|
|
|
|
|
|
|
|
@end
|