19 #ifndef INCLUDE_MAINWINDOW_H 20 #define INCLUDE_MAINWINDOW_H 22 #include <QMainWindow> 33 class QTreeWidgetItem;
77 void addViewAction(QAction* action);
79 void addChannelRollup(
int deviceTabIndex, QWidget* widget);
80 void setDeviceGUI(
int deviceTabIndex, QWidget* gui,
const QString& deviceDisplayName,
int deviceType = 0);
84 void commandKeysConnect(QObject *
object,
const char *slot);
85 void commandKeysDisconnect(QObject *
object,
const char *slot);
109 m_deviceSetIndex(deviceSetIndex)
134 m_deviceSetIndex(deviceSetIndex),
135 m_newPreset(newPreset)
175 m_direction(direction)
204 return new MsgSetDevice(deviceSetIndex, deviceIndex, tx);
214 m_deviceSetIndex(deviceSetIndex),
215 m_deviceIndex(deviceIndex),
216 m_deviceType(deviceType)
226 bool isTx()
const {
return m_tx; }
230 return new MsgAddChannel(deviceSetIndex, channelRegistrationIndex, tx);
240 m_deviceSetIndex(deviceSetIndex),
241 m_channelRegistrationIndex(channelRegistrationIndex),
252 bool isTx()
const {
return m_tx; }
266 m_deviceSetIndex(deviceSetIndex),
267 m_channelIndex(channelIndex),
300 m_deviceSetIndex(deviceSetIndex)
339 void loadPresetSettings(
const Preset* preset,
int tabIndex);
340 void savePresetSettings(
Preset* preset,
int tabIndex);
341 void saveCommandSettings();
343 void createStatusBar();
344 void closeEvent(QCloseEvent*);
345 void updatePresetControls();
346 QTreeWidgetItem* addPresetToTree(
const Preset* preset);
347 QTreeWidgetItem* addCommandToTree(
const Command* command);
348 void applySettings();
350 void addSourceDevice(
int deviceIndex);
351 void addSinkDevice();
352 void addMIMODevice();
353 void removeLastDevice();
354 void deleteChannel(
int deviceSetIndex,
int channelIndex);
356 void setLoggingOptions();
358 bool handleMessage(
const Message& cmd);
361 void handleMessages();
363 void on_action_View_Fullscreen_toggled(
bool checked);
364 void on_presetSave_clicked();
365 void on_presetUpdate_clicked();
366 void on_presetEdit_clicked();
367 void on_presetExport_clicked();
368 void on_presetImport_clicked();
369 void on_settingsSave_clicked();
370 void on_presetLoad_clicked();
371 void on_presetDelete_clicked();
372 void on_presetTree_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
373 void on_presetTree_itemActivated(QTreeWidgetItem *item,
int column);
374 void on_commandNew_clicked();
375 void on_commandDuplicate_clicked();
376 void on_commandEdit_clicked();
377 void on_commandDelete_clicked();
378 void on_commandRun_clicked();
379 void on_commandOutput_clicked();
380 void on_commandsSave_clicked();
381 void on_commandKeyboardConnect_toggled(
bool checked);
382 void on_action_Audio_triggered();
383 void on_action_Logging_triggered();
384 void on_action_AMBE_triggered();
385 void on_action_My_Position_triggered();
386 void on_action_DeviceUserArguments_triggered();
387 void sampleSourceChanged();
388 void sampleSinkChanged();
389 void sampleMIMOChanged();
390 void channelAddClicked(
bool checked);
391 void on_action_Loaded_Plugins_triggered();
392 void on_action_About_triggered();
393 void on_action_addSourceDevice_triggered();
394 void on_action_addSinkDevice_triggered();
395 void on_action_addMIMODevice_triggered();
396 void on_action_removeLastDevice_triggered();
397 void tabInputViewIndexChanged();
398 void commandKeyPressed(Qt::Key key, Qt::KeyboardModifiers keyModifiers,
bool release);
401 #endif // INCLUDE_MAINWINDOW_H MessageQueue m_inputMessageQueue
std::string m_sampleFileName
static MsgLoadPreset * create(const Preset *preset, int deviceSetIndex)
static MainWindow * getInstance()
int getDeviceIndex() const
MsgDeviceSetFocus(int deviceSetIndex)
MsgDeleteChannel(int deviceSetIndex, int channelIndex, bool tx)
const QTimer & getMasterTimer() const
int getDeviceSetIndex() const
std::vector< DeviceUISet * > m_deviceUIs
WebAPIRequestMapper * m_requestMapper
int getChannelRegistrationIndex() const
MsgAddDeviceSet(int direction)
MsgSetDevice(int deviceSetIndex, int deviceIndex, int deviceType)
static MsgSetDevice * create(int deviceSetIndex, int deviceIndex, bool tx)
quint64 m_centerFrequency
qtwebapp::LoggerWithFile * m_logger
static MsgAddDeviceSet * create(int direction)
const MainSettings & getMainSettings() const
int m_channelRegistrationIndex
static MsgDeviceSetFocus * create(int deviceSetIndex)
static MsgRemoveLastDeviceSet * create()
static MsgDeletePreset * create(const Preset *preset)
Preset * getPreset() const
CommandKeyReceiver * m_commandKeyReceiver
QList< DeviceWidgetTabData > m_deviceWidgetTabs
int getDeviceSetIndex() const
int getChannelIndex() const
#define MESSAGE_CLASS_DECLARATION
int getDeviceSetIndex() const
WebAPIServer * m_apiServer
WebAPIAdapterGUI * m_apiAdapter
MsgDeletePreset(const Preset *preset)
MsgLoadPreset(const Preset *preset, int deviceSetIndex)
int getDeviceSetIndex() const
static MainWindow * m_instance
int getDeviceType() const
MessageQueue * getInputMessageQueue()
MsgAddChannel(int deviceSetIndex, int channelRegistrationIndex, bool tx)
const Preset * getPreset() const
int getDeviceSetIndex() const
static MsgAddChannel * create(int deviceSetIndex, int channelRegistrationIndex, bool tx)
QLabel * m_dateTimeWidget
QLabel * m_showSystemWidget
const Preset * getPreset() const
static MsgSavePreset * create(Preset *preset, int deviceSetIndex, bool newPreset)
MsgSavePreset(Preset *preset, int deviceSetIndex, bool newPreset)
PluginManager * m_pluginManager
int getDeviceSetIndex() const
static MsgDeleteChannel * create(int deviceSetIndex, int channelIndex, bool tx)