blob: 9916872896f8b0512d35c498c7672cead7b917b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef HELPDEMO_H
#define HELPDEMO_H
#include <qptrdict.h>
#include "helpdemobase.h"
class QAssistantClient;
class QPopupMenu;
class HelpDemo : public HelpDemoBase
{
Q_OBJECT
public:
HelpDemo( QWidget *parent = 0, const char *name = 0 );
~HelpDemo();
protected:
void contextMenuEvent( QContextMenuEvent *e );
private slots:
void setAssistantArguments();
void openAssistant();
void closeAssistant();
void displayPage();
void showAssistantErrors( const QString &err );
void assistantOpened();
void assistantClosed();
void showHelp();
private:
QWidget* lookForWidget();
void showHelp( QWidget *w );
QPtrDict<char> widgets;
QAssistantClient *assistant;
QPopupMenu *menu;
};
#endif
|