示例#1
0
文件: aviz.cpp 项目: simphony/AViz
// Help callback function
void AViz::distribute()
{
    // Launch a message box
    MessageBox * mb = new MessageBox(SHORT_DISTRIBUTE_STRING, this);
    mb->show();

    // Print the full distribution conditions
    printf("%s\n", DISTRIBUTE_STRING );
}
示例#2
0
文件: aviz.cpp 项目: simphony/AViz
// Help callback function
void AViz::license() {
    // Launch a message box
    MessageBox *mb = new MessageBox(SHORT_LICENSE_STRING, this);
    mb->show();

    // Print the full license conditions
    printf("%s\n", LICENSE_STRING );
    printf("%s\n", DISTRIBUTE_STRING );
}
示例#3
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    MessageBox newMessage;
      newMessage.show();

    return a.exec();
}
示例#4
0
int  main(int argc, char * argv[])
{
    QApplication app(argc,argv);
    QFont f("ZYSong18030",12);    QApplication::setFont(f);
    
    QTranslator translator;
    translator.load("messagebox_zh");
    app.installTranslator(&translator);
    
    MessageBox msg;
    msg.show();
    return app.exec();
}
示例#5
0
void MainWindow::ShowAsks(User frd)
{

    QMessageBox::StandardButton reply;
    reply = QMessageBox::question(this, "Someone want to talk to you",
                                  frd.name + " want to talk to you, agree?",
                                  QMessageBox::Yes | QMessageBox::No);
    if (reply == QMessageBox::Yes)
    {
        server->OkToTalk(frd);

        MessageBox* mb = new MessageBox();
        connect( mb,SIGNAL( MsgBoxClosed(int) ),this,SLOT( DeleteMsgBox(int) ) );

        int port = mb->BindPort();
        users.data[ 0 ].port = port;
        frd.mid = mbs.size();

        users.Add(frd);//update

        mb->Init(users.data[ 0 ],frd);
        mbs.append(mb);
        mb->show();
    }
示例#6
0
void ErrorMachine::messageBox(QString m)
{
    MessageBox * mb = new MessageBox(m);
    mb->show();
}
示例#7
0
文件: aviz.cpp 项目: simphony/AViz
// Help callback function
void AViz::about() {
    // Launch a message box
    MessageBox *mb = new MessageBox(aviz::Version::getVersionInfo(), this);
    mb->show();
}