mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
refs #841, UI to set text message settings and added this UI to textmessage component
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b2e53d64f1
commit
062f0671ea
52
src/blackgui/components/settingstextmessageinlinecomponent.h
Normal file
52
src/blackgui/components/settingstextmessageinlinecomponent.h
Normal file
@@ -0,0 +1,52 @@
|
||||
/* 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 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_SETTINGSTEXTMESSAGEINLINECOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_SETTINGSTEXTMESSAGEINLINECOMPONENT_H
|
||||
|
||||
|
||||
#include "blackgui/settings/textmessagesettings.h"
|
||||
#include <QScopedPointer>
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui { class CSettingsTextMessageInlineComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* Settings for text messages
|
||||
*/
|
||||
class CSettingsTextMessageInlineComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSettingsTextMessageInlineComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CSettingsTextMessageInlineComponent();
|
||||
|
||||
private:
|
||||
//! Settings have been changed
|
||||
void settingsChanged();
|
||||
|
||||
//! Change the settings
|
||||
void changeSettings();
|
||||
|
||||
QScopedPointer<Ui::CSettingsTextMessageInlineComponent> ui;
|
||||
BlackMisc::CSetting<BlackGui::Settings::TextMessageSettings> m_settings { this, &CSettingsTextMessageInlineComponent::settingsChanged }; //!< settings changed
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user