16 QGridLayout* layout =
new QGridLayout(
this);
18 layout->addWidget(
new QLabel(tr(
"Title:"),
this), 1, 1);
20 layout->addWidget(
myTitle, 1, 2);
22 layout->addWidget(
new QLabel(tr(
"Skill:"),
this), 2, 1);
24 layout->addWidget(
mySkill, 2, 2);
26 layout->addWidget(
new QLabel(tr(
"Cauldron:"),
this), 3, 1);
30 layout->addWidget(
new QLabel(tr(
"Yield:"),
this), 4, 1);
32 layout->addWidget(
myYield, 4, 2);
34 layout->addWidget(
new QLabel(tr(
"Chance:"),
this), 5, 1);
38 layout->addWidget(
new QLabel(tr(
"Experience:"),
this), 6, 1);
42 layout->addWidget(
new QLabel(tr(
"Difficulty:"),
this), 7, 1);
46 mySkill->addItem(tr(
"(none)"), 0);
49 for (; arch; arch = arch->
next)
63 layout->addWidget(
new QLabel(tr(
"Ingredients:"),
this), 9, 1, 1, 2);
67 QHBoxLayout* buttons =
new QHBoxLayout;
70 myReset =
new QPushButton(tr(
"&Reset"));
72 layout->addLayout(buttons, 11, 1, 1, 2);
92 mySkill->setCurrentIndex(index);
102 for (
size_t a = 0; a < recipe->
arch_names; a++)
111 list.append(ing->name);
131 if (
mySkill->currentIndex() != 0)
141 const Archetype* arch;
142 ManagedReference ref;
143 for (
int a = 0; a <
myArchetypes->topLevelItemCount(); a++)
145 ref =
myArchetypes->topLevelItem(a)->data(0, Qt::UserRole).toInt();
146 arch = DM_ARCHS->get(ref);
147 arches.append(arch->name);
148 DM_ARCHS->release(ref);
archetype * find_archetype(const char *name)
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
struct linked_char * next
struct recipestruct recipe
#define QUERY_FLAG(xyz, p)
EXTERN archetype * first_archetype