style/StyleExample.h

Go to the documentation of this file.
00001 // This may look like C code, but it's really -*- C++ -*-
00002 /*
00003  * Copyright (C) 2006 Koen Deforche, Kessel-Lo, Belgium.
00004  *
00005  * See the LICENSE file for terms of use.
00006  */
00007 
00008 #ifndef STYLEEXAMPLE_H_
00009 #define STYLEEXAMPLE_H_
00010 
00011 #include <WContainerWidget>
00012 
00013 namespace Wt {
00014   class WLineEdit;
00015   class WText;
00016 }
00017 
00018 using namespace Wt;
00019 
00020 class RoundedWidget;
00021 
00026 
00031 class StyleExample : public WContainerWidget
00032 {
00033 public:
00036   StyleExample(WContainerWidget *parent = 0);
00037 
00038 private:
00039   RoundedWidget *w_;
00040   WText *error_;
00041 
00042   WLineEdit *radius_, *r_, *g_, *b_;
00043 
00044   WLineEdit *createValidateLineEdit(int value, int min, int max);
00045 
00046 private slots:
00047   void updateStyle();
00048 };
00049 
00052 #endif // STYLEEXAMPLE_H_

Generated on Sun Jul 1 19:37:23 2007 for Wt by doxygen 1.4.7