aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/glsleditor/glsleditorplugin.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2014-09-30 11:08:24 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2014-09-30 17:28:58 +0200
commit161f33d08a204ebe170f02a049821aa357088e31 (patch)
tree17008f475e9ddd8765872c94144888e0dcb9f448 /src/plugins/glsleditor/glsleditorplugin.cpp
parentbb7a6f923c2ff5b7a5e66c0c159a886cb43c4ddf (diff)
JsonWizard: Replace GLSL wizards with JsonWizard
Change-Id: Ieeeec4d1a023b7cca19e3bd23ba1aa6dd1d76e72 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/glsleditor/glsleditorplugin.cpp')
-rw-r--r--src/plugins/glsleditor/glsleditorplugin.cpp53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/plugins/glsleditor/glsleditorplugin.cpp b/src/plugins/glsleditor/glsleditorplugin.cpp
index 48485ef2ff9..0b44779c197 100644
--- a/src/plugins/glsleditor/glsleditorplugin.cpp
+++ b/src/plugins/glsleditor/glsleditorplugin.cpp
@@ -31,7 +31,6 @@
#include "glslcompletionassist.h"
#include "glsleditor.h"
#include "glsleditorconstants.h"
-#include "glslfilewizard.h"
#include "glslhighlighter.h"
#include <glsl/glslengine.h>
@@ -157,58 +156,6 @@ bool GlslEditorPlugin::initialize(const QStringList & /*arguments*/, QString *er
FileIconProvider::registerIconOverlayForMimeType(":/glsleditor/images/glslfile.png", Constants::GLSL_MIMETYPE_VERT_ES);
FileIconProvider::registerIconOverlayForMimeType(":/glsleditor/images/glslfile.png", Constants::GLSL_MIMETYPE_FRAG_ES);
- IWizardFactory *wizard = new GlslFileWizard(GlslFileWizard::FragmentShaderES);
- wizard->setWizardKind(IWizardFactory::FileWizard);
- wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL));
- wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL));
- wizard->setDescription
- (tr("Creates a fragment shader in the OpenGL/ES 2.0 Shading "
- "Language (GLSL/ES). Fragment shaders generate the final "
- "pixel colors for triangles, points and lines rendered "
- "with OpenGL."));
- wizard->setDisplayName(tr("Fragment Shader (OpenGL/ES 2.0)"));
- wizard->setId(QLatin1String("F.GLSL"));
- addAutoReleasedObject(wizard);
-
- wizard = new GlslFileWizard(GlslFileWizard::VertexShaderES);
- wizard->setWizardKind(IWizardFactory::FileWizard);
- wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL));
- wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL));
- wizard->setDescription
- (tr("Creates a vertex shader in the OpenGL/ES 2.0 Shading "
- "Language (GLSL/ES). Vertex shaders transform the "
- "positions, normals and texture co-ordinates of "
- "triangles, points and lines rendered with OpenGL."));
- wizard->setDisplayName(tr("Vertex Shader (OpenGL/ES 2.0)"));
- wizard->setId(QLatin1String("G.GLSL"));
- addAutoReleasedObject(wizard);
-
- wizard = new GlslFileWizard(GlslFileWizard::FragmentShaderDesktop);
- wizard->setWizardKind(IWizardFactory::FileWizard);
- wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL));
- wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL));
- wizard->setDescription
- (tr("Creates a fragment shader in the Desktop OpenGL Shading "
- "Language (GLSL). Fragment shaders generate the final "
- "pixel colors for triangles, points and lines rendered "
- "with OpenGL."));
- wizard->setDisplayName(tr("Fragment Shader (Desktop OpenGL)"));
- wizard->setId(QLatin1String("J.GLSL"));
- addAutoReleasedObject(wizard);
-
- wizard = new GlslFileWizard(GlslFileWizard::VertexShaderDesktop);
- wizard->setWizardKind(IWizardFactory::FileWizard);
- wizard->setCategory(QLatin1String(Constants::WIZARD_CATEGORY_GLSL));
- wizard->setDisplayCategory(QCoreApplication::translate("GLSLEditor", Constants::WIZARD_TR_CATEGORY_GLSL));
- wizard->setDescription
- (tr("Creates a vertex shader in the Desktop OpenGL Shading "
- "Language (GLSL). Vertex shaders transform the "
- "positions, normals and texture co-ordinates of "
- "triangles, points and lines rendered with OpenGL."));
- wizard->setDisplayName(tr("Vertex Shader (Desktop OpenGL)"));
- wizard->setId(QLatin1String("K.GLSL"));
- addAutoReleasedObject(wizard);
-
auto hf = new HighlighterFactory;
hf->setProductType<GlslHighlighter>();
hf->setId(Constants::C_GLSLEDITOR_ID);