Crossfire Server, Trunk
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 QLineEdit;
9 class QTableView;
10 class QTreeWidget;
11 class MessageFile;
12 class MessageRule;
13 class CRERulePanel;
14 class MessageManager;
16 
20 class CREMessagePanel : public CRETPanel<MessageFile>
21 {
22  Q_OBJECT
23 
24  public:
25  CREMessagePanel(const MessageManager* manager, QWidget* parent);
26  virtual ~CREMessagePanel();
27 
28  virtual void setItem(MessageFile* message) override;
29  virtual void commitData() override;
30 
31  protected:
32 
33  private:
37  QLineEdit* myPath;
38  QLineEdit* myLocation;
39  QTableView* myRules;
42  QTreeWidget* myUse;
43 
44  private slots:
45  void currentRowChanged(const QModelIndex& current, const QModelIndex& previous);
46  void onAddRule(bool);
47  void onDeleteRule(bool);
48  void onMoveUp(bool);
49  void onMoveDown(bool);
50  void onDuplicate(bool);
51  void onReset(bool);
52 };
53 
54 #endif /* _CREMESSAGEPANEL_H */
CREMessagePanel::myPath
QLineEdit * myPath
Definition: CREMessagePanel.h:37
CRETPanel
Definition: CREPanel.h:18
CREMessagePanel::currentRowChanged
void currentRowChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: CREMessagePanel.cpp:170
say.previous
dictionary previous
Definition: say.py:205
CREMessagePanel::myModel
CREMessageItemModel * myModel
Definition: CREMessagePanel.h:40
CREMessagePanel::onDuplicate
void onDuplicate(bool)
Definition: CREMessagePanel.cpp:213
CREMessagePanel::myUse
QTreeWidget * myUse
Definition: CREMessagePanel.h:42
MessageFile
Definition: MessageFile.h:56
CREMessagePanel::onDeleteRule
void onDeleteRule(bool)
Definition: CREMessagePanel.cpp:182
CREMessagePanel::myRules
QTableView * myRules
Definition: CREMessagePanel.h:39
CREMessagePanel::~CREMessagePanel
virtual ~CREMessagePanel()
Definition: CREMessagePanel.cpp:93
CREMessagePanel::myMessage
MessageFile * myMessage
Definition: CREMessagePanel.h:35
CREMessagePanel::myOriginal
MessageFile * myOriginal
Definition: CREMessagePanel.h:36
MessageManager
Definition: MessageManager.h:13
CREMessageItemModel
Definition: CREMessageItemModel.h:12
CREMessagePanel::CREMessagePanel
CREMessagePanel(const MessageManager *manager, QWidget *parent)
Definition: CREMessagePanel.cpp:13
CREMessagePanel::commitData
virtual void commitData() override
Definition: CREMessagePanel.cpp:187
diamondslots.message
string message
Definition: diamondslots.py:57
CREPanel.h
CREMessagePanel::onMoveUp
void onMoveUp(bool)
Definition: CREMessagePanel.cpp:193
CREMessagePanel::setItem
virtual void setItem(MessageFile *message) override
Definition: CREMessagePanel.cpp:98
CREMessagePanel::onReset
void onReset(bool)
Definition: CREMessagePanel.cpp:223
CREMessagePanel::onAddRule
void onAddRule(bool)
Definition: CREMessagePanel.cpp:175
CREMessagePanel::onMoveDown
void onMoveDown(bool)
Definition: CREMessagePanel.cpp:203
CREMessagePanel::myLocation
QLineEdit * myLocation
Definition: CREMessagePanel.h:38
CREMessagePanel::myDefaultBackground
QBrush myDefaultBackground
Definition: CREMessagePanel.h:41
CREMessagePanel
Definition: CREMessagePanel.h:20
replace.current
current
Definition: replace.py:64
CREMessagePanel::myMessageManager
const MessageManager * myMessageManager
Definition: CREMessagePanel.h:34
manager
static AssetsManager * manager
Definition: assets.cpp:63
MessageRule
Definition: MessageFile.h:13