blob: 76b183b29c83f52382b30e0fc8a72465d4c64519 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#include <fltk/Widget.h>
#include "inc/DataEntry.h"
#include "inc/SWindow.h"
void runImage(fltk::Widget*, void* p)
{
if ( p == NULL )
{
return;
}
DataEntry& dat = *((DataEntry*) p);
SWindow& win = *SWindow::getInstance();
if (! dat.command.empty())
{
system(dat.command.c_str());
win.hide();
}
exit(0);
}
string buildCommand(DataEntry& dat)
{
if (dat.imgtype == VMWARE)
{
return string("vmrun ").append(dat.imgname);
}
return string();
}
|