void mainwid::init_buttons(){ start = new QPushButton(tr("Start")); stop = new QPushButton(tr("Stop")); pause = new QPushButton(tr("Pause"));//Give way. config = new QPushButton(tr("Set Timer")); pause->setEnabled(false); stop->setEnabled(false); connect(start,SIGNAL(clicked()),this,SLOT(push_start())); connect(stop,SIGNAL(clicked()),this,SLOT(push_stop())); connect(pause,SIGNAL(clicked()),this,SLOT(push_pause())); connect(config,SIGNAL(clicked()),this,SLOT(push_setting())); }
void push_core_functions(){ int i; for(i=0; core_functions[i] != NULL; i++){ //vsp should be the start location of the function push_symbol(fn_names[i],vsp); //push the function push_start(); push_call(core_functions[i]); push_term(); //vsp should now be the stack location just after the function. //This space should later be filled by the start of the users //program. exec_entry_pt = vsp; } }
CLogoDialog::CLogoDialog(QWidget *parent) : QDialog(parent), ui(new Ui::CLogoDialog) { ui->setupUi(this); m_pDb=NULL; m_bStart=false; m_image.load(":/images/res/logo.png"); fill_users(); fill_db_path(); setFixedSize(m_image.width(),m_image.height()); //white label text QPalette palette(ui->label_user->palette()); palette.setColor(QPalette::WindowText,Qt::white); ui->label_user->setPalette(palette); ui->label_path->setPalette(palette); connect(ui->pushButtonStart,SIGNAL(clicked()),this,SLOT(push_start())); connect(ui->pushButtonBrowseFile,SIGNAL(clicked()),this,SLOT(browse_file())); connect(ui->pushButtonHelp,SIGNAL(clicked()),this,SLOT(help())); }