[DEV] base test
This commit is contained in:
parent
064d970a07
commit
c265cd90ca
@ -42,7 +42,7 @@ static const char * l_eventChangeImageToggle = "event-change-image-toggle";
|
|||||||
TestButton::TestButton(void) :
|
TestButton::TestButton(void) :
|
||||||
widget::Sizer(widget::Sizer::modeVert),
|
widget::Sizer(widget::Sizer::modeVert),
|
||||||
m_testWidget(NULL) {
|
m_testWidget(NULL) {
|
||||||
APPL_CRITICAL("Create "__class__" (start)");
|
APPL_CRITICAL("Create " __class__ " (start)");
|
||||||
widget::Sizer* mySizerVert2 = NULL;
|
widget::Sizer* mySizerVert2 = NULL;
|
||||||
widget::Sizer* mySizerHori = NULL;
|
widget::Sizer* mySizerHori = NULL;
|
||||||
widget::Button* myButton = NULL;
|
widget::Button* myButton = NULL;
|
||||||
@ -171,12 +171,12 @@ TestButton::TestButton(void) :
|
|||||||
mySpacer->setColor(0x00FFFF80);
|
mySpacer->setColor(0x00FFFF80);
|
||||||
subWidgetAdd(mySpacer);
|
subWidgetAdd(mySpacer);
|
||||||
}
|
}
|
||||||
APPL_INFO("Create "__class__" (end)");
|
APPL_INFO("Create " __class__ " (end)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TestButton::~TestButton(void) {
|
TestButton::~TestButton(void) {
|
||||||
APPL_INFO("Remove "__class__" ...");
|
APPL_INFO("Remove " __class__ " ...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ static const char * l_eventChangeFillY = "event-change-fill-Y";
|
|||||||
TestButtonColor::TestButtonColor(void) :
|
TestButtonColor::TestButtonColor(void) :
|
||||||
widget::Sizer(widget::Sizer::modeVert),
|
widget::Sizer(widget::Sizer::modeVert),
|
||||||
m_testWidget(NULL) {
|
m_testWidget(NULL) {
|
||||||
APPL_DEBUG("CREATE "__class__" ... ");
|
APPL_DEBUG("CREATE " __class__ " ... ");
|
||||||
widget::Sizer* mySizerVert2 = NULL;
|
widget::Sizer* mySizerVert2 = NULL;
|
||||||
widget::Sizer* mySizerHori = NULL;
|
widget::Sizer* mySizerHori = NULL;
|
||||||
widget::Button* myButton = NULL;
|
widget::Button* myButton = NULL;
|
||||||
|
@ -38,7 +38,7 @@ static const char * l_eventChangeImage = "event-change-image";
|
|||||||
TestImage::TestImage(void) :
|
TestImage::TestImage(void) :
|
||||||
widget::Sizer(widget::Sizer::modeVert),
|
widget::Sizer(widget::Sizer::modeVert),
|
||||||
m_testWidget(NULL) {
|
m_testWidget(NULL) {
|
||||||
APPL_CRITICAL("Create "__class__" (start)");
|
APPL_CRITICAL("Create " __class__ " (start)");
|
||||||
widget::Sizer* mySizerVert2 = NULL;
|
widget::Sizer* mySizerVert2 = NULL;
|
||||||
widget::Sizer* mySizerHori = NULL;
|
widget::Sizer* mySizerHori = NULL;
|
||||||
widget::Button* myButton = NULL;
|
widget::Button* myButton = NULL;
|
||||||
@ -145,12 +145,12 @@ TestImage::TestImage(void) :
|
|||||||
mySpacer->setColor(0x00FFFF80);
|
mySpacer->setColor(0x00FFFF80);
|
||||||
subWidgetAdd(mySpacer);
|
subWidgetAdd(mySpacer);
|
||||||
}
|
}
|
||||||
APPL_INFO("Create "__class__" (end)");
|
APPL_INFO("Create " __class__ " (end)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TestImage::~TestImage(void) {
|
TestImage::~TestImage(void) {
|
||||||
APPL_INFO("Remove "__class__" ...");
|
APPL_INFO("Remove " __class__ " ...");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ static const char * l_eventChangeLabel = "event-change-label";
|
|||||||
TestLabel::TestLabel(void) :
|
TestLabel::TestLabel(void) :
|
||||||
widget::Sizer(widget::Sizer::modeVert),
|
widget::Sizer(widget::Sizer::modeVert),
|
||||||
m_labelId(0) {
|
m_labelId(0) {
|
||||||
APPL_DEBUG("CREATE "__class__" ... ");
|
APPL_DEBUG("CREATE " __class__ " ... ");
|
||||||
widget::Sizer* mySizerVert2 = NULL;
|
widget::Sizer* mySizerVert2 = NULL;
|
||||||
widget::Sizer* mySizerHori = NULL;
|
widget::Sizer* mySizerHori = NULL;
|
||||||
widget::Button* myButton = NULL;
|
widget::Button* myButton = NULL;
|
||||||
|
@ -37,7 +37,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
* @brief main application function Initialisation
|
* @brief main application function Initialisation
|
||||||
*/
|
*/
|
||||||
bool APP_Init(ewol::eContext& _context) {
|
bool APP_Init(ewol::eContext& _context) {
|
||||||
APPL_INFO("==> Init "PROJECT_NAME" (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO("==> Init " PROJECT_NAME " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
||||||
|
|
||||||
etk::initDefaultFolder(PROJECT_NAME);
|
etk::initDefaultFolder(PROJECT_NAME);
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ bool APP_Init(ewol::eContext& _context) {
|
|||||||
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
|
||||||
APPL_INFO("parameter [" << iii << "] is \"" << _context.getCmd().get(iii) << "\"");
|
APPL_INFO("parameter [" << iii << "] is \"" << _context.getCmd().get(iii) << "\"");
|
||||||
}
|
}
|
||||||
APPL_INFO("==> Init "PROJECT_NAME" (END)");
|
APPL_INFO("==> Init " PROJECT_NAME " (END)");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ bool APP_Init(ewol::eContext& _context) {
|
|||||||
* @brief main application function Un-Initialisation
|
* @brief main application function Un-Initialisation
|
||||||
*/
|
*/
|
||||||
void APP_UnInit(ewol::eContext& _context) {
|
void APP_UnInit(ewol::eContext& _context) {
|
||||||
APPL_INFO("==> Un-Init "PROJECT_NAME" (START)");
|
APPL_INFO("==> Un-Init " PROJECT_NAME " (START)");
|
||||||
// Get the curent windows
|
// Get the curent windows
|
||||||
ewol::Windows* tmpWindows = _context.getWindows();
|
ewol::Windows* tmpWindows = _context.getWindows();
|
||||||
// Remove windows :
|
// Remove windows :
|
||||||
@ -87,6 +87,6 @@ void APP_UnInit(ewol::eContext& _context) {
|
|||||||
delete(tmpWindows);
|
delete(tmpWindows);
|
||||||
tmpWindows = NULL;
|
tmpWindows = NULL;
|
||||||
}
|
}
|
||||||
APPL_INFO("==> Un-Init "PROJECT_NAME" (END)");
|
APPL_INFO("==> Un-Init " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user