16 QGridLayout*
layout =
new QGridLayout(
this);
18 layout->addWidget(
new QLabel(tr(
"Title:"),
this), 1, 1);
21 layout->addWidget(
myTitle, 1, 2);
23 layout->addWidget(
new QLabel(tr(
"Skill:"),
this), 2, 1);
25 layout->addWidget(
mySkill, 2, 2);
27 layout->addWidget(
new QLabel(tr(
"Cauldron:"),
this), 3, 1);
31 layout->addWidget(
new QLabel(tr(
"Yield:"),
this), 4, 1);
33 layout->addWidget(
myYield, 4, 2);
35 layout->addWidget(
new QLabel(tr(
"Chance:"),
this), 5, 1);
39 layout->addWidget(
new QLabel(tr(
"Experience:"),
this), 6, 1);
43 layout->addWidget(
new QLabel(tr(
"Difficulty:"),
this), 7, 1);
51 mySkill->addItem(tr(
"(none)"), 0);
58 if (arch->clone.type == SKILL)
59 mySkill->addItem(arch->clone.name);
64 layout->addWidget(
new QLabel(tr(
"Index:"),
this), 9, 1);
67 layout->addWidget(
myIndex, 9, 2);
75 layout->addWidget(
new QLabel(tr(
"Ingredients:"),
this), 11, 1, 1, 2);
79 QHBoxLayout* buttons =
new QHBoxLayout;
82 myReset =
new QPushButton(tr(
"&Reset"));
84 layout->addLayout(buttons, 13, 1, 1, 2);
108 if (art->
item != NULL && art->
item->name != NULL)
119 myTitle->setCurrentIndex(index);
130 mySkill->setCurrentIndex(index);
140 for (
size_t a = 0; a < recipe->
arch_names; a++)
152 list.append(ing->name);
172 if (
mySkill->currentIndex() != 0)
182 const Archetype* arch;
183 ManagedReference ref;
184 for (
int a = 0; a <
myArchetypes->topLevelItemCount(); a++)
186 ref =
myArchetypes->topLevelItem(a)->data(0, Qt::UserRole).toInt();
187 arch = DM_ARCHS->get(ref);
188 arches.append(arch->name);
189 DM_ARCHS->release(ref);
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
const artifactlist * find_artifactlist(int type)
archetype * find_archetype(const char *name)
struct artifactstruct * items
struct linked_char * next
struct recipestruct recipe
archetype * get_next_archetype(archetype *current)
#define QUERY_FLAG(xyz, p)
struct artifactstruct * next