Crossfire Server, Trunk
AssetFieldCompleter.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 ASSET_FIELD_COMPLETER_H
14 #define ASSET_FIELD_COMPLETER_H
15 
16 #include <QCompleter>
17 
18 class QStandardItem;
19 
25 class AssetFieldCompleter : public QCompleter {
26 
27 public:
32  AssetFieldCompleter(QWidget *parent);
33 
34 protected:
35  virtual QStringList splitPath(const QString &path) const override;
36  virtual QString pathFromIndex(const QModelIndex &index) const override;
37 };
38 
39 #endif /* ASSET_FIELD_COMPLETER_H */
AssetFieldCompleter::AssetFieldCompleter
AssetFieldCompleter(QWidget *parent)
Definition: AssetFieldCompleter.cpp:61
AssetFieldCompleter::splitPath
virtual QStringList splitPath(const QString &path) const override
Definition: AssetFieldCompleter.cpp:73
AssetFieldCompleter
Definition: AssetFieldCompleter.h:25
path
pluglist shows those as well as a short text describing each the list will simply appear empty The keyword for the Python plugin is Python plugout< keyword > Unloads a given identified by its _keyword_ So if you want to unload the Python you need to do plugout Python plugin< libname > Loads a given whose _filename_ is libname So in the case of you d have to do a plugin cfpython so Note that all filenames are relative to the default plugin path(SHARE/plugins). Console messages. ----------------- When Crossfire starts
AssetFieldCompleter::pathFromIndex
virtual QString pathFromIndex(const QModelIndex &index) const override
Definition: AssetFieldCompleter.cpp:77
npc_dialog.index
int index
Definition: npc_dialog.py:102