 |
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();
49 auto arch = archs.front();
51 event->acceptProposedAction();
56 event->acceptProposedAction();
Base class for a panel displaying information about an asset.
static const char * Archetype
virtual void dragEnterEvent(QDragEnterEvent *event) override
TreasureListComboBox * myList
QLineEdit * addLineEdit(const QString &label, const char *property, bool readOnly=true)
void setList(const treasurelist *list)
Set the selected list.
QSpinBox * addSpinBox(const QString &label, const char *property, int min=0, int max=100, bool readOnly=true)
ArchetypeComboBox * addArchetype(const QString &label, const char *property, bool readOnly=false, bool allowNone=true)
static const char * TreasureList
static QList< T * > extract(const QMimeData *data, const QString &mime, AssetsCollection< T > *assets)
static void setHelpId(QWidget *widget, const QString &id)
virtual void dragMoveEvent(QDragMoveEvent *event) override
TreasureListComboBox * addTreasureList(const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
void setArch(const archetype *arch)
Set the selected archetype.
ArchetypeComboBox * myArch
virtual void dropEvent(QDropEvent *event) override
TreasurePanel(QWidget *parent)