ACMX 2.139.0
Dual-Backend Real-Time GPU Video Synthesis
Loading...
Searching...
No Matches
FindShaderDialog Class Reference

Search all GLSL source files beneath an active shader library. More...

#include <find-shader.hpp>

Inheritance diagram for FindShaderDialog:

Signals

void resultActivated (const QString &filePath, int lineNumber, int columnNumber, int matchLength)
 Emitted when the user opens one search result.

Public Member Functions

 FindShaderDialog (const QString &shaderPath, QWidget *parent=nullptr)

Protected Member Functions

void closeEvent (QCloseEvent *event) override

Private Member Functions

void openResult (QTreeWidgetItem *item)
void performSearch ()
void updateOpenButton ()

Private Attributes

QCheckBox * caseSensitiveCheck = nullptr
QPushButton * openButton = nullptr
QLineEdit * patternEdit = nullptr
QTreeWidget * resultsTree = nullptr
QString shaderPath
QLabel * statusLabel = nullptr

Detailed Description

Search all GLSL source files beneath an active shader library.

Definition at line 23 of file find-shader.hpp.

Constructor & Destructor Documentation

◆ FindShaderDialog()

FindShaderDialog::FindShaderDialog ( const QString & shaderPath,
QWidget * parent = nullptr )
explicit

Member Function Documentation

◆ closeEvent()

void FindShaderDialog::closeEvent ( QCloseEvent * event)
overrideprotected

Definition at line 91 of file find-shader.cpp.

Referenced by resultActivated().

◆ openResult()

void FindShaderDialog::openResult ( QTreeWidgetItem * item)
private

Definition at line 173 of file find-shader.cpp.

References resultActivated().

Referenced by FindShaderDialog(), and resultActivated().

◆ performSearch()

void FindShaderDialog::performSearch ( )
private

◆ resultActivated

void FindShaderDialog::resultActivated ( const QString & filePath,
int lineNumber,
int columnNumber,
int matchLength )
signal

Emitted when the user opens one search result.

References closeEvent(), openResult(), performSearch(), and updateOpenButton().

Referenced by MainWindow::initControls(), and openResult().

◆ updateOpenButton()

void FindShaderDialog::updateOpenButton ( )
private

Definition at line 179 of file find-shader.cpp.

References openButton, and resultsTree.

Referenced by FindShaderDialog(), performSearch(), and resultActivated().

Member Data Documentation

◆ caseSensitiveCheck

QCheckBox* FindShaderDialog::caseSensitiveCheck = nullptr
private

Definition at line 43 of file find-shader.hpp.

Referenced by FindShaderDialog(), and performSearch().

◆ openButton

QPushButton* FindShaderDialog::openButton = nullptr
private

Definition at line 46 of file find-shader.hpp.

Referenced by FindShaderDialog(), and updateOpenButton().

◆ patternEdit

QLineEdit* FindShaderDialog::patternEdit = nullptr
private

Definition at line 42 of file find-shader.hpp.

Referenced by FindShaderDialog(), and performSearch().

◆ resultsTree

QTreeWidget* FindShaderDialog::resultsTree = nullptr
private

Definition at line 44 of file find-shader.hpp.

Referenced by FindShaderDialog(), performSearch(), and updateOpenButton().

◆ shaderPath

QString FindShaderDialog::shaderPath
private

Definition at line 41 of file find-shader.hpp.

Referenced by FindShaderDialog(), and performSearch().

◆ statusLabel

QLabel* FindShaderDialog::statusLabel = nullptr
private

Definition at line 45 of file find-shader.hpp.

Referenced by FindShaderDialog(), and performSearch().


The documentation for this class was generated from the following files: