Exemple #1
0
/* Show "About Tepsonic" dialog */
void MainWindow::aboutTepSonic()
{
    QMessageBox aboutDlg;

    QStringList developers;
    developers << QString::fromUtf8("Daniel Vrátil");
    QStringList artwork;
    artwork << QString::fromUtf8("Matěj Zvěřina")
            << QString::fromUtf8("Michael Ruml");

    const QString str = tr("<h1>%1</h1>"
                  "Version %2"
                  "<p><a href=\"http://danvratil.github.io/TepSonic/\">http://danvratil.github.io/TepSonic/</a></p>"
                  "<p>This program is free software; you can redistribute it and/or modify it under the terms of "
                  "the GNU General Public License as published by the Free Software Foundation; either version "
                  "2 of the License, or (at your option) any later version.</p>"
                  "<h2>Developers:</h2><p>%3</p>"
                  "<h2>Artwork:</h2><p>%4</p>"
                  "<p>&copy; 2009 - 2013 <a href=\"mailto:[email protected]\">Daniel Vrátil</a></p>")
                  .arg(QApplication::applicationName(),
                       QApplication::applicationVersion(),
                       developers.join(QLatin1String(", ")),
                       artwork.join(QLatin1String(", ")));
    aboutDlg.about(this, tr("About TepSonic"), str);
}
Exemple #2
0
void PEAC::on_pushButton_3_clicked()
{
    QMessageBox msgBox;
    msgBox.about(this,"About PEAC","<p>Made By: two7dev</p>\n<p>This is for serious offline coding.</p>\n<p>If u just want answers, dont make a script for this,</p>\n<p> just <a href='http://bit.ly/LrPx68'>google</a> it</p>\n<p>For bugs, <a href='mailto:[email protected]'>Contact Here</a></p>");

    //msgBox.exec();
}
Exemple #3
0
void PicDealMain::on_IDM_ABORT_triggered()
{
    QMessageBox box;
    box.setWindowIcon(QIcon(":/resources/PicDeal.ico"));
    box.about(this,QString::fromUtf8("关于"),QString::fromUtf8("PicDeal  v1.0.1\n简单的图片处理程序"));
    return;
}
void MainWindow::on_actionHelp_triggered()
{
    QString txt = "Created by \"Nadtoka A.A inc.\"LTD. 2016 - "
                  "Coursework 1st course -\"Structer and algorithm\"-";
    QMessageBox s;
    s.about(this,"About",txt);

}
void CalcInterface::on_btn_root_clicked()
{
    QString power = ui->pow_spin->text();
    QString index = ui->ind_spin->text();
    QString number = ui->editor_line->text();
    QString res = control.execute_calc_command(com_Root, number + "|" + power + "|" + index);
    QMessageBox box;
    box.about(0, "Root", "Result: " + res);
}
Exemple #6
0
//envia resposta
void MainWindow::on_pushButton_enviar_clicked()

{
    QMessageBox a;
    if(mainquiz->Perguntas[this->questaoAtual].getResposta(resposta) == true){
        a.about(this, "Correcao" , "correto");
        //mainquiz->pontuacao++;
    }else{
        a.about(this, "Correção" , "incorreto");
    }

    this->questaoAtual ++;

    //para verificar o debug
    std::cout << (int)mainquiz->Perguntas.size()<< std::endl;
    std::cout << questaoAtual << std::endl;

    //verifica se a quantidade de questoes foi preencrida
    if(questaoAtual != (int)mainquiz->Perguntas.size()){
    on_pushButton_comecar_clicked();
    }else{
        close();
    }
}
Exemple #7
0
/*
 About box to show information about PhotosDD library
 */
void PhotosDD::about(QWidget* parent = 0) {
	QMessageBox aboutBox;
	aboutBox.setWindowIcon(PhotosDD::applicationIcon());
	aboutBox.about(
			parent,
			("About ") + PhotosDD::applicationName(),
			("<p align=\"right\"><h1>") + PhotosDD::applicationName()
					+ ("</h1></p>")
					+ ("<p align=\"left\"><font size=\"2\" color=\"grey\">Version ")
					+ PhotosDD::applicationVersion() + ("</font>")
					+ ("<p align=\"left\">(C) 2011 ")
					+ PhotosDD::organizationName() + ("</p>")
					+ ("<p><a href=\"" + PhotosDD::applicationDomain() + "\">")
					+ ("Homepage</a></p>") + ("<br/><br/><p>")
					+ ("English translation: FalseCAM") + ("</p>"));
}
Exemple #8
0
void MainWindow::on_playTurnButton_clicked()
{
    if(!this->game->PlayTurn(this->ui->salaryLabel->text().toDouble(),
                         new CoalTypeA(this->ui->coalAExtractionAmountLabel->text().toDouble(),0),
                         new CoalTypeB(this->ui->coalBExtractionAmountLabel->text().toDouble(),0),
                         new CoalTypeA(this->ui->coalASaleAmountLabel->text().toDouble(),this->ui->coalAPriceInput->text().toDouble()),
                         new CoalTypeB(this->ui->coalBSaleAmountLabel->text().toDouble(),this->ui->coalBPriceInput->text().toDouble())))
    {
        this->ui->windowPages->setCurrentWidget(this->ui->blankPage);
        QMessageBox *msg = new QMessageBox();
        msg->about(this,"KONIEC","Przegrałeś! \nTwój wynik: "+QString::number(this->game->GetPlayer()->GetScore()));

    }else
    {
        this->refreshContent();
        if(this->game->EndGame())
            showStartPage();
    }
}
Exemple #9
0
/** moveTile
	* @param piece1 The GUITile being moved */
