1 // vim: set expandtab tabstop=4 shiftwidth=4:
3 #ifndef BIFE_TRANSLATE_H
4 #define BIFE_TRANSLATE_H
6 #include "../libbife/fallback.h"
7 #include "../libbife/widget.h"
8 #include "../libbife/hit.h"
9 #include "../libbife/hash.h"
18 * Base Translate Widget.
22 class Translate: public Fallback {
28 * @param name Name of the widget.
30 Translate(const string&);
35 * @param name Name of the widget.
36 * @param attrs Widget attributes.
38 Translate(const string&, const Hash&);
43 * @param name Name of the widget.
44 * @param attrs Widget attributes.
45 * @param content Content of the widget.
47 Translate(const string&, const Hash&, Widget*);
52 * @param name Name of the widget.
53 * @param content Content of the widget.
55 Translate(const string&, Widget*);
60 * @param name Name of the widget.
61 * @param content Content of the widget.
62 * @param attrs Widget attributes.
64 Translate(const string&, Widget*, const Hash&);
69 virtual ~Translate(void);
72 * Renders the widget using a HIT template.
74 * @param hit HIT template to use to render de widget.
75 * @return Rendered widget.
77 virtual string render(HIT&);