diff options
author | jcid <devnull@localhost> | 2008-06-01 19:53:43 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-06-01 19:53:43 +0200 |
commit | 8f0b650a6c3cb9f5c49c362ef727849eeb8dccc8 (patch) | |
tree | 3ac30b1c4a49d4fd9bd3f8aca4622adc748ca459 /src/form.hh | |
parent | 10258bb8f2049828553f674b728c184055936fa4 (diff) |
- More cleanups in html.cc (form receiver).
Diffstat (limited to 'src/form.hh')
-rw-r--r-- | src/form.hh | 90 |
1 files changed, 0 insertions, 90 deletions
diff --git a/src/form.hh b/src/form.hh deleted file mode 100644 index be5d0557..00000000 --- a/src/form.hh +++ /dev/null @@ -1,90 +0,0 @@ -#ifndef __FORM_HH__ -#define __FORM_HH__ - -#include "dw/core.hh" -#include "dw/ui.hh" - -namespace form { - -/** - * \brief Handles HTML form data. - * - * Add resources by calling the respective add...Resource method. Furthermore, - * this class implements dw::core::ui::ButtonResource::ClickedReceiver and - * dw::core::ui::Resource::ActivateReceiver. - */ -class Form: public dw::core::ui::ButtonResource::ClickedReceiver, - public dw::core::ui::Resource::ActivateReceiver -{ -private: - /** - * \brief Decorates instances of dw::core::ui::Resource. - * - * This is the abstract base class, sub classes have to be defined to - * decorate specific sub interfaces of dw::core::ui::Resource. - */ - class ResourceDecorator: public lout::object::Object - { - private: - const char *name; - - protected: - ResourceDecorator (const char *name); - ~ResourceDecorator (); - - public: - inline const char *getName () { return name; } - virtual const char *getValue () = 0; - }; - - /** - * \brief Decorates instances of dw::core::ui::TextResource. - */ - class TextResourceDecorator: public ResourceDecorator - { - private: - dw::core::ui::TextResource *resource; - - public: - TextResourceDecorator (const char *name, - dw::core::ui::TextResource *resource); - const char *getValue (); - }; - - /** - * \brief Decorates instances of dw::core::ui::RadioButtonResource. - * - * This class has to be instanciated only once for a group of radio - * buttons. - */ - class RadioButtonResourceDecorator: public ResourceDecorator - { - private: - dw::core::ui::RadioButtonResource *resource; - const char **values; - - public: - RadioButtonResourceDecorator (const char *name, - dw::core::ui::RadioButtonResource - *resource, - const char **values); - ~RadioButtonResourceDecorator (); - const char *getValue (); - }; - - lout::container::typed::List <ResourceDecorator> *resources; - - void *ext_data; // external data pointer - -public: - Form (void *p); - ~Form (); - void clicked (dw::core::ui::ButtonResource *resource, int buttonNo, - int x, int y); - void activate (dw::core::ui::Resource *resource); - -}; - -} // namespace form - -#endif // __FORM_HH__ |