Exemplo n.º 1
0
//=====================================
// XMouse slotSetup...
//-------------------------------------
void XMouse::slotSetup (void) {
	// log (L_INFO,"XMouse::slotSetup() called\n");
	// ...
	// this function is called if the currently selected mouse
	// should change its configuration setup
	// --- 
	setupTop (MOUSE_SETUP);
	mTop->show();
}
Exemplo n.º 2
0
//=====================================
// XTouchScreen slotSetup...
//-------------------------------------
void XTouchScreen::slotSetup (void) {
	// log (L_INFO,"XTouchScreen::slotSetup() called\n");
	// ...
	// this function is called if the currently selected
	// touchscreen should change its configuration setup
	// --- 
	setupTop (TOUCHER_SETUP);
	mTop -> show();
}
Exemplo n.º 3
0
//=====================================
// XMouse slotAdd...
//------------------------------------
void XMouse::slotAdd (void) {
	// log (L_INFO,"XMouse::slotAdd() called\n");
	// ...
	// this function is called if a new mouse should be added to the
	// graphics system
	// ---
	setupTop (MOUSE_NEW);
	mTop->show();
	mTop->enterEvent ( 0 );
}
Exemplo n.º 4
0
//=====================================
// XTouchScreen slotAdd...
//------------------------------------
void XTouchScreen::slotAdd (void) { 
	// log (L_INFO,"XTouchScreen::slotAdd() called\n");
	// ...
	// this function is called if a new touchscreen 
	// should be added to the graphics system
	// ---
	setupTop (TOUCHER_NEW);
	mTop -> show();
	mTop -> enterEvent ( 0 );
}   
Exemplo n.º 5
0
//=====================================
// XKeyboard open option dialog
//-------------------------------------
void XKeyboard::slotOption ( void ) {
	// log(L_INFO,"XKeyboard::slotOption() called\n");
	// ...
	// This slot is called if you press the options
	// button to enter the keyboard options dialog
	// ---
	setupTop ();
	mTop -> show();
	mTop -> enterEvent ( 0 );
}
Exemplo n.º 6
0
/**
 * Constructor of htopml server class.
 * @param port Define the port to listen.
 * @param autostart If defined to true, automatically start the server.
 * @param listentAddr If not empty, open the listen port on the given network IP.
**/
HtopmlHttpServer::HtopmlHttpServer(int port,bool autostart, const std::string & listentAddr)
	:HttpServer(port,listentAddr),menu("/menu.js","navigation"),doubleMapNode("/generic/double-map.json")
{
	setupMenu();
	setupCommonRessources();
	setupTop();
	setupRusage();
	setupHowloc();

	if (passFileExist())
		this->setPasswordFile(getPassFile());

	if (autostart && gblHtopmlIsEnabled && instrumentThisExe())
	{
		if (!this->start())
			fprintf(stderr,"Failed to instrument %s\n",exeName.c_str());
		//avoid to start childs
		unsetenv("HTOPML_ENABLE");
	}/* else {
		fprintf(stderr,"Skip instrumtation of %s\n",exeName.c_str());
	}*/
}