Go to the documentation of this file.
13 #ifndef ASSETWRAPPERPANEL_H
14 #define ASSETWRAPPERPANEL_H
39 QLabel *
addLabel(
const QString &label,
const char *property,
bool wrapText =
false);
40 QLineEdit *
addLineEdit(
const QString &label,
const char *property,
bool readOnly =
true);
41 QTextEdit *
addTextEdit(
const QString &label,
const char *property,
bool readOnly =
true);
42 QCheckBox *
addCheckBox(
const QString &label,
const char *property,
bool readOnly =
true);
43 void addFaceChoice(
const QString &label,
const char *property,
bool readOnly =
true,
bool allowNone =
true);
44 void addQuestChoice(
const QString &label,
const char *property,
bool readOnly =
true,
bool allowNone =
true);
45 QSpinBox *
addSpinBox(
const QString &label,
const char *property,
int min = 0,
int max = 100,
bool readOnly =
true);
64 T *
addWidget(
const QString &label, T *widget,
bool sideBySide,
const char *property,
const char *widgetProperty) {
66 if (!label.isEmpty()) {
67 myLayout->addWidget(
new QLabel(label,
this),
line, 0, 1, sideBySide ? 1 : 2);
73 myLayout->addWidget(widget,
line, sideBySide ? 1 : 0, 1, sideBySide ? 1 : 2);
75 myLinks.append({property, widget, widgetProperty});
99 myItem = aw ? aw->wrappedItem() :
nullptr;
119 myItem =
dynamic_cast<T *
>(asset);
TreasureListComboBox * addTreasureList(const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
QTextEdit * addTextEdit(const QString &label, const char *property, bool readOnly=true)
QLabel * addLabel(const QString &label, const char *property, bool wrapText=false)
Install Bug reporting Credits so make sure you have version or later There are files involved in the automatic convert convertall and filelist py GuildList has the list of guilds for the server GuildLocations is what is used by the install script for setting up the maps It has columns in the first is the name of the no spaces The second is the region of the the third is the destination folder for the the fourth is the exit the fifth and sixth are the x and y coords within the exit the seventh eighth and ninth are the exit location for the storage hall If field seven is then it uses the same exit map as for the guild hall itself filelist py has a list of which files to process for each guild hall convert py takes all the files in filelist py and customises them to the specific guild then outputs them into a in the same order that they are listed in GuildLocations convertall py reads the lines from GuildLocations and runs line by line
ArchetypeComboBox * addArchetype(const QString &label, const char *property, bool readOnly=false, bool allowNone=true)
AssetUseTree * addAssetUseTree(const QString &label, AssetModel *assets, const char *property)
AssetWrapperPanel(QWidget *parent)
void addQuestChoice(const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
QMetaObject::Connection myChanged
QLineEdit * addLineEdit(const QString &label, const char *property, bool readOnly=true)
QCheckBox * addCheckBox(const QString &label, const char *property, bool readOnly=true)
AssetSWrapperPanel(QWidget *parent)
const char * widgetPropertyName
QSpinBox * addSpinBox(const QString &label, const char *property, int min=0, int max=100, bool readOnly=true)
const char * assetPropertyName
void addFaceChoice(const QString &label, const char *property, bool readOnly=true, bool allowNone=true)
QList< PropertyLink > myLinks
virtual void setAsset(AssetWrapper *asset) override
void addTab(const QString &title)
virtual void updateItem()=0
virtual ~AssetWrapperPanel()
virtual void setAsset(AssetWrapper *asset) override
virtual void setAsset(AssetWrapper *item)
QMetaObject::Connection myDelete
AssetTWrapperPanel(QWidget *parent)
T * addWidget(const QString &label, T *widget, bool sideBySide, const char *property, const char *widgetProperty)
virtual void updateItem()=0