Crossfire Server, Trunk
CREPlayerRepliesPanel.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 CREPLAYERREPLIESPANEL_H
14 #define CREPLAYERREPLIESPANEL_H
15 
16 #include <QDialog>
17 
18 class QTableWidget;
19 
23 class CREPlayerRepliesPanel : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
28  CREPlayerRepliesPanel(QWidget* parent);
29  virtual ~CREPlayerRepliesPanel();
30 
31  void setData(const QList<QStringList>& data);
32  QList<QStringList> data() const;
33 
34 private slots:
35  void onAddCondition(bool);
36  void onDeleteCondition(bool);
37  void onReset(bool);
38 
39 private:
40  void addItem(const QStringList& item);
41 
42  QTableWidget* myReplies;
43  QList<QStringList> myOriginal;
44 };
45 
46 #endif /* CREPLAYERREPLIESPANEL_H */
CREPlayerRepliesPanel::data
QList< QStringList > data() const
Definition: CREPlayerRepliesPanel.cpp:135
CREPlayerRepliesPanel::setData
void setData(const QList< QStringList > &data)
Definition: CREPlayerRepliesPanel.cpp:123
CREPlayerRepliesPanel::myOriginal
QList< QStringList > myOriginal
Definition: CREPlayerRepliesPanel.h:43
CREPlayerRepliesPanel::onDeleteCondition
void onDeleteCondition(bool)
Definition: CREPlayerRepliesPanel.cpp:157
CREPlayerRepliesPanel::~CREPlayerRepliesPanel
virtual ~CREPlayerRepliesPanel()
Definition: CREPlayerRepliesPanel.cpp:94
CREPlayerRepliesPanel::onReset
void onReset(bool)
Definition: CREPlayerRepliesPanel.cpp:165
CREPlayerRepliesPanel
Definition: CREPlayerRepliesPanel.h:23
CREPlayerRepliesPanel::CREPlayerRepliesPanel
CREPlayerRepliesPanel(QWidget *parent)
Definition: CREPlayerRepliesPanel.cpp:65
item
Definition: item.py:1
CREPlayerRepliesPanel::onAddCondition
void onAddCondition(bool)
Definition: CREPlayerRepliesPanel.cpp:149
CREPlayerRepliesPanel::myReplies
QTableWidget * myReplies
Definition: CREPlayerRepliesPanel.h:42
CREPlayerRepliesPanel::addItem
void addItem(const QStringList &item)
Definition: CREPlayerRepliesPanel.cpp:114