CMdiEditWindow Class Reference

MDI editor main window class. More...

#include <editwindow.h>

Inheritance diagram for CMdiEditWindow:

CBaseEditWindow

List of all members.

Public Member Functions

 CMdiEditWindow (IShader *shader)
 Constructor.
bool maybeSave (void)
 Destructor.
void loadInitialShaderSource (void)
 Loads the initial shader sources into the editor.
void uploadShaderSource (IShader *shader)
 Uploads the source code to an IShader object.
void loadSourceFile (int shaderType, const QString &fileName)
 Loads a source code file for a given shader type.
QString fileName (int shaderType)
 Returns the file name for a shader type.


Detailed Description

MDI editor main window class.

Contains the editors for all shader types in a single window. Yout need only a single instance to deal with all shader types.


Constructor & Destructor Documentation

CMdiEditWindow::CMdiEditWindow ( IShader shader  ) 

Constructor.

Parameters:
shader IShader object to qurey state from. Assumes the object is already initialized.


Member Function Documentation

void CMdiEditWindow::uploadShaderSource ( IShader shader  )  [virtual]

Uploads the source code to an IShader object.

Parameters:
shader IShader object where the source code should be stored.

Implements CBaseEditWindow.

void CMdiEditWindow::loadSourceFile ( int  shaderType,
const QString &  fileName 
)

Loads a source code file for a given shader type.

Parameters:
shaderType Specifies the editor, which shuld load the source code.
fileName Source code file name. If this is an emoty string, the default shader source code will be loaded.

QString CMdiEditWindow::fileName ( int  shaderType  ) 

Returns the file name for a shader type.

It returns form the file name from the CSourceEdit widget responsible for the given shader type.

Parameters:
shaderType Shader type where to request the name.


The documentation for this class was generated from the following files:
Generated on Sun Mar 2 17:12:32 2008 for Shader Maker by  doxygen 1.5.4