Crossfire Server, Trunk
CREFilterDialog.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_FILTER_DIALOG_H
14 #define CRE_FILTER_DIALOG_H
15 
16 #include <QDialog>
17 
18 class QTextEdit;
19 class QLineEdit;
20 class QListWidget;
21 
23 
24 class CREFilterDialog : public QDialog
25 {
26  Q_OBJECT
27 
28  public:
30 
31  protected:
32  QListWidget* myList;
33  QLineEdit* myName;
34  QTextEdit* myScript;
37 
38  virtual void accept();
39  virtual void reject();
40 
41  void refreshList();
42  void saveCurrentFilter();
43 
44  protected slots:
45  void onHelp();
46  void onAdd();
47  void onDelete();
48  void currentRowChanged(int currentRow);
49 };
50 
51 #endif // CRE_FILTER_DIALOG_H
CREFilterDialog::onAdd
void onAdd()
Definition: CREFilterDialog.cpp:82
CREFilterDefinitionManager
Definition: CREFilterDefinitionManager.h:21
CREFilterDialog::myFilters
CREFilterDefinitionManager myFilters
Definition: CREFilterDialog.h:35
CREFilterDialog
Definition: CREFilterDialog.h:24
CREFilterDialog::refreshList
void refreshList()
Definition: CREFilterDialog.cpp:107
CREFilterDialog::onDelete
void onDelete()
Definition: CREFilterDialog.cpp:92
CREFilterDialog::onHelp
void onHelp()
Definition: CREFilterDialog.cpp:77
CREFilterDialog::CREFilterDialog
CREFilterDialog()
Definition: CREFilterDialog.cpp:19
CREFilterDialog::saveCurrentFilter
void saveCurrentFilter()
Definition: CREFilterDialog.cpp:118
CREFilterDialog::reject
virtual void reject()
Definition: CREFilterDialog.cpp:69
CREFilterDialog::accept
virtual void accept()
Definition: CREFilterDialog.cpp:61
CREFilterDefinitionManager.h
CREFilterDialog::myFilterIndex
int myFilterIndex
Definition: CREFilterDialog.h:36
CREFilterDialog::myName
QLineEdit * myName
Definition: CREFilterDialog.h:33
CREFilterDialog::myList
QListWidget * myList
Definition: CREFilterDialog.h:32
CREFilterDialog::currentRowChanged
void currentRowChanged(int currentRow)
Definition: CREFilterDialog.cpp:129
CREFilterDialog::myScript
QTextEdit * myScript
Definition: CREFilterDialog.h:34