2015-07-26 21:39:49 +00:00
|
|
|
#include "TestDialog.h"
|
|
|
|
#include "ui_TestDialog.h"
|
2016-09-01 01:42:12 +00:00
|
|
|
#include <Core/GameProject/CGameProject.h>
|
2015-12-15 02:07:22 +00:00
|
|
|
|
2016-03-27 19:09:38 +00:00
|
|
|
TestDialog::TestDialog(QWidget *pParent)
|
|
|
|
: QDialog(pParent)
|
|
|
|
, ui(new Ui::TestDialog)
|
2015-07-26 21:39:49 +00:00
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2016-09-01 01:42:12 +00:00
|
|
|
connect(ui->spinBox, SIGNAL(valueChanged(int)), this, SLOT(OnSpinBoxChanged(int)));
|
|
|
|
connect(ui->spinBox_2, SIGNAL(valueChanged(int)), this, SLOT(OnSpinBoxChanged(int)));
|
|
|
|
connect(ui->pushButton, SIGNAL(clicked()), this, SLOT(OnFind()));
|
2015-07-26 21:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
TestDialog::~TestDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|
2016-09-01 01:42:12 +00:00
|
|
|
|
|
|
|
void TestDialog::OnSpinBoxChanged(int NewValue)
|
|
|
|
{
|
|
|
|
if (sender() != ui->spinBox) ui->spinBox->setValue(NewValue);
|
|
|
|
if (sender() != ui->spinBox_2) ui->spinBox_2->setValue(NewValue);
|
|
|
|
}
|
|
|
|
|
|
|
|
void TestDialog::OnFind()
|
|
|
|
{
|
|
|
|
u32 SoundID = ui->spinBox->value();
|
|
|
|
CGameProject *pProj = CGameProject::ActiveProject();
|
|
|
|
|
|
|
|
if (pProj)
|
|
|
|
{
|
|
|
|
CAudioManager *pAudioMgr = pProj->AudioManager();
|
|
|
|
pAudioMgr->LogSoundInfo(SoundID);
|
|
|
|
}
|
|
|
|
}
|