-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtopjcdialog.h
executable file
·60 lines (48 loc) · 1.18 KB
/
topjcdialog.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef TOPJCDIALOG_H
#define TOPJCDIALOG_H
#include <retroshare-gui/mainpage.h>
#include <retroshare-gui/RsAutoUpdatePage.h>
#include <retroshare/rsfiles.h>
#include <retroshare/rspeers.h>
#include <QWidget>
#include <QtWebKit>
#include <QTextBrowser>
#include "p3JsonRS.h"
#include "webviewrs.h"
#include "qjsonrpctcpserver.h"
#ifdef EMBPYTHON
#include "embpyqt/embeddedpyqt.h"
#endif
namespace Ui {
class WebScriptDialog;
}
class WebScriptDialog : public MainPage
{
Q_OBJECT
public:
explicit WebScriptDialog(QWidget *parent = 0);
~WebScriptDialog();
void setP3service(p3JsonRS *p3servicein);
p3JsonRS *p3service;
WebBridgeRS *bridge;
#ifdef EMBPYTHON
EmbeddedPyQt *embpyqt;
#endif
public slots:
void doPython();
void addTab();
void onNewTabUrl(QString url);
void removeTab();
void onTitleChanged(QString title);
void onNewRsTab(QString hash);
void startRPC();
protected slots:
void adjustLocation();
void changeLocation();
protected:
void javaScriptConsoleMessage(const QString& message, int lineNumber, const QString& sourceID);
private:
Ui::WebScriptDialog *ui;
QJsonRpcTcpServer rpcServer;
};
#endif // TOPJCDIALOG_H