Пример #1
0
Dialog::Dialog(tags_t & t, QWidget * parent, Qt::WindowFlags f ) : QDialog(parent, f), tags(t)
{
  setupUi(this);

  connect(btnOpen , SIGNAL(clicked()), this, SLOT(onOpenProj()) );
  connect(btnRun  , SIGNAL(clicked()), this, SLOT(onRunProj())  );
  connect(btnStop , SIGNAL(clicked()), this, SLOT(onStopProj()) );
  connect(btnClose, SIGNAL(clicked()), this, SLOT(onCloseProj()));
  connect(btnConf , SIGNAL(clicked()), this, SLOT(onBtnConf())  );
  connect(btnExit , SIGNAL(clicked()), this, SLOT(onBtnExit())  ); 
  
  updateButtons();
  
}
Пример #2
0
void GameMissionSet::BtnCall(Ref* pSender,Widget::TouchEventType type)
{
	int tag = ((Button*)pSender)->getTag();
	switch (type)
	{
	case Widget::TouchEventType::ENDED:
		switch (tag)
		{
			case GameMissionSetBtnStart:
				onBtnStart();
				break;
			case GameMissionSetBtnExit:
				onBtnExit();
				break;
		default:
			break;
		}
		break;
	default:
		break;
	}
}