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 
24 class ResourcesManager;
25 
29 class ArtifactPanel : public AssetTWrapperPanel<artifact>
30 {
31  Q_OBJECT
32 
33  public:
34  ArtifactPanel(QWidget* parent, ResourcesManager *resources);
35  virtual void updateItem() override;
36 
37  protected:
39  QLineEdit* myName;
40  QLineEdit* myChance;
41  QLineEdit* myType;
42  QLabel* myViaAlchemy;
43  QTreeWidget* myArchetypes;
44  QTextEdit* myValues;
45  QTextEdit* myInstance;
48  QLabel* myOrigin;
49 
50  void computeMadeViaAlchemy(const artifact* artifact) const;
51 
52  protected slots:
53  void artifactChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
54 };
55 
56 #endif // ARTIFACT_PANEL_H
ArtifactPanel::myFace
AnimationWidget * myFace
Definition: ArtifactPanel.h:47
global.h
ArtifactPanel::computeMadeViaAlchemy
void computeMadeViaAlchemy(const artifact *artifact) const
Definition: ArtifactPanel.cpp:49
ResourcesManager
Definition: ResourcesManager.h:80
say.previous
dictionary previous
Definition: say.py:205
artifact.h
AssetTWrapperPanel
Definition: AssetWrapperPanel.h:92
ArtifactPanel::myValues
QTextEdit * myValues
Definition: ArtifactPanel.h:44
ArtifactPanel::myResources
ResourcesManager * myResources
Definition: ArtifactPanel.h:38
ArtifactPanel
Definition: ArtifactPanel.h:29
ArtifactPanel::myOrigin
QLabel * myOrigin
Definition: ArtifactPanel.h:48
ArtifactPanel::myType
QLineEdit * myType
Definition: ArtifactPanel.h:41
AssetWrapperPanel.h
ArtifactPanel::myInstance
QTextEdit * myInstance
Definition: ArtifactPanel.h:45
ArtifactPanel::myChance
QLineEdit * myChance
Definition: ArtifactPanel.h:40
AnimationWidget
Definition: AnimationWidget.h:22
ArtifactPanel::artifactChanged
void artifactChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
Definition: ArtifactPanel.cpp:166
AnimationControl
Definition: AnimationControl.h:27
ArtifactPanel::myViaAlchemy
QLabel * myViaAlchemy
Definition: ArtifactPanel.h:42
ArtifactPanel::myArchetypes
QTreeWidget * myArchetypes
Definition: ArtifactPanel.h:43
artifact
Definition: artifact.h:14
replace.current
current
Definition: replace.py:64
ArtifactPanel::myAnimation
AnimationControl * myAnimation
Definition: ArtifactPanel.h:46
ArtifactPanel::ArtifactPanel
ArtifactPanel(QWidget *parent, ResourcesManager *resources)
Definition: ArtifactPanel.cpp:24
ArtifactPanel::updateItem
virtual void updateItem() override
Definition: ArtifactPanel.cpp:132
ArtifactPanel::myName
QLineEdit * myName
Definition: ArtifactPanel.h:39