15 QGridLayout* layout =
new QGridLayout(
this);
17 QLabel* label =
new QLabel(
this);
18 label->setText(
"Name:");
19 layout->addWidget(label, 1, 1);
20 myName =
new QLineEdit(
this);
21 layout->addWidget(
myName, 1, 2);
23 label =
new QLabel(
this);
24 label->setText(
"Chance:");
25 layout->addWidget(label, 2, 1);
29 label =
new QLabel(
this);
30 label->setText(
"Type:");
31 layout->addWidget(label, 3, 1);
32 myType =
new QLineEdit(
this);
33 layout->addWidget(
myType, 3, 2);
37 myArchetypes->setHeaderLabel(
"Allowed/forbidden archetypes");
53 QTreeWidgetItem* item;
76 item->setCheckState(0, check ? Qt::Checked : Qt::Unchecked);
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
const artifact * myArtifact
struct linked_char * next
struct artifactstruct artifact
archetype * find_archetype_by_object_name(const char *name)
archetype * try_find_archetype(const char *name)
void setArtifact(const artifact *artifact)
QTreeWidget * myArchetypes