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.
26 lines
640 B
26 lines
640 B
15 years ago
|
#!/usr/bin/env kjscmd
|
||
|
|
||
|
// Create the UI
|
||
|
var mw = new KParts_MainWindow();
|
||
|
var ac = mw.actionCollection();
|
||
|
|
||
|
var split = new QSplitter( mw );
|
||
|
mw.setCentralWidget( split );
|
||
|
|
||
|
var view = Factory.createROPart( "text/html", split, "html" );
|
||
|
|
||
|
view.openStream( 'text/html', 'file:///index.html' );
|
||
|
view.writeStream( '<html><body><h1>Inserting Data Directly</h1>This shows how ' );
|
||
|
view.writeStream( 'you can send data to a part directly from a script. </body></html>' );
|
||
|
view.closeStream();
|
||
|
|
||
|
//
|
||
|
// Activate XMLGUI and show the window
|
||
|
//
|
||
|
StdAction.quit( mw, 'close()', mw.actionCollection() );
|
||
|
|
||
|
mw.resize( 700, 500 );
|
||
|
|
||
|
mw.show();
|
||
|
application.exec();
|