26 #if defined _WIN64 || defined _WIN32
36 #define MAX_MODULE_INSTANCES 20
37 #define MAX_SERVERS 10
38 #define MAX_TIMEOUT_ATTEMPTS 100
39 #define MAX_GPU_DEVICES 4
61 QHBoxLayout *infoLayout;
86 MainWindow(QWidget *parent=0, QString aquilaVersion=0, QString hostName=0, QString yarpVersion=0);
116 bool addModule(QString module, QString server);
119 virtual bool winEvent(MSG *message,
long *result);
131 QSignalMapper *toolsSignalMapper;
132 QProgressBar *progressBar;
133 QTabWidget *serverTabWidget;
134 QComboBox *moduleCombobox;
135 QComboBox *serverCombobox;
136 QDialog *newTabDialog;
137 QProcess *serverProcess;
138 QAction *viewServersAct;
147 QString localHostName;
148 QString minimumYarpVersion;
152 QStringList arguments;
156 bool serverProcessRunning;
158 void initialiseTabWidget();
159 void initialiseProgressBar();
160 void initialiseModules();
161 void initialiseServer();
162 void createFileMenu();
163 int getModuleID(QString portPrefix);
171 void showNewTabDialog();
172 void refreshServerDialog();
173 void refreshNewTabDialog();
174 void readServerOutput();
176 void startTool(
int toolID);
177 void showContextMenu(
const QPoint& cursorPosition);
178 void serverComboboxChanged(
int serverID);
187 #endif//MAIN_WINDOW_H