StyleExample.h 858 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // This may look like C code, but it's really -*- C++ -*-
  2. /*
  3. * Copyright (C) 2008 Emweb bvba, Kessel-Lo, Belgium.
  4. *
  5. * See the LICENSE file for terms of use.
  6. */
  7. #ifndef STYLEEXAMPLE_H_
  8. #define STYLEEXAMPLE_H_
  9. #include <Wt/WContainerWidget>
  10. namespace Wt {
  11. class WLineEdit;
  12. class WText;
  13. }
  14. using namespace Wt;
  15. class RoundedWidget;
  16. /**
  17. * \defgroup styleexample Style example
  18. */
  19. /*@{*/
  20. /*! \brief A demonstration of the RoundedWidget.
  21. *
  22. * This is the main class for the style example.
  23. */
  24. class StyleExample : public WContainerWidget
  25. {
  26. public:
  27. /*! \brief Create a StyleExample.
  28. */
  29. StyleExample(WContainerWidget *parent = 0);
  30. private:
  31. RoundedWidget *w_;
  32. WText *error_;
  33. WLineEdit *radius_, *r_, *g_, *b_;
  34. WLineEdit *createValidateLineEdit(int value, int min, int max);
  35. void updateStyle();
  36. };
  37. /*@}*/
  38. #endif // STYLEEXAMPLE_H_