#ifndef __SETUPTIMEDIALOG_H__
#define __SETUPTIMEDIALOG_H__

#include <applications/dialog/Dialog.h>
#include <hal/drivers/flash.h>

class CSetupTimeDialog: public CDialog
{
public:
	virtual void OnCreat(void);

	virtual void OnEncoderCW(void);
	virtual void OnEncoderCCW(void);

	virtual void OnButtonDown(void);

private:
	void OnDraw(void);

	decltype(flash_file::setup) setup_time;

	enum
	{
		s10, s1, s0_1, s0_01, save, cancel
	} menu_item;

	bool in_edit;
};

extern CSetupTimeDialog SetupTimeDialog;

#endif
