X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=gui%2Fmainwindow.h;h=78267efca4c9f5cd98bb4eb0b48a5bc980ae3ceb;hb=c8695f74ce1ee6a93dee4b3f7da5a70a64706c82;hp=1346b86377415ba5e16a1c625a0480683fcd59eb;hpb=1c3ddde4d8cd6a1c57b48caa2bfc278fbbaeee5b;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; };