-
Notifications
You must be signed in to change notification settings - Fork 5
/
global.cpp
42 lines (33 loc) · 894 Bytes
/
global.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* This application is free software and is released under the terms of
* the BSD license. See LICENSE file for details.
*
* Copyright (c) 2010 Volker Poplawski ([email protected])
*/
#include "global.h"
#include <QColor>
QMainWindow* g_mainWindow = 0;
QString g_specsDirectory;
QString g_openFileName;
const uchar* g_file = 0;
qint64 g_fileSize = 0;
QLabel* g_blockCountLabel = 0;
AsterixModel* g_asterixModel = 0;
Uap* g_uap = 0;
QColor g_highlightColor = QColor( 225, 235, 250 );
Logger* g_logger;
void logInfo(const QString &msg)
{
g_logger->log(Logger::Type::INFO, msg);
qDebug() << msg;
}
void logWarn(const QString &msg)
{
g_logger->log(Logger::Type::WARN, msg);
qWarning(qPrintable(msg));
}
void logError(const QString &msg)
{
g_logger->log(Logger::Type::ERROR, msg);
qWarning(qPrintable(msg));
}