diff --git a/src/blackgui/components/settingsnetworkcomponent.ui b/src/blackgui/components/settingsnetworkcomponent.ui index 46d934500..236086e6d 100644 --- a/src/blackgui/components/settingsnetworkcomponent.ui +++ b/src/blackgui/components/settingsnetworkcomponent.ui @@ -13,19 +13,25 @@ Frame - - QFrame::StyledPanel - - - QFrame::Raised - - - + + + + + Network + + + + + + + + + Services - + @@ -45,7 +51,7 @@ - + Qt::Vertical @@ -67,6 +73,12 @@
blackgui/components/settingsvatsimreaderscomponent.h
1 + + BlackGui::Editors::CNetworkSetupForm + QFrame +
blackgui/editors/networksetupform.h
+ 1 +
diff --git a/src/blackgui/editors/networksetupform.cpp b/src/blackgui/editors/networksetupform.cpp new file mode 100644 index 000000000..0d183713f --- /dev/null +++ b/src/blackgui/editors/networksetupform.cpp @@ -0,0 +1,35 @@ +/* Copyright (C) 2018 + * swift project Community / Contributors + * + * This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level + * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, + * including this file, may be copied, modified, propagated, or distributed except according to the terms + * contained in the LICENSE file. + */ + +#include "networksetupform.h" +#include "ui_networksetupform.h" +#include "guiutility.h" + +using namespace BlackMisc; + +namespace BlackGui +{ + namespace Editors + { + CNetworkSetupForm::CNetworkSetupForm(QWidget *parent) : + CForm(parent), + ui(new Ui::CNetworkSetupForm) + { + ui->setupUi(this); + } + + CNetworkSetupForm::~CNetworkSetupForm() + { } + + void CNetworkSetupForm::setReadOnly(bool readonly) + { + CGuiUtility::checkBoxReadOnly(ui->cb_DynamicOffsetTimes, readonly); + } + } // ns +} // ns diff --git a/src/blackgui/editors/networksetupform.h b/src/blackgui/editors/networksetupform.h new file mode 100644 index 000000000..e8278f251 --- /dev/null +++ b/src/blackgui/editors/networksetupform.h @@ -0,0 +1,46 @@ +/* Copyright (C) 2018 + * swift project Community / Contributors + * + * This file is part of swift Project. It is subject to the license terms in the LICENSE file found in the top-level + * directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project, + * including this file, may be copied, modified, propagated, or distributed except according to the terms + * contained in the LICENSE file. + */ + +//! \file + +#ifndef BLACKGUI_EDITORS_NETWORKSETUPFORM_H +#define BLACKGUI_EDITORS_NETWORKSETUPFORM_H + +#include "form.h" +#include + +namespace Ui { class CNetworkSetupForm; } +namespace BlackGui +{ + namespace Editors + { + //! Setup form + class CNetworkSetupForm : public CForm + { + Q_OBJECT + + public: + //! Constructor + explicit CNetworkSetupForm(QWidget *parent = nullptr); + + //! Destructor + virtual ~CNetworkSetupForm() override; + + //! \name Form class implementations + //! @{ + virtual void setReadOnly(bool readonly) override; + //! @} + + private: + QScopedPointer ui; + }; + } // ns +} // ns + +#endif // guard diff --git a/src/blackgui/editors/networksetupform.ui b/src/blackgui/editors/networksetupform.ui new file mode 100644 index 000000000..598c572a1 --- /dev/null +++ b/src/blackgui/editors/networksetupform.ui @@ -0,0 +1,28 @@ + + + CNetworkSetupForm + + + + 0 + 0 + 118 + 31 + + + + Network offset times + + + + + + dynamic offset times + + + + + + + +