|
|
@ -30,9 +30,7 @@ struct Translation { |
|
|
|
}; |
|
|
|
}; |
|
|
|
bool operator<(const Translation& t1, const Translation& t2); |
|
|
|
bool operator<(const Translation& t1, const Translation& t2); |
|
|
|
|
|
|
|
|
|
|
|
inline const char* CSTR(const QString& str) { |
|
|
|
#define CSTR(x)(QTextCodec::codecForLocale()->fromUnicode(x).constData()) |
|
|
|
return QTextCodec::codecForLocale()->fromUnicode(str).constData(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const QIcon& getIcon(const QString& name); |
|
|
|
const QIcon& getIcon(const QString& name); |
|
|
|
const QPixmap* getPixmap(const QString& name); |
|
|
|
const QPixmap* getPixmap(const QString& name); |
|
|
@ -48,6 +46,7 @@ QString getImageFile(const QString& name); |
|
|
|
bool createKeyFile(const QString& filename,QString* err, int length=32, bool Hex=true); |
|
|
|
bool createKeyFile(const QString& filename,QString* err, int length=32, bool Hex=true); |
|
|
|
bool lockPage(void* addr, int len); |
|
|
|
bool lockPage(void* addr, int len); |
|
|
|
bool unlockPage(void* addr, int len); |
|
|
|
bool unlockPage(void* addr, int len); |
|
|
|
|
|
|
|
bool syncFile(QFile* file); |
|
|
|
void installTranslator(); |
|
|
|
void installTranslator(); |
|
|
|
bool isTranslationActive(); |
|
|
|
bool isTranslationActive(); |
|
|
|
QList<Translation> getAllTranslations(); |
|
|
|
QList<Translation> getAllTranslations(); |
|
|
|