diff options
Diffstat (limited to 'krusader/KrJS/krjs.h')
-rw-r--r-- | krusader/KrJS/krjs.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/krusader/KrJS/krjs.h b/krusader/KrJS/krjs.h new file mode 100644 index 0000000..73f81ae --- /dev/null +++ b/krusader/KrJS/krjs.h @@ -0,0 +1,32 @@ +// 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 QString & filename); +}; + +#endif //KRJS_H |