?? dictcore.h
字號(hào):
#ifndef DICTCORE_H#define DICTCORE_H#include <QObject>#include <list>#include <string>#include <vector>#include <QStringList>class Libs;class DictCore: public QObject{ Q_OBJECT public: DictCore(QObject *parent = 0); ~DictCore(); void setDicts(const QStringList &orderedDicts); QStringList orderedDicts() const; QStringList disabledDicts(); QStringList avialableDicts(); QStringList find(const QString &str); bool isTranslatable(const QString &str); QString translate(const QString &str, bool simple = false, bool useHtml = true); private: struct SearchResult { std::string dictName; std::string def; std::string exp; SearchResult(const std::string &dictName_, const std::string &def_, const std::string &exp_) : dictName(dictName_), def(def_), exp(exp_) { } }; typedef std::vector<SearchResult> SearchResultList; void simpleLookup(const std::string &str, SearchResultList &resultList); void lookupWithFuzzy(const std::string &str, SearchResultList &resultList); void lookupWithRule(const std::string &str, SearchResultList &resultList); void lookupData(const std::string &str, SearchResultList &resultList); Libs *sdLibs; QStringList m_dictDirs; QStringList m_orderedDicts; static std::string parse_data(const char *data); static std::string xdxf2text(const char *p);};#endif // DICTCORE_H
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -