Crossfire Resources Editor
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 */
ArchetypeComboBox::ArchetypeComboBox
ArchetypeComboBox(QWidget *parent, bool allowNone)
Standard constructor.
Definition:
ArchetypeComboBox.cpp:18
ArchetypeComboBox::arch
const archetype arch
Definition:
ArchetypeComboBox.h:26
ArchetypeComboBox
Combobox displaying a list of archetypes, allowing selection and search.
Definition:
ArchetypeComboBox.h:23
ArchetypeComboBox::setArch
void setArch(const archetype *arch)
Set the selected archetype.
Definition:
ArchetypeComboBox.cpp:41
crossfire-crossfire-server
utils
cre
archetypes
ArchetypeComboBox.h
Generated on Mon Sep 1 2025 00:41:07 for Crossfire Resources Editor by
1.8.17