Crossfire Server, Trunk
CREReplyPanel.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 _CREREPLYPANEL_H
14
#define _CREREPLYPANEL_H
15
16
#include <QWidget>
17
18
class
QTreeWidget;
19
class
QLineEdit;
20
class
QComboBox;
21
class
QTreeWidgetItem;
22
26
class
CREReplyPanel
:
public
QWidget
27
{
28
Q_OBJECT
29
30
public
:
31
CREReplyPanel
(QWidget* parent);
32
virtual
~CREReplyPanel
();
33
34
void
setData
(
const
QList<QStringList>&
data
);
35
QList<QStringList>
getData
();
36
37
signals:
39
void
dataModified
();
40
41
private
:
43
QList<QStringList>
myData
;
45
QTreeWidget*
myReplies
;
47
QLineEdit*
myText
;
49
QLineEdit*
myMessage
;
51
QComboBox*
myType
;
52
58
void
setText
(QTreeWidgetItem*
item
, QStringList
data
);
62
void
updateItem
();
63
64
private
slots:
65
void
currentReplyChanged
(QTreeWidgetItem*, QTreeWidgetItem*);
66
void
onAddItem
(
bool
);
67
void
onDeleteItem
(
bool
);
68
void
onTextChanged
(
const
QString&);
69
void
onTypeChanged
(
int
);
70
};
71
72
#endif
/* _CREREPLYPANEL_H */
CREReplyPanel::myText
QLineEdit * myText
Definition:
CREReplyPanel.h:47
CREReplyPanel::~CREReplyPanel
virtual ~CREReplyPanel()
Definition:
CREReplyPanel.cpp:49
CREReplyPanel::onTextChanged
void onTextChanged(const QString &)
Definition:
CREReplyPanel.cpp:101
CREReplyPanel::dataModified
void dataModified()
CREReplyPanel::currentReplyChanged
void currentReplyChanged(QTreeWidgetItem *, QTreeWidgetItem *)
Definition:
CREReplyPanel.cpp:126
CREReplyPanel::myMessage
QLineEdit * myMessage
Definition:
CREReplyPanel.h:49
CREReplyPanel::myData
QList< QStringList > myData
Definition:
CREReplyPanel.h:43
CREReplyPanel::onTypeChanged
void onTypeChanged(int)
Definition:
CREReplyPanel.cpp:106
CREReplyPanel::setData
void setData(const QList< QStringList > &data)
Definition:
CREReplyPanel.cpp:53
navar-midane_time.data
data
Definition:
navar-midane_time.py:11
CREReplyPanel
Definition:
CREReplyPanel.h:26
CREReplyPanel::getData
QList< QStringList > getData()
Definition:
CREReplyPanel.cpp:63
CREReplyPanel::updateItem
void updateItem()
Definition:
CREReplyPanel.cpp:111
item
Definition:
item.py:1
CREReplyPanel::setText
void setText(QTreeWidgetItem *item, QStringList data)
Definition:
CREReplyPanel.cpp:89
CREReplyPanel::onDeleteItem
void onDeleteItem(bool)
Definition:
CREReplyPanel.cpp:78
CREReplyPanel::myType
QComboBox * myType
Definition:
CREReplyPanel.h:51
CREReplyPanel::CREReplyPanel
CREReplyPanel(QWidget *parent)
Definition:
CREReplyPanel.cpp:16
CREReplyPanel::onAddItem
void onAddItem(bool)
Definition:
CREReplyPanel.cpp:68
CREReplyPanel::myReplies
QTreeWidget * myReplies
Definition:
CREReplyPanel.h:45
crossfire-crossfire-server
utils
cre
CREReplyPanel.h
Generated by
1.8.17