Tyro/src/settings/LangConfig.h
2019-05-17 16:19:42 -04:00

22 lines
474 B
C++

#pragma once
#include "src/wx_common.h"
#include "src/settings/Config.h"
class LangConfig : TyroConfig {
public:
LangConfig();
~LangConfig();
void SetLang(string lang);
string GetLang();
string GetLangByFile(wxFileName &fileName);
JsonValue GetKeywordList(string lang="none");
JsonValue GetLexerMap(string lang="none");
StringMap GetLangList();
string GetCurrentLangName();
string GetLangByName(string name);
private:
string language;
StringMap reverseMap;
};