mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-20 01:08:15 +01:00
31 lines
677 B
C++
31 lines
677 B
C++
#ifndef STATISTICS_BOX_CONTROLLER_H
|
|
#define STATISTICS_BOX_CONTROLLER_H
|
|
|
|
#include <escher.h>
|
|
#include "data.h"
|
|
#include "box_view.h"
|
|
|
|
namespace Statistics {
|
|
|
|
class BoxController : public ViewController, public AlternateEmptyViewDelegate {
|
|
|
|
public:
|
|
BoxController(Responder * parentResponder, Data * data);
|
|
const char * title() const override;
|
|
View * view() override;
|
|
bool handleEvent(Ion::Events::Event event) override;
|
|
void didBecomeFirstResponder() override;
|
|
bool isEmpty() override;
|
|
const char * emptyMessage() override;
|
|
Responder * defaultController() override;
|
|
private:
|
|
Responder * tabController() const;
|
|
BoxView m_view;
|
|
Data * m_data;
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif
|