mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Renaming to ..component*
* mainkeypadareacomponent * audiovolumecomponent * audiosetupcomponent
This commit is contained in:
committed by
Roland Winklmeier
parent
11e9b37326
commit
efb89dd7be
61
src/blackgui/components/audiovolumecomponent.h
Normal file
61
src/blackgui/components/audiovolumecomponent.h
Normal file
@@ -0,0 +1,61 @@
|
||||
/* Copyright (C) 2013
|
||||
* 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_AUDIOVOLUME_H
|
||||
#define BLACKGUI_AUDIOVOLUME_H
|
||||
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
#include "enableforruntime.h"
|
||||
|
||||
namespace Ui { class CAudioVolumeComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
|
||||
//! Audio volume, mixer
|
||||
class CAudioVolumeComponent :
|
||||
public QFrame,
|
||||
public CEnableForRuntime
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CAudioVolumeComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CAudioVolumeComponent();
|
||||
|
||||
protected:
|
||||
//! \copydoc CEnableForRuntime::runtimeHasBeenSet
|
||||
void runtimeHasBeenSet() override;
|
||||
|
||||
private slots:
|
||||
//! Mute toggle
|
||||
void ps_onMuteChanged(bool muted);
|
||||
|
||||
//! Volumes changed
|
||||
void ps_onVolumeChanged(QList<qint32> volumes);
|
||||
|
||||
//! Requested windows mixer
|
||||
void ps_onWindowsMixer();
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CAudioVolumeComponent> ui;
|
||||
|
||||
};
|
||||
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user