summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/embedding/simple-embed/embedviewimp.h
blob: c56f078c887fe794227e1007392beabd5d8278dd (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
//
// Author: Ian Reinhart Geiser <geiseri@kde.org>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef EMBEDVIEWIMP_H
#define EMBEDVIEWIMP_H

#include "embedview.h"
namespace KJSEmbed {
    class KJSEmbedPart;
}

class EmbedViewImp: public EmbedView {
    Q_OBJECT

public:
    EmbedViewImp( QWidget *parent = 0, const char *name = 0 );

    bool runScript( const QString &file );

public slots:
    virtual void cancelClicked();
    virtual void okClicked();
    virtual void consoleClicked();

    QVariant someValue() const;
    void setSomeValue( const QVariant &var );
private:
    KJSEmbed::KJSEmbedPart *m_part;
};

#endif