Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

stdDialog.h

00001 /*
00002   File: stdDialog.h
00003 
00004   Copyright(C) C. Kotterink, Computed Graphics
00005 */
00006 #ifndef STDDIALOG_H
00007 #define STDDIALOG_H
00008 
00009 #include<Dialog.h>
00010 #include<Color4.h>
00011 #include<ColorPick.h>
00012 
00013 #include<string>
00014 
00015 #define MD_OK           1000
00016 #define MD_CANCEL       1001
00017 
00025 class MessageDialog : public Dialog
00026 {
00027 public:
00029     MessageDialog(
00030         const string &t, const string &message);
00031 
00032 private:
00033     typedef Dialog super;
00034 };
00035 
00042 class ColorPickDialog : public Dialog
00043 {
00044 public:
00046     ColorPickDialog(const string &t, int id);
00047 
00049     void setColor(const Color3 &color) {
00050         Color4 c(color, 1.0);
00051         cp->setColor(c);
00052     }
00053 
00055     void setColor(const Color4 &color) {
00056         cp->setColor(color);
00057     }
00058 
00060     const Color4 &getColor() {
00061         return cp->getColor();
00062     }
00063 
00064 protected:
00066     ColorPick *cp;
00067 
00068 private:
00069     typedef Dialog super;
00070 };
00071 #endif

This documentation was generated using doxygen. If you have any comments or additions please mail me.