mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
/* Copyright (C) 2016
|
|
* 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. 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_MARGINSINPUT_H
|
|
#define BLACKGUI_COMPONENTS_MARGINSINPUT_H
|
|
|
|
#include <QFrame>
|
|
#include <QMargins>
|
|
#include <QScopedPointer>
|
|
|
|
namespace Ui { class CMarginsInput; }
|
|
|
|
namespace BlackGui
|
|
{
|
|
namespace Components
|
|
{
|
|
/*!
|
|
* Widget alows to enter margins
|
|
*/
|
|
class CMarginsInput : public QFrame
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
explicit CMarginsInput(QWidget *parent = nullptr);
|
|
|
|
//! Destructor
|
|
virtual ~CMarginsInput() override;
|
|
|
|
//! Set margins
|
|
void setMargins(const QMargins &margins);
|
|
|
|
//! Current values of margins
|
|
QMargins getMargins() const;
|
|
|
|
signals:
|
|
//! Margins changed
|
|
void changedMargins(const QMargins &margins);
|
|
|
|
private:
|
|
//! Ok
|
|
void confirmed();
|
|
|
|
QScopedPointer<Ui::CMarginsInput> ui;
|
|
};
|
|
} // ns
|
|
} // ns
|
|
|
|
#endif // guard
|