#ifndef GUIAPI_H #define GUIAPI_H #include "mainwindow.h" #include <QObject> #include <QVariantMap> #include <QStringList> class GuiApi : public QObject { Q_OBJECT public: explicit GuiApi(QObject *parent = 0, MainWindow* mw = 0); Q_INVOKABLE QVariantMap getWindowSize(); Q_INVOKABLE void setWindowSize(int w, int h); Q_INVOKABLE void setWindowStyle(const QString& styleName); Q_INVOKABLE QString getWindowStyle(); Q_INVOKABLE QStringList getWindowStyles(); Q_INVOKABLE void setWindowTitle(const QString & windowTitle); signals: public slots: private: MainWindow* m_MainWindow; QString m_CurrentWindowStyle; QStringList m_WindowStyles; }; #endif // GUIAPI_H
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 8115 | David George |
a bunch of changes to the GuiApi - probably bound to change, though, so use at your own risk! beginnings of migrating to an "all windows are created equal" model. (as opposed to a MainWindow) removing the unreliable Qt execution of the .js methods - please include in your HTML (<script type="text/javascript" src="qrc:/js/ClientKitMethods.js"></script>) |
||
#1 | 8101 | David George |
beginning of _massive_ re-factoring your current build settings will fail create a new project from newly added .pro file (but change its p4api paths to match your old one) look for updated README as soon as Dave agrees that changes are _indeed_ for the best (Changes by Jaimen) |