Go to the documentation of this file.
26 addSpinBox(tr(
"Chance:"),
"chance", 0, 65535,
false);
32 myLayout->addWidget(
new QLabel(tr(
"Values:"),
this), 5, 0, 1, 2);
39 myArchetypes->setHeaderLabel(
"Allowed/forbidden archetypes");
44 myLayout->addWidget(
new QLabel(tr(
"Result:"),
this), 7, 1);
62 for (
int ing = 1; ; ing++)
82 if (!possible.contains(
arch->name))
83 possible.append(
arch->name);
89 if (possible.isEmpty())
98 myViaAlchemy->setText(tr(
"The following archetypes can be used via alchemy: %1").arg(possible.join(tr(
", "))));
112 QTreeWidgetItem*
item = NULL;
125 item = new QTreeWidgetItem(root, QStringList(name == NULL ?
"(all)" : name));
126 item->setCheckState(0, check ? Qt::Checked : Qt::Unchecked);
127 item->setFlags(item->flags() & ~Qt::ItemIsUserCheckable);
128 root->addTopLevelItem(item);
129 item->setExpanded(true);
147 auto name = allowed->name;
149 if (
name[0] ==
'!') {
172 myFace->setVisible(
false);
174 if (!
current ||
current->data(0, Qt::UserRole).toString().isEmpty()) {
EXTERN archetype * empty_archetype
#define FREE_OBJ_NO_DESTROY_CALLBACK
recipelist * get_formulalist(int i)
void object_free(object *ob, int flags)
ArtifactPanel(QWidget *parent)
StringBuffer * stringbuffer_new(void)
void computeMadeViaAlchemy(const artifact *artifact) const
void give_artifact_abilities(object *op, const object *artifact)
#define QUERY_FLAG(xyz, p)
arch
DIALOGCHECK MINARGS 1 MAXARGS 1
QLineEdit * addLineEdit(const QString &label, const char *property, bool readOnly=true)
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
void get_ob_diff(StringBuffer *sb, const object *op, const object *op2)
StringBuffer * describe_item(const object *op, const object *owner, int use_media_tags, StringBuffer *buf)
AssetsManager * getManager()
QSpinBox * addSpinBox(const QString &label, const char *property, int min=0, int max=100, bool readOnly=true)
T * find(const Key &name)
char * stringbuffer_finish(StringBuffer *sb)
struct linked_char * next
void object_give_identified_properties(object *op)
void each(std::function< void(T *)> op)
const Animations * animation
Archetypes * archetypes()
void artifactChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
archetype * find_archetype(const char *name)
static void addArchetypes(const artifact *artifact, const char *name, bool check, QTreeWidget *root)
T * addWidget(const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty)
struct recipestruct * next
object * arch_to_object(archetype *at)
void setAnimation(const Animations *animation, int facings=-1)
#define FREE_OBJ_FREE_INVENTORY
QTreeWidget * myArchetypes
int legal_artifact_combination(const object *op, const artifact *art)
AnimationControl * myAnimation
virtual void updateItem() override
struct recipestruct recipe