ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
editor.cpp File Reference
#include "editor.hpp"
#include "custom_style.hpp"
#include <QAbstractItemView>
#include <QAction>
#include <QApplication>
#include <QCheckBox>
#include <QClipboard>
#include <QColor>
#include <QCompleter>
#include <QDoubleSpinBox>
#include <QFile>
#include <QFileDialog>
#include <QFont>
#include <QHBoxLayout>
#include <QInputDialog>
#include <QKeyEvent>
#include <QLabel>
#include <QMenuBar>
#include <QMessageBox>
#include <QMimeData>
#include <QMouseEvent>
#include <QPainter>
#include <QPalette>
#include <QPlainTextEdit>
#include <QPushButton>
#include <QRegularExpression>
#include <QSaveFile>
#include <QScrollArea>
#include <QScrollBar>
#include <QSettings>
#include <QSignalBlocker>
#include <QSizePolicy>
#include <QSlider>
#include <QSplitter>
#include <QStatusBar>
#include <QStringListModel>
#include <QSyntaxHighlighter>
#include <QTextBlock>
#include <QTextCharFormat>
#include <QTextCursor>
#include <QTextStream>
#include <QTimer>
#include <QVBoxLayout>
#include <algorithm>

Go to the source code of this file.

Classes

struct  anonymous_namespace{editor.cpp}::LoopRange

Namespaces

namespace  anonymous_namespace{editor.cpp}

Functions

static QColor currentLineBackground (const QPalette &palette)
static QColor diagnosticColor (ShaderDiagnosticSeverity severity)
int anonymous_namespace{editor.cpp}::find_matching_glsl_delimiter (const QString &source, int opening, QChar open, QChar close)
QString inject_safety_counters (const QString &glsl_source)
 Add bounded iteration guards and preserve original GLSL diagnostic lines.
bool anonymous_namespace{editor.cpp}::is_identifier_character (QChar character)
static bool isOpenBracket (QChar ch)
static QChar matchingBracket (QChar ch)
int anonymous_namespace{editor.cpp}::skip_glsl_trivia (const QString &source, int position)

Variables

constexpr int anonymous_namespace{editor.cpp}::LOOP_SAFETY_LIMIT = 10000
const QString anonymous_namespace{editor.cpp}::LOOP_SAFETY_MARKER = QStringLiteral("ACMX_LOOP_GUARD")

Function Documentation

◆ currentLineBackground()

QColor currentLineBackground ( const QPalette & palette)
static

Definition at line 176 of file editor.cpp.

References currentLineBackground().

Referenced by currentLineBackground(), and CustomTextEdit::matchBrackets().

◆ diagnosticColor()

QColor diagnosticColor ( ShaderDiagnosticSeverity severity)
static

◆ inject_safety_counters()

◆ isOpenBracket()

bool isOpenBracket ( QChar ch)
static

◆ matchingBracket()

QChar matchingBracket ( QChar ch)
static