Crossfire Server, Trunk
TreasureListPanel.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 TREASURE_LIST_PANEL_H
14 #define TREASURE_LIST_PANEL_H
15 
16 #include <QObject>
17 #include <QtWidgets>
19 extern "C" {
20 #include "global.h"
21 #include "treasure.h"
22 }
23 
25 class AssetModel;
26 
30 class CRETreasurePanel : public AssetTWrapperPanel<treasurelist> {
31  Q_OBJECT
32 
33 public:
34  CRETreasurePanel(AssetModel* model, QWidget* parent);
35 
36  virtual void updateItem() override;
37 
38 public slots:
39  void onGenerate(bool pressed);
40 
41 protected:
42  QTreeWidget* myGenerated;
43  QSpinBox* myDifficulty;
44 
45 };
46 
47 #endif // TREASURE_LIST_PANEL_H
global.h
CRETreasurePanel::myDifficulty
QSpinBox * myDifficulty
Definition: TreasureListPanel.h:43
TreasureListWrapper
Definition: TreasureListWrapper.h:27
CRETreasurePanel
Definition: TreasureListPanel.h:30
AssetTWrapperPanel
Definition: AssetWrapperPanel.h:91
CRETreasurePanel::onGenerate
void onGenerate(bool pressed)
Definition: TreasureListPanel.cpp:53
CRETreasurePanel::updateItem
virtual void updateItem() override
Definition: TreasureListPanel.cpp:49
AssetModel
Definition: AssetModel.h:29
treasure.h
AssetWrapperPanel.h
CRETreasurePanel::myGenerated
QTreeWidget * myGenerated
Definition: TreasureListPanel.h:42
CRETreasurePanel::CRETreasurePanel
CRETreasurePanel(AssetModel *model, QWidget *parent)
Definition: TreasureListPanel.cpp:28