Crossfire Server, Trunk  R20513
CREFormulaePanel.h
Go to the documentation of this file.
1 #ifndef CREFORMULAEPANEL_H
2 #define CREFORMULAEPANEL_H
3 
4 #include <QObject>
5 #include <QtGui>
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:
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  QLabel* myIndex;
32  QTreeWidget* myArchetypes;
33  QTextEdit* myIngredients;
34  QPushButton* myValidate;
35  QPushButton* myReset;
36 
37  protected slots:
38  void resetClicked(bool);
39  void validateClicked(bool);
40 };
41 
42 #endif // CREFORMULAEPANEL_H
QTreeWidget * myArchetypes
void validateClicked(bool)
void setItem(const recipe *recipe)
Global type definitions and header inclusions.
QLineEdit * myDifficulty
QLineEdit * myYield
QLineEdit * myChance
QPushButton * myReset
QLineEdit * myExperience
Alchemy recipe structures.
QComboBox * mySkill
const recipe * myRecipe
QTextEdit * myIngredients
QPushButton * myValidate
QComboBox * myTitle
QComboBox * myCauldron
One alchemy recipe.
Definition: recipe.h:10