Blame view

Modif/epsilon-master/apps/shared/tab_table_controller.h 829 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  #ifndef SHARED_TAB_TABLE_CONTROLLER_H
  #define SHARED_TAB_TABLE_CONTROLLER_H
  
  #include <escher.h>
  
  namespace Shared {
  
  /* Tab table controller is a controller whose view is a selectable table view
   * and whose one ancestor is a tab */
  
  class TabTableController : public DynamicViewController, public SelectableTableViewDataSource {
  public:
    TabTableController(Responder * parentResponder, TableViewDataSource * dataSource);
    void didBecomeFirstResponder() override;
    void viewWillAppear() override;
    void willExitResponderChain(Responder * nextFirstResponder) override;
  protected:
    virtual SelectableTableView * selectableTableView();
    virtual View * loadView() override;
    void unloadView(View * view) override;
    virtual Responder * tabController() const = 0;
  private:
    TableViewDataSource * m_dataSource;
  };
  
  }
  
  #endif