11 changed files with 0 additions and 383 deletions
@ -1,56 +0,0 @@ |
|||||||
/*=====================================================================
|
|
||||||
|
|
||||||
QGroundControl Open Source Ground Control Station |
|
||||||
|
|
||||||
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
|
|
||||||
|
|
||||||
This file is part of the QGROUNDCONTROL project |
|
||||||
|
|
||||||
QGROUNDCONTROL is free software: you can redistribute it and/or modify |
|
||||||
it under the terms of the GNU General Public License as published by |
|
||||||
the Free Software Foundation, either version 3 of the License, or |
|
||||||
(at your option) any later version. |
|
||||||
|
|
||||||
QGROUNDCONTROL is distributed in the hope that it will be useful, |
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
GNU General Public License for more details. |
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License |
|
||||||
along with QGROUNDCONTROL. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
======================================================================*/ |
|
||||||
|
|
||||||
/**
|
|
||||||
* @file |
|
||||||
* @brief Implementation of AudioOutputWidget |
|
||||||
* @author Lorenz Meier <mavteam@student.ethz.ch> |
|
||||||
* |
|
||||||
*/ |
|
||||||
|
|
||||||
#include "AudioOutputWidget.h" |
|
||||||
#include "ui_AudioOutputWidget.h" |
|
||||||
|
|
||||||
AudioOutputWidget::AudioOutputWidget(QWidget *parent) : |
|
||||||
QWidget(parent), |
|
||||||
m_ui(new Ui::AudioOutputWidget) |
|
||||||
{ |
|
||||||
m_ui->setupUi(this); |
|
||||||
} |
|
||||||
|
|
||||||
AudioOutputWidget::~AudioOutputWidget() |
|
||||||
{ |
|
||||||
delete m_ui; |
|
||||||
} |
|
||||||
|
|
||||||
void AudioOutputWidget::changeEvent(QEvent *e) |
|
||||||
{ |
|
||||||
QWidget::changeEvent(e); |
|
||||||
switch (e->type()) { |
|
||||||
case QEvent::LanguageChange: |
|
||||||
m_ui->retranslateUi(this); |
|
||||||
break; |
|
||||||
default: |
|
||||||
break; |
|
||||||
} |
|
||||||
} |
|
@ -1,58 +0,0 @@ |
|||||||
/*=====================================================================
|
|
||||||
|
|
||||||
QGroundControl Open Source Ground Control Station |
|
||||||
|
|
||||||
(c) 2009, 2010 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
|
|
||||||
|
|
||||||
This file is part of the QGROUNDCONTROL project |
|
||||||
|
|
||||||
QGROUNDCONTROL is free software: you can redistribute it and/or modify |
|
||||||
it under the terms of the GNU General Public License as published by |
|
||||||
the Free Software Foundation, either version 3 of the License, or |
|
||||||
(at your option) any later version. |
|
||||||
|
|
||||||
QGROUNDCONTROL is distributed in the hope that it will be useful, |
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
||||||
GNU General Public License for more details. |
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License |
|
||||||
along with QGROUNDCONTROL. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
======================================================================*/ |
|
||||||
|
|
||||||
/**
|
|
||||||
* @file |
|
||||||
* @brief Definition of class AudioOutputWidget |
|
||||||
* @author Lorenz Meier <mavteam@student.ethz.ch> |
|
||||||
* |
|
||||||
*/ |
|
||||||
|
|
||||||
#ifndef AUDIOOUTPUTWIDGET_H |
|
||||||
#define AUDIOOUTPUTWIDGET_H |
|
||||||
|
|
||||||
#include <QWidget> |
|
||||||
|
|
||||||
namespace Ui |
|
||||||
{ |
|
||||||
class AudioOutputWidget; |
|
||||||
} |
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Widget to control audio/volume/mute |
|
||||||
*/ |
|
||||||
class AudioOutputWidget : public QWidget |
|
||||||
{ |
|
||||||
Q_OBJECT |
|
||||||
public: |
|
||||||
AudioOutputWidget(QWidget *parent = 0); |
|
||||||
~AudioOutputWidget(); |
|
||||||
|
|
||||||
protected: |
|
||||||
void changeEvent(QEvent *e); |
|
||||||
|
|
||||||
private: |
|
||||||
Ui::AudioOutputWidget *m_ui; |
|
||||||
}; |
|
||||||
|
|
||||||
#endif // AUDIOOUTPUTWIDGET_H
|
|
@ -1,69 +0,0 @@ |
|||||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||||
<ui version="4.0"> |
|
||||||
<class>AudioOutputWidget</class> |
|
||||||
<widget class="QWidget" name="AudioOutputWidget"> |
|
||||||
<property name="geometry"> |
|
||||||
<rect> |
|
||||||
<x>0</x> |
|
||||||
<y>0</y> |
|
||||||
<width>195</width> |
|
||||||
<height>95</height> |
|
||||||
</rect> |
|
||||||
</property> |
|
||||||
<property name="windowTitle"> |
|
||||||
<string>Form</string> |
|
||||||
</property> |
|
||||||
<layout class="QGridLayout" name="gridLayout"> |
|
||||||
<property name="margin"> |
|
||||||
<number>6</number> |
|
||||||
</property> |
|
||||||
<item row="0" column="2" colspan="2"> |
|
||||||
<spacer name="horizontalSpacer"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Horizontal</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>53</width> |
|
||||||
<height>20</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item row="1" column="0" colspan="4"> |
|
||||||
<spacer name="verticalSpacer"> |
|
||||||
<property name="orientation"> |
|
||||||
<enum>Qt::Vertical</enum> |
|
||||||
</property> |
|
||||||
<property name="sizeHint" stdset="0"> |
|
||||||
<size> |
|
||||||
<width>180</width> |
|
||||||
<height>43</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</spacer> |
|
||||||
</item> |
|
||||||
<item row="0" column="0"> |
|
||||||
<widget class="QPushButton" name="muteButton"> |
|
||||||
<property name="text"> |
|
||||||
<string>Mute</string> |
|
||||||
</property> |
|
||||||
<property name="icon"> |
|
||||||
<iconset resource="../../qgroundcontrol.qrc"> |
|
||||||
<normaloff>:/files/images/status/audio-volume-muted.svg</normaloff>:/files/images/status/audio-volume-muted.svg</iconset> |
|
||||||
</property> |
|
||||||
<property name="iconSize"> |
|
||||||
<size> |
|
||||||
<width>16</width> |
|
||||||
<height>16</height> |
|
||||||
</size> |
|
||||||
</property> |
|
||||||
</widget> |
|
||||||
</item> |
|
||||||
</layout> |
|
||||||
</widget> |
|
||||||
<resources> |
|
||||||
<include location="../../qgroundcontrol.qrc"/> |
|
||||||
</resources> |
|
||||||
<connections/> |
|
||||||
</ui> |
|
Loading…
Reference in new issue