You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.4 KiB

  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. /// A view controller that manages the FLEX toolbar.
  11. @interface FLEXExplorerViewController : UIViewController
  12. @property (nonatomic, weak) id <FLEXExplorerViewControllerDelegate> delegate;
  13. - (BOOL)shouldReceiveTouchAtWindowPoint:(CGPoint)pointInWindowCoordinates;
  14. - (BOOL)wantsWindowToBecomeKey;
  15. /// @brief Used to present (or dismiss) a modal view controller ("tool"), typically triggered by pressing a button in the toolbar.
  16. ///
  17. /// If a tool is already presented, this method simply dismisses it and calls the completion block.
  18. /// If no tool is presented, @code future() @endcode is presented and the completion block is called.
  19. - (void)toggleToolWithViewControllerProvider:(UIViewController *(^)(void))future completion:(void(^)(void))completion;
  20. // Keyboard shortcut helpers
  21. - (void)toggleSelectTool;
  22. - (void)toggleMoveTool;
  23. - (void)toggleViewsTool;
  24. - (void)toggleMenuTool;
  25. - (void)handleDownArrowKeyPressed;
  26. - (void)handleUpArrowKeyPressed;
  27. - (void)handleRightArrowKeyPressed;
  28. - (void)handleLeftArrowKeyPressed;
  29. @end
  30. @protocol FLEXExplorerViewControllerDelegate <NSObject>
  31. - (void)explorerViewControllerDidFinish:(FLEXExplorerViewController *)explorerViewController;
  32. @end