diff --git a/src/bin/launcher/Makefile b/src/bin/launcher/Makefile index 4261435..05f6437 100644 --- a/src/bin/launcher/Makefile +++ b/src/bin/launcher/Makefile @@ -18,7 +18,7 @@ REMOVE = rm -f #Objects -OBJS = launcher.o ubixButton.o +OBJS = launcher.o ubixButton.o ubixDesktop.o #Libraries LIBRARIES2 = ../../lib/objgfx40/*.o ../../lib/libcpp/*.o ../../lib/views/sunlight/*.o diff --git a/src/bin/launcher/include/ubixButton.h b/src/bin/launcher/include/ubixButton.h index d27bed9..0702fff 100644 --- a/src/bin/launcher/include/ubixButton.h +++ b/src/bin/launcher/include/ubixButton.h @@ -5,7 +5,7 @@ class ubixButton : public vButton { public: - ubixButton(void); + ubixButton(vContext *); virtual ~ubixButton(void); }; // ubixButton #endif diff --git a/src/bin/launcher/include/ubixDesktop.h b/src/bin/launcher/include/ubixDesktop.h new file mode 100644 index 0000000..61a1a38 --- /dev/null +++ b/src/bin/launcher/include/ubixDesktop.h @@ -0,0 +1,14 @@ +#ifndef UBIXDESKTOP_H +#define UBIXDESKTOP_H + +#include + +class ubixDesktop : public vContext { + protected: + public: + ubixDesktop(vContext *); + virtual bool vCreate(void); + virtual void vDraw(void); + virtual ~ubixDesktop(void); +}; // ubixDesktop +#endif diff --git a/src/bin/launcher/launcher.cpp b/src/bin/launcher/launcher.cpp index 7a7a369..c58c240 100644 --- a/src/bin/launcher/launcher.cpp +++ b/src/bin/launcher/launcher.cpp @@ -1,5 +1,11 @@ #include +#include +#include +#include + int main(void) { + ubixDesktop * desktop = new ubixDesktop(NULL); + delete desktop; return 0; } diff --git a/src/bin/launcher/ubixButton.cpp b/src/bin/launcher/ubixButton.cpp index a256da0..3ca69a8 100644 --- a/src/bin/launcher/ubixButton.cpp +++ b/src/bin/launcher/ubixButton.cpp @@ -1,8 +1,11 @@ #include +#include +#include #include -ubixButton::ubixButton(void) : vButton(null) { - SetSize(48, 48); +ubixButton::ubixButton(vContext * parent) : vButton(parent) { + vSetSize(48, 48); + vSetStyle("default.button.border.size", new sSize(0, 0, 0)); return; } // ubixButton::ubixButton() diff --git a/src/bin/launcher/ubixDesktop.cpp b/src/bin/launcher/ubixDesktop.cpp new file mode 100644 index 0000000..feceb40 --- /dev/null +++ b/src/bin/launcher/ubixDesktop.cpp @@ -0,0 +1,29 @@ +#include +#include +#include +#include + +ubixDesktop::ubixDesktop(vContext * parent) : vContext(parent) { + vSetStyle("default.button.border.size", new sSize(2, 2, 2)); + vSetStyle("default.font.filename", new sString("ROM8X14.DPF")); + vSetStyle("default.font.color.foreground", + new sRGBA8Color(255, 255, 255, 255)); + vSetStyle("default.font.color.background", + new sRGBA8Color(0, 0, 0, 255)); + return; +} // ubixDesktop::ubixDesktop + +bool +ubixDesktop::vCreate(void) { + return true; +} // ubixDesktop::vCreate + +void +ubixDesktop::vDraw(void) { + return; +} // ubixDesktop::vDraw + +ubixDesktop::~ubixDesktop(void) { + vDeleteAllStyles(); + return; +}