Crossfire Server, Trunk  R20513
CREQuestPanel.h
Go to the documentation of this file.
1 #ifndef _CREQUESTPANEL_H
2 #define _CREQUESTPANEL_H
3 
4 #include <QWidget>
5 #include <QtGui>
6 
7 #include "CREFilterDialog.h"
8 #include "CREReportDialog.h"
9 #include "CREPanel.h"
10 
11 class Quest;
12 class QuestStep;
13 class QuestManager;
14 class CREQuestItemModel;
15 class MessageManager;
16 
17 class CREQuestPanel : public CRETPanel<Quest>
18 {
19  Q_OBJECT
20 
21  public:
22  CREQuestPanel(QuestManager* manager, MessageManager* messageManager);
23  virtual ~CREQuestPanel();
24 
25  virtual void commitData();
26 
27  virtual void setItem(Quest* quest);
28  private:
33  QLineEdit* myCode;
34  QLineEdit* myTitle;
35  QLineEdit* myFace;
36  QComboBox* myFile;
37  QCheckBox* myCanRestart;
38  QComboBox* myParent;
39  QTextEdit* myDescription;
41  QTreeView* mySteps;
42  QTreeWidget* myUse;
43 
44  void displaySteps();
45 
46  protected slots:
47  void deleteStep(bool);
48  void moveUp(bool);
49  void moveDown(bool);
50 };
51 
52 #endif /* _CREQUESTPANEL_H */
QTreeWidget * myUse
Definition: CREQuestPanel.h:42
CREQuestPanel(QuestManager *manager, MessageManager *messageManager)
QComboBox * myParent
Definition: CREQuestPanel.h:38
Definition: Quest.h:32
QuestManager * myQuestManager
Definition: CREQuestPanel.h:29
void moveDown(bool)
virtual void setItem(Quest *quest)
QTreeView * mySteps
Definition: CREQuestPanel.h:41
CREQuestItemModel * myStepsModel
Definition: CREQuestPanel.h:40
QCheckBox * myCanRestart
Definition: CREQuestPanel.h:37
MessageManager * myMessageManager
Definition: CREQuestPanel.h:30
QLineEdit * myFace
Definition: CREQuestPanel.h:35
QLineEdit * myTitle
Definition: CREQuestPanel.h:34
void moveUp(bool)
Definition: Quest.h:9
QLineEdit * myCode
Definition: CREQuestPanel.h:33
QuestStep * myCurrentStep
Definition: CREQuestPanel.h:32
QComboBox * myFile
Definition: CREQuestPanel.h:36
QTextEdit * myDescription
Definition: CREQuestPanel.h:39
Quest * myQuest
Definition: CREQuestPanel.h:31
void deleteStep(bool)
virtual ~CREQuestPanel()
virtual void commitData()