Crossfire Server, Trunk
ArchetypePanel.cpp
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #include "ArchetypePanel.h"
14 
15 ArchetypePanel::ArchetypePanel(AssetModel *model, QWidget* parent) : AssetWrapperPanel(parent) {
16  addTextEdit(tr("Raw archetype:"), "raw", false);
17  addAssetUseTree(tr("Used by"), model, "self");
18 }
AssetWrapperPanel
Definition: AssetWrapperPanel.h:29
AssetWrapperPanel::addTextEdit
QTextEdit * addTextEdit(const QString &label, const char *property, bool readOnly=true)
Definition: AssetWrapperPanel.cpp:84
AssetWrapperPanel::addAssetUseTree
AssetUseTree * addAssetUseTree(const QString &label, AssetModel *assets, const char *property)
Definition: AssetWrapperPanel.cpp:150
ArchetypePanel::ArchetypePanel
ArchetypePanel(AssetModel *model, QWidget *parent)
Definition: ArchetypePanel.cpp:15
ArchetypePanel.h
AssetModel
Definition: AssetModel.h:29