You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
//
|
|
|
|
// 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() );
|
|
|
|
}
|
|
|
|
|
|
|
|
|