1 #ifndef WRAPPERPROPERTIES_H 2 #define WRAPPERPROPERTIES_H 10 #include <QHBoxLayout> 11 #include <QVBoxLayout> 12 #include <QGridLayout> 16 #include <QRadioButton> 18 #include <QCloseEvent> 19 #include <QListWidgetItem> 20 #include <QFileDialog> 25 #include <QButtonGroup> 26 #include <QKeySequence> 34 #include <QKeySequenceEdit> 36 #include <QMessageBox> 49 #include <QScrollArea> 50 #include <QInputDialog> 212 template <LIDL::SFX_TYPE Type,
class Param >
315 template <LIDL::SFX_TYPE Type,
class Param >
332 static QMetaObject::Connection *checkboxConn;
333 static QMetaObject::Connection *sliderConn;
334 static QMetaObject::Connection *comboConn;
336 if (checkboxConn !=
nullptr)
338 QObject::disconnect(*checkboxConn );
340 checkboxConn =
nullptr;
342 checkboxConn =
new QMetaObject::Connection;
352 for (
int i= 0; i < static_cast<int>(Param::ITER_END); i++)
357 if (sliderConn !=
nullptr)
359 QObject::disconnect(*sliderConn);
361 sliderConn =
nullptr;
363 sliderConn =
new QMetaObject::Connection;
371 if (comboConn !=
nullptr)
373 QObject::disconnect(*comboConn);
377 comboConn =
new QMetaObject::Connection;
383 qDebug() <<
"nigger nigger ni " << specialValue;
390 #endif // WRAPPERPROPERTIES_H
QSpinBox * _sliderMainSpin
Definition: wrapperproperties.h:175
Spoiler * _sliderSpoiler
Definition: wrapperproperties.h:170
QSpinBox * _sliderVACSpin
Definition: wrapperproperties.h:179
QLabel * _shortcutHint
Definition: wrapperproperties.h:149
QRadioButton * _radioAutoLoop
Definition: wrapperproperties.h:140
LIDL::Playback _playBackMode
Definition: wrapperproperties.h:160
QHBoxLayout * _radioLayout
Definition: wrapperproperties.h:135
void SetItemMainVolume(int newValue)
SetItemMainVolume Sets a sound item main volume.
Definition: wrapperproperties.cpp:669
QLabel * _soundListHint
Definition: wrapperproperties.h:118
SfxSettingsWidget * _compressorWidget
Definition: wrapperproperties.h:200
WrapperProperties(int mainOutput, int VACOutput, SoundWrapper *sound=nullptr, QWidget *parent=nullptr)
Constructor of the "Sound Entry Editor" UI.
Definition: wrapperproperties.cpp:398
CustomListWidgetItem * _selectedItem
Definition: wrapperproperties.h:124
SfxSettingsWidget * _distortionWidget
Definition: wrapperproperties.h:194
Spoiler * _sfxSpoiler
Definition: wrapperproperties.h:190
QRadioButton * _radioCancer
Definition: wrapperproperties.h:139
QGridLayout * _shortcutLayout
Definition: wrapperproperties.h:144
CustomListWidget * _soundListDisplay
Definition: wrapperproperties.h:117
QKeySequence * _shortcutSequence
Definition: wrapperproperties.h:147
void AddSoundFromUrl()
AddSoundFromUrl method.
Definition: wrapperproperties.cpp:681
void RadioPressed(int id)
RadioPressed sets the wrapper playback mode whenever radio is pressed.
Definition: wrapperproperties.cpp:599
QGroupBox * _shortcutGroup
Definition: wrapperproperties.h:143
QPushButton * _btnAddFromURL
Definition: wrapperproperties.h:122
QSlider * _sliderMain
Definition: wrapperproperties.h:174
QLabel * _shortcutWarning
Definition: wrapperproperties.h:150
void AddSound()
AddSound method.
Definition: wrapperproperties.cpp:546
The CustomShortcutEdit class.
Definition: CustomShortcutEdit.h:36
SfxSettingsWidget * _gargleWidget
Definition: wrapperproperties.h:204
void setUpConnection(SfxSettingsWidget *widget)
Set the connection of all the widgets (sliders,combo boxes etc), contained in the widget.
Definition: wrapperproperties.h:316
QLabel * _sliderLabelMain
Definition: wrapperproperties.h:176
QGridLayout * _sliderLayout
Definition: wrapperproperties.h:173
void signalAddDone(std::shared_ptr< SoundWrapper > sound)
The signal that is sent when adding a new wrapper.
QLabel * _sliderLabelVAC
Definition: wrapperproperties.h:180
QPushButton * _btnDone
Definition: wrapperproperties.h:155
int _VACOutput
Definition: wrapperproperties.h:163
Inherits QWidget.
Definition: wrapperproperties.h:79
QRadioButton * _radioSequential
Definition: wrapperproperties.h:137
SfxSettingsWidget * _chorusWidget
Definition: wrapperproperties.h:196
QGridLayout * _gLayout
Definition: wrapperproperties.h:128
QPushButton * _btnDelete
Definition: wrapperproperties.h:123
QGroupBox * _radioGroupBox
Definition: wrapperproperties.h:133
QButtonGroup * _sfxBtnGroup
Definition: wrapperproperties.h:189
SfxSettingsWidget * _flangerWidget
Definition: wrapperproperties.h:202
QPushButton * _btnAbort
Definition: wrapperproperties.h:156
QButtonGroup * _radioGroup
Definition: wrapperproperties.h:134
void ItemWasClicked(QListWidgetItem *item)
ItemWasClicked deals with connecting every slider and spinbox to the selected sound.
Definition: wrapperproperties.cpp:628
QGroupBox * _sliderGroup
Definition: wrapperproperties.h:172
QVBoxLayout * _vLayout
Definition: wrapperproperties.h:127
QSlider * _sliderVAC
Definition: wrapperproperties.h:178
QRadioButton * _radioAuto
Definition: wrapperproperties.h:138
void closeEvent(QCloseEvent *event)
Reimplemented to send a closed signal to the mainUI, so we can re-enable the widgets.
Definition: wrapperproperties.cpp:526
Inherits QObject.
Definition: soundwrapper.h:35
void closed()
This signal is emitted whenever the Sound Entry Editor window is closed.
QPushButton * _shortcutResetBtn
Definition: wrapperproperties.h:148
void signalEditDone(std::shared_ptr< SoundWrapper > sound)
The signal that is sent after editing an existing wrapper.
void SetItemVACVolume(int newValue)
SetItemVACVolume Sets a sound item VAC volume.
Definition: wrapperproperties.cpp:674
SFX_TYPE flags
Definition: EnumsAndStructs.h:66
int _mainOutput
Definition: wrapperproperties.h:162
SfxSettingsWidget * _echoWidget
Definition: wrapperproperties.h:198
QGridLayout * _sfxLayout
Definition: wrapperproperties.h:191
Playback
The Playback enum.
Definition: EnumsAndStructs.h:27
QPushButton * _btnAdd
Definition: wrapperproperties.h:121
void AddSoundFromDrop(QString)
AddSoundFromDrop.
Definition: wrapperproperties.cpp:573
void SetKeySequence(QKeySequence)
SetKeySequence Sets the key sequence of the line edit.
Definition: wrapperproperties.cpp:619
CustomShortcutEdit * _shortcutEdit
Definition: wrapperproperties.h:146
QTabWidget * _sfxTabWidget
Definition: wrapperproperties.h:192