summaryrefslogtreecommitdiffstats
path: root/examples/helpdemo/helpdemo.h
blob: c98f265284127fa39cbffb58bad45add41a84055 (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 TQAssistantClient;
class TQPopupMenu;

class HelpDemo : public HelpDemoBase
{
    Q_OBJECT

public:
    HelpDemo( TQWidget *parent = 0, const char *name = 0 );
    ~HelpDemo();

protected:
    void contextMenuEvent( TQContextMenuEvent *e );

private slots:
    void setAssistantArguments();
    void openAssistant();
    void closeAssistant();
    void displayPage();
    void showAssistantErrors( const TQString &err );
    void assistantOpened();
    void assistantClosed();
    void showHelp();

private:
    TQWidget* lookForWidget();
    void showHelp( TQWidget *w );

    TQPtrDict<char> widgets;
    TQAssistantClient *assistant;
    TQPopupMenu *menu;

};

#endif