#ifndef __CELLCONSTANTDIALOG_H__
#define __CELLCONSTANTDIALOG_H__

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

class CCellConstantDialog: 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::cell_const) constant;

	enum
	{
		c10, c1, c0_1, c0_01, c0_001, c0_0001, save, cancel
	} menu_item;

	bool in_edit;
};

extern CCellConstantDialog CellConstantDialog;

#endif
