summaryrefslogtreecommitdiff
path: root/gui/shaderssourcewidget.h
blob: 9a5c322818402668a16c00a65cabd8b65c56f39f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SHADERSSOURCEWIDGET_H
#define SHADERSSOURCEWIDGET_H

#include "ui_shaderssourcewidget.h"
#include <QWidget>

class GLSLEdit;

class ShadersSourceWidget : public QWidget
{
    Q_OBJECT
public:
    ShadersSourceWidget(QWidget *parent=0);

public slots:
    void setShaders(const QMap<QString, QString> &sources);

private slots:
    void changeShader(const QString &key);
private:
    Ui::ShadersSourceWidget m_ui;
    QMap<QString, QString> m_sources;
    GLSLEdit *m_edit;
};

#endif