QStrings=QInputDialog::getText(this,"Special Beginning?","If you want a special key, enter some hex digits that it should begin with.\nNOTE: The more you enter, the longer generation will take.",QLineEdit::Normal,QString(),&ok);
QStringListitems={"No vanity (instant)","Two pairs first (a few seconds)","Two pairs first and second (a few minutes)","Three pairs first (a few minutes)","Four pairs first (several hours)","Specific hex string"};
unsignedv=items.QList<QString>::indexOf(QInputDialog::getItem(this,"Vanity Key?","Would you a vanity key? This could take several hours.",items,0,false,&ok));
if(!ok)
return;
bytesbs;
if(v==StringMatch)
{
QStrings=QInputDialog::getText(this,"Vanity Beginning?","Enter some hex digits that it should begin with.\nNOTE: The more you enter, the longer generation will take.",QLineEdit::Normal,QString(),&ok);
if(ethereum()->balanceAt(k.address())!=0&&QMessageBox::critical(this,"Kill Account?!","Account "+render(k.address())+" has "+QString::fromStdString(formatBalance(ethereum()->balanceAt(k.address())))+" in it. It, and any contract that this account can access, will be lost forever if you continue. Do NOT continue unless you know what you are doing.\nAre you sure you want to continue?",QMessageBox::Yes,QMessageBox::No)==QMessageBox::No)