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.
42 lines
990 B
42 lines
990 B
15 years ago
|
#include <kapplication.h>
|
||
|
#include <kcmdlineargs.h>
|
||
|
#include <kdebug.h>
|
||
14 years ago
|
#include <tqstring.h>
|
||
15 years ago
|
#include <stdio.h>
|
||
|
#include <unistd.h>
|
||
|
|
||
|
#include "java/kjavaappletserver.h"
|
||
|
#include "java/kjavaapplet.h"
|
||
|
#include "java/kjavaappletwidget.h"
|
||
|
|
||
|
static KCmdLineOptions options[] =
|
||
|
{
|
||
13 years ago
|
{ "+[tdelibs_path]", "path to tdelibs directory", 0 },
|
||
15 years ago
|
KCmdLineLastOption
|
||
|
};
|
||
|
|
||
|
int main(int argc, char **argv)
|
||
|
{
|
||
12 years ago
|
TDECmdLineArgs::init( argc, argv, "testKJASSever", "testKJASServer", "test program", "0.0" );
|
||
15 years ago
|
|
||
12 years ago
|
TDECmdLineArgs::addCmdLineOptions( options );
|
||
15 years ago
|
|
||
12 years ago
|
TDEApplication app;
|
||
15 years ago
|
|
||
13 years ago
|
TQString path_to_tdelibs = "/build/wynnw/kde-src";
|
||
15 years ago
|
|
||
|
KJavaAppletWidget *a = new KJavaAppletWidget;
|
||
|
|
||
|
a->show();
|
||
|
|
||
12 years ago
|
a->applet()->setBaseURL( "file:" + path_to_tdelibs + "/tdelibs/tdehtml/test/" );
|
||
15 years ago
|
a->applet()->setAppletName( "Lake" );
|
||
|
a->applet()->setAppletClass( "lake.class" );
|
||
|
a->applet()->setParameter( "image", "konqi.gif" );
|
||
|
|
||
|
a->showApplet();
|
||
|
a->applet()->start();
|
||
|
|
||
|
app.exec();
|
||
|
}
|