~bzoltan/kubuntu-packaging/decouple_cmake_plugin

« back to all changes in this revision

Viewing changes to src/plugins/glsleditor/glslfilewizard.h

  • Committer: Timo Jyrinki
  • Date: 2013-11-15 12:25:23 UTC
  • mfrom: (1.1.28)
  • Revision ID: timo.jyrinki@canonical.com-20131115122523-i2kyamsu4gs2mu1m
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    Q_OBJECT
40
40
 
41
41
public:
42
 
    typedef Core::BaseFileWizardParameters BaseFileWizardParameters;
43
 
 
44
42
    enum ShaderType
45
43
    {
46
44
        VertexShaderES,
49
47
        FragmentShaderDesktop
50
48
    };
51
49
 
52
 
    explicit GLSLFileWizard(const BaseFileWizardParameters &parameters,
53
 
                            ShaderType shaderType, QObject *parent = 0);
54
 
 
55
 
    virtual Core::FeatureSet requiredFeatures() const;
56
 
    virtual WizardFlags flags() const;
57
 
 
58
 
protected:
 
50
    explicit GLSLFileWizard(ShaderType shaderType);
 
51
 
 
52
private:
59
53
    QString fileContents(const QString &baseName, ShaderType shaderType) const;
60
54
 
61
 
    virtual QWizard *createWizardDialog(QWidget *parent,
 
55
    QWizard *createWizardDialog(QWidget *parent,
62
56
                                        const Core::WizardDialogParameters &wizardDialogParameters) const;
63
57
 
64
 
    virtual Core::GeneratedFiles generateFiles(const QWizard *w,
 
58
    Core::GeneratedFiles generateFiles(const QWizard *w,
65
59
                                               QString *errorMessage) const;
66
60
 
67
 
    virtual QString preferredSuffix(ShaderType shaderType) const;
 
61
    QString preferredSuffix(ShaderType shaderType) const;
68
62
 
69
63
private:
70
64
    ShaderType m_shaderType;