summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/embedding/qtembed/posviewimp.cpp
blob: a9c3c289d439d45bd4d5e4f957d4f468a061385f (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
//
// Author: Ian Reinhart Geiser <geiseri@kde.org>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "posviewimp.h"

#include <kjsembed/kjsembedpart.h>
#include <kjsembed/jsconsolewidget.h>
#include <kjsembed/jsbinding.h>

#include <tqgroupbox.h>
#include <tqdatetime.h>
#include <tqcolor.h>

POSViewImp::POSViewImp(TQWidget *parent, const char *name)
    :POSViewBase(parent, name)
{
    m_part = new KJSEmbed::KJSEmbedPart(0, "kjsembed_part", this,"JSEmbed");
	m_part->addObject(appFrame, "appFrame");
	loadScript();
}

void POSViewImp::loadScript()
{
	m_part->runFile("test.js", m_part->globalObject() );
}