52 #include <QPushButton>
74 NewNameMessageBox::NewNameMessageBox(QString propName)
82 setWindowTitle(
"Name Selection");
84 setText(tr(
"The name %1 is already in use.\nWould you like to choose a different name, replace the old property or cancel loading?").arg(propName));
86 buttonRename =
new QPushButton(
"Rename");
87 buttonReplace =
new QPushButton(
"Replace");
88 buttonCancel =
new QPushButton(
"Cancel");
90 addButton(buttonRename, QMessageBox::AcceptRole);
91 addButton(buttonCancel, QMessageBox::RejectRole);
92 addButton(buttonReplace, QMessageBox::YesRole);
94 connect(buttonRename, SIGNAL(clicked()),
this, SLOT(slotRename()));
95 connect(buttonReplace, SIGNAL(clicked()),
this, SLOT(slotReplace()));
96 connect(buttonCancel, SIGNAL(clicked()),
this, SLOT(slotCancel()));
static const char * entity2str(ENTITY_FILTER entity)
Returns a symbol representation for an entity.