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 #include "global.h"
20 #include "treasure.h"
21 
23 class AssetModel;
24 
28 class CRETreasurePanel : public AssetTWrapperPanel<treasurelist> {
29  Q_OBJECT
30 
31 public:
32  CRETreasurePanel(AssetModel* model, QWidget* parent);
33 
34  virtual void updateItem() override;
35 
36 public slots:
37  void onGenerate(bool pressed);
38 
39 protected:
40  QTreeWidget* myGenerated;
41  QSpinBox* myDifficulty;
42 
43 };
44 
45 #endif // TREASURE_LIST_PANEL_H
global.h
CRETreasurePanel::myDifficulty
QSpinBox * myDifficulty
Definition: TreasureListPanel.h:41
TreasureListWrapper
Definition: TreasureListWrapper.h:27
CRETreasurePanel
Definition: TreasureListPanel.h:28
AssetTWrapperPanel
Definition: AssetWrapperPanel.h:92
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:40
CRETreasurePanel::CRETreasurePanel
CRETreasurePanel(AssetModel *model, QWidget *parent)
Definition: TreasureListPanel.cpp:28