#ifndef MainWindow_h #define MainWindow_h #include <QMainWindow> #include "ClientKitApi.h" #include "KCommon.h" class QWebPage; class QWebFrame; class QString; class QStringlist; class QFrame; class QVBoxLayout; class MainWindow : public QMainWindow { Q_OBJECT public: explicit MainWindow(QWidget *parent = 0); ~MainWindow(); QStringList p4PointersList() {return mClientKitApiMap.keys();} // list of the pointer names bool createClientKitApi(QString newPointerName); bool setWindowStyle(QString styleName); QString getWindowStyle() {return mWindowStyle;} // current window style QStringList getWindowStyles() {return mWindowStyles;} // list of window styles void execJS(QString js); ClientKitApi* getCaller(int callerIndex) {return mClientKitApiMap[this->p4PointersList().at(callerIndex)];} protected: QString readFile(QString filename); QMap<QString, QString> parseConfFile(QString fileContents); public slots: void handleJavaScriptWindowObjectCleared(); private: ClientKitMap mClientKitApiMap; QFrame* mMainWidget; QWebPage* mWebPage; QString mConfigProgram; QString mWindowStyle; QStringList mWindowStyles; QStringList mMessageLog; // user debugging info QMap<QString, QVariant>* mCompleted; QString mRunAsyncJS; }; #endif // MainWindow_h
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#5 | 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>) |
||
#4 | 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) |
||
#3 | 8099 | David George | Added deleteClientKitApi method. | ||
#2 | 8086 | David George | A slew of changes initially done on the internal Perforce server, including async and native file/folder launching. | ||
#1 | 8083 | David George |
Merging //guest/james_creasy/ClientKit/... to //guest/david_george/ClientKit/... This merge also includes changes grabbed from the internal Perforce depot. |
||
//guest/james_creasy/ClientKit/mainwindow.h | |||||
#1 | 8060 | james_creasy | Client Kit for Perforce |