2
* Copyright 2010 Inalogic Inc.
4
* This program is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU General Public License version 3, as published
6
* by the Free Software Foundation.
8
* This program is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranties of
10
* MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
11
* PURPOSE. See the GNU General Public License for more details.
13
* You should have received a copy of the GNU General Public License
14
* version 3 along with this program. If not, see
15
* <http://www.gnu.org/licenses/>
17
* Authored by: Jay Taoko <jaytaoko@inalogic.com>
22
#include "Nux/VLayout.h"
23
#include "Nux/HLayout.h"
24
#include "Nux/WindowThread.h"
25
#include "Nux/TextEntry.h"
27
#ifndef NUXTESTFRAMEWORK_H
28
#define NUXTESTFRAMEWORK_H
30
class NuxTestFramework
33
NuxTestFramework(const char* program_name, int window_width, int window_height, int program_life_span);
34
virtual ~NuxTestFramework();
36
virtual void Startup();
37
virtual void UserInterfaceSetup();
42
nux::WindowThread* GetWindowThread();
45
std::string program_name_;
46
int program_life_span_; //!< The program will auto-terminate after a delay in milliseconds.
47
nux::TimeOutSignal *timeout_signal_;
49
nux::WindowThread *window_thread_;
55
void ProgramExitCall(void *data);
56
void WaitForConfigureEvent(int x, int y, int width, int height);
60
#endif // NUXTESTFRAMEWORK_H