Crossfire Server, Trunk  R20513
CRETreasurePanel.h
Go to the documentation of this file.
1 #ifndef CRETREASUREPANEL_H
2 #define CRETREASUREPANEL_H
3 
4 #include <QObject>
5 #include <QtGui>
6 #include "CREPanel.h"
7 
8 extern "C" {
9 #include "global.h"
10 }
11 
12 class CRETreasurePanel : public CRETPanel<const treasurelist>
13 {
14  Q_OBJECT
15 
16  public:
18 
19  virtual void setItem(const treasurelist* treasure);
20 
21  public slots:
22  void onGenerate(bool pressed);
23 
24  protected:
26  QTreeWidget* myUsing;
27  QTreeWidget* myGenerated;
28  QSpinBox* myDifficulty;
29 
30 };
31 
32 #endif // CRETREASUREPANEL_H
treasureliststruct represents one logical group of items to be generated together.
Definition: treasure.h:82
QTreeWidget * myGenerated
treasure is one element in a linked list, which together consist of a complete treasure-list.
Definition: treasure.h:63
Global type definitions and header inclusions.
QSpinBox * myDifficulty
QTreeWidget * myUsing
const treasurelist * myTreasure
void onGenerate(bool pressed)
virtual void setItem(const treasurelist *treasure)