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
12class MainWindow;
13
16{
17public:
20
22 static void bindToMainWindow (MainWindow *mainWindow);
23
26 [[noreturn]] static void loggerAssert(const char *condition,
27 const char* file,
28 int line);
29
31 [[noreturn]] static void loggerCheckPtr (const char *pointer,
32 const char* file,
33 int line);
34
35private:
36
37 [[noreturn]] static void loggerOutput (const char* comment,
38 const char *file,
39 int line,
40 const char* context);
41
42 static MainWindow *m_mainWindow;
43};
44
45#endif // LOGGER_UPLOAD_H
static void bindToMainWindow(MainWindow *mainWindow)
Bind to MainWindow so this class can access the command stack.
static void loggerAssert(const char *condition, const char *file, int line)
Smart equivalent to standard assert method and Q_ASSERT (in qglobal.h).
LoggerUpload()
Single constructor.
static void loggerCheckPtr(const char *pointer, const char *file, int line)
Smart equivalent to Q_CHECK_PTR (in qglobal.h). Similar to loggerAssert but for checking newly-alloca...
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95