Crossfire Server, Trunk
CREMessagePanel.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2022 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef _CREMESSAGEPANEL_H
14 #define _CREMESSAGEPANEL_H
15 
16 #include <QObject>
17 #include <QBrush>
19 #include "MessageFile.h"
20 
21 class QLineEdit;
22 class QTableView;
23 class QTreeWidget;
24 class CRERulePanel;
25 class MessageManager;
27 
31 class CREMessagePanel : public AssetSWrapperPanel<MessageFile>
32 {
33  Q_OBJECT
34 
35  public:
36  CREMessagePanel(const MessageManager* manager, QWidget* parent);
37  virtual ~CREMessagePanel();
38 
39  virtual void updateItem() override;
40 
41  private:
44  QLineEdit* myPath;
45  QTableView* myRules;
48  QTreeWidget* myUse;
49 
50  private slots:
51  void currentRowChanged(const QModelIndex& current, const QModelIndex& previous);
52  void onAddRule(bool);
53  void onDeleteRule(bool);
54  void onMoveUp(bool);
55  void onMoveDown(bool);
56  void onDuplicate(bool);
57  void onReset(bool);
58 };
59 
60 #endif /* _CREMESSAGEPANEL_H */
CREMessagePanel::myPath
QLineEdit * myPath
Definition: CREMessagePanel.h:44
CREMessagePanel::currentRowChanged
void currentRowChanged(const QModelIndex &current, const QModelIndex &previous)
Definition: CREMessagePanel.cpp:167
say.previous
dictionary previous
Definition: say.py:205
CREMessagePanel::updateItem
virtual void updateItem() override
Definition: CREMessagePanel.cpp:93
CREMessagePanel::myModel
CREMessageItemModel * myModel
Definition: CREMessagePanel.h:46
CREMessagePanel::onDuplicate
void onDuplicate(bool)
Definition: CREMessagePanel.cpp:204
CREMessagePanel::myUse
QTreeWidget * myUse
Definition: CREMessagePanel.h:48
MessageFile
Definition: MessageFile.h:68
CREMessagePanel::onDeleteRule
void onDeleteRule(bool)
Definition: CREMessagePanel.cpp:179
CREMessagePanel::myRules
QTableView * myRules
Definition: CREMessagePanel.h:45
CREMessagePanel::~CREMessagePanel
virtual ~CREMessagePanel()
Definition: CREMessagePanel.cpp:88
CREMessagePanel::myOriginal
MessageFile * myOriginal
Definition: CREMessagePanel.h:43
MessageManager
Definition: MessageManager.h:25
CREMessageItemModel
Definition: CREMessageItemModel.h:26
CREMessagePanel::CREMessagePanel
CREMessagePanel(const MessageManager *manager, QWidget *parent)
Definition: CREMessagePanel.cpp:25
AssetSWrapperPanel
Definition: AssetWrapperPanel.h:113
AssetWrapperPanel.h
MessageFile.h
CREMessagePanel::onMoveUp
void onMoveUp(bool)
Definition: CREMessagePanel.cpp:184
CREMessagePanel::onReset
void onReset(bool)
Definition: CREMessagePanel.cpp:214
CREMessagePanel::onAddRule
void onAddRule(bool)
Definition: CREMessagePanel.cpp:172
CREMessagePanel::onMoveDown
void onMoveDown(bool)
Definition: CREMessagePanel.cpp:194
CREMessagePanel::myDefaultBackground
QBrush myDefaultBackground
Definition: CREMessagePanel.h:47
CREMessagePanel
Definition: CREMessagePanel.h:31
replace.current
current
Definition: replace.py:64
CREMessagePanel::myMessageManager
const MessageManager * myMessageManager
Definition: CREMessagePanel.h:42
manager
static AssetsManager * manager
Definition: assets.cpp:60