/************************************************************************
液晶検査(開発技術の依頼ver)
  ************************************************************************/
/* 多重インクルードの回避 */
#ifndef TESTLCD_RED_H_INCLUDED
#define TESTLCD_RED_H_INCLUDED

#include <nn.h>
#include "sys.h"
#include "../seq/TestResult.h"
#include "../sec/FileViewer.h"

namespace uji{
namespace eva{

class TestLcd_RED
{
public:
    //TestLcd_RED(){}
    TestLcd_RED() : m_UpperWindow( 400/(FONT_SIZE/2), 240/FONT_SIZE, FONT_SIZE ),
                   m_LowerWindow( 320/(FONT_SIZE/2), 240/FONT_SIZE, FONT_SIZE ),
                   gfx( uji::sys::GraphicsDrawing::GetInstance())
    {
    }


    ~TestLcd_RED(){}
	/*
		実行関数Execute
		FileViewerからインスタンスを作成して画像のパスを作成
	*/
	static void Execute()
	{
		uji::sec::FileViewer FV1;
		FV1.FileViewerMenu();
	}
	// BMP表示用
    void OpenBmpViewer( const wchar_t* openPath );
    void OpenBmp3D( const wchar_t* openPath );
	void NumberBmpViewer( const wchar_t* rootPath );
	// ファイル名確認用
    bool IsBmp( const wchar_t* openPath );
    bool IsLeft( const wchar_t* openPath );

private:

    static const u32 FONT_SIZE = 14;
    static const u32 MAX_DIR_ENTRY_LENGTH = 255;
    static const u32 MAX_FILE_PATH_LENGTH = 255;
    static const u32 VIEW_MAX_NUM = 16;
    uji::sys::TextWindow    m_UpperWindow;
    uji::sys::TextWindow    m_LowerWindow;
    uji::sys::WindowManager m_WindowManager;
    uji::sys::GraphicsDrawing* gfx;

};

} //eva
} //uji

/* 多重インクルードの回避 */
#endif
