X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fmainwindow.h;h=4d1358ceb0743c5337d97ebddc1436051a1b983a;hb=HEAD;hp=1346b86377415ba5e16a1c625a0480683fcd59eb;hpb=1c3ddde4d8cd6a1c57b48caa2bfc278fbbaeee5b;p=apitrace diff --git a/gui/mainwindow.h b/gui/mainwindow.h index 1346b86..4d1358c 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -30,8 +30,11 @@ class SearchWidget; class ShadersSourceWidget; class TraceProcess; class TrimProcess; +class ProfileDialog; class VertexDataInterpreter; +namespace trace { struct Profile; } + class MainWindow : public QMainWindow { Q_OBJECT @@ -42,15 +45,19 @@ public: public slots: void loadTrace(const QString &fileName, int callNum = -1); + void setRemoteTarget(const QString &host); + private slots: void callItemSelected(const QModelIndex &index); void callItemActivated(const QModelIndex &index); void createTrace(); void openTrace(); void replayStart(); + void replayProfile(); void replayStop(); void replayFinished(const QString &message); void replayStateFound(ApiTraceState *state); + void replayProfileFound(trace::Profile *state); void replayThumbnailsFound(const QList &thumbnails); void replayError(const QString &msg); void startedLoadingTrace(); @@ -93,6 +100,7 @@ private slots: private: void initObjects(); void initConnections(); + void updateActionsState(bool traceLoaded, bool stopped = true); void newTraceFile(const QString &fileName); void replayTrace(bool dumpState, bool dumpThumbnails); void trimEvent(); @@ -107,6 +115,8 @@ private: ApiTraceFrame *currentFrame() const; ApiTraceCall *currentCall() const; +protected: + virtual void closeEvent(QCloseEvent * event); private: Ui_MainWindow m_ui; @@ -141,6 +151,8 @@ private: ArgumentsEditor *m_argsEditor; ApiTraceEvent *m_nonDefaultsLookupEvent; + + ProfileDialog* m_profileDialog; };