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.
33 lines
697 B
33 lines
697 B
// Interface for our JavaScript-Interpreter
|
|
//
|
|
// Author: Jonas Bähr (C) 2005
|
|
//
|
|
// Copyright: See COPYING file that comes with this distribution
|
|
//
|
|
|
|
#ifndef KRJS_H
|
|
#define KRJS_H
|
|
|
|
#include <kjsembed/kjsembedpart.h>
|
|
|
|
/**
|
|
* Our own version of KJSEmbedPart. Here are all the Krusader-specific extensions implemented.
|
|
*
|
|
* @author Jonas Bähr (http://jonas-baehr.de/)
|
|
*/
|
|
|
|
class KrJS: public KJSEmbed::KJSEmbedPart {
|
|
public:
|
|
KrJS();
|
|
|
|
/**
|
|
* This loads and runs a file. In addition to the original runFile function it displays an popup
|
|
* on errors and sets some variables
|
|
*
|
|
* @par filename The file to run
|
|
*/
|
|
bool runFile(const TQString & filename);
|
|
};
|
|
|
|
#endif //KRJS_H
|