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

PShaderWin.h

Go to the documentation of this file.
00001 //------------------------------------------------------------------------
00002 //
00003 //   Joe Kniss
00004 //     7-15-03
00005 //                   ________    ____   ___ 
00006 //                  |        \  /    | /  /
00007 //                  +---+     \/     |/  /
00008 //                  +--+|  |\    /|     < 
00009 //                  |  ||  | \  / |  |\  \ 
00010 //                  |      |  \/  |  | \  \ 
00011 //                   \_____|      |__|  \__\
00012 //                       Copyright  2003 
00013 //                      Joe Michael Kniss
00014 //                   <<< jmk@cs.utah.edu >>>
00015 //               "All Your Base are Belong to Us"
00016 //-------------------------------------------------------------------------
00017 
00018 
00019 // PShaderWin.h
00020 ///  a window for managing and editing programmable shaders in opengl
00021 
00022 #ifndef __PROGRAMABLE_SHADER_WINDOW_DOT_H
00023 #define __PROGRAMABLE_SHADER_WINDOW_DOT_H
00024 
00025 #include <GL/glew.h>
00026 #include <qpopupmenu.h>
00027 #include <qfiledialog.h> 
00028 #include <qmainwindow.h>
00029 #include <qtabwidget.h>
00030 #include <qstring.h>
00031 #include <qgl.h>
00032 #include <stateGlift.h>
00033 
00034 class PShaderWin : public QMainWindow {
00035    Q_OBJECT 
00036 
00037 public:
00038    PShaderWin(const QGLContext *ctx, QWidget *parent=0, const char *name=0, WFlags wf=0);
00039    virtual ~PShaderWin();
00040 
00041 signals:
00042 
00043 public slots:
00044    void loadShader();
00045    void openShader();
00046    void saveShader();
00047    void saveShaderAs();
00048    void closeShader();
00049    void addShader(glift::ProgShaderSP shader);
00050    
00051    void newARBFP();
00052    void newARBVP();
00053 
00054 protected:
00055    virtual void keyPressEvent(QKeyEvent *key);
00056 
00057    void confMenu();
00058    QTabWidget *_tabs;
00059    QString     _lpath;
00060 
00061    ///////////////////////////////////
00062    /// main widget to add stuff to
00063    QWidget  *_qcentral;
00064 
00065    const QGLContext *_ctx;
00066 
00067 };
00068 
00069 
00070 #endif
00071 

Send questions, comments, and bug reports to:
jmk