|
Crossfire Resources Editor
|
Go to the documentation of this file.
16 #include "AssetsManager.h"
23 addSpinBox(tr(
"Chance:"),
"chance", 0, 255,
false);
24 addSpinBox(tr(
"Magic:"),
"magic", 0, 255,
false);
25 addSpinBox(tr(
"Count:"),
"nrof", 0, 65535,
false);
27 addSpinBox(tr(
"Magic to generate with:"),
"list_magic_value", std::numeric_limits<uint8_t>::min(), std::numeric_limits<uint8_t>::max(),
false);
28 addSpinBox(tr(
"Magic adjustment:"),
"list_magic_adjustment", std::numeric_limits<int8_t>::min(), std::numeric_limits<int8_t>::max(),
false);
38 event->acceptProposedAction();
43 event->acceptProposedAction();
50 event->acceptProposedAction();
55 event->acceptProposedAction();
TreasureListComboBox * addTreasureList(const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
ArchetypeComboBox * addArchetype(const QString &label, const char *property, bool readOnly=false, bool allowNone=true)
virtual void dropEvent(QDropEvent *event) override
ArchetypeComboBox * myArch
void setList(const treasurelist *list)
QLineEdit * addLineEdit(const QString &label, const char *property, bool readOnly=true)
static const char * TreasureList
virtual void dragMoveEvent(QDragMoveEvent *event) override
QSpinBox * addSpinBox(const QString &label, const char *property, int min=0, int max=100, bool readOnly=true)
TreasureListComboBox * myList
TreasurePanel(QWidget *parent)
static QList< T * > extract(const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)
void setArch(const archetype *arch)
virtual void dragEnterEvent(QDragEnterEvent *event) override
static void setHelpId(QWidget *widget, const QString &id)
static const char * Archetype