arbeit
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

PShaderWin Class Reference

#include <PShaderWin.h>

List of all members.


Detailed Description

a window for managing and editing programmable shaders in opengl

Definition at line 34 of file PShaderWin.h.

Public Slots

void loadShader ()
 load Shader

void openShader ()
 open Shader

void saveShader ()
 save Shader

void saveShaderAs ()
 save as Shader

void closeShader ()
 close shader

void addShader (glift::ProgShaderSP shader)
void newARBFP ()
void newARBVP ()

Public Member Functions

 PShaderWin (const QGLContext *ctx, QWidget *parent=0, const char *name=0, WFlags wf=0)
virtual ~PShaderWin ()

Protected Member Functions

virtual void keyPressEvent (QKeyEvent *key)
 keys

void confMenu ()
 keys


Protected Attributes

QTabWidget * _tabs
QString _lpath
QWidget * _qcentral
 main widget to add stuff to

const QGLContext * _ctx


Constructor & Destructor Documentation

PShaderWin::PShaderWin const QGLContext *  ctx,
QWidget *  parent = 0,
const char *  name = 0,
WFlags  wf = 0
 

tabs for multiple programs

the "load" button

Definition at line 35 of file PShaderWin.cpp.

References _ctx, _qcentral, _tabs, confMenu(), gutz::connect(), loadShader(), and name.

PShaderWin::~PShaderWin  )  [virtual]
 

Definition at line 62 of file PShaderWin.cpp.


Member Function Documentation

void PShaderWin::addShader glift::ProgShaderSP  shader  )  [slot]
 

didn't load correctly try again

find a good name

don't know??

add it to our stack

Definition at line 191 of file PShaderWin.cpp.

References _ctx, _tabs, PShaderTxt::getFileName(), PShaderTxt::getShaderType(), PShaderTxt::loadShader(), and PShaderTxt::NOT_LOADED.

void PShaderWin::closeShader  )  [slot]
 

close shader

Definition at line 161 of file PShaderWin.cpp.

References _lpath, _tabs, PShaderTxt::closeShader(), and w.

Referenced by confMenu().

void PShaderWin::confMenu  )  [protected]
 

keys

let's have a menu bar

standard file stuff

new programmable shaders

Definition at line 308 of file PShaderWin.cpp.

References closeShader(), file, newARBFP(), newARBVP(), openShader(), saveShader(), and saveShaderAs().

Referenced by PShaderWin().

void PShaderWin::keyPressEvent QKeyEvent *  key  )  [protected, virtual]
 

keys

Definition at line 283 of file PShaderWin.cpp.

References loadShader().

void PShaderWin::loadShader  )  [slot]
 

load Shader

load the current page

Definition at line 76 of file PShaderWin.cpp.

References _tabs, PShaderTxt::loadShader(), and w.

Referenced by keyPressEvent(), and PShaderWin().

void PShaderWin::newARBFP  )  [slot]
 

didn't load correctly try again

add it to our stack

Definition at line 224 of file PShaderWin.cpp.

References _ctx, _tabs, ARBFP_TXT(), PShaderTxt::getShaderType(), PShaderTxt::loadShaderFromText(), and PShaderTxt::NOT_LOADED.

Referenced by confMenu().

void PShaderWin::newARBVP  )  [slot]
 

didn't load correctly try again

add it to our stack

Definition at line 248 of file PShaderWin.cpp.

References _ctx, _tabs, ARBVP_TXT(), PShaderTxt::getShaderType(), PShaderTxt::loadShaderFromText(), and PShaderTxt::NOT_LOADED.

Referenced by confMenu().

void PShaderWin::openShader  )  [slot]
 

open Shader

didn't load correctly try again

add it to our stack

Definition at line 88 of file PShaderWin.cpp.

References _ctx, _lpath, _tabs, PShaderTxt::getFileName(), PShaderTxt::getShaderType(), PShaderTxt::loadShaderFromFile(), PShaderTxt::NOT_LOADED, and s.

Referenced by confMenu().

void PShaderWin::saveShader  )  [slot]
 

save Shader

Definition at line 123 of file PShaderWin.cpp.

References _lpath, _tabs, PShaderTxt::getFileName(), PShaderTxt::saveShader(), and w.

Referenced by confMenu().

void PShaderWin::saveShaderAs  )  [slot]
 

save as Shader

Definition at line 142 of file PShaderWin.cpp.

References _lpath, _tabs, PShaderTxt::getFileName(), PShaderTxt::saveShaderAs(), and w.

Referenced by confMenu().


Member Data Documentation

const QGLContext* PShaderWin::_ctx [protected]
 

Definition at line 65 of file PShaderWin.h.

Referenced by addShader(), newARBFP(), newARBVP(), openShader(), and PShaderWin().

QString PShaderWin::_lpath [protected]
 

Definition at line 59 of file PShaderWin.h.

Referenced by closeShader(), openShader(), saveShader(), and saveShaderAs().

QWidget* PShaderWin::_qcentral [protected]
 

main widget to add stuff to

Definition at line 63 of file PShaderWin.h.

Referenced by PShaderWin().

QTabWidget* PShaderWin::_tabs [protected]
 

Definition at line 58 of file PShaderWin.h.

Referenced by addShader(), closeShader(), loadShader(), newARBFP(), newARBVP(), openShader(), PShaderWin(), saveShader(), and saveShaderAs().


The documentation for this class was generated from the following files:
Send questions, comments, and bug reports to:
jmk