diff --git a/Sources/AvReceiver/AvReceiverData.cpp b/Sources/AvReceiver/AvReceiverData.cpp index 2a152f8..df1de1c 100644 --- a/Sources/AvReceiver/AvReceiverData.cpp +++ b/Sources/AvReceiver/AvReceiverData.cpp @@ -14,16 +14,56 @@ QByteArray CAvReceiverMainStatus::ToByteArray() Output.clear(); QDataStream Strm(&Output,QIODevice::WriteOnly); - Strm << mMainPwrStatus; - Strm << mMainSleepStatus; - Strm << mMainVolume; - Strm << mIsMute; - Strm << mInput; - Strm << mProgram; +// Strm << mMainPwrStatus; +// Strm << mMainSleepStatus; +// Strm << mMainVolume; +// Strm << mIsMute; +// Strm << mInput; +// Strm << mProgram; - Strm << mDataValid; - Strm << mReceiverOnline; - Strm << mSyncZonesVolumes; +// Strm << mDataValid; +// Strm << mReceiverOnline; +// Strm << mSyncZonesVolumes; + + if(mMainPwrStatus == true) + Output.append(0x01); + else + Output.append((char)0x00); + + if(mMainSleepStatus == true) + Output.append(0x01); + else + Output.append((char)0x00); + + char VolArray[4]; + memcpy(VolArray,&mMainVolume,4); + Output.append(VolArray); + + if(mIsMute == true) + Output.append(0x01); + else + Output.append((char)0x00); + + char String[50]; + strcpy(String,mInput.toUtf8().data()); + Output.append(String,50); + strcpy(String,mProgram.toUtf8().data()); + Output.append(String,50); + + if(mDataValid == true) + Output.append(0x01); + else + Output.append((char)0x00); + + if(mReceiverOnline == true) + Output.append(0x01); + else + Output.append((char)0x00); + + if(mSyncZonesVolumes == true) + Output.append(0x01); + else + Output.append((char)0x00); return Output; @@ -34,16 +74,68 @@ int CAvReceiverMainStatus::FromByteArray(QByteArray Data) QDataStream Strm(Data); Strm.device()->seek(0); - Strm >> mMainPwrStatus; - Strm >> mMainSleepStatus; - Strm >> mMainVolume; - Strm >> mIsMute; - Strm >> mInput; - Strm >> mProgram; +// Strm >> mMainPwrStatus; +// Strm >> mMainSleepStatus; +// Strm >> mMainVolume; +// Strm >> mIsMute; +// Strm >> mInput; +// Strm >> mProgram; - Strm >> mDataValid; - Strm >> mReceiverOnline; - Strm >> mSyncZonesVolumes; +// Strm >> mDataValid; +// Strm >> mReceiverOnline; +// Strm >> mSyncZonesVolumes; + + if(Data.at(0) == 1) + mMainPwrStatus = true; + else + mMainPwrStatus = false; + + if(Data.at(1) == 1) + mMainSleepStatus = true; + else + mMainSleepStatus = false; + + char VolArray[4]; + VolArray[0] = Data[2]; + VolArray[1] = Data[3]; + VolArray[2] = Data[4]; + VolArray[3] = Data[5]; + memcpy(&mMainVolume,VolArray,4); + + if(Data.at(6) == 1) + mIsMute = true; + else + mIsMute = false; + + char String[50]; + for(int i= 0; i < 50; i++) + { + String[i] = Data[i+6]; + } + mInput.clear(); + mInput.append(String); + + for(int i= 0; i < 50; i++) + { + String[i] = Data[i+56]; + } + mProgram.clear(); + mProgram.append(String); + + if(Data.at(107) == 1) + mDataValid = true; + else + mDataValid = false; + + if(Data.at(108) == 1) + mReceiverOnline = true; + else + mReceiverOnline = false; + + if(Data.at(109) == 1) + mSyncZonesVolumes = true; + else + mSyncZonesVolumes = false; return RET_OK; diff --git a/Sources/GuiMain.cpp b/Sources/GuiMain.cpp index 4ad8f0c..f949535 100644 --- a/Sources/GuiMain.cpp +++ b/Sources/GuiMain.cpp @@ -9,6 +9,7 @@ CGuiMain::CGuiMain(QWidget *parent) mAvReceiverGui = new CAvReceiverGui(this); mMainTabWidget = new QTabWidget(this); mChaletGui = new CChaletGui(this); + mChaletGuiLTE = new CChaletGui(this); mIspindelGui = new CIspindelGUI(this); mTowerLightShowGui = new CTowerLightShowGui; mPICUploaderGui = new CPICUploaderGui; @@ -20,6 +21,7 @@ CGuiMain::CGuiMain(QWidget *parent) mMainTabWidget->addTab(mTowerLightShowGui,"Lightshow"); mMainTabWidget->addTab(mPICUploaderGui,"Firmware Upload"); mMainTabWidget->addTab(mIspindelGui,"ISpindel"); + mMainTabWidget->addTab(mChaletGuiLTE,"Chalet LTE"); resize(1700,768); } diff --git a/Sources/GuiMain.h b/Sources/GuiMain.h index 56b73f8..a8c03dc 100644 --- a/Sources/GuiMain.h +++ b/Sources/GuiMain.h @@ -24,6 +24,7 @@ public: CSprinklerGui *mSprinklerGui; CAvReceiverGui *mAvReceiverGui; CChaletGui *mChaletGui; + CChaletGui *mChaletGuiLTE; QTabWidget *mMainTabWidget; CTowerLightShowGui *mTowerLightShowGui; CPICUploaderGui *mPICUploaderGui; diff --git a/Sources/MasterCtrlInterface.cpp b/Sources/MasterCtrlInterface.cpp index d937560..492ac5d 100644 --- a/Sources/MasterCtrlInterface.cpp +++ b/Sources/MasterCtrlInterface.cpp @@ -10,10 +10,10 @@ CMasterCtrlInterface::CMasterCtrlInterface() connect(mNetworkCommSocket,SIGNAL(disconnected()),this,SLOT(NetworkSocketDisconnected())); connect(mNetworkCommSocket,SIGNAL(readyRead()),this,SLOT(NetworkSocketDataAvailable())); -// mMasterReconnectTimer.setInterval(500); -// mMasterReconnectTimer.stop(); -// mMasterReconnectTimer.setSingleShot(false); -// connect(&mMasterReconnectTimer,SIGNAL(timeout()),this,SLOT(NetworkReconnectTimerExpired())); + mMasterReconnectTimer.setInterval(1000); + mMasterReconnectTimer.stop(); + mMasterReconnectTimer.setSingleShot(false); + connect(&mMasterReconnectTimer,SIGNAL(timeout()),this,SLOT(NetworkReconnectTimerExpired())); } @@ -27,7 +27,8 @@ int CMasterCtrlInterface::ConnectToMasterCtrl() connect(mNetworkCommSocket,SIGNAL(disconnected()),this,SLOT(NetworkSocketDisconnected())); connect(mNetworkCommSocket,SIGNAL(readyRead()),this,SLOT(NetworkSocketDataAvailable())); } - mNetworkCommSocket->connectToHost(mMasterCtrlIPAddress,mNetworkPort); + if(mNetworkCommSocket->state() == QAbstractSocket::UnconnectedState) + mNetworkCommSocket->connectToHost(mMasterCtrlIPAddress,mNetworkPort); return RET_OK; } diff --git a/ui_AvReceiverGui.h b/ui_AvReceiverGui.h deleted file mode 100644 index 1d349fc..0000000 --- a/ui_AvReceiverGui.h +++ /dev/null @@ -1,137 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'AvReceiverGui.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_AVRECEIVERGUI_H -#define UI_AVRECEIVERGUI_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CAvReceiverGui -{ -public: - QLabel *label; - QLabel *mRcvrStatusLabel; - QCheckBox *mSpkBCheckBox; - QCheckBox *mSpkACheckBox; - QLabel *mZone2StatusLabel; - QGroupBox *MainZoneSceneBox; - QPushButton *MainZoneScene1Btn; - QPushButton *MainZoneScene2Btn; - QPushButton *MainZoneScene3Btn; - QPushButton *MainZoneScene4Btn; - QSlider *mMainZoneVolumeSldBar; - QSlider *mZone2VolumeSldBar; - QLabel *mMainZoneSliderValueLbl; - QLabel *mZone2SliderValueLbl; - QComboBox *mZone2InputComboBx; - QCheckBox *mZone2SyncVolumeChkBx; - - void setupUi(QWidget *CAvReceiverGui) - { - if (CAvReceiverGui->objectName().isEmpty()) - CAvReceiverGui->setObjectName(QString::fromUtf8("CAvReceiverGui")); - CAvReceiverGui->resize(883, 453); - label = new QLabel(CAvReceiverGui); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(230, 30, 201, 16)); - mRcvrStatusLabel = new QLabel(CAvReceiverGui); - mRcvrStatusLabel->setObjectName(QString::fromUtf8("mRcvrStatusLabel")); - mRcvrStatusLabel->setGeometry(QRect(50, 130, 181, 181)); - mSpkBCheckBox = new QCheckBox(CAvReceiverGui); - mSpkBCheckBox->setObjectName(QString::fromUtf8("mSpkBCheckBox")); - mSpkBCheckBox->setGeometry(QRect(350, 110, 70, 17)); - mSpkACheckBox = new QCheckBox(CAvReceiverGui); - mSpkACheckBox->setObjectName(QString::fromUtf8("mSpkACheckBox")); - mSpkACheckBox->setGeometry(QRect(50, 110, 70, 17)); - mZone2StatusLabel = new QLabel(CAvReceiverGui); - mZone2StatusLabel->setObjectName(QString::fromUtf8("mZone2StatusLabel")); - mZone2StatusLabel->setGeometry(QRect(370, 140, 171, 191)); - MainZoneSceneBox = new QGroupBox(CAvReceiverGui); - MainZoneSceneBox->setObjectName(QString::fromUtf8("MainZoneSceneBox")); - MainZoneSceneBox->setGeometry(QRect(40, 320, 101, 81)); - MainZoneScene1Btn = new QPushButton(MainZoneSceneBox); - MainZoneScene1Btn->setObjectName(QString::fromUtf8("MainZoneScene1Btn")); - MainZoneScene1Btn->setGeometry(QRect(10, 20, 31, 22)); - MainZoneScene2Btn = new QPushButton(MainZoneSceneBox); - MainZoneScene2Btn->setObjectName(QString::fromUtf8("MainZoneScene2Btn")); - MainZoneScene2Btn->setGeometry(QRect(50, 20, 31, 22)); - MainZoneScene3Btn = new QPushButton(MainZoneSceneBox); - MainZoneScene3Btn->setObjectName(QString::fromUtf8("MainZoneScene3Btn")); - MainZoneScene3Btn->setGeometry(QRect(10, 50, 31, 22)); - MainZoneScene4Btn = new QPushButton(MainZoneSceneBox); - MainZoneScene4Btn->setObjectName(QString::fromUtf8("MainZoneScene4Btn")); - MainZoneScene4Btn->setGeometry(QRect(50, 50, 31, 22)); - mMainZoneVolumeSldBar = new QSlider(CAvReceiverGui); - mMainZoneVolumeSldBar->setObjectName(QString::fromUtf8("mMainZoneVolumeSldBar")); - mMainZoneVolumeSldBar->setGeometry(QRect(190, 120, 21, 160)); - mMainZoneVolumeSldBar->setMinimum(0); - mMainZoneVolumeSldBar->setMaximum(194); - mMainZoneVolumeSldBar->setSingleStep(1); - mMainZoneVolumeSldBar->setOrientation(Qt::Vertical); - mZone2VolumeSldBar = new QSlider(CAvReceiverGui); - mZone2VolumeSldBar->setObjectName(QString::fromUtf8("mZone2VolumeSldBar")); - mZone2VolumeSldBar->setGeometry(QRect(500, 119, 20, 151)); - mZone2VolumeSldBar->setMaximum(182); - mZone2VolumeSldBar->setOrientation(Qt::Vertical); - mMainZoneSliderValueLbl = new QLabel(CAvReceiverGui); - mMainZoneSliderValueLbl->setObjectName(QString::fromUtf8("mMainZoneSliderValueLbl")); - mMainZoneSliderValueLbl->setGeometry(QRect(180, 100, 47, 14)); - mMainZoneSliderValueLbl->setAlignment(Qt::AlignCenter); - mZone2SliderValueLbl = new QLabel(CAvReceiverGui); - mZone2SliderValueLbl->setObjectName(QString::fromUtf8("mZone2SliderValueLbl")); - mZone2SliderValueLbl->setGeometry(QRect(490, 100, 51, 16)); - mZone2SliderValueLbl->setAlignment(Qt::AlignCenter); - mZone2InputComboBx = new QComboBox(CAvReceiverGui); - mZone2InputComboBx->setObjectName(QString::fromUtf8("mZone2InputComboBx")); - mZone2InputComboBx->setGeometry(QRect(580, 180, 121, 21)); - mZone2SyncVolumeChkBx = new QCheckBox(CAvReceiverGui); - mZone2SyncVolumeChkBx->setObjectName(QString::fromUtf8("mZone2SyncVolumeChkBx")); - mZone2SyncVolumeChkBx->setGeometry(QRect(590, 120, 171, 17)); - - retranslateUi(CAvReceiverGui); - - QMetaObject::connectSlotsByName(CAvReceiverGui); - } // setupUi - - void retranslateUi(QWidget *CAvReceiverGui) - { - CAvReceiverGui->setWindowTitle(QCoreApplication::translate("CAvReceiverGui", "Form", nullptr)); - label->setText(QCoreApplication::translate("CAvReceiverGui", "AvReceiver", nullptr)); - mRcvrStatusLabel->setText(QCoreApplication::translate("CAvReceiverGui", "TextLabel", nullptr)); - mSpkBCheckBox->setText(QCoreApplication::translate("CAvReceiverGui", "Zone 2", nullptr)); - mSpkACheckBox->setText(QCoreApplication::translate("CAvReceiverGui", "Main Zone", nullptr)); - mZone2StatusLabel->setText(QCoreApplication::translate("CAvReceiverGui", "TextLabel", nullptr)); - MainZoneSceneBox->setTitle(QCoreApplication::translate("CAvReceiverGui", "Scene", nullptr)); - MainZoneScene1Btn->setText(QCoreApplication::translate("CAvReceiverGui", "1", nullptr)); - MainZoneScene2Btn->setText(QCoreApplication::translate("CAvReceiverGui", "2", nullptr)); - MainZoneScene3Btn->setText(QCoreApplication::translate("CAvReceiverGui", "3", nullptr)); - MainZoneScene4Btn->setText(QCoreApplication::translate("CAvReceiverGui", "4", nullptr)); - mMainZoneSliderValueLbl->setText(QCoreApplication::translate("CAvReceiverGui", "TextLabel", nullptr)); - mZone2SliderValueLbl->setText(QCoreApplication::translate("CAvReceiverGui", "TextLabel", nullptr)); - mZone2SyncVolumeChkBx->setText(QCoreApplication::translate("CAvReceiverGui", "Sync volume with Main zone", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CAvReceiverGui: public Ui_CAvReceiverGui {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_AVRECEIVERGUI_H diff --git a/ui_ChaletGui.h b/ui_ChaletGui.h deleted file mode 100644 index 41d03d3..0000000 --- a/ui_ChaletGui.h +++ /dev/null @@ -1,411 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'ChaletGui.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_CHALETGUI_H -#define UI_CHALETGUI_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CChaletGui -{ -public: - QLabel *MainPageLabel; - QLabel *mInverterRlyStatusLabel; - QLabel *mWiFiModuleStatusLabel; - QLabel *mWiFiSectionLabel; - QPushButton *mInverterRelayOFFBtn; - QPushButton *mWiFiModuleOFFBtn; - QPushButton *mInverterRelayONBtn; - QPushButton *mWiFiModuleONBtn; - QLabel *mWiFiSectionLabel_2; - QPushButton *mRebootCPUBtn; - QCheckBox *mEnableHarakiriChkBx; - QGroupBox *groupBox; - QPushButton *mDoHarakiriButton; - QLabel *mBatteryVoltageLabel; - QLabel *mChaletOnlineStatusLbl; - QLabel *mSolarPanelCurrentLabel; - QLabel *mBatterySOCLabel; - QLabel *mCurrentSensorStateLbl; - QLabel *mLostReqPercentLbl; - QWidget *mPlotWidget; - QLabel *mChaletCommActivityLbl; - QLabel *mLasCommRequestReceivedLbl; - QDateEdit *mLogStartDateEdit; - QPushButton *mGetChaletLogButton; - QLabel *mChaletTemperatureLbl; - QGroupBox *WifiSettingGroupBox; - QLineEdit *mWifiAccessPtNameEditBx; - QLabel *mAccessPtNameLabel; - QLabel *mAccessPtPassLbl; - QLineEdit *mWifiPasswordEditBx; - QLabel *label; - QLineEdit *mWiFiIPAddressEditBx; - QLabel *label_2; - QLineEdit *mWiFiGatewayAddressEditBx; - QCheckBox *mDHCPEnableChkBx; - QPushButton *mWiFiGetRemoteSettingsBtn; - QPushButton *mWiFiSetRemoteSettingsBtn; - QRadioButton *mChaletWifiSelectionRadioBtn; - QRadioButton *mLoraIFWifiSelectionRadioBtn; - QLabel *mSolarPanelCurrentCnvLbl; - QLabel *mFirmwareVersionLabel; - QPushButton *mGetFirmwareVersionBtn; - QPushButton *mStartTerminalShellBtn; - QPushButton *mStartSyslogShellBtn; - QLabel *mTotalRxTxRequestsLbl; - QPushButton *mResetCommStatsBtn; - QLabel *mLostReqsStatsLbl; - QPushButton *mGetWifiStatusBtn; - QLabel *mModuleIPAddressLbl; - QGroupBox *mLoraIFGroupBox; - QLabel *mLoraIFModuleStatus; - QSpinBox *mLoraChannelSpinBox; - QSpinBox *mLoraAddressSpinBox; - QLabel *label_3; - QLabel *label_4; - QLabel *mLoraModuleCommActivityLbl; - QPushButton *mGetLoraWifiStatusBtn; - QLabel *mLoraModuleIPAddressLbl; - QButtonGroup *buttonGroup; - - void setupUi(QWidget *CChaletGui) - { - if (CChaletGui->objectName().isEmpty()) - CChaletGui->setObjectName(QString::fromUtf8("CChaletGui")); - CChaletGui->resize(1443, 662); - MainPageLabel = new QLabel(CChaletGui); - MainPageLabel->setObjectName(QString::fromUtf8("MainPageLabel")); - MainPageLabel->setGeometry(QRect(460, 10, 71, 31)); - QFont font; - font.setPointSize(12); - font.setBold(true); - font.setWeight(75); - MainPageLabel->setFont(font); - mInverterRlyStatusLabel = new QLabel(CChaletGui); - mInverterRlyStatusLabel->setObjectName(QString::fromUtf8("mInverterRlyStatusLabel")); - mInverterRlyStatusLabel->setGeometry(QRect(238, 120, 210, 16)); - mWiFiModuleStatusLabel = new QLabel(CChaletGui); - mWiFiModuleStatusLabel->setObjectName(QString::fromUtf8("mWiFiModuleStatusLabel")); - mWiFiModuleStatusLabel->setGeometry(QRect(238, 160, 130, 16)); - mWiFiSectionLabel = new QLabel(CChaletGui); - mWiFiSectionLabel->setObjectName(QString::fromUtf8("mWiFiSectionLabel")); - mWiFiSectionLabel->setGeometry(QRect(66, 160, 31, 16)); - mInverterRelayOFFBtn = new QPushButton(CChaletGui); - mInverterRelayOFFBtn->setObjectName(QString::fromUtf8("mInverterRelayOFFBtn")); - mInverterRelayOFFBtn->setGeometry(QRect(166, 120, 61, 22)); - mWiFiModuleOFFBtn = new QPushButton(CChaletGui); - mWiFiModuleOFFBtn->setObjectName(QString::fromUtf8("mWiFiModuleOFFBtn")); - mWiFiModuleOFFBtn->setGeometry(QRect(166, 160, 61, 23)); - mInverterRelayONBtn = new QPushButton(CChaletGui); - mInverterRelayONBtn->setObjectName(QString::fromUtf8("mInverterRelayONBtn")); - mInverterRelayONBtn->setGeometry(QRect(110, 120, 51, 23)); - mWiFiModuleONBtn = new QPushButton(CChaletGui); - mWiFiModuleONBtn->setObjectName(QString::fromUtf8("mWiFiModuleONBtn")); - mWiFiModuleONBtn->setGeometry(QRect(110, 160, 51, 23)); - mWiFiSectionLabel_2 = new QLabel(CChaletGui); - mWiFiSectionLabel_2->setObjectName(QString::fromUtf8("mWiFiSectionLabel_2")); - mWiFiSectionLabel_2->setGeometry(QRect(56, 120, 51, 20)); - mRebootCPUBtn = new QPushButton(CChaletGui); - mRebootCPUBtn->setObjectName(QString::fromUtf8("mRebootCPUBtn")); - mRebootCPUBtn->setGeometry(QRect(106, 200, 75, 23)); - mEnableHarakiriChkBx = new QCheckBox(CChaletGui); - mEnableHarakiriChkBx->setObjectName(QString::fromUtf8("mEnableHarakiriChkBx")); - mEnableHarakiriChkBx->setEnabled(true); - mEnableHarakiriChkBx->setGeometry(QRect(680, 70, 111, 17)); - groupBox = new QGroupBox(CChaletGui); - groupBox->setObjectName(QString::fromUtf8("groupBox")); - groupBox->setGeometry(QRect(660, 40, 151, 81)); - mDoHarakiriButton = new QPushButton(groupBox); - mDoHarakiriButton->setObjectName(QString::fromUtf8("mDoHarakiriButton")); - mDoHarakiriButton->setGeometry(QRect(20, 50, 101, 23)); - mBatteryVoltageLabel = new QLabel(CChaletGui); - mBatteryVoltageLabel->setObjectName(QString::fromUtf8("mBatteryVoltageLabel")); - mBatteryVoltageLabel->setGeometry(QRect(187, 240, 241, 16)); - mChaletOnlineStatusLbl = new QLabel(CChaletGui); - mChaletOnlineStatusLbl->setObjectName(QString::fromUtf8("mChaletOnlineStatusLbl")); - mChaletOnlineStatusLbl->setGeometry(QRect(450, 50, 91, 21)); - QFont font1; - font1.setFamily(QString::fromUtf8("Terminal")); - font1.setPointSize(14); - font1.setBold(true); - font1.setWeight(75); - mChaletOnlineStatusLbl->setFont(font1); - mSolarPanelCurrentLabel = new QLabel(CChaletGui); - mSolarPanelCurrentLabel->setObjectName(QString::fromUtf8("mSolarPanelCurrentLabel")); - mSolarPanelCurrentLabel->setGeometry(QRect(187, 260, 241, 16)); - mBatterySOCLabel = new QLabel(CChaletGui); - mBatterySOCLabel->setObjectName(QString::fromUtf8("mBatterySOCLabel")); - mBatterySOCLabel->setGeometry(QRect(190, 300, 241, 16)); - mCurrentSensorStateLbl = new QLabel(CChaletGui); - mCurrentSensorStateLbl->setObjectName(QString::fromUtf8("mCurrentSensorStateLbl")); - mCurrentSensorStateLbl->setGeometry(QRect(190, 320, 241, 16)); - mLostReqPercentLbl = new QLabel(CChaletGui); - mLostReqPercentLbl->setObjectName(QString::fromUtf8("mLostReqPercentLbl")); - mLostReqPercentLbl->setGeometry(QRect(430, 160, 241, 16)); - mPlotWidget = new QWidget(CChaletGui); - mPlotWidget->setObjectName(QString::fromUtf8("mPlotWidget")); - mPlotWidget->setGeometry(QRect(420, 260, 1021, 321)); - mChaletCommActivityLbl = new QLabel(CChaletGui); - mChaletCommActivityLbl->setObjectName(QString::fromUtf8("mChaletCommActivityLbl")); - mChaletCommActivityLbl->setGeometry(QRect(430, 140, 47, 16)); - mLasCommRequestReceivedLbl = new QLabel(CChaletGui); - mLasCommRequestReceivedLbl->setObjectName(QString::fromUtf8("mLasCommRequestReceivedLbl")); - mLasCommRequestReceivedLbl->setGeometry(QRect(430, 120, 301, 16)); - mLogStartDateEdit = new QDateEdit(CChaletGui); - mLogStartDateEdit->setObjectName(QString::fromUtf8("mLogStartDateEdit")); - mLogStartDateEdit->setGeometry(QRect(520, 210, 110, 22)); - mGetChaletLogButton = new QPushButton(CChaletGui); - mGetChaletLogButton->setObjectName(QString::fromUtf8("mGetChaletLogButton")); - mGetChaletLogButton->setGeometry(QRect(640, 210, 75, 23)); - mChaletTemperatureLbl = new QLabel(CChaletGui); - mChaletTemperatureLbl->setObjectName(QString::fromUtf8("mChaletTemperatureLbl")); - mChaletTemperatureLbl->setGeometry(QRect(190, 340, 241, 16)); - WifiSettingGroupBox = new QGroupBox(CChaletGui); - WifiSettingGroupBox->setObjectName(QString::fromUtf8("WifiSettingGroupBox")); - WifiSettingGroupBox->setGeometry(QRect(60, 380, 321, 251)); - mWifiAccessPtNameEditBx = new QLineEdit(WifiSettingGroupBox); - mWifiAccessPtNameEditBx->setObjectName(QString::fromUtf8("mWifiAccessPtNameEditBx")); - mWifiAccessPtNameEditBx->setGeometry(QRect(80, 150, 221, 20)); - mWifiAccessPtNameEditBx->setAlignment(Qt::AlignCenter); - mAccessPtNameLabel = new QLabel(WifiSettingGroupBox); - mAccessPtNameLabel->setObjectName(QString::fromUtf8("mAccessPtNameLabel")); - mAccessPtNameLabel->setGeometry(QRect(10, 150, 71, 20)); - QFont font2; - font2.setPointSize(10); - mAccessPtNameLabel->setFont(font2); - mAccessPtPassLbl = new QLabel(WifiSettingGroupBox); - mAccessPtPassLbl->setObjectName(QString::fromUtf8("mAccessPtPassLbl")); - mAccessPtPassLbl->setGeometry(QRect(10, 180, 71, 20)); - mAccessPtPassLbl->setFont(font2); - mWifiPasswordEditBx = new QLineEdit(WifiSettingGroupBox); - mWifiPasswordEditBx->setObjectName(QString::fromUtf8("mWifiPasswordEditBx")); - mWifiPasswordEditBx->setGeometry(QRect(80, 180, 221, 20)); - mWifiPasswordEditBx->setAlignment(Qt::AlignCenter); - label = new QLabel(WifiSettingGroupBox); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(10, 90, 71, 20)); - label->setFont(font2); - mWiFiIPAddressEditBx = new QLineEdit(WifiSettingGroupBox); - mWiFiIPAddressEditBx->setObjectName(QString::fromUtf8("mWiFiIPAddressEditBx")); - mWiFiIPAddressEditBx->setGeometry(QRect(80, 90, 221, 20)); - mWiFiIPAddressEditBx->setAlignment(Qt::AlignCenter); - label_2 = new QLabel(WifiSettingGroupBox); - label_2->setObjectName(QString::fromUtf8("label_2")); - label_2->setGeometry(QRect(10, 120, 71, 20)); - label_2->setFont(font2); - mWiFiGatewayAddressEditBx = new QLineEdit(WifiSettingGroupBox); - mWiFiGatewayAddressEditBx->setObjectName(QString::fromUtf8("mWiFiGatewayAddressEditBx")); - mWiFiGatewayAddressEditBx->setGeometry(QRect(80, 120, 221, 20)); - mWiFiGatewayAddressEditBx->setAlignment(Qt::AlignCenter); - mDHCPEnableChkBx = new QCheckBox(WifiSettingGroupBox); - mDHCPEnableChkBx->setObjectName(QString::fromUtf8("mDHCPEnableChkBx")); - mDHCPEnableChkBx->setGeometry(QRect(20, 60, 70, 17)); - mWiFiGetRemoteSettingsBtn = new QPushButton(WifiSettingGroupBox); - mWiFiGetRemoteSettingsBtn->setObjectName(QString::fromUtf8("mWiFiGetRemoteSettingsBtn")); - mWiFiGetRemoteSettingsBtn->setGeometry(QRect(70, 220, 75, 23)); - mWiFiSetRemoteSettingsBtn = new QPushButton(WifiSettingGroupBox); - mWiFiSetRemoteSettingsBtn->setObjectName(QString::fromUtf8("mWiFiSetRemoteSettingsBtn")); - mWiFiSetRemoteSettingsBtn->setGeometry(QRect(170, 220, 75, 23)); - mChaletWifiSelectionRadioBtn = new QRadioButton(WifiSettingGroupBox); - buttonGroup = new QButtonGroup(CChaletGui); - buttonGroup->setObjectName(QString::fromUtf8("buttonGroup")); - buttonGroup->addButton(mChaletWifiSelectionRadioBtn); - mChaletWifiSelectionRadioBtn->setObjectName(QString::fromUtf8("mChaletWifiSelectionRadioBtn")); - mChaletWifiSelectionRadioBtn->setGeometry(QRect(40, 20, 85, 20)); - mLoraIFWifiSelectionRadioBtn = new QRadioButton(WifiSettingGroupBox); - buttonGroup->addButton(mLoraIFWifiSelectionRadioBtn); - mLoraIFWifiSelectionRadioBtn->setObjectName(QString::fromUtf8("mLoraIFWifiSelectionRadioBtn")); - mLoraIFWifiSelectionRadioBtn->setGeometry(QRect(140, 20, 101, 20)); - mSolarPanelCurrentCnvLbl = new QLabel(CChaletGui); - mSolarPanelCurrentCnvLbl->setObjectName(QString::fromUtf8("mSolarPanelCurrentCnvLbl")); - mSolarPanelCurrentCnvLbl->setGeometry(QRect(190, 280, 201, 16)); - mFirmwareVersionLabel = new QLabel(CChaletGui); - mFirmwareVersionLabel->setObjectName(QString::fromUtf8("mFirmwareVersionLabel")); - mFirmwareVersionLabel->setGeometry(QRect(510, 590, 231, 20)); - mFirmwareVersionLabel->setFont(font2); - mGetFirmwareVersionBtn = new QPushButton(CChaletGui); - mGetFirmwareVersionBtn->setObjectName(QString::fromUtf8("mGetFirmwareVersionBtn")); - mGetFirmwareVersionBtn->setGeometry(QRect(420, 590, 75, 23)); - mStartTerminalShellBtn = new QPushButton(CChaletGui); - mStartTerminalShellBtn->setObjectName(QString::fromUtf8("mStartTerminalShellBtn")); - mStartTerminalShellBtn->setGeometry(QRect(420, 620, 75, 23)); - mStartSyslogShellBtn = new QPushButton(CChaletGui); - mStartSyslogShellBtn->setObjectName(QString::fromUtf8("mStartSyslogShellBtn")); - mStartSyslogShellBtn->setGeometry(QRect(510, 620, 75, 23)); - mTotalRxTxRequestsLbl = new QLabel(CChaletGui); - mTotalRxTxRequestsLbl->setObjectName(QString::fromUtf8("mTotalRxTxRequestsLbl")); - mTotalRxTxRequestsLbl->setGeometry(QRect(430, 180, 521, 16)); - mResetCommStatsBtn = new QPushButton(CChaletGui); - mResetCommStatsBtn->setObjectName(QString::fromUtf8("mResetCommStatsBtn")); - mResetCommStatsBtn->setGeometry(QRect(420, 100, 101, 23)); - mLostReqsStatsLbl = new QLabel(CChaletGui); - mLostReqsStatsLbl->setObjectName(QString::fromUtf8("mLostReqsStatsLbl")); - mLostReqsStatsLbl->setGeometry(QRect(700, 140, 241, 41)); - mGetWifiStatusBtn = new QPushButton(CChaletGui); - mGetWifiStatusBtn->setObjectName(QString::fromUtf8("mGetWifiStatusBtn")); - mGetWifiStatusBtn->setGeometry(QRect(820, 590, 61, 23)); - mModuleIPAddressLbl = new QLabel(CChaletGui); - mModuleIPAddressLbl->setObjectName(QString::fromUtf8("mModuleIPAddressLbl")); - mModuleIPAddressLbl->setGeometry(QRect(890, 590, 341, 16)); - mModuleIPAddressLbl->setFont(font2); - mLoraIFGroupBox = new QGroupBox(CChaletGui); - mLoraIFGroupBox->setObjectName(QString::fromUtf8("mLoraIFGroupBox")); - mLoraIFGroupBox->setGeometry(QRect(890, 20, 541, 201)); - mLoraIFModuleStatus = new QLabel(mLoraIFGroupBox); - mLoraIFModuleStatus->setObjectName(QString::fromUtf8("mLoraIFModuleStatus")); - mLoraIFModuleStatus->setGeometry(QRect(10, 20, 231, 141)); - mLoraChannelSpinBox = new QSpinBox(mLoraIFGroupBox); - mLoraChannelSpinBox->setObjectName(QString::fromUtf8("mLoraChannelSpinBox")); - mLoraChannelSpinBox->setGeometry(QRect(470, 30, 51, 22)); - mLoraAddressSpinBox = new QSpinBox(mLoraIFGroupBox); - mLoraAddressSpinBox->setObjectName(QString::fromUtf8("mLoraAddressSpinBox")); - mLoraAddressSpinBox->setGeometry(QRect(470, 50, 51, 22)); - label_3 = new QLabel(mLoraIFGroupBox); - label_3->setObjectName(QString::fromUtf8("label_3")); - label_3->setGeometry(QRect(378, 30, 81, 20)); - label_3->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); - label_4 = new QLabel(mLoraIFGroupBox); - label_4->setObjectName(QString::fromUtf8("label_4")); - label_4->setGeometry(QRect(380, 51, 81, 20)); - label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); - mLoraModuleCommActivityLbl = new QLabel(mLoraIFGroupBox); - mLoraModuleCommActivityLbl->setObjectName(QString::fromUtf8("mLoraModuleCommActivityLbl")); - mLoraModuleCommActivityLbl->setGeometry(QRect(390, 80, 47, 16)); - mGetLoraWifiStatusBtn = new QPushButton(mLoraIFGroupBox); - mGetLoraWifiStatusBtn->setObjectName(QString::fromUtf8("mGetLoraWifiStatusBtn")); - mGetLoraWifiStatusBtn->setGeometry(QRect(170, 130, 61, 20)); - mLoraModuleIPAddressLbl = new QLabel(mLoraIFGroupBox); - mLoraModuleIPAddressLbl->setObjectName(QString::fromUtf8("mLoraModuleIPAddressLbl")); - mLoraModuleIPAddressLbl->setGeometry(QRect(240, 130, 291, 16)); - mLoraModuleIPAddressLbl->setFont(font2); - WifiSettingGroupBox->raise(); - groupBox->raise(); - MainPageLabel->raise(); - mInverterRlyStatusLabel->raise(); - mWiFiModuleStatusLabel->raise(); - mWiFiSectionLabel->raise(); - mInverterRelayOFFBtn->raise(); - mWiFiModuleOFFBtn->raise(); - mInverterRelayONBtn->raise(); - mWiFiModuleONBtn->raise(); - mWiFiSectionLabel_2->raise(); - mRebootCPUBtn->raise(); - mEnableHarakiriChkBx->raise(); - mBatteryVoltageLabel->raise(); - mChaletOnlineStatusLbl->raise(); - mSolarPanelCurrentLabel->raise(); - mBatterySOCLabel->raise(); - mCurrentSensorStateLbl->raise(); - mLostReqPercentLbl->raise(); - mPlotWidget->raise(); - mChaletCommActivityLbl->raise(); - mLasCommRequestReceivedLbl->raise(); - mLogStartDateEdit->raise(); - mGetChaletLogButton->raise(); - mChaletTemperatureLbl->raise(); - mSolarPanelCurrentCnvLbl->raise(); - mFirmwareVersionLabel->raise(); - mGetFirmwareVersionBtn->raise(); - mStartTerminalShellBtn->raise(); - mStartSyslogShellBtn->raise(); - mTotalRxTxRequestsLbl->raise(); - mResetCommStatsBtn->raise(); - mLostReqsStatsLbl->raise(); - mGetWifiStatusBtn->raise(); - mModuleIPAddressLbl->raise(); - mLoraIFGroupBox->raise(); - - retranslateUi(CChaletGui); - - QMetaObject::connectSlotsByName(CChaletGui); - } // setupUi - - void retranslateUi(QWidget *CChaletGui) - { - CChaletGui->setWindowTitle(QCoreApplication::translate("CChaletGui", "Form", nullptr)); - MainPageLabel->setText(QCoreApplication::translate("CChaletGui", "Chalet", nullptr)); - mInverterRlyStatusLabel->setText(QCoreApplication::translate("CChaletGui", "Inverter Relay : OFF", nullptr)); - mWiFiModuleStatusLabel->setText(QCoreApplication::translate("CChaletGui", "ON", nullptr)); - mWiFiSectionLabel->setText(QCoreApplication::translate("CChaletGui", "WiFi :", nullptr)); - mInverterRelayOFFBtn->setText(QCoreApplication::translate("CChaletGui", "Turn OFF", nullptr)); - mWiFiModuleOFFBtn->setText(QCoreApplication::translate("CChaletGui", "Turn OFF", nullptr)); - mInverterRelayONBtn->setText(QCoreApplication::translate("CChaletGui", "Turn ON", nullptr)); - mWiFiModuleONBtn->setText(QCoreApplication::translate("CChaletGui", "Turn ON", nullptr)); - mWiFiSectionLabel_2->setText(QCoreApplication::translate("CChaletGui", "Inverter:", nullptr)); - mRebootCPUBtn->setText(QCoreApplication::translate("CChaletGui", "Reboot CPU", nullptr)); - mEnableHarakiriChkBx->setText(QCoreApplication::translate("CChaletGui", "Enable HARAKIRI", nullptr)); - groupBox->setTitle(QCoreApplication::translate("CChaletGui", "HARAKIRI!!!", nullptr)); - mDoHarakiriButton->setText(QCoreApplication::translate("CChaletGui", "DO HARAKIRI !!!", nullptr)); - mBatteryVoltageLabel->setText(QCoreApplication::translate("CChaletGui", "Battery Voltage", nullptr)); - mChaletOnlineStatusLbl->setText(QCoreApplication::translate("CChaletGui", "OFFLINE", nullptr)); - mSolarPanelCurrentLabel->setText(QCoreApplication::translate("CChaletGui", "Raw Solar Panel Current: ", nullptr)); - mBatterySOCLabel->setText(QCoreApplication::translate("CChaletGui", "Battery SOC: ", nullptr)); - mCurrentSensorStateLbl->setText(QCoreApplication::translate("CChaletGui", "Current Sensor:", nullptr)); - mLostReqPercentLbl->setText(QCoreApplication::translate("CChaletGui", "Lost requests: ", nullptr)); - mChaletCommActivityLbl->setText(QCoreApplication::translate("CChaletGui", "Activity!!!", nullptr)); - mLasCommRequestReceivedLbl->setText(QCoreApplication::translate("CChaletGui", "Last Request: ", nullptr)); - mGetChaletLogButton->setText(QCoreApplication::translate("CChaletGui", "PushButton", nullptr)); - mChaletTemperatureLbl->setText(QCoreApplication::translate("CChaletGui", "Temperature:", nullptr)); - WifiSettingGroupBox->setTitle(QCoreApplication::translate("CChaletGui", "Wifi parameters stored in flash", nullptr)); - mWifiAccessPtNameEditBx->setText(QCoreApplication::translate("CChaletGui", "?", nullptr)); - mAccessPtNameLabel->setText(QCoreApplication::translate("CChaletGui", "Access Pt:", nullptr)); - mAccessPtPassLbl->setText(QCoreApplication::translate("CChaletGui", "Password:", nullptr)); - mWifiPasswordEditBx->setText(QCoreApplication::translate("CChaletGui", "?", nullptr)); - label->setText(QCoreApplication::translate("CChaletGui", "IP Address:", nullptr)); - mWiFiIPAddressEditBx->setText(QCoreApplication::translate("CChaletGui", "?", nullptr)); - label_2->setText(QCoreApplication::translate("CChaletGui", "Gatweway:", nullptr)); - mWiFiGatewayAddressEditBx->setText(QCoreApplication::translate("CChaletGui", "?", nullptr)); - mDHCPEnableChkBx->setText(QCoreApplication::translate("CChaletGui", "DHCP", nullptr)); - mWiFiGetRemoteSettingsBtn->setText(QCoreApplication::translate("CChaletGui", "GET", nullptr)); - mWiFiSetRemoteSettingsBtn->setText(QCoreApplication::translate("CChaletGui", "SET", nullptr)); - mChaletWifiSelectionRadioBtn->setText(QCoreApplication::translate("CChaletGui", "Chalet", nullptr)); - mLoraIFWifiSelectionRadioBtn->setText(QCoreApplication::translate("CChaletGui", "Lora Module IF", nullptr)); - mSolarPanelCurrentCnvLbl->setText(QCoreApplication::translate("CChaletGui", "Solar Panel Current (A):", nullptr)); - mFirmwareVersionLabel->setText(QCoreApplication::translate("CChaletGui", "Firmware Version: ?", nullptr)); - mGetFirmwareVersionBtn->setText(QCoreApplication::translate("CChaletGui", "GET", nullptr)); - mStartTerminalShellBtn->setText(QCoreApplication::translate("CChaletGui", "Terminal", nullptr)); - mStartSyslogShellBtn->setText(QCoreApplication::translate("CChaletGui", "Syslog", nullptr)); - mTotalRxTxRequestsLbl->setText(QCoreApplication::translate("CChaletGui", "Chalet Rx Req :", nullptr)); - mResetCommStatsBtn->setText(QCoreApplication::translate("CChaletGui", "Reset Comm Stats", nullptr)); - mLostReqsStatsLbl->setText(QCoreApplication::translate("CChaletGui", "Master --> Chalet: ??\n" -"Chalet --> Master: ??", nullptr)); - mGetWifiStatusBtn->setText(QCoreApplication::translate("CChaletGui", "GET", nullptr)); - mModuleIPAddressLbl->setText(QCoreApplication::translate("CChaletGui", "Module IP Address:", nullptr)); - mLoraIFGroupBox->setTitle(QCoreApplication::translate("CChaletGui", "Lora module Interface", nullptr)); - mLoraIFModuleStatus->setText(QCoreApplication::translate("CChaletGui", "Module Type: ???\n" -"Module state: ??", nullptr)); - label_3->setText(QCoreApplication::translate("CChaletGui", "Module Channel", nullptr)); - label_4->setText(QCoreApplication::translate("CChaletGui", "Module Address", nullptr)); - mLoraModuleCommActivityLbl->setText(QCoreApplication::translate("CChaletGui", "Activity!!!", nullptr)); - mGetLoraWifiStatusBtn->setText(QCoreApplication::translate("CChaletGui", "GET", nullptr)); - mLoraModuleIPAddressLbl->setText(QCoreApplication::translate("CChaletGui", "Module IP Address:", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CChaletGui: public Ui_CChaletGui {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_CHALETGUI_H diff --git a/ui_IspindelGUI.h b/ui_IspindelGUI.h deleted file mode 100644 index 8b65204..0000000 --- a/ui_IspindelGUI.h +++ /dev/null @@ -1,99 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'IspindelGUI.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_ISPINDELGUI_H -#define UI_ISPINDELGUI_H - -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CIspindelGUI -{ -public: - QLabel *label; - QWidget *mIspindelPlot; - QLabel *mLastFrameDataLbl; - QTableWidget *mSamplesTable; - QLabel *mABVLabel; - QPushButton *mSetOGBtn; - QPushButton *mDelSelectedSampleBtn; - - void setupUi(QDialog *CIspindelGUI) - { - if (CIspindelGUI->objectName().isEmpty()) - CIspindelGUI->setObjectName(QString::fromUtf8("CIspindelGUI")); - CIspindelGUI->resize(1123, 629); - label = new QLabel(CIspindelGUI); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(520, 0, 91, 41)); - QFont font; - font.setPointSize(12); - label->setFont(font); - mIspindelPlot = new QWidget(CIspindelGUI); - mIspindelPlot->setObjectName(QString::fromUtf8("mIspindelPlot")); - mIspindelPlot->setGeometry(QRect(520, 100, 661, 461)); - mLastFrameDataLbl = new QLabel(CIspindelGUI); - mLastFrameDataLbl->setObjectName(QString::fromUtf8("mLastFrameDataLbl")); - mLastFrameDataLbl->setGeometry(QRect(60, 10, 381, 241)); - QFont font1; - font1.setFamily(QString::fromUtf8("Tahoma")); - font1.setPointSize(11); - font1.setBold(true); - font1.setWeight(75); - mLastFrameDataLbl->setFont(font1); - mLastFrameDataLbl->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter); - mSamplesTable = new QTableWidget(CIspindelGUI); - mSamplesTable->setObjectName(QString::fromUtf8("mSamplesTable")); - mSamplesTable->setGeometry(QRect(10, 290, 461, 331)); - mABVLabel = new QLabel(CIspindelGUI); - mABVLabel->setObjectName(QString::fromUtf8("mABVLabel")); - mABVLabel->setGeometry(QRect(660, 50, 231, 16)); - QFont font2; - font2.setPointSize(12); - font2.setBold(true); - font2.setWeight(75); - mABVLabel->setFont(font2); - mSetOGBtn = new QPushButton(CIspindelGUI); - mSetOGBtn->setObjectName(QString::fromUtf8("mSetOGBtn")); - mSetOGBtn->setGeometry(QRect(650, 10, 75, 23)); - mDelSelectedSampleBtn = new QPushButton(CIspindelGUI); - mDelSelectedSampleBtn->setObjectName(QString::fromUtf8("mDelSelectedSampleBtn")); - mDelSelectedSampleBtn->setGeometry(QRect(520, 590, 81, 23)); - - retranslateUi(CIspindelGUI); - - QMetaObject::connectSlotsByName(CIspindelGUI); - } // setupUi - - void retranslateUi(QDialog *CIspindelGUI) - { - CIspindelGUI->setWindowTitle(QCoreApplication::translate("CIspindelGUI", "Dialog", nullptr)); - label->setText(QCoreApplication::translate("CIspindelGUI", "ISpindel", nullptr)); - mLastFrameDataLbl->setText(QCoreApplication::translate("CIspindelGUI", "No data...", nullptr)); - mABVLabel->setText(QCoreApplication::translate("CIspindelGUI", "ABV : ?", nullptr)); - mSetOGBtn->setText(QCoreApplication::translate("CIspindelGUI", "Set OG", nullptr)); - mDelSelectedSampleBtn->setText(QCoreApplication::translate("CIspindelGUI", "Delete Sample", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CIspindelGUI: public Ui_CIspindelGUI {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_ISPINDELGUI_H diff --git a/ui_PICUploaderGui.h b/ui_PICUploaderGui.h deleted file mode 100644 index 2df9296..0000000 --- a/ui_PICUploaderGui.h +++ /dev/null @@ -1,174 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'PICUploaderGui.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_PICUPLOADERGUI_H -#define UI_PICUPLOADERGUI_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CPICUploaderGui -{ -public: - QLabel *label; - QPushButton *mHexFileSelectBtn; - QLineEdit *mIPAddressEdit; - QLabel *mOpenedHexFilePathLbl; - QLabel *mHexFileStatsLbl; - QPushButton *mConnectBtn; - QPushButton *mSendCmdBtn; - QComboBox *mCmdSelectCombo; - QPlainTextEdit *mLoggingWindowTextEdit; - QPushButton *mClearLogginWndwBtn; - QPushButton *mShowHexFileInfoBtn; - QLabel *mFilterParamsLbl; - QLineEdit *mFilterStartAddressTxtEdit; - QLineEdit *mFilterEndAddressTxtEdit; - QLabel *label_2; - QLabel *label_3; - QLabel *label_4; - QProgressBar *mUploadProgressBar; - - void setupUi(QDialog *CPICUploaderGui) - { - if (CPICUploaderGui->objectName().isEmpty()) - CPICUploaderGui->setObjectName(QString::fromUtf8("CPICUploaderGui")); - CPICUploaderGui->resize(1024, 768); - label = new QLabel(CPICUploaderGui); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(260, 20, 191, 31)); - QFont font; - font.setPointSize(14); - font.setBold(true); - font.setWeight(75); - label->setFont(font); - mHexFileSelectBtn = new QPushButton(CPICUploaderGui); - mHexFileSelectBtn->setObjectName(QString::fromUtf8("mHexFileSelectBtn")); - mHexFileSelectBtn->setGeometry(QRect(70, 110, 81, 23)); - mIPAddressEdit = new QLineEdit(CPICUploaderGui); - mIPAddressEdit->setObjectName(QString::fromUtf8("mIPAddressEdit")); - mIPAddressEdit->setGeometry(QRect(690, 120, 181, 20)); - mOpenedHexFilePathLbl = new QLabel(CPICUploaderGui); - mOpenedHexFilePathLbl->setObjectName(QString::fromUtf8("mOpenedHexFilePathLbl")); - mOpenedHexFilePathLbl->setGeometry(QRect(70, 140, 521, 16)); - mHexFileStatsLbl = new QLabel(CPICUploaderGui); - mHexFileStatsLbl->setObjectName(QString::fromUtf8("mHexFileStatsLbl")); - mHexFileStatsLbl->setGeometry(QRect(70, 170, 471, 131)); - mHexFileStatsLbl->setFrameShape(QFrame::Box); - mConnectBtn = new QPushButton(CPICUploaderGui); - mConnectBtn->setObjectName(QString::fromUtf8("mConnectBtn")); - mConnectBtn->setGeometry(QRect(890, 120, 75, 23)); - mSendCmdBtn = new QPushButton(CPICUploaderGui); - mSendCmdBtn->setObjectName(QString::fromUtf8("mSendCmdBtn")); - mSendCmdBtn->setGeometry(QRect(890, 170, 75, 23)); - mCmdSelectCombo = new QComboBox(CPICUploaderGui); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->addItem(QString()); - mCmdSelectCombo->setObjectName(QString::fromUtf8("mCmdSelectCombo")); - mCmdSelectCombo->setGeometry(QRect(710, 170, 151, 22)); - mLoggingWindowTextEdit = new QPlainTextEdit(CPICUploaderGui); - mLoggingWindowTextEdit->setObjectName(QString::fromUtf8("mLoggingWindowTextEdit")); - mLoggingWindowTextEdit->setGeometry(QRect(10, 310, 651, 341)); - mLoggingWindowTextEdit->setReadOnly(true); - mClearLogginWndwBtn = new QPushButton(CPICUploaderGui); - mClearLogginWndwBtn->setObjectName(QString::fromUtf8("mClearLogginWndwBtn")); - mClearLogginWndwBtn->setGeometry(QRect(10, 660, 75, 23)); - mShowHexFileInfoBtn = new QPushButton(CPICUploaderGui); - mShowHexFileInfoBtn->setObjectName(QString::fromUtf8("mShowHexFileInfoBtn")); - mShowHexFileInfoBtn->setGeometry(QRect(170, 110, 75, 23)); - mFilterParamsLbl = new QLabel(CPICUploaderGui); - mFilterParamsLbl->setObjectName(QString::fromUtf8("mFilterParamsLbl")); - mFilterParamsLbl->setGeometry(QRect(680, 320, 231, 81)); - mFilterParamsLbl->setFrameShape(QFrame::Box); - mFilterStartAddressTxtEdit = new QLineEdit(CPICUploaderGui); - mFilterStartAddressTxtEdit->setObjectName(QString::fromUtf8("mFilterStartAddressTxtEdit")); - mFilterStartAddressTxtEdit->setEnabled(false); - mFilterStartAddressTxtEdit->setGeometry(QRect(760, 330, 113, 20)); - mFilterEndAddressTxtEdit = new QLineEdit(CPICUploaderGui); - mFilterEndAddressTxtEdit->setObjectName(QString::fromUtf8("mFilterEndAddressTxtEdit")); - mFilterEndAddressTxtEdit->setEnabled(false); - mFilterEndAddressTxtEdit->setGeometry(QRect(760, 370, 113, 20)); - label_2 = new QLabel(CPICUploaderGui); - label_2->setObjectName(QString::fromUtf8("label_2")); - label_2->setGeometry(QRect(690, 330, 71, 16)); - label_3 = new QLabel(CPICUploaderGui); - label_3->setObjectName(QString::fromUtf8("label_3")); - label_3->setGeometry(QRect(690, 370, 71, 16)); - label_4 = new QLabel(CPICUploaderGui); - label_4->setObjectName(QString::fromUtf8("label_4")); - label_4->setGeometry(QRect(680, 300, 71, 16)); - QFont font1; - font1.setPointSize(10); - label_4->setFont(font1); - mUploadProgressBar = new QProgressBar(CPICUploaderGui); - mUploadProgressBar->setObjectName(QString::fromUtf8("mUploadProgressBar")); - mUploadProgressBar->setGeometry(QRect(680, 420, 231, 23)); - mUploadProgressBar->setValue(24); - - retranslateUi(CPICUploaderGui); - - QMetaObject::connectSlotsByName(CPICUploaderGui); - } // setupUi - - void retranslateUi(QDialog *CPICUploaderGui) - { - CPICUploaderGui->setWindowTitle(QCoreApplication::translate("CPICUploaderGui", "Dialog", nullptr)); - label->setText(QCoreApplication::translate("CPICUploaderGui", "Firmware Uploader", nullptr)); - mHexFileSelectBtn->setText(QCoreApplication::translate("CPICUploaderGui", "Open Hex File", nullptr)); - mIPAddressEdit->setText(QCoreApplication::translate("CPICUploaderGui", "192.168.30.125", nullptr)); - mOpenedHexFilePathLbl->setText(QCoreApplication::translate("CPICUploaderGui", "No File Opened", nullptr)); - mHexFileStatsLbl->setText(QString()); - mConnectBtn->setText(QCoreApplication::translate("CPICUploaderGui", "Connect", nullptr)); - mSendCmdBtn->setText(QCoreApplication::translate("CPICUploaderGui", "Send Cmd", nullptr)); - mCmdSelectCombo->setItemText(0, QCoreApplication::translate("CPICUploaderGui", "Heartbeat", nullptr)); - mCmdSelectCombo->setItemText(1, QCoreApplication::translate("CPICUploaderGui", "Get Stored Firmware Info", nullptr)); - mCmdSelectCombo->setItemText(2, QCoreApplication::translate("CPICUploaderGui", "Flash Erase", nullptr)); - mCmdSelectCombo->setItemText(3, QCoreApplication::translate("CPICUploaderGui", "Init Upload", nullptr)); - mCmdSelectCombo->setItemText(4, QCoreApplication::translate("CPICUploaderGui", "Get State", nullptr)); - mCmdSelectCombo->setItemText(5, QCoreApplication::translate("CPICUploaderGui", "Send Data Chunk", nullptr)); - mCmdSelectCombo->setItemText(6, QCoreApplication::translate("CPICUploaderGui", "Upload Finished", nullptr)); - mCmdSelectCombo->setItemText(7, QCoreApplication::translate("CPICUploaderGui", "Execute Upgrade", nullptr)); - mCmdSelectCombo->setItemText(8, QCoreApplication::translate("CPICUploaderGui", "Check Flash", nullptr)); - mCmdSelectCombo->setItemText(9, QCoreApplication::translate("CPICUploaderGui", "Abort", nullptr)); - - mClearLogginWndwBtn->setText(QCoreApplication::translate("CPICUploaderGui", "Clear", nullptr)); - mShowHexFileInfoBtn->setText(QCoreApplication::translate("CPICUploaderGui", "Show Info", nullptr)); - mFilterParamsLbl->setText(QString()); - mFilterStartAddressTxtEdit->setText(QCoreApplication::translate("CPICUploaderGui", "0x1D004000", nullptr)); - mFilterEndAddressTxtEdit->setText(QCoreApplication::translate("CPICUploaderGui", "0x1D07FFFF", nullptr)); - label_2->setText(QCoreApplication::translate("CPICUploaderGui", "Start Address", nullptr)); - label_3->setText(QCoreApplication::translate("CPICUploaderGui", "End Address", nullptr)); - label_4->setText(QCoreApplication::translate("CPICUploaderGui", "Code area", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CPICUploaderGui: public Ui_CPICUploaderGui {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_PICUPLOADERGUI_H diff --git a/ui_SMSGui.h b/ui_SMSGui.h deleted file mode 100644 index 8102d20..0000000 --- a/ui_SMSGui.h +++ /dev/null @@ -1,138 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'SMSGui.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_SMSGUI_H -#define UI_SMSGUI_H - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CSMSGui -{ -public: - QGridLayout *gridLayout_2; - QLabel *mContactPic; - QLabel *mContactName; - QTextBrowser *mConversationText; - QTreeWidget *mContactsTreeWidget; - QFrame *mSMSEditFrame; - QGridLayout *gridLayout; - QPushButton *mSMSSendBtn; - QTextEdit *mSMSEdit; - QSpacerItem *horizontalSpacer; - QLabel *mSMSMessageStatsLabel; - - void setupUi(QWidget *CSMSGui) - { - if (CSMSGui->objectName().isEmpty()) - CSMSGui->setObjectName(QString::fromUtf8("CSMSGui")); - CSMSGui->resize(803, 785); - QSizePolicy sizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); - sizePolicy.setHorizontalStretch(0); - sizePolicy.setVerticalStretch(0); - sizePolicy.setHeightForWidth(CSMSGui->sizePolicy().hasHeightForWidth()); - CSMSGui->setSizePolicy(sizePolicy); - gridLayout_2 = new QGridLayout(CSMSGui); - gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2")); - mContactPic = new QLabel(CSMSGui); - mContactPic->setObjectName(QString::fromUtf8("mContactPic")); - QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed); - sizePolicy1.setHorizontalStretch(0); - sizePolicy1.setVerticalStretch(0); - sizePolicy1.setHeightForWidth(mContactPic->sizePolicy().hasHeightForWidth()); - mContactPic->setSizePolicy(sizePolicy1); - mContactPic->setMinimumSize(QSize(100, 100)); - mContactPic->setBaseSize(QSize(100, 100)); - - gridLayout_2->addWidget(mContactPic, 0, 0, 1, 1); - - mContactName = new QLabel(CSMSGui); - mContactName->setObjectName(QString::fromUtf8("mContactName")); - - gridLayout_2->addWidget(mContactName, 0, 1, 1, 2); - - mConversationText = new QTextBrowser(CSMSGui); - mConversationText->setObjectName(QString::fromUtf8("mConversationText")); - - gridLayout_2->addWidget(mConversationText, 1, 0, 1, 2); - - mContactsTreeWidget = new QTreeWidget(CSMSGui); - QTreeWidgetItem *__qtreewidgetitem = new QTreeWidgetItem(); - __qtreewidgetitem->setText(0, QString::fromUtf8("1")); - mContactsTreeWidget->setHeaderItem(__qtreewidgetitem); - mContactsTreeWidget->setObjectName(QString::fromUtf8("mContactsTreeWidget")); - mContactsTreeWidget->setIndentation(2); - mContactsTreeWidget->header()->setVisible(false); - - gridLayout_2->addWidget(mContactsTreeWidget, 1, 2, 2, 1); - - mSMSEditFrame = new QFrame(CSMSGui); - mSMSEditFrame->setObjectName(QString::fromUtf8("mSMSEditFrame")); - mSMSEditFrame->setFrameShape(QFrame::StyledPanel); - mSMSEditFrame->setFrameShadow(QFrame::Raised); - gridLayout = new QGridLayout(mSMSEditFrame); - gridLayout->setObjectName(QString::fromUtf8("gridLayout")); - mSMSSendBtn = new QPushButton(mSMSEditFrame); - mSMSSendBtn->setObjectName(QString::fromUtf8("mSMSSendBtn")); - - gridLayout->addWidget(mSMSSendBtn, 3, 2, 1, 1); - - mSMSEdit = new QTextEdit(mSMSEditFrame); - mSMSEdit->setObjectName(QString::fromUtf8("mSMSEdit")); - - gridLayout->addWidget(mSMSEdit, 2, 0, 2, 1); - - horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); - - gridLayout->addItem(horizontalSpacer, 3, 3, 1, 1); - - mSMSMessageStatsLabel = new QLabel(mSMSEditFrame); - mSMSMessageStatsLabel->setObjectName(QString::fromUtf8("mSMSMessageStatsLabel")); - mSMSMessageStatsLabel->setMinimumSize(QSize(200, 75)); - - gridLayout->addWidget(mSMSMessageStatsLabel, 2, 2, 1, 2); - - - gridLayout_2->addWidget(mSMSEditFrame, 2, 0, 1, 2); - - - retranslateUi(CSMSGui); - - QMetaObject::connectSlotsByName(CSMSGui); - } // setupUi - - void retranslateUi(QWidget *CSMSGui) - { - CSMSGui->setWindowTitle(QCoreApplication::translate("CSMSGui", "Form", nullptr)); - mContactPic->setText(QCoreApplication::translate("CSMSGui", "TextLabel", nullptr)); - mContactName->setText(QCoreApplication::translate("CSMSGui", "TextLabel", nullptr)); - mSMSSendBtn->setText(QCoreApplication::translate("CSMSGui", "Send", nullptr)); - mSMSMessageStatsLabel->setText(QCoreApplication::translate("CSMSGui", "TextLabel", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CSMSGui: public Ui_CSMSGui {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_SMSGUI_H diff --git a/ui_SprinklerDeviceGuiItem.h b/ui_SprinklerDeviceGuiItem.h deleted file mode 100644 index aaf767e..0000000 --- a/ui_SprinklerDeviceGuiItem.h +++ /dev/null @@ -1,69 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'SprinklerDeviceGuiItem.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_SPRINKLERDEVICEGUIITEM_H -#define UI_SPRINKLERDEVICEGUIITEM_H - -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CSprinklerDeviceGuiItem -{ -public: - QLabel *SprinklerAddress; - QLabel *SprinklerFlowSpeed; - QLabel *label; - QPushButton *pushButton; - - void setupUi(QWidget *CSprinklerDeviceGuiItem) - { - if (CSprinklerDeviceGuiItem->objectName().isEmpty()) - CSprinklerDeviceGuiItem->setObjectName(QString::fromUtf8("CSprinklerDeviceGuiItem")); - CSprinklerDeviceGuiItem->resize(540, 399); - SprinklerAddress = new QLabel(CSprinklerDeviceGuiItem); - SprinklerAddress->setObjectName(QString::fromUtf8("SprinklerAddress")); - SprinklerAddress->setGeometry(QRect(20, 10, 101, 41)); - SprinklerFlowSpeed = new QLabel(CSprinklerDeviceGuiItem); - SprinklerFlowSpeed->setObjectName(QString::fromUtf8("SprinklerFlowSpeed")); - SprinklerFlowSpeed->setGeometry(QRect(20, 50, 131, 41)); - label = new QLabel(CSprinklerDeviceGuiItem); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(30, 100, 54, 17)); - pushButton = new QPushButton(CSprinklerDeviceGuiItem); - pushButton->setObjectName(QString::fromUtf8("pushButton")); - pushButton->setGeometry(QRect(220, 20, 80, 25)); - pushButton->setCheckable(true); - - retranslateUi(CSprinklerDeviceGuiItem); - - QMetaObject::connectSlotsByName(CSprinklerDeviceGuiItem); - } // setupUi - - void retranslateUi(QWidget *CSprinklerDeviceGuiItem) - { - CSprinklerDeviceGuiItem->setWindowTitle(QCoreApplication::translate("CSprinklerDeviceGuiItem", "Form", nullptr)); - SprinklerAddress->setText(QCoreApplication::translate("CSprinklerDeviceGuiItem", "Address : ", nullptr)); - SprinklerFlowSpeed->setText(QCoreApplication::translate("CSprinklerDeviceGuiItem", "Flow speed :", nullptr)); - label->setText(QCoreApplication::translate("CSprinklerDeviceGuiItem", "State : ", nullptr)); - pushButton->setText(QCoreApplication::translate("CSprinklerDeviceGuiItem", "PushButton", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CSprinklerDeviceGuiItem: public Ui_CSprinklerDeviceGuiItem {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_SPRINKLERDEVICEGUIITEM_H diff --git a/ui_SprinklerGui.h b/ui_SprinklerGui.h deleted file mode 100644 index 1fa9a7c..0000000 --- a/ui_SprinklerGui.h +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'SprinklerGui.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_SPRINKLERGUI_H -#define UI_SPRINKLERGUI_H - -#include -#include -#include -#include -#include "ToggleSwitch.h" - -QT_BEGIN_NAMESPACE - -class Ui_CSprinklerGui -{ -public: - QLabel *label; - CToggleSwitch *mValveSwitch; - - void setupUi(QWidget *CSprinklerGui) - { - if (CSprinklerGui->objectName().isEmpty()) - CSprinklerGui->setObjectName(QString::fromUtf8("CSprinklerGui")); - CSprinklerGui->resize(1047, 560); - label = new QLabel(CSprinklerGui); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(20, 10, 201, 51)); - mValveSwitch = new CToggleSwitch(CSprinklerGui); - mValveSwitch->setObjectName(QString::fromUtf8("mValveSwitch")); - mValveSwitch->setGeometry(QRect(220, 90, 91, 81)); - - retranslateUi(CSprinklerGui); - - QMetaObject::connectSlotsByName(CSprinklerGui); - } // setupUi - - void retranslateUi(QWidget *CSprinklerGui) - { - CSprinklerGui->setWindowTitle(QCoreApplication::translate("CSprinklerGui", "Form", nullptr)); - label->setText(QCoreApplication::translate("CSprinklerGui", "Sprinklers network", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CSprinklerGui: public Ui_CSprinklerGui {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_SPRINKLERGUI_H diff --git a/ui_TowerLightShowGui.h b/ui_TowerLightShowGui.h deleted file mode 100644 index 8acad50..0000000 --- a/ui_TowerLightShowGui.h +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************************************************** -** Form generated from reading UI file 'TowerLightShowGui.ui' -** -** Created by: Qt User Interface Compiler version 5.14.2 -** -** WARNING! All changes made in this file will be lost when recompiling UI file! -********************************************************************************/ - -#ifndef UI_TOWERLIGHTSHOWGUI_H -#define UI_TOWERLIGHTSHOWGUI_H - -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -class Ui_CTowerLightShowGui -{ -public: - QLabel *label; - QWidget *mLightCtrlWidget; - QPushButton *pushButton; - - void setupUi(QDialog *CTowerLightShowGui) - { - if (CTowerLightShowGui->objectName().isEmpty()) - CTowerLightShowGui->setObjectName(QString::fromUtf8("CTowerLightShowGui")); - CTowerLightShowGui->resize(1694, 658); - label = new QLabel(CTowerLightShowGui); - label->setObjectName(QString::fromUtf8("label")); - label->setGeometry(QRect(470, 20, 171, 31)); - QFont font; - font.setPointSize(16); - label->setFont(font); - mLightCtrlWidget = new QWidget(CTowerLightShowGui); - mLightCtrlWidget->setObjectName(QString::fromUtf8("mLightCtrlWidget")); - mLightCtrlWidget->setGeometry(QRect(39, 119, 1621, 531)); - pushButton = new QPushButton(CTowerLightShowGui); - pushButton->setObjectName(QString::fromUtf8("pushButton")); - pushButton->setGeometry(QRect(40, 100, 75, 23)); - - retranslateUi(CTowerLightShowGui); - - QMetaObject::connectSlotsByName(CTowerLightShowGui); - } // setupUi - - void retranslateUi(QDialog *CTowerLightShowGui) - { - CTowerLightShowGui->setWindowTitle(QCoreApplication::translate("CTowerLightShowGui", "Dialog", nullptr)); - label->setText(QCoreApplication::translate("CTowerLightShowGui", "Tower Light Show", nullptr)); - pushButton->setText(QCoreApplication::translate("CTowerLightShowGui", "PushButton", nullptr)); - } // retranslateUi - -}; - -namespace Ui { - class CTowerLightShowGui: public Ui_CTowerLightShowGui {}; -} // namespace Ui - -QT_END_NAMESPACE - -#endif // UI_TOWERLIGHTSHOWGUI_H