summaryrefslogtreecommitdiffstats
path: root/examples/helpdemo/helpdemo.h
blob: 4c808adb99de692856f65004544bda9b94b2221c (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 <tqptrdict.h>

#include "helpdemobase.h"

class TQAssistantClient;
class TQPopupMenu;

class HelpDemo : public HelpDemoBase
{
    TQ_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