Crossfire Server, Trunk  R20513
CRERulePanel.h
Go to the documentation of this file.
1 #ifndef _CRERULEPANEL_H
2 #define _CRERULEPANEL_H
3 
4 #include <QObject>
5 #include <QtGui>
6 #include <QTabWidget>
7 
8 class QListWidget;
9 class MessageRule;
10 class QPushButton;
11 class QLineEdit;
12 class CREStringListPanel;
13 class CREPrePostPanel;
14 class CREReplyPanel;
15 class MessageManager;
16 class QuestManager;
17 
18 class CRERulePanel : public QTabWidget
19 {
20  Q_OBJECT
21 
22  public:
23  CRERulePanel(const MessageManager* manager, const QuestManager* quests, QWidget* parent);
24  virtual ~CRERulePanel();
25 
26  void setMessageRule(MessageRule* rule);
27 
28  signals:
29  void currentRuleModified();
30 
31  protected:
33  QTextEdit* myMatches;
38  QTextEdit* myInclude;
39 
40  protected slots:
41  void onMatchModified();
42  void onPreModified();
43  void onMessageModified();
44  void onPostModified();
45  void onRepliesModified();
46  void onIncludeModified();
47 };
48 
49 #endif /* _CRERULEPANEL_H */
This panel is the &#39;replies&#39; subpanel in the messages panel.
Definition: CREReplyPanel.h:14
QTextEdit * myMatches
Definition: CRERulePanel.h:33
CREPrePostPanel * myPre
Definition: CRERulePanel.h:34
CREReplyPanel * myReplies
Definition: CRERulePanel.h:37
void onRepliesModified()
CREStringListPanel * myMessages
Definition: CRERulePanel.h:35
void onPostModified()
void onMessageModified()
void setMessageRule(MessageRule *rule)
This panel is the &#39;pre&#39; or &#39;post&#39; subpanel in the messages panel.
CRERulePanel(const MessageManager *manager, const QuestManager *quests, QWidget *parent)
CREPrePostPanel * myPost
Definition: CRERulePanel.h:36
void onPreModified()
virtual ~CRERulePanel()
void onMatchModified()
QTextEdit * myInclude
Definition: CRERulePanel.h:38
MessageRule * myRule
Definition: CRERulePanel.h:32
static quest_definition * quests
All known quests.
Definition: quest.c:93
void onIncludeModified()
void currentRuleModified()