Crossfire Server, Trunk
HelpManager.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 HELP_MANAGER_H
14
#define HELP_MANAGER_H
15
16
#include <QHelpEngine>
17
18
class
QDialog;
19
class
HelpBrowser
;
20
class
AssetWrapper
;
21
class
QTreeView;
22
23
class
HelpManager
:
public
QHelpEngine {
24
Q_OBJECT
25
public
:
26
static
const
char
*
assetTreeProperty
;
27
static
const
char
*
helpIdProperty
;
28
29
HelpManager
(
const
QString &helpRoot);
30
virtual
~HelpManager
();
31
32
static
void
setHelpId
(QWidget *widget,
const
QString &
id
);
33
34
public
slots:
35
void
displayHelp
();
36
37
protected
:
38
QUrl
computeUrlForWidget
(QWidget *widget)
const
;
39
QUrl
computeUrlToDisplay
()
const
;
40
41
QDialog *
myDisplay
;
42
HelpBrowser
*
myBrowser
;
43
};
44
45
#endif
/* HELP_MANAGER_H */
HelpManager::myDisplay
QDialog * myDisplay
Definition:
HelpManager.h:41
HelpManager::computeUrlToDisplay
QUrl computeUrlToDisplay() const
Definition:
HelpManager.cpp:77
HelpManager::computeUrlForWidget
QUrl computeUrlForWidget(QWidget *widget) const
Definition:
HelpManager.cpp:63
HelpManager::HelpManager
HelpManager(const QString &helpRoot)
Definition:
HelpManager.cpp:26
HelpBrowser
Definition:
HelpBrowser.h:20
HelpManager::helpIdProperty
static const char * helpIdProperty
Definition:
HelpManager.h:27
AssetWrapper
Definition:
AssetWrapper.h:25
HelpManager::setHelpId
static void setHelpId(QWidget *widget, const QString &id)
Definition:
HelpManager.cpp:58
HelpManager
Definition:
HelpManager.h:23
HelpManager::~HelpManager
virtual ~HelpManager()
Definition:
HelpManager.cpp:46
HelpManager::displayHelp
void displayHelp()
Definition:
HelpManager.cpp:50
HelpManager::myBrowser
HelpBrowser * myBrowser
Definition:
HelpManager.h:42
HelpManager::assetTreeProperty
static const char * assetTreeProperty
Definition:
HelpManager.h:26
crossfire-crossfire-server
utils
cre
HelpManager.h
Generated by
1.8.17