Crossfire Server, Trunk  R20513
CREMessagePanel.h
Go to the documentation of this file.
1 #ifndef _CREMESSAGEPANEL_H
2 #define _CREMESSAGEPANEL_H
3 
4 #include <QObject>
5 #include <QBrush>
6 #include "CREPanel.h"
7 
8 class MessageFile;
9 class MessageRule;
10 class QLineEdit;
11 class QTreeWidget;
12 class QTextEdit;
13 class QTreeWidgetItem;
14 class CRERulePanel;
15 class MessageManager;
16 class QuestManager;
17 
18 class CREMessagePanel : public CRETPanel<MessageFile>
19 {
20  Q_OBJECT
21 
22  public:
23  CREMessagePanel(const MessageManager* manager, const QuestManager* quests);
24  virtual ~CREMessagePanel();
25 
26  virtual void setItem(MessageFile* message);
27  virtual void commitData();
28 
29  private:
32  QLineEdit* myPath;
33  QLineEdit* myLocation;
34  QTreeWidget* myRules;
37  QTreeWidget* myUse;
38 
39  void fillRuleItem(QTreeWidgetItem* item, MessageRule* rule);
40  private slots:
41  void currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* previous);
42  void currentRuleModified();
43  void onAddRule(bool);
44  void onDeleteRule(bool);
45  void onMoveUp(bool);
46  void onMoveDown(bool);
47  void onDuplicate(bool);
48 };
49 
50 #endif /* _CREMESSAGEPANEL_H */
void onDeleteRule(bool)
CRERulePanel * myRulePanel
QTreeWidget * myUse
CREMessagePanel(const MessageManager *manager, const QuestManager *quests)
void onDuplicate(bool)
void currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous)
void fillRuleItem(QTreeWidgetItem *item, MessageRule *rule)
virtual void setItem(MessageFile *message)
QBrush myDefaultBackground
QTreeWidget * myRules
MessageFile * myMessage
const MessageManager * myMessageManager
virtual ~CREMessagePanel()
virtual void commitData()
static quest_definition * quests
All known quests.
Definition: quest.c:93
QLineEdit * myLocation
QLineEdit * myPath