mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 16:57:31 +01:00
28 lines
849 B
C++
28 lines
849 B
C++
#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 ViewController {
|
|
public:
|
|
TabTableController(Responder * parentResponder, TableViewDataSource * dataSource, KDCoordinate topMargin,
|
|
KDCoordinate rightMargin, KDCoordinate bottomMargin, KDCoordinate leftMargin, SelectableTableViewDelegate * delegate, bool showIndicators);
|
|
virtual View * view() override;
|
|
void didBecomeFirstResponder() override;
|
|
void viewWillAppear() override;
|
|
void willExitResponderChain(Responder * nextFirstResponder) override;
|
|
protected:
|
|
SelectableTableView m_selectableTableView;
|
|
virtual Responder * tabController() const = 0;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|
|
|