Crossfire Server, Trunk
ArchetypeComboBox.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 ARCHETYPE_LIST_COMBOBOX_H
14 #define ARCHETYPE_LIST_COMBOBOX_H
15 
16 #include <QtWidgets>
17 
18 #include "global.h"
19 
23 class ArchetypeComboBox : public QComboBox {
24  Q_OBJECT
25 
26  Q_PROPERTY(const archetype *arch READ arch WRITE setArch)
27 
28  public:
34  ArchetypeComboBox(QWidget *parent, bool allowNone);
35 
40  void setArch(const archetype *arch);
45  const archetype *arch() const;
46 };
47 
48 #endif /* ARCHETYPE_LIST_COMBOBOX_H */
global.h
ArchetypeComboBox::ArchetypeComboBox
ArchetypeComboBox(QWidget *parent, bool allowNone)
Definition: ArchetypeComboBox.cpp:18
ArchetypeComboBox::arch
const archetype arch
Definition: ArchetypeComboBox.h:26
ArchetypeComboBox
Definition: ArchetypeComboBox.h:23
archetype
Definition: object.h:483
ArchetypeComboBox::setArch
void setArch(const archetype *arch)
Definition: ArchetypeComboBox.cpp:41