Crossfire Server, Trunk
ArtifactPanel.h
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 #ifndef ARTIFACT_PANEL_H
14 #define ARTIFACT_PANEL_H
15 
16 #include <QObject>
17 #include <QtWidgets>
19 #include "../animations/AnimationControl.h"
20 
21 #include "global.h"
22 #include "artifact.h"
23 
27 class ArtifactPanel : public AssetTWrapperPanel<artifact>
28 {
29  Q_OBJECT
30 
31  public:
32  ArtifactPanel(QWidget* parent);
33  virtual void updateItem() override;
34 
35  protected:
36  QLineEdit* myName;
37  QLineEdit* myChance;
38  QLineEdit* myType;
39  QLabel* myViaAlchemy;
40  QTreeWidget* myArchetypes;
41  QTextEdit* myValues;
42  QTextEdit* myInstance;
45 
46  void computeMadeViaAlchemy(const artifact* artifact) const;
47 
48  protected slots:
49  void artifactChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
50 };
51 
52 #endif // ARTIFACT_PANEL_H
ArtifactPanel::myFace
AnimationWidget * myFace
Definition: ArtifactPanel.h:44
global.h
ArtifactPanel::ArtifactPanel
ArtifactPanel(QWidget *parent)
Definition: ArtifactPanel.cpp:23
ArtifactPanel::computeMadeViaAlchemy
void computeMadeViaAlchemy(const artifact *artifact) const
Definition: ArtifactPanel.cpp:53
say.previous
dictionary previous
Definition: say.py:205
artifact.h
AssetTWrapperPanel
Definition: AssetWrapperPanel.h:91
ArtifactPanel::myValues
QTextEdit * myValues
Definition: ArtifactPanel.h:41
ArtifactPanel
Definition: ArtifactPanel.h:27
ArtifactPanel::myType
QLineEdit * myType
Definition: ArtifactPanel.h:38
artifactstruct
Definition: artifact.h:14
AssetWrapperPanel.h
ArtifactPanel::myInstance
QTextEdit * myInstance
Definition: ArtifactPanel.h:42
ArtifactPanel::myChance
QLineEdit * myChance
Definition: ArtifactPanel.h:37
AnimationWidget
Definition: AnimationWidget.h:22
ArtifactPanel::artifactChanged
void artifactChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
Definition: ArtifactPanel.cpp:169
AnimationControl
Definition: AnimationControl.h:27
ArtifactPanel::myViaAlchemy
QLabel * myViaAlchemy
Definition: ArtifactPanel.h:39
ArtifactPanel::myArchetypes
QTreeWidget * myArchetypes
Definition: ArtifactPanel.h:40
replace.current
current
Definition: replace.py:64
ArtifactPanel::myAnimation
AnimationControl * myAnimation
Definition: ArtifactPanel.h:43
ArtifactPanel::updateItem
virtual void updateItem() override
Definition: ArtifactPanel.cpp:136
ArtifactPanel::myName
QLineEdit * myName
Definition: ArtifactPanel.h:36