Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef STRINGTABLE_INCLUDED
Toshihiro Shimizu 890ddd
#define STRINGTABLE_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "tcommon.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TNZBASE_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TFilePath;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class DVAPI TStringTable
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	static const TStringTable *instance();
Shinya Kitaoka 3bfa54
	static std::wstring translate(std::string);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	class Item
Toshihiro Shimizu 890ddd
	{
Toshihiro Shimizu 890ddd
	public:
Shinya Kitaoka 3bfa54
		std::wstring m_name, m_help, m_tip;
Toshihiro Shimizu 890ddd
		Item() : m_name(), m_help(), m_tip(){};
Toshihiro Shimizu 890ddd
	};
Toshihiro Shimizu 890ddd
Shinya Kitaoka 3bfa54
	virtual const Item *getItem(std::string name) const = 0;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 3bfa54
	virtual std::pair<std::string, int=""> getDefaultFontNameAndSize() const = 0;</std::string,>
Toshihiro Shimizu 890ddd
Shinya Kitaoka 3bfa54
	virtual std::string getDefaultMacFontName() const = 0;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Toshihiro Shimizu 890ddd
	TStringTable();
Toshihiro Shimizu 890ddd
	virtual ~TStringTable();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Toshihiro Shimizu 890ddd
	// not implemented
Toshihiro Shimizu 890ddd
	TStringTable(const TStringTable &);
Toshihiro Shimizu 890ddd
	TStringTable &operator=(const TStringTable &);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif