Crossfire Server, Trunk  R22010
CREFormulaePanel.h
Go to the documentation of this file.
1 #ifndef CREFORMULAEPANEL_H
2 #define CREFORMULAEPANEL_H
3 
4 #include <QObject>
5 #include <QtWidgets>
6 #include "CREPanel.h"
7 
8 extern "C" {
9 #include "global.h"
10 #include "recipe.h"
11 }
12 
13 class CREFormulaePanel : public CRETPanel<const recipe>
14 {
15  Q_OBJECT
16 
17  public:
18  CREFormulaePanel(QWidget* parent);
19 
20  void setItem(const recipe* recipe);
21 
22  protected:
23  const recipe* myRecipe;
24  QComboBox* myTitle;
25  QLineEdit* myYield;
26  QLineEdit* myChance;
27  QLineEdit* myExperience;
28  QLineEdit* myDifficulty;
29  QComboBox* mySkill;
30  QComboBox* myCauldron;
31  QCheckBox* myIsTransmute;
32  QLineEdit* myIndex;
33  QTreeWidget* myArchetypes;
34  QTextEdit* myIngredients;
35  QPushButton* myValidate;
36  QPushButton* myReset;
37 
38  protected slots:
39  void resetClicked(bool);
40  void validateClicked(bool);
41 };
42 
43 #endif // CREFORMULAEPANEL_H
QTreeWidget * myArchetypes
void validateClicked(bool)
void setItem(const recipe *recipe)
QLineEdit * myDifficulty
QCheckBox * myIsTransmute
QLineEdit * myYield
QLineEdit * myChance
QPushButton * myReset
QLineEdit * myExperience
CREFormulaePanel(QWidget *parent)
QComboBox * mySkill
const recipe * myRecipe
QTextEdit * myIngredients
QPushButton * myValidate
QComboBox * myTitle
QComboBox * myCauldron
QLineEdit * myIndex