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

Builds an ordered library from fragment and compute shader files. More...

#include <library-builder.hpp>

Inheritance diagram for LibraryBuilderDialog:

Signals

void libraryExported (const QString &directory)
 Emitted after a complete library has been exported successfully.

Public Member Functions

 LibraryBuilderDialog (acmx2::Backend backend, QWidget *parent=nullptr)
acmx2::Backend selectedBackend () const
 Return the backend whose source format this dialog exports.

Private Slots

void addFiles ()
void addFolder ()
void clearShaders ()
void exportLibrary ()
void openLibrary ()
void removeSelected ()
void updateControls ()

Private Member Functions

bool addShader (const QString &filePath, bool showErrors=true)
int addShaderFiles (const QStringList &filePaths)
QStringList selectedSourcePaths () const
QString shaderFilter () const

Private Attributes

acmx2::Backend backend
QPushButton * exportButton = nullptr
bool exportInProgress = false
QCheckBox * recursiveCheck = nullptr
QPushButton * removeButton = nullptr
QListWidget * shaderList = nullptr
QLabel * summaryLabel = nullptr

Detailed Description

Builds an ordered library from fragment and compute shader files.

Definition at line 21 of file library-builder.hpp.

Constructor & Destructor Documentation

◆ LibraryBuilderDialog()

Member Function Documentation

◆ addFiles

void LibraryBuilderDialog::addFiles ( )
privateslot

◆ addFolder

void LibraryBuilderDialog::addFolder ( )
privateslot

◆ addShader()

bool LibraryBuilderDialog::addShader ( const QString & filePath,
bool showErrors = true )
private

Definition at line 364 of file library-builder.cpp.

References acmx2::Acmxvk, backend, and shaderList.

Referenced by addShaderFiles(), libraryExported(), and openLibrary().

◆ addShaderFiles()

int LibraryBuilderDialog::addShaderFiles ( const QStringList & filePaths)
private

Definition at line 387 of file library-builder.cpp.

References addShader(), and updateControls().

Referenced by addFiles(), addFolder(), and libraryExported().

◆ clearShaders

void LibraryBuilderDialog::clearShaders ( )
privateslot

Definition at line 412 of file library-builder.cpp.

References shaderList, and updateControls().

Referenced by LibraryBuilderDialog(), and libraryExported().

◆ exportLibrary

◆ libraryExported

void LibraryBuilderDialog::libraryExported ( const QString & directory)
signal

◆ openLibrary

◆ removeSelected

void LibraryBuilderDialog::removeSelected ( )
privateslot

Definition at line 402 of file library-builder.cpp.

References selectedSourcePaths(), shaderList, and updateControls().

Referenced by LibraryBuilderDialog(), and libraryExported().

◆ selectedBackend()

acmx2::Backend LibraryBuilderDialog::selectedBackend ( ) const

Return the backend whose source format this dialog exports.

Definition at line 252 of file library-builder.cpp.

References backend.

Referenced by LibraryBuilderDialog().

◆ selectedSourcePaths()

QStringList LibraryBuilderDialog::selectedSourcePaths ( ) const
private

Definition at line 395 of file library-builder.cpp.

References shaderList.

Referenced by libraryExported(), and removeSelected().

◆ shaderFilter()

QString LibraryBuilderDialog::shaderFilter ( ) const
private

Definition at line 254 of file library-builder.cpp.

References acmx2::Acmxvk, and backend.

Referenced by addFiles(), and libraryExported().

◆ updateControls

void LibraryBuilderDialog::updateControls ( )
privateslot

Member Data Documentation

◆ backend

acmx2::Backend LibraryBuilderDialog::backend
private

◆ exportButton

QPushButton* LibraryBuilderDialog::exportButton = nullptr
private

Definition at line 52 of file library-builder.hpp.

Referenced by exportLibrary(), LibraryBuilderDialog(), and updateControls().

◆ exportInProgress

bool LibraryBuilderDialog::exportInProgress = false
private

Definition at line 53 of file library-builder.hpp.

Referenced by exportLibrary(), and updateControls().

◆ recursiveCheck

QCheckBox* LibraryBuilderDialog::recursiveCheck = nullptr
private

Definition at line 50 of file library-builder.hpp.

Referenced by addFolder(), and LibraryBuilderDialog().

◆ removeButton

QPushButton* LibraryBuilderDialog::removeButton = nullptr
private

Definition at line 51 of file library-builder.hpp.

Referenced by LibraryBuilderDialog(), and updateControls().

◆ shaderList

QListWidget* LibraryBuilderDialog::shaderList = nullptr
private

◆ summaryLabel

QLabel* LibraryBuilderDialog::summaryLabel = nullptr
private

Definition at line 49 of file library-builder.hpp.

Referenced by LibraryBuilderDialog(), and updateControls().


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