diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-12-10 22:30:12 +0100 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-12-10 22:30:12 +0100 |
commit | 429d5f88b94ff28416cbfc6420b6389fa284df97 (patch) | |
tree | fb6fdaf7731de1ef396f98b748c56f3149801c84 /common/about.hh |
Import RTFL 0.1.1v0.1.1
Diffstat (limited to 'common/about.hh')
-rw-r--r-- | common/about.hh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/common/about.hh b/common/about.hh new file mode 100644 index 0000000..2a46483 --- /dev/null +++ b/common/about.hh @@ -0,0 +1,30 @@ +#ifndef __COMMON_ABOUT_HH__ +#define __COMMON_ABOUT_HH__ + +#include <FL/Fl_Window.H> + +namespace rtfl { + +namespace common { + +class AboutWindow: public Fl_Window +{ +private: + char *title, *text; + + static void close (Fl_Widget *widget, void *data); + + enum { WIDTH = 450, BUTTON_WIDTH = 80, BUTTON_HEIGHT = 25, SPACE = 10 }; + +public: + enum { HEIGHT_SIMPLE = 300, HEIGHT_EXCEPTION = 480 }; + + AboutWindow (const char *prgName, const char *licenceException, int height); + ~AboutWindow (); +}; + +} // namespace common + +} // namespace rtfl + +#endif // __COMMON_ABOUT_HH__ |