X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fmainwindow.h;h=78267efca4c9f5cd98bb4eb0b48a5bc980ae3ceb;hb=7a9fb5103e052150232b64cb5d99374cda3f1234;hp=1346b86377415ba5e16a1c625a0480683fcd59eb;hpb=1da480dd320a9d3d631a94025ca40609099f6d34;p=apitrace diff --git a/gui/mainwindow.h b/gui/mainwindow.h index 1346b86..78267ef 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 @@ -48,9 +51,11 @@ private slots: 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 +98,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 +113,8 @@ private: ApiTraceFrame *currentFrame() const; ApiTraceCall *currentCall() const; +protected: + virtual void closeEvent(QCloseEvent * event); private: Ui_MainWindow m_ui; @@ -141,6 +149,8 @@ private: ArgumentsEditor *m_argsEditor; ApiTraceEvent *m_nonDefaultsLookupEvent; + + ProfileDialog* m_profileDialog; };