10 #ifndef federationsViewDialog_H_
11 #define federationsViewDialog_H_
14 #include "ui_federationsViewDialogUI.h"
19 #include <qtreewidget.h>
24 #include <vlutil/vlUtil.h>
25 #include <vlutil/vlTime.h>
28 #include <qcombobox.h>
51 DtFederationsViewProcess = 0,
59 DtFederationsViewCommandLine
64 const MAKRti::DtFilename& configDir,
66 Qt::WindowFlags flags = 0 );
72 virtual QSize sizeHint()
const;
79 virtual void setConnectionIsLocal(
const MAKRti::DtString& name,
bool isLocal );
82 virtual void checkAndAddMainForwarder(
const MAKRti::DtString& hostname);
85 virtual void checkAndAddLightweight(
const MAKRti::DtString& hostname);
88 virtual void addNetworkMapForwarderNode(
const MAKRti::DtString& forwarderName);
91 virtual void removeNetworkMapForwarderNode(
const MAKRti::DtString& forwarderName);
94 virtual void addNetworkMapRtiexecNode();
97 virtual void removeNetworkMapRtiexecNode();
100 virtual void addNetworkMapFederateNode(
int fedHandle,
102 const MAKRti::DtString& processName,
const MAKRti::DtString& fedType,
103 const MAKRti::DtString& fedName,
bool notJoined =
false,
104 bool isDropped =
false);
107 virtual void removeNetworkMapFederateNode(
int fedHandle,
111 void updateNetworkMapFederateNode(
int fedHandle,
113 bool disconnected,
bool reconnecting,
bool inErrorState =
false );
116 void refreshNetworkMap();
119 virtual void clearData();
125 virtual void clearNetworkMap();
128 virtual void enableCommands(
bool enable );
131 virtual void enableRtiExecShutdownCommand(
bool enable );
134 virtual void enableRtiForwarderShutdownCommand(
bool enable );
139 virtual void displayLoadingIndication();
142 virtual void removeLoadingIndication();
145 void saveGuiConfiguration();
147 Ui::FederationsViewDialog getUiImpl()
const;
154 virtual int addConnection(
const MAKRti::DtString& name,
158 virtual void removeConnection(
const MAKRti::DtString& name );
171 virtual void removeFederation(
const MAKRti::DtString&
federationName );
174 virtual void removeAllFederations();
184 virtual void removeFederate(
int federateHandle,
const MAKRti::DtString&
federationName);
188 void setupFederateTree();
194 void selectFederate(
const MAKRti::DtString& federation,
int federateHandle,
199 void selectDeadFederate(
const MAKRti::DtString& federation,
206 void selectForwarder(
const MAKRti::DtString& name);
215 void selectLightweight();
221 void processConnectionSelection(
int index,
bool ignoreVisibility =
false );
224 void showHelpDialog();
227 void processHelpDialogClose();
230 void showEvent( QShowEvent* event );
233 virtual void hideEvent( QHideEvent* event );
236 void closeEvent(QCloseEvent* event);
239 void keyPressEvent( QKeyEvent* event );
242 void shutdownCurrentRtiexec();
245 void shutdownCurrentRtiForwarder();
248 void updateNetworkMap();
252 const QColor & newColor );
255 void enableFederationColors(
bool enable );
258 void setFederateIdentifierType(
unsigned int fedIdType );
261 void showSyncPointDialog();
264 void showFederateStatsDialog();
267 void showFomDialog();
273 void updateFederateRemovalTime(
float period );
276 void clearSelection();
279 void updateFederateIcon();
282 void showSelectedFederateRidParams();
285 void showSelectedFederateLog();
292 void shutdownRtiexec();
295 void shutdownForwarder();
298 void aboutDialogRequested();
301 void showPopup(
const MAKRti::DtString&,
const MAKRti::DtString&,
const MAKRti::DtString&);
304 void forceFederateResign(
int,
const QString& );
307 void forceFederationDestroy(
const QString& );
310 void showRtiexecWebSpy();
313 void showFederateWebSpy(
const QString& fedexName,
int fedHandle );
316 void showRtiexecRidParams();
319 void showForwarderRidParams();
322 void showFederateRidParams(
const MAKRti::DtString& federation,
int federateHandle);
325 void showRtiexecLog();
328 void showForwarderLog();
331 void showFederateLog(
const MAKRti::DtString& federation,
int federateHandle);
334 void showLatencyTestDialog(
const QString& fedexName,
int fedHandle );
340 void disableNetworkTesting(
const QString& fedexName );
347 void showFederationsViewPreferences();
350 void federateSelected(
const MAKRti::DtString& federation,
int federateHandle);
353 void rtiexecSelected();
356 void forwarderSelected(
const MAKRti::DtString& name);
359 void peerForwarderSelected(
const MAKRti::DtString& name);
362 void federationSelected(
const MAKRti::DtString& name);
365 void lightweightSelected();
368 void showSyncPointDialog(
const MAKRti::DtString& name);
371 void showFederateStatsDialog(
const MAKRti::DtString& federation,
375 void defunctFederateRemoved(
const MAKRti::DtString& federation,
379 void showFomDialog(
const MAKRti::DtString& federation,
int federateHandle);
384 void showFederateInfo(
const MAKRti::DtString& federation,
int federateHandle,
388 void showDeadFederateInfo(
const MAKRti::DtString& federation,
409 MAKRti::DtString selectedFederateId()
const;
420 void connectSignals();
424 void loadGuiConfiguration();