Crossfire Server, Trunk
CREReportDialog.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 CRE_REPORT_DIALOG_H
14 #define CRE_REPORT_DIALOG_H
15 
16 #include <QDialog>
17 
18 class QTextEdit;
19 class QLineEdit;
20 class QListWidget;
21 
23 
24 class CREReportDialog : public QDialog
25 {
26  Q_OBJECT
27 
28  public:
30 
31  protected:
32  QListWidget* myList;
33  QLineEdit* myName;
34  QTextEdit* myHeader;
35  QTextEdit* mySort;
36  QTextEdit* myDisplay;
37  QTextEdit* myFooter;
40 
41  virtual void accept();
42  virtual void reject();
43 
44  void refreshList();
45  void saveCurrentReport();
46 
47  protected slots:
48  void onHelp();
49  void onAdd();
50  void onDelete();
51  void currentRowChanged(int currentRow);
52 };
53 
54 #endif // CRE_REPORT_DIALOG_H
CREReportDefinitionManager
Definition: CREReportDefinitionManager.h:21
CREReportDialog::CREReportDialog
CREReportDialog()
Definition: CREReportDialog.cpp:19
CREReportDefinitionManager.h
CREReportDialog::onHelp
void onHelp()
Definition: CREReportDialog.cpp:96
CREReportDialog::saveCurrentReport
void saveCurrentReport()
Definition: CREReportDialog.cpp:138
CREReportDialog::reject
virtual void reject()
Definition: CREReportDialog.cpp:88
CREReportDialog::refreshList
void refreshList()
Definition: CREReportDialog.cpp:127
CREReportDialog::myHeader
QTextEdit * myHeader
Definition: CREReportDialog.h:34
CREReportDialog::currentRowChanged
void currentRowChanged(int currentRow)
Definition: CREReportDialog.cpp:152
CREReportDialog::mySort
QTextEdit * mySort
Definition: CREReportDialog.h:35
CREReportDialog::myFooter
QTextEdit * myFooter
Definition: CREReportDialog.h:37
CREReportDialog::accept
virtual void accept()
Definition: CREReportDialog.cpp:80
CREReportDialog::onDelete
void onDelete()
Definition: CREReportDialog.cpp:112
CREReportDialog::myReports
CREReportDefinitionManager myReports
Definition: CREReportDialog.h:38
CREReportDialog::myReportIndex
int myReportIndex
Definition: CREReportDialog.h:39
CREReportDialog::myName
QLineEdit * myName
Definition: CREReportDialog.h:33
CREReportDialog
Definition: CREReportDialog.h:24
CREReportDialog::myList
QListWidget * myList
Definition: CREReportDialog.h:32
CREReportDialog::myDisplay
QTextEdit * myDisplay
Definition: CREReportDialog.h:36
CREReportDialog::onAdd
void onAdd()
Definition: CREReportDialog.cpp:102