Esempio n. 1
0
StreamDialog::StreamDialog(QWidget *parent, QStringList directory, QStringList currentStreams) 
	: QDialog(parent, Qt::WindowCloseButtonHint | Qt::WindowTitleHint)
{
	m_currentStreams = currentStreams;

	parseAvailableServices(directory);

	layoutWindow();

	connect(m_addButton, SIGNAL(clicked()), this, SLOT(onAddStreams()));
	connect(m_removeButton, SIGNAL(clicked()), this, SLOT(onRemoveStreams()));

	connect(m_okButton, SIGNAL(clicked()), this, SLOT(accept()));
	connect(m_cancelButton, SIGNAL(clicked()), this, SLOT(reject()));

	connect(m_upButton, SIGNAL(clicked()), this, SLOT(onMoveUp()));
	connect(m_downButton, SIGNAL(clicked()), this, SLOT(onMoveDown()));

	connect(m_currentList, SIGNAL(itemSelectionChanged()), this, SLOT(onCurrentStreamsSelectionChanged()));
 
	m_upButton->setEnabled(false);
	m_downButton->setEnabled(false);

	setWindowTitle("Video Stream Selection");
} 
Esempio n. 2
0
/**
 * \brief    Emet le signal que le bouton move down à été clické
 */
void DocumentEditorRow::moveDown() {
    emit onMoveDown(this);
}