mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Compare commits
3 Commits
d045fed086
...
55de85579c
Author | SHA1 | Date | |
---|---|---|---|
55de85579c | |||
86f98aca42 | |||
56425a3318 |
@ -29,9 +29,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||||
setApplicationName(APP_NAME);
|
setApplicationName(APP_NAME);
|
||||||
#else
|
#else // Q_OS_WIN32 || Q_OS_MAC
|
||||||
setApplicationName(QString(APP_NAME).toLower());
|
setApplicationName(QString(APP_NAME).toLower());
|
||||||
#endif
|
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||||
setApplicationVersion(APP_VERSION);
|
setApplicationVersion(APP_VERSION);
|
||||||
|
|
||||||
QTranslator *app = new QTranslator(this);
|
QTranslator *app = new QTranslator(this);
|
||||||
@ -65,6 +65,9 @@ App::App(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
loadPCSs();
|
loadPCSs();
|
||||||
Waypoint::loadSymbolIcons(ProgramPaths::symbolsDir());
|
Waypoint::loadSymbolIcons(ProgramPaths::symbolsDir());
|
||||||
|
|
||||||
|
#if defined(Q_OS_WIN32) || defined(Q_OS_MAC)
|
||||||
|
QIcon::setThemeName(APP_NAME);
|
||||||
|
#endif // Q_OS_WIN32 || Q_OS_MAC
|
||||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
#if QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||||
QIcon::setFallbackThemeName(APP_NAME);
|
QIcon::setFallbackThemeName(APP_NAME);
|
||||||
#endif // QT 5.12
|
#endif // QT 5.12
|
||||||
|
@ -7,33 +7,6 @@ using namespace IMG;
|
|||||||
|
|
||||||
enum Charset {Normal, Symbol, Special};
|
enum Charset {Normal, Symbol, Special};
|
||||||
|
|
||||||
static quint8 NORMAL_CHARS[] = {
|
|
||||||
' ', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
|
|
||||||
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
|
|
||||||
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
|
|
||||||
'X', 'Y', 'Z', '~', '~', '~', ' ', ' ',
|
|
||||||
'0', '1', '2', '3', '4', '5', '6', '7',
|
|
||||||
'8', '9', '~', '~', '~', '~', '~', '~'
|
|
||||||
};
|
|
||||||
|
|
||||||
static quint8 SYMBOL_CHARS[] = {
|
|
||||||
'@', '!', '"', '#', '$', '%', '&', '\'',
|
|
||||||
'(', ')', '*', '+', ',', '-', '.', '/',
|
|
||||||
'~', '~', '~', '~', '~', '~', '~', '~',
|
|
||||||
'~', '~', ':', ';', '<', '=', '>', '?',
|
|
||||||
'~', '~', '~', '~', '~', '~', '~', '~',
|
|
||||||
'~', '~', '~', '[', '\\', ']', '^', '_'
|
|
||||||
};
|
|
||||||
|
|
||||||
static quint8 SPECIAL_CHARS[] = {
|
|
||||||
'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
|
|
||||||
'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
|
|
||||||
'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
|
|
||||||
'x', 'y', 'z', '~', '~', '~', '~', '~',
|
|
||||||
'0', '1', '2', '3', '4', '5', '6', '7',
|
|
||||||
'8', '9', '~', '~', '~', '~', '~', '~'
|
|
||||||
};
|
|
||||||
|
|
||||||
static bool isAllUpperCase(const QString &str)
|
static bool isAllUpperCase(const QString &str)
|
||||||
{
|
{
|
||||||
if (str.isEmpty())
|
if (str.isEmpty())
|
||||||
@ -75,6 +48,7 @@ static QByteArray ft2m(const QByteArray &str)
|
|||||||
return ok ? QByteArray::number(qRound(number * 0.3048)) : str;
|
return ok ? QByteArray::number(qRound(number * 0.3048)) : str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LBLFile::~LBLFile()
|
LBLFile::~LBLFile()
|
||||||
{
|
{
|
||||||
delete _huffmanText;
|
delete _huffmanText;
|
||||||
@ -189,6 +163,30 @@ Label LBLFile::str2label(const QVector<quint8> &str, bool capitalize,
|
|||||||
Label LBLFile::label6b(const SubFile *file, Handle &fileHdl, quint32 size,
|
Label LBLFile::label6b(const SubFile *file, Handle &fileHdl, quint32 size,
|
||||||
bool capitalize, bool convert) const
|
bool capitalize, bool convert) const
|
||||||
{
|
{
|
||||||
|
static const quint8 NORMAL_CHARS[] = {
|
||||||
|
' ', 'A', 'B', 'C', 'D', 'E', 'F', 'G',
|
||||||
|
'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O',
|
||||||
|
'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W',
|
||||||
|
'X', 'Y', 'Z', '~', '~', '~', ' ', ' ',
|
||||||
|
'0', '1', '2', '3', '4', '5', '6', '7',
|
||||||
|
'8', '9', '~', '~', '~', '~', '~', '~'
|
||||||
|
};
|
||||||
|
static const quint8 SYMBOL_CHARS[] = {
|
||||||
|
'@', '!', '"', '#', '$', '%', '&', '\'',
|
||||||
|
'(', ')', '*', '+', ',', '-', '.', '/',
|
||||||
|
'~', '~', '~', '~', '~', '~', '~', '~',
|
||||||
|
'~', '~', ':', ';', '<', '=', '>', '?',
|
||||||
|
'~', '~', '~', '~', '~', '~', '~', '~',
|
||||||
|
'~', '~', '~', '[', '\\', ']', '^', '_'
|
||||||
|
};
|
||||||
|
static const quint8 SPECIAL_CHARS[] = {
|
||||||
|
'`', 'a', 'b', 'c', 'd', 'e', 'f', 'g',
|
||||||
|
'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o',
|
||||||
|
'p', 'q', 'r', 's', 't', 'u', 'v', 'w',
|
||||||
|
'x', 'y', 'z', '~', '~', '~', '~', '~',
|
||||||
|
'0', '1', '2', '3', '4', '5', '6', '7',
|
||||||
|
'8', '9', '~', '~', '~', '~', '~', '~'
|
||||||
|
};
|
||||||
Shield::Type shieldType = Shield::None;
|
Shield::Type shieldType = Shield::None;
|
||||||
QByteArray label, shieldLabel;
|
QByteArray label, shieldLabel;
|
||||||
QByteArray *bap = &label;
|
QByteArray *bap = &label;
|
||||||
|
Loading…
Reference in New Issue
Block a user