|
@ -32,17 +32,17 @@ |
|
|
#include <QObject> |
|
|
#include <QObject> |
|
|
|
|
|
|
|
|
class QQmlApplicationEngine; |
|
|
class QQmlApplicationEngine; |
|
|
|
|
|
|
|
|
namespace dev |
|
|
namespace dev |
|
|
{ |
|
|
{ |
|
|
|
|
|
class WebThreeDirect; |
|
|
class WebThreeDirect; |
|
|
namespace solidity |
|
|
|
|
|
{ |
|
|
namespace eth |
|
|
class CompilerStack; |
|
|
{ |
|
|
} |
|
|
class Client; |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
namespace dev |
|
|
|
|
|
{ |
|
|
namespace mix |
|
|
namespace mix |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
@ -57,7 +57,8 @@ class AppContext : public QObject |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
AppContext(QQmlApplicationEngine* _engine); |
|
|
AppContext(QQmlApplicationEngine* _engine); |
|
|
~AppContext(); |
|
|
virtual ~AppContext(); |
|
|
|
|
|
/// Get the current QQMLApplicationEngine instance.
|
|
|
QQmlApplicationEngine* appEngine(); |
|
|
QQmlApplicationEngine* appEngine(); |
|
|
/// Get code model
|
|
|
/// Get code model
|
|
|
CodeModel* codeModel() { return m_codeModel.get(); } |
|
|
CodeModel* codeModel() { return m_codeModel.get(); } |
|
@ -76,7 +77,7 @@ private: |
|
|
public slots: |
|
|
public slots: |
|
|
/// Delete the current instance when application quit.
|
|
|
/// Delete the current instance when application quit.
|
|
|
void quitApplication() {} |
|
|
void quitApplication() {} |
|
|
|
|
|
/// Write json to a settings file
|
|
|
void saveProject(QString const& _json); |
|
|
void saveProject(QString const& _json); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|