void GraphicsWindow::moveTile(GUITile* piece1)
{
if(!b->solved())
{
	int zeroX = 0;
	int zeroY = 0;
	int tempX = piece1->getxCord();
	int tempY = piece1->getyCord();
	int zero_index = 0;

   int value_ = piece1->getValue();
   b->move(value_);

	for(int j=0; j< b->getSize(); j++)
	{
		if(tiles[j]->getValue() == 0)
		{
			zeroX = tiles[j]->getxCord();
			zeroY = tiles[j]->getyCord();
			zero_index = j;
		}
	}	
	
	if(tempX == zeroX || tempY == zeroY)
	{
		if((tempX+100) == zeroX || (tempX-100) == zeroX)
		{


//			piece1->setPos(zeroX, zeroY);	
	//		piece1->setxCord(zeroX);
		//	piece1->setyCord(zeroY);


			piece1->setDestinationX(zeroX);
			piece1->setDestinationY(zeroY);
			piece1->setVelocityX((zeroX-tempX)/10);
			piece1->setVelocityY((zeroY-tempY)/10);
			piece1->getTimer()->start();
//			piece1->moveTilesAnimate();

//		piece1->setxCord(zeroX);
//		piece1->setyCord(zeroY);


			tiles[zero_index]->setPos(tempX, tempY);
			tiles[zero_index]->setxCord(tempX);
			tiles[zero_index]->setyCord(tempY);
   
//			QPointF p(zeroX, zeroY);
//			QRectF r(piece1);
//			r.moveTo(p);
//			setRect( r );
		}
		
		else if((tempY+100) == zeroY || (tempY-100) == zeroY)
		{
			
//			piece1->setPos(zeroX, zeroY);	
//			piece1->setxCord(zeroX);
//			piece1->setyCord(zeroY);


			piece1->setDestinationX(zeroX);
			piece1->setDestinationY(zeroY);
			piece1->setVelocityY((zeroY-tempY)/10);
			piece1->setVelocityX((zeroX-tempX)/10);
			piece1->getTimer()->start();

/*
			timer = new QTimer(this);
			timer->setInterval(1);
//			connect(timer, SIGNAL(timeout()), this, SLOT(handletimer()));
			timer->start();
			while (true)
				{
					if((tempY+100) == zeroY)
					{
			 			piece1->setPos(tempX, tempY+1);
			 		}
					if((tempY-100) == zeroY)
					{
						piece1->setPos(tempX, tempY-1);				
					}
				counter++;
				if(counter == 100)
				{
					timer->stop();
					break;
				}
			}

//			piece1->getTimer()->start();
//			piece1->moveTilesAnimate();

			for(int i=0; i<100; i++)
			{
				if((tempY+100) == zeroY)
				{
					piece1->setPos(tempX+i, tempY);
				}
				else if((tempY-100) == zeroY)
				{
					piece1->setPos(tempX-i, tempY);				
				}
				wait(1);
			}
*/
//			piece1->setxCord(zeroX);
//			piece1->setyCord(zeroY);

			tiles[zero_index]->setPos(tempX, tempY);
			tiles[zero_index]->setxCord(tempX);
			tiles[zero_index]->setyCord(tempY);

		}
	
	}
		

	zeroX = 0;
	zeroY = 0;
	tempX = 0;
	tempY = 0;
	zero_index = 0;
}

if (b->solved())
{
	QMessageBox messagebox;
	messagebox.about(0, "Congratulations!", "You have won the game.");
	messagebox.setFixedSize(500,200);
}

}
Exemple #10
0
void MainWindow::on_actionAbout_triggered()
{
    QMessageBox *msg = new QMessageBox();
    msg->about(this,"Gierek","Prosta gra symulująca kopalnię");
}
void MainWindow::on_actionAbout_triggered()
{
    QMessageBox* dlg;
    dlg->about(this,"About Seeded Segmentation","This application is the implementation of \"Laplacian"
               "Coordinates for Seeded Image Segmentation\", Casaca et al., 2014.\n Author: Armine Vardazaryan");
}
void CalcInterface::on_btn_arg_rad_clicked()
{
    QString res = control.execute_calc_command(com_Arg_rad, ui->editor_line->text());
    QMessageBox box;
    box.about(0, "Arg_rad", "Result: " + res);
}
Exemple #13
0
void DetaDoc::AboutProgramm()
{
	QMessageBox *box = new QMessageBox;
	box->about(this, tr("About"), tr("Diplom Work Shagin Kriill"));
}
Exemple #14
0
void MainWindow::about(void)
{
    QMessageBox mbox;

    mbox.about(this, tr("关于"), tr("版本号: " VERSION));
}
 /**
 funzione che apre un dialog informativo
 */
 void videoplayer::about(void)
 {
    QMessageBox msgbox;
    msgbox.about(this, tr("Info MediaPlayer"),tr("<center><b>Mediaplayer</b> implementato"
    " utilizzando Qt5, openGL e ffmpeg realizzato da Gagliardelli Luca, Renzi Matteo e Esposito Giovanni</center>"));
 }