1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-24 13:07:44 +00:00
novus/mateditor/include/materialpropertyedit.h

30 lines
565 B
C
Raw Normal View History

2024-04-26 22:32:25 -04:00
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QWidget>
#include <physis.hpp>
class MaterialPropertyEdit : public QWidget
{
Q_OBJECT
public:
explicit MaterialPropertyEdit(QWidget *parent = nullptr);
void setMaterial(physis_Material material);
private:
void rebuild();
QVBoxLayout *m_itemsLayout = nullptr;
QLineEdit *m_shaderPackageName = nullptr;
physis_Material m_material;
};