Engauge Digitizer 2
Loading...
Searching...
No Matches
LoggerUpload.h
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#ifndef LOGGER_UPLOAD_H
8#define LOGGER_UPLOAD_H
9
10#include <QtGlobal>
11
12#if defined(WIN32) || defined(WIN64)
13#define NO_RETURN_VALUE
14#else
15#define NO_RETURN_VALUE Q_NORETURN
16#endif
17
18class MainWindow;
19
22{
23public:
26
28 static void bindToMainWindow (MainWindow *mainWindow);
29
32 static void loggerAssert(const char *condition,
33 const char* file,
34 int line) NO_RETURN_VALUE;
35
37 static void loggerCheckPtr (const char *pointer,
38 const char* file,
39 int line) NO_RETURN_VALUE;
40
41private:
42
43 static void loggerOutput (const char* comment,
44 const char *file,
45 int line,
46 const char* context) NO_RETURN_VALUE;
47
48 static MainWindow *m_mainWindow;
49};
50
51#endif // LOGGER_UPLOAD_H
#define NO_RETURN_VALUE
static void bindToMainWindow(MainWindow *mainWindow)
Bind to MainWindow so this class can access the command stack.
static void loggerCheckPtr(const char *pointer, const char *file, int line) Q_NORETURN
Smart equivalent to Q_CHECK_PTR (in qglobal.h). Similar to loggerAssert but for checking newly-alloca...
LoggerUpload()
Single constructor.
static void loggerAssert(const char *condition, const char *file, int line) Q_NORETURN
Smart equivalent to standard assert method and Q_ASSERT (in qglobal.h).
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95