/*--------------------------/
 ステージ選択時
/--------------------------*/
void StageSelectActionLayer::stageSelected(int tag){
    
    //ローカルレイヤー生成
    auto layer = Layer::create();
    
    //メニュー母体生成
    auto menu = Menu::create();
    menu->setPosition( Vec2::ZERO );
    //layer->addChild(menu);
    
    //各自追加
    drawMask(layer);
    drawExplain(layer);
    buttonYes(layer,menu,tag);
    buttonNo(layer,menu);
    
    layer->addChild(menu);
    
    //タッチの無効化
    isButton(false);
    
    //レイヤーに追加
    this->addChild(layer);
}
Exemple #2
0
NoSystemTrayDialog::NoSystemTrayDialog() :
	IconDialogBase(tr("Missing system tray"), QStyle::SP_MessageBoxQuestion)
{
	QLabel *label = new QLabel(tr(
		"%1 could not detect a system tray.  The system tray is the main point\n"
		"of interaction with SkypeRec.  Do you wish to use a small main window instead?"
	).arg(PROGRAM_NAME));
	vbox->addWidget(label);

	QPushButton *button = new QPushButton(tr("Yes, &always from now on"));
	connect(button, SIGNAL(clicked()), this, SLOT(buttonAlways()));
	hbox->addWidget(button);

	button = new QPushButton(tr("&Yes, this time"));
	button->setDefault(true);
	connect(button, SIGNAL(clicked()), this, SLOT(buttonYes()));
	hbox->addWidget(button);

	button = new QPushButton(tr("&Quit"));
	connect(button, SIGNAL(clicked()), this, SLOT(buttonDoQuit()));
	hbox->addWidget(button);

	show();
}
Exemple #3
0
QvvConfirmDeleteDialog::QvvConfirmDeleteDialog()
    : QDialog()
{
    cd.setupUi( this );

    activated_button = QDialogButtonBox::NoButton;
    connect( cd.buttonBox->button( QDialogButtonBox::Yes      ), SIGNAL(clicked()), this, SLOT(buttonYes())      );
    connect( cd.buttonBox->button( QDialogButtonBox::YesToAll ), SIGNAL(clicked()), this, SLOT(buttonYesToAll()) );
    connect( cd.buttonBox->button( QDialogButtonBox::No       ), SIGNAL(clicked()), this, SLOT(buttonNo())       );
    connect( cd.buttonBox->button( QDialogButtonBox::Cancel   ), SIGNAL(clicked()), this, SLOT(buttonCancel())   );
}