Crossfire Server, Trunk  R20513
CREArtifactPanel.h
Go to the documentation of this file.
1 #ifndef CREARTIFACTPANEL_H
2 #define CREARTIFACTPANEL_H
3 
4 #include <QObject>
5 #include <QtGui>
6 #include "CREPanel.h"
7 #include "CREAnimationControl.h"
8 
9 extern "C" {
10 #include "global.h"
11 #include "artifact.h"
12 }
13 
14 class CREArtifactPanel : public CRETPanel<const artifact>
15 {
16  Q_OBJECT
17 
18  public:
20  virtual void setItem(const artifact* artifact);
21 
22  protected:
23  const artifact* myArtifact;
24  QLineEdit* myName;
25  QLineEdit* myChance;
26  QLineEdit* myType;
27  QLabel* myViaAlchemy;
28  QTreeWidget* myArchetypes;
29  QTextEdit* myValues;
30  QTextEdit* myInstance;
33 
34  void computeMadeViaAlchemy(const artifact* artifact) const;
35 
36  protected slots:
37  void artifactChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
38 };
39 
40 #endif // CREARTIFACTPANEL_H
QLineEdit * myName
void artifactChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
Global type definitions and header inclusions.
QLineEdit * myType
QLineEdit * myChance
const artifact * myArtifact
CREAnimationControl * myAnimation
QTextEdit * myValues
virtual void setItem(const artifact *artifact)
CREAnimationWidget * myFace
This is one artifact, ie one special item.
Definition: artifact.h:14
QTreeWidget * myArchetypes
Artifact-related structures.
QTextEdit * myInstance
void computeMadeViaAlchemy(const artifact *artifact) const