FLEXExplorerViewController.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // FLEXExplorerViewController.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 4/4/14.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol FLEXExplorerViewControllerDelegate;
  10. @interface FLEXExplorerViewController : UIViewController
  11. @property (nonatomic, weak) id <FLEXExplorerViewControllerDelegate> delegate;
  12. - (BOOL)shouldReceiveTouchAtWindowPoint:(CGPoint)pointInWindowCoordinates;
  13. - (BOOL)wantsWindowToBecomeKey;
  14. /// @brief Used to present (or dismiss) a modal view controller ("tool"), typically triggered by pressing a button in the toolbar.
  15. ///
  16. /// If a tool is already presented, this method simply dismisses it and calls the completion block.
  17. /// If no tool is presented, @code future() @endcode is presented and the completion block is called.
  18. - (void)toggleToolWithViewControllerProvider:(UIViewController *(^)(void))future completion:(void(^)(void))completion;
  19. // Keyboard shortcut helpers
  20. - (void)toggleSelectTool;
  21. - (void)toggleMoveTool;
  22. - (void)toggleViewsTool;
  23. - (void)toggleMenuTool;
  24. - (void)handleDownArrowKeyPressed;
  25. - (void)handleUpArrowKeyPressed;
  26. - (void)handleRightArrowKeyPressed;
  27. - (void)handleLeftArrowKeyPressed;
  28. @end
  29. @protocol FLEXExplorerViewControllerDelegate <NSObject>
  30. - (void)explorerViewControllerDidFinish:(FLEXExplorerViewController *)explorerViewController;
  31. @end