refs #485, moved some gui classes to components

Originally components was meant for runtime based components. No longer true, so some classes now better find into that namespace.
This commit is contained in:
Klaus Basan
2016-02-16 22:36:47 +01:00
committed by Mathew Sutcliffe
parent 96913c6dc1
commit 6a06aa0460
88 changed files with 2243 additions and 2194 deletions

View File

@@ -0,0 +1,61 @@
/* Copyright (C) 2014
* 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_COMPONENTS_NETWORKSERVERFORM_H
#define BLACKGUI_COMPONENTS_NETWORKSERVERFORM_H
#include "blackgui/blackguiexport.h"
#include "blackmisc/network/server.h"
#include "blackmisc/statusmessagelist.h"
#include <QFrame>
#include <QScopedPointer>
namespace Ui { class CNetworkServerForm; }
namespace BlackGui
{
namespace Components
{
//! Server form
class BLACKGUI_EXPORT CServerForm : public QFrame
{
Q_OBJECT
public:
//! Constructor
explicit CServerForm(QWidget *parent = nullptr);
//! Destructor
~CServerForm();
//! Set server
void setServer(const BlackMisc::Network::CServer &server);
//! Get server
BlackMisc::Network::CServer getServer() const;
//! Set read only
void setReadOnly(bool readOnly);
//! Show the password field
void showPasswordField(bool show);
//! Validate and provide messages (empty means OK)
BlackMisc::CStatusMessageList validate() const;
private:
QScopedPointer<Ui::CNetworkServerForm> ui;
QString m_passwordNameLabel;
};
} // ns
} // ns
#endif // guard