Shinya Kitaoka 810553
#pragma once
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
Shinya Kitaoka 120a6e
class DVAPI TStringTable {
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  static const TStringTable *instance();
Shinya Kitaoka 120a6e
  static std::wstring translate(std::string);
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  class Item {
Shinya Kitaoka 120a6e
  public:
Shinya Kitaoka 120a6e
    std::wstring m_name, m_help, m_tip;
Shinya Kitaoka 120a6e
    Item() : m_name(), m_help(), m_tip(){};
Shinya Kitaoka 120a6e
  };
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  virtual const Item *getItem(std::string name) const = 0;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  virtual std::pair<std::string, int=""> getDefaultFontNameAndSize() const = 0;</std::string,>
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  virtual std::string getDefaultMacFontName() const = 0;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Shinya Kitaoka 120a6e
  TStringTable();
Shinya Kitaoka 120a6e
  virtual ~TStringTable();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Shinya Kitaoka 120a6e
  // not implemented
Shinya Kitaoka 120a6e
  TStringTable(const TStringTable &);
Shinya Kitaoka 120a6e
  TStringTable &operator=(const TStringTable &);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif