#include <editor.h>
Signals | |
void | linkProgram (void) |
The user requested to compile link the current shader. | |
void | deactivateProgram (void) |
The current shader should be deactivated. | |
void | aboutToQuit (void) |
Tells the application that the user wants to quit the application. | |
Public Member Functions | |
CEditor (IShader *shader) | |
Constructor. | |
virtual | ~CEditor (void) |
Destruction. | |
void | init (const QPoint &position) |
Initializes and shows the editor. | |
void | shutdown (void) |
Cleans up state and prepares for destruction. | |
bool | maybeSave (void) |
Asks the user wether to save modified documents. |
This class is the top level interface to the GLSL source code editor component. It is bound to an IShader object which must be already initilized when this constructor is called. The created text editing widgets are based on the state in that shader object. The source code written with this editor will be stored in that shader object, too.
CEditor::CEditor | ( | IShader * | shader | ) |
void CEditor::init | ( | const QPoint & | position | ) |
Initializes and shows the editor.
position | Screen coordinates of the top left corner of the editor window to appear. |
bool CEditor::maybeSave | ( | void | ) |
Asks the user wether to save modified documents.
This call asks the user for each modified shader source code.
void CEditor::linkProgram | ( | void | ) | [signal] |
The user requested to compile link the current shader.
void CEditor::deactivateProgram | ( | void | ) | [signal] |
The current shader should be deactivated.
This happens, when the user opens an existing or creates a new shader.