DistroMesas::DistroMesas ( BtCompany *emp, QWidget *parent ) : BlWidget ( emp, parent ) { setupUi(this); m_background = ""; g_escala = 200; g_bloqueo = TRUE; g_selectMode = TRUE; g_joinTables = FALSE; mui_borrar -> setVisible(!g_bloqueo); mui_cambiar_imagen -> setVisible(!g_bloqueo); mui_mesa6 -> setVisible(!g_bloqueo); mui_cambiar_nombre -> setVisible(!g_bloqueo); mui_eliminarpantalla -> setVisible (!g_bloqueo); mui_nuevapantalla -> setVisible (!g_bloqueo); mui_table_move -> setVisible (g_bloqueo); importXML(""); QTimer *timer = new QTimer(this); connect(timer, SIGNAL(timeout()), this, SLOT(repaint())); timer->start(4000); }
void MainWindow::connectSignals() { //connect command buttons connect(s_button.addCurve,SIGNAL(clicked()),SLOT(newCurve())); connect(s_button.removeCurve,SIGNAL(clicked()),SLOT(removeCurve())); connect(s_button.duplicateCurves,SIGNAL(clicked()),SLOT(duplicateCurves())); #ifdef COMPLETE_FAST_SELECTION connect(s_button.removeAllCurves,SIGNAL(clicked()),SLOT(removeAllCurvesWithDialog())); connect(s_button.exportDigest,SIGNAL(clicked()),SLOT(exportDigestCurve())); connect(s_button.exportXML ,SIGNAL(clicked()),SLOT(exportXML())); connect(s_button.importXML,SIGNAL(clicked()),SLOT(importXML())); connect(s_button.showXML ,SIGNAL(clicked()),SLOT(showXML())); #endif //If the sample rate change i need to reset the audio stream // connect(m_plotTime->getDigestCurve(),SIGNAL(sampleRateChanged(qreal)),this,SLOT(sampleRateChange(qreal))); //connect digest curve to handle update in the plots Q_ASSERT(connect(m_plotTime->getDigestCurve(),SIGNAL(dataChanged()),this,SLOT(digestCurveChanged()))); //Connect position slider Q_ASSERT(connect(m_audioPlayer,SIGNAL(streamTimePositionChanged(qreal)) ,this,SLOT(streamPositionUpdate(qreal)))); }
bool VSFileXMLSerializer::importXML( const std::string &path ) { return importXML( path, VSFileSystem::UnknownFile ); }