wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
Common.h File Reference

Common logging utilities, the Pandaception error type, and helper macros. More...

#include <stdexcept>
#include <QCoreApplication>
#include <QLoggingCategory>
Include dependency graph for Common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Comment
 Controls the verbosity level of diagnostic logging categories. More...
class  Pandaception
 Exception type for user-facing circuit errors. More...

Macros

#define PANDACEPTION(msg, ...)
#define PANDACEPTION_LITERAL(msg, ...)
#define PANDACEPTION_WITH_CONTEXT(context, msg, ...)
#define qCDebug(category)

Detailed Description

Common logging utilities, the Pandaception error type, and helper macros.

Definition in file Common.h.

Macro Definition Documentation

◆ PANDACEPTION

◆ PANDACEPTION_LITERAL

#define PANDACEPTION_LITERAL ( msg,
... )
Value:
Pandaception(QStringLiteral(msg) __VA_OPT__(.arg(__VA_ARGS__)), QStringLiteral(msg) __VA_OPT__(.arg(__VA_ARGS__)), __FILE__, __LINE__)

Definition at line 107 of file Common.h.

◆ PANDACEPTION_WITH_CONTEXT

◆ qCDebug

#define qCDebug ( category)
Value:
QT_MESSAGE_LOGGER_COMMON(category, QtDebugMsg).debug().noquote().nospace()

Definition at line 29 of file Common.h.

Referenced by SceneDropHandler::addFromMimeData(), ElementPorts::addPort(), RecentFiles::addRecentFile(), SceneUiBinder::bind(), ElementFactory::buildElement(), ClipboardManager::cloneDrag(), WorkspaceManager::closeTab(), WorkspaceManager::createNewTab(), Serialization::createVersionedBackup(), BewavedDolphin::createWaveform(), Serialization::deserialize(), ExportController::exportToArduino(), ExportController::exportToSystemVerilog(), GraphicElement::GraphicElement(), SceneDropHandler::handleNewElementDrop(), GraphicElement::isValid(), GraphicElement::itemChange(), Display7::load(), DolphinFile::load(), GraphicElementSerializer::load(), WorkSpace::load(), WorkSpace::load(), WorkspaceManager::loadAutosaveFiles(), ICLoader::loadFile(), ICLoader::loadFromBlob(), WorkspaceManager::loadPandaFile(), MainWindow::MainWindow(), WorkspaceManager::onCurrentIndexChanged(), BewavedDolphin::prepare(), AddItemsCommand::redo(), DeleteItemsCommand::redo(), SplitCommand::redo(), ToggleTruthTableOutputCommand::redo(), UpdateBlobCommand::redo(), UpdateCommand::redo(), WaveformSimulator::restoreInputs(), BewavedDolphin::run(), DolphinFile::save(), GraphicElementSerializer::save(), WorkSpace::save(), AudioBox::setAudio(), WorkspaceManager::setCurrentFile(), BewavedDolphin::setLength(), ElementAppearance::setPixmap(), MainWindow::show(), SimulationBlocker::SimulationBlocker(), SimulationThrottleDisabler::SimulationThrottleDisabler(), Simulation::start(), WaveformSimulator::sweep(), ElementFactory::textToType(), ElementFactory::typeToText(), ElementFactory::typeToTitleText(), SceneUiBinder::unbind(), AddItemsCommand::undo(), DeleteItemsCommand::undo(), FlipCommand::undo(), SplitCommand::undo(), UpdateBlobCommand::undo(), UpdateCommand::undo(), ElementEditor::updateElementAppearance(), GraphicElement::updatePortsProperties(), Scene::updateTheme(), SimulationBlocker::~SimulationBlocker(), and SimulationThrottleDisabler::~SimulationThrottleDisabler().