Empezando la configuración mediante el GUI
This commit is contained in:
parent
02fa9827c2
commit
5f27d17d8a
8 changed files with 256 additions and 84 deletions
|
|
@ -73,7 +73,7 @@ libreMediaServerAudio::libreMediaServerAudio(QStringList args, QWidget *parent)
|
|||
// Conectamos los menus
|
||||
connect(ui.actionOpen_conf, SIGNAL(triggered()), this, SLOT(openFile()));
|
||||
connect(ui.actionSave_conf, SIGNAL(triggered()), this, SLOT(saveFile()));
|
||||
connect(ui.actionChange_Media_Path, SIGNAL(triggered()), this, SLOT(ChangeMediaPath()));
|
||||
connect(ui.action_Settings, SIGNAL(triggered()), this, SLOT(settings()));
|
||||
connect(ui.actionLaunch_OLA_Setup, SIGNAL(triggered()), this, SLOT(olasetup()));
|
||||
|
||||
connect(Settings::getInstance(), SIGNAL( registerUniverse(int) ),
|
||||
|
|
@ -132,19 +132,10 @@ void libreMediaServerAudio::saveFile()
|
|||
// save(&file);
|
||||
}
|
||||
|
||||
// Change Media path
|
||||
void libreMediaServerAudio::ChangeMediaPath()
|
||||
void libreMediaServerAudio::settings()
|
||||
{
|
||||
QFileDialog dialog(this);
|
||||
dialog.setFileMode(QFileDialog::Directory);
|
||||
QStringList fileNames;
|
||||
if (!dialog.exec())
|
||||
return;
|
||||
fileNames = dialog.selectedFiles();
|
||||
QString file = fileNames.at(0);
|
||||
Settings::getInstance()->setPathMedia(file);
|
||||
QString desc = tr("Media Path Changed to: %1").arg(file);
|
||||
qDebug(desc.toLatin1().constData());
|
||||
SettingsDialog sd = new SettingsDialog();
|
||||
sd.show();
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -159,9 +150,6 @@ void libreMediaServerAudio::olasetup()
|
|||
view->show();
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse the dmx information
|
||||
*/
|
||||
void libreMediaServerAudio::dmxInput(int layer, int channel, int value)
|
||||
{
|
||||
// This qDebug slows all the program. Uncomment only for debugging purpouse and comment again in normal use
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue