Beispiel #1
0
MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
    , _timerVisible(true)
    , _vuPlaying(false)
{
    ui->setupUi(this);

    ui->_fadeDuration->setValue(1.5);
    ui->_fadeDuration->setSingleStep(.1);
    ui->_yellowThreshold->setValue(ui->_timer->yellowThreshold());
    ui->_redThreshold->setValue(ui->_timer->redThreshold());
    recalcLabels();

    // animated timer section
    connect(ui->_start, SIGNAL(clicked()), this, SLOT(onStartClicked()));
    connect(ui->_stop, SIGNAL(clicked()), this, SLOT(onStopClicked()));
    connect(ui->_pause, SIGNAL(clicked()), this, SLOT(onPauseClicked()));
    connect(ui->_fade, SIGNAL(clicked()), this, SLOT(onFadeClicked()));
    connect(ui->_yellowThreshold, SIGNAL(valueChanged(int)), this, SLOT(onYellowChanged(int)));
    connect(ui->_redThreshold, SIGNAL(valueChanged(int)), this, SLOT(onRedChanged(int)));

    // vu meter section
    connect(ui->_dimVU, SIGNAL(clicked()), this, SLOT(onDimVUClicked()));
    connect(ui->_playVU, SIGNAL(clicked()), this, SLOT(onPlayVUClicked()));
    connect(ui->_vuMeter, SIGNAL(selectionChanged(float)), this, SLOT(onSelectionChanged(float)));
}
ICentPage* ChooseScenarioGroupPageController::createResearcherPage()
{
	m_researcherPage = new ChooseScenarioGroupPage;
	CENT::connect(m_researcherPage, SIGNAL(startClicked()), this, SLOT(onStartClicked()));
	CENT::connect(m_researcherPage, SIGNAL(scenarioGroupChanged(const QString&)), this, SIGNAL(scenarioGroupChanged(const QString&)));
	return m_researcherPage;
}
Beispiel #3
0
Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);

    connect(ui->startBtn, SIGNAL(clicked()), this, SLOT(onStartClicked()));
}
Beispiel #4
0
		/**
		 * check the parameter
		 * @param argc number of parameter that to be passed
		 * @param argv the parameter value that be passed
		 */
		void checkParameter(int argc, char* argv[])
		{
			// check the number of argument, if the argument is more than 1
			if (argc > 1)
			{
				// set the second argument as file path
				_filePath = string(argv[1]);

				// press start button
				onStartClicked(_start_btn, _buffer);
			}
		}