mirror of
https://github.com/LMMS/lmms.git
synced 2026-03-11 18:46:41 -04:00
Adjust the dialogs of most audio driver settings dialogs by showing them in a QGroupBox and adjusting their layouts. All dialogs now use `QFormLayout` to layout their labels and input widgets. Technical details ------------------ Introduce `AudioDeviceSetupGroupWidget` which is intended to functionally replace `AudioDeviceSetupWidget` in the long run. This is likely a temporary replacement in the sense that `AudioDeviceSetupGroupWidget` will be renamed to `AudioDeviceSetupWidget` once the latter has been replaced everywhere. Both classes are very similar and the only difference is that the former inherits from `QGroupBox` instead of `TabWidget`. Adjust the using of AswMap so that it is now defined as a map from `QString` to `AudioDeviceSetupGroupWidget`. Use `QFormLayout` to layout the widgets of the setup dialogs instead of hard coding geometries and placement. TODOs ------ Adjust the widgets for the SoundIO and SndIo cases. These will be a bit more effort as they are not compiled on my machine.
50 lines
1.5 KiB
C++
50 lines
1.5 KiB
C++
/*
|
|
* AudioDeviceSetupGroupWidget.h - Base class for audio device setup widgets using group box
|
|
*
|
|
* Copyright (c) 2004-2015 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
|
* Copyright (c) 2004-2015 Michael Gregorius
|
|
*
|
|
* This file is part of LMMS - https://lmms.io
|
|
*
|
|
* This program 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 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This program 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 this program (see COPYING); if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
* Boston, MA 02110-1301 USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef LMMS_GUI_AUDIO_DEVICE_SETUP_GROUP_WIDGET_H
|
|
#define LMMS_GUI_AUDIO_DEVICE_SETUP_GROUP_WIDGET_H
|
|
|
|
#include <QGroupBox>
|
|
|
|
namespace lmms::gui
|
|
{
|
|
|
|
class AudioDeviceSetupGroupWidget : public QGroupBox
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
AudioDeviceSetupGroupWidget( const QString & _caption, QWidget * _parent );
|
|
|
|
~AudioDeviceSetupGroupWidget() override = default;
|
|
|
|
virtual void saveSettings() = 0;
|
|
|
|
virtual void show();
|
|
};
|
|
|
|
} // namespace lmms::gui
|
|
|
|
#endif // LMMS_GUI_AUDIO_DEVICE_SETUP_GROUP_WIDGET_H
|