summaryrefslogtreecommitdiffstats
path: root/kjsembed/docs/embedding/qtembed/posviewimp.cpp
blob: 118e471bcd5306596fa8e8eeeeab3910953791d9 (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(TTQWidget *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() );
}