34 QGridLayout* layout =
new QGridLayout(
this);
36 myUsing =
new QTreeWidget(
this);
38 myUsing->setHeaderLabel(tr(
"Used by"));
39 myUsing->setIconSize(QSize(32, 32));
40 layout->addWidget(
myUsing, 1, 1, 3, 2);
43 layout->addWidget(
myColor, 4, 2);
44 layout->addWidget(
new QLabel(
"Magicmap color: "), 4, 1);
49 myFile =
new QLineEdit(
this);
51 layout->addWidget(
myFile, 5, 2);
52 layout->addWidget(
new QLabel(
"Original file: "), 5, 1);
54 mySave =
new QPushButton(tr(
"Save face"));
55 layout->addWidget(
mySave, 6, 1);
67 QTreeWidgetItem*
root = NULL;
79 root->setExpanded(
true);
100 myUsing->addTopLevelItem(root);
101 root->setExpanded(
true);
121 for (arti = list->
items; arti; arti = arti->
next)
128 myUsing->addTopLevelItem(root);
129 root->setExpanded(
true);
static QTreeWidgetItem * animationNode(QTreeWidgetItem *parent)
static QTreeWidgetItem * archetypeNode(QTreeWidgetItem *parent)
static QTreeWidgetItem * artifactNode(QTreeWidgetItem *parent)
EXTERN int num_animations
struct artifactstruct * items
const typedata * get_typedata(int itemtype)
struct artifactliststruct * next
static const char *const colorname[]
void setFace(const New_Face *face)
EXTERN Animations * animations
EXTERN artifactlist * first_artifactlist
EXTERN archetype * first_archetype
struct artifactstruct * next