if ((b=="")||(ok==0))return;
a=QInputDialog::getText(this, trUtf8("action", "Title of box where ask for new action"), trUtf8("Enter his action"), QLineEdit::Normal, QString("new idem"), &ok);
if ((a=="")||(ok==0))return;
+ QString tmpfile;
+ if(a.contains(QString("!file!"))){
+ tmpfile=QFileDialog.getOpenFileName();
+ a.replace(QString("!file!"),tmpfile);
+ };
+
insert(tmp, b, c, a);
return;
}
if(conf->value(QString("multiline")).toBool())tmpaction=QInputDialog::getMultiLineText(this, trUtf8("action", "Title of box where ask for button's action"), trUtf8("new action", "question to get new button's action"), action, &ok);
else tmpaction=QInputDialog::getText(this, trUtf8("action", "Title of box where ask for button's action"), trUtf8("new action", "question to get new button's action"), QLineEdit::Normal, action, &ok);
if(!ok)return;
+ QString tmpfile;
+ if(tmpaction.contains(QString("!file!"))){
+ tmpfile=QFileDialog.getOpenFileName();
+ tmpaction.replace(QString("!file!"),tmpfile);
+ };
+
if((tmpkeyword=="")||(tmplabel=="")||(tmpaction=="")){
remove(a, keyword, label, action);