summaryrefslogtreecommitdiffstats
path: root/krusader/KrJS/krjs.h
blob: 73f81aed46ccb74e11357b089ccbb07ab3fbf7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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