summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/androiddevicedialog.h4
-rw-r--r--gui/androidfiledialog.h4
-rw-r--r--gui/androidretracer.h4
-rw-r--r--gui/androidutils.h4
-rw-r--r--gui/apicalldelegate.h5
-rw-r--r--gui/apisurface.h5
-rw-r--r--gui/apitrace.h5
-rw-r--r--gui/apitracecall.h6
-rw-r--r--gui/apitracefilter.h5
-rw-r--r--gui/apitracemodel.h5
-rw-r--r--gui/argumentseditor.h5
-rw-r--r--gui/calldurationgraph.h4
-rw-r--r--gui/graphing/frameaxiswidget.h5
-rw-r--r--gui/graphing/graphaxiswidget.h5
-rw-r--r--gui/graphing/graphing.h5
-rw-r--r--gui/graphing/graphlabelwidget.h5
-rw-r--r--gui/graphing/graphview.h5
-rw-r--r--gui/graphing/graphwidget.h5
-rw-r--r--gui/graphing/heatmapverticalaxiswidget.h5
-rw-r--r--gui/graphing/heatmapview.h5
-rw-r--r--gui/graphing/histogramview.h5
-rw-r--r--gui/graphing/timeaxiswidget.h5
-rw-r--r--gui/imageviewer.h6
-rw-r--r--gui/jumpwidget.h5
-rw-r--r--gui/mainwindow.h6
-rw-r--r--gui/pixelwidget.h5
-rw-r--r--gui/profiledialog.h5
-rw-r--r--gui/profileheatmap.h5
-rw-r--r--gui/profiletablemodel.h4
-rw-r--r--gui/profiling.h5
-rw-r--r--gui/retracer.h5
-rw-r--r--gui/saverthread.h6
-rw-r--r--gui/searchwidget.h5
-rw-r--r--gui/settingsdialog.h5
-rw-r--r--gui/shaderssourcewidget.h5
-rw-r--r--gui/thumbnail.h5
-rw-r--r--gui/tracedialog.h5
-rw-r--r--gui/traceloader.h5
-rw-r--r--gui/traceprocess.h5
-rw-r--r--gui/trimprocess.h5
-rw-r--r--gui/vertexdatainterpreter.h5
41 files changed, 41 insertions, 162 deletions
diff --git a/gui/androiddevicedialog.h b/gui/androiddevicedialog.h
index 9e48785a..0b994c6a 100644
--- a/gui/androiddevicedialog.h
+++ b/gui/androiddevicedialog.h
@@ -28,8 +28,7 @@
**
****************************************************************************/
-#ifndef ANDROIDDEVICEDIALOG_H
-#define ANDROIDDEVICEDIALOG_H
+#pragma once
#include "androidutils.h"
@@ -64,4 +63,3 @@ private:
Ui::AndroidDeviceDialog *m_ui;
};
-#endif // ANDROIDDEVICEDIALOG_H
diff --git a/gui/androidfiledialog.h b/gui/androidfiledialog.h
index 32c9948d..ac626ef0 100644
--- a/gui/androidfiledialog.h
+++ b/gui/androidfiledialog.h
@@ -1,5 +1,4 @@
-#ifndef ANDROIDFILEDIALOG_H
-#define ANDROIDFILEDIALOG_H
+#pragma once
#include <QDialog>
#include <QDialogButtonBox>
@@ -44,4 +43,3 @@ private:
Mode m_mode;
};
-#endif // ANDROIDFILEDIALOG_H
diff --git a/gui/androidretracer.h b/gui/androidretracer.h
index cc18444f..f2c758e5 100644
--- a/gui/androidretracer.h
+++ b/gui/androidretracer.h
@@ -1,5 +1,4 @@
-#ifndef ANDROIDRETRACER_H
-#define ANDROIDRETRACER_H
+#pragma once
#include <QAtomicInt>
#include <QTcpSocket>
@@ -32,4 +31,3 @@ private:
int m_stderrPort;
};
-#endif // ANDROIDRETRACER_H
diff --git a/gui/androidutils.h b/gui/androidutils.h
index 44f6c156..60c8abea 100644
--- a/gui/androidutils.h
+++ b/gui/androidutils.h
@@ -1,5 +1,4 @@
-#ifndef ANDROIDUTILS_H
-#define ANDROIDUTILS_H
+#pragma once
#include <QList>
#include <QObject>
@@ -70,4 +69,3 @@ private:
mutable qint64 m_wait;
mutable QString m_serialNumber;
};
-#endif // ANDROIDUTILS_H
diff --git a/gui/apicalldelegate.h b/gui/apicalldelegate.h
index 18c8b33a..c4379586 100644
--- a/gui/apicalldelegate.h
+++ b/gui/apicalldelegate.h
@@ -1,5 +1,4 @@
-#ifndef APICALLDELEGATE_H
-#define APICALLDELEGATE_H
+#pragma once
#include <QStyledItemDelegate>
@@ -20,5 +19,3 @@ private:
QIcon m_editEmblem;
QIcon m_errorEmblem;
};
-
-#endif
diff --git a/gui/apisurface.h b/gui/apisurface.h
index 19fbce31..6cb9efd3 100644
--- a/gui/apisurface.h
+++ b/gui/apisurface.h
@@ -1,5 +1,4 @@
-#ifndef APISURFACE_H
-#define APISURFACE_H
+#pragma once
#include <QImage>
#include <QSize>
@@ -68,5 +67,3 @@ private:
QString m_type;
};
-
-#endif
diff --git a/gui/apitrace.h b/gui/apitrace.h
index 99cf3e66..77cac61d 100644
--- a/gui/apitrace.h
+++ b/gui/apitrace.h
@@ -1,5 +1,4 @@
-#ifndef APITRACE_H
-#define APITRACE_H
+#pragma once
#include "apitracecall.h"
@@ -177,5 +176,3 @@ private:
ImageHash m_thumbnails;
};
-
-#endif
diff --git a/gui/apitracecall.h b/gui/apitracecall.h
index c99784d2..7ff03400 100644
--- a/gui/apitracecall.h
+++ b/gui/apitracecall.h
@@ -1,5 +1,4 @@
-#ifndef APITRACECALL_H
-#define APITRACECALL_H
+#pragma once
#include "apisurface.h"
@@ -369,6 +368,3 @@ private:
unsigned m_lastCallIndex;
};
Q_DECLARE_METATYPE(ApiTraceFrame*);
-
-
-#endif
diff --git a/gui/apitracefilter.h b/gui/apitracefilter.h
index 35f627df..b9cd75d5 100644
--- a/gui/apitracefilter.h
+++ b/gui/apitracefilter.h
@@ -1,5 +1,4 @@
-#ifndef APITRACEFILTER_H
-#define APITRACEFILTER_H
+#pragma once
#include <QRegExp>
#include <QSortFilterProxyModel>
@@ -40,5 +39,3 @@ private:
FilterOptions m_filters;
QRegExp m_customRegexp;
};
-
-#endif
diff --git a/gui/apitracemodel.h b/gui/apitracemodel.h
index e7354aa6..76876c20 100644
--- a/gui/apitracemodel.h
+++ b/gui/apitracemodel.h
@@ -1,5 +1,4 @@
-#ifndef APITRACEMODEL_H
-#define APITRACEMODEL_H
+#pragma once
#include <QAbstractItemModel>
@@ -67,5 +66,3 @@ private:
ApiTrace *m_trace;
QSet<ApiTraceFrame*> m_loadingFrames;
};
-
-#endif
diff --git a/gui/argumentseditor.h b/gui/argumentseditor.h
index 73cd4580..148b3ff6 100644
--- a/gui/argumentseditor.h
+++ b/gui/argumentseditor.h
@@ -1,5 +1,4 @@
-#ifndef ARGUMENTSEDITOR_H
-#define ARGUMENTSEDITOR_H
+#pragma once
#include "apitracecall.h"
#include "ui_argumentseditor.h"
@@ -182,5 +181,3 @@ private:
ApiTraceCall *m_call;
};
-
-#endif
diff --git a/gui/calldurationgraph.h b/gui/calldurationgraph.h
index 0c7e8c91..be6fe45e 100644
--- a/gui/calldurationgraph.h
+++ b/gui/calldurationgraph.h
@@ -1,5 +1,4 @@
-#ifndef CALLDURATIONGRAPH_H
-#define CALLDURATIONGRAPH_H
+#pragma once
#include "graphing/graphwidget.h"
#include "trace_profiler.hpp"
@@ -170,4 +169,3 @@ private:
SelectionState* m_selectionState;
};
-#endif
diff --git a/gui/graphing/frameaxiswidget.h b/gui/graphing/frameaxiswidget.h
index 59fdc162..4b2c4cbb 100644
--- a/gui/graphing/frameaxiswidget.h
+++ b/gui/graphing/frameaxiswidget.h
@@ -1,5 +1,4 @@
-#ifndef FRAMEAXISWIDGET_H
-#define FRAMEAXISWIDGET_H
+#pragma once
#include "graphaxiswidget.h"
@@ -30,5 +29,3 @@ public:
protected:
FrameDataProvider* m_data;
};
-
-#endif
diff --git a/gui/graphing/graphaxiswidget.h b/gui/graphing/graphaxiswidget.h
index 6ae00800..a8d1c01a 100644
--- a/gui/graphing/graphaxiswidget.h
+++ b/gui/graphing/graphaxiswidget.h
@@ -1,5 +1,4 @@
-#ifndef GRAPHAXISWIDGET_H
-#define GRAPHAXISWIDGET_H
+#pragma once
#include "graphing.h"
@@ -69,5 +68,3 @@ protected:
QPoint m_mousePressPosition;
qint64 m_mousePressValue;
};
-
-#endif
diff --git a/gui/graphing/graphing.h b/gui/graphing/graphing.h
index 35b4a913..f97df8b3 100644
--- a/gui/graphing/graphing.h
+++ b/gui/graphing/graphing.h
@@ -1,5 +1,4 @@
-#ifndef GRAPHING_H
-#define GRAPHING_H
+#pragma once
#include <QString>
@@ -44,5 +43,3 @@ public:
/* Set pointer to selection state */
virtual void setSelectionState(SelectionState* state) = 0;
};
-
-#endif
diff --git a/gui/graphing/graphlabelwidget.h b/gui/graphing/graphlabelwidget.h
index 49c0cd49..050dc40d 100644
--- a/gui/graphing/graphlabelwidget.h
+++ b/gui/graphing/graphlabelwidget.h
@@ -1,5 +1,4 @@
-#ifndef GRAPHLABELWIDGET_H
-#define GRAPHLABELWIDGET_H
+#pragma once
#include <QWidget>
#include <QPainter>
@@ -38,5 +37,3 @@ protected:
int m_flags;
QString m_text;
};
-
-#endif
diff --git a/gui/graphing/graphview.h b/gui/graphing/graphview.h
index 6b881d4e..94328b69 100644
--- a/gui/graphing/graphview.h
+++ b/gui/graphing/graphview.h
@@ -1,5 +1,4 @@
-#ifndef GRAPHVIEW_H
-#define GRAPHVIEW_H
+#pragma once
#include "graphing.h"
@@ -89,5 +88,3 @@ protected:
qint64 m_graphTop;
} m_previous;
};
-
-#endif
diff --git a/gui/graphing/graphwidget.h b/gui/graphing/graphwidget.h
index 16b77868..17cb4651 100644
--- a/gui/graphing/graphwidget.h
+++ b/gui/graphing/graphwidget.h
@@ -1,5 +1,4 @@
-#ifndef GRAPHWIDGET_H
-#define GRAPHWIDGET_H
+#pragma once
#include "graphview.h"
#include "graphaxiswidget.h"
@@ -108,5 +107,3 @@ protected:
qint64 m_verticalEnd;
Qt::ScrollBarPolicy m_verticalScrollbarPolicy;
};
-
-#endif
diff --git a/gui/graphing/heatmapverticalaxiswidget.h b/gui/graphing/heatmapverticalaxiswidget.h
index ca64adb4..9a21c25b 100644
--- a/gui/graphing/heatmapverticalaxiswidget.h
+++ b/gui/graphing/heatmapverticalaxiswidget.h
@@ -1,5 +1,4 @@
-#ifndef HEATMAPVERTICALAXISWIDGET_H
-#define HEATMAPVERTICALAXISWIDGET_H
+#pragma once
#include "heatmapview.h"
#include "graphaxiswidget.h"
@@ -20,5 +19,3 @@ protected:
int m_rowHeight;
HeatmapDataProvider* m_data;
};
-
-#endif
diff --git a/gui/graphing/heatmapview.h b/gui/graphing/heatmapview.h
index 781c9a7a..86d8848d 100644
--- a/gui/graphing/heatmapview.h
+++ b/gui/graphing/heatmapview.h
@@ -1,5 +1,4 @@
-#ifndef HEATMAPVIEW_H
-#define HEATMAPVIEW_H
+#pragma once
#include "graphview.h"
@@ -120,5 +119,3 @@ protected:
int m_rowHeight;
HeatmapDataProvider* m_data;
};
-
-#endif
diff --git a/gui/graphing/histogramview.h b/gui/graphing/histogramview.h
index 563d664b..ae89f7b1 100644
--- a/gui/graphing/histogramview.h
+++ b/gui/graphing/histogramview.h
@@ -1,5 +1,4 @@
-#ifndef HISTOGRAMVIEW_H
-#define HISTOGRAMVIEW_H
+#pragma once
#include "graphview.h"
@@ -37,5 +36,3 @@ protected:
GraphDataProvider* m_data;
};
-
-#endif
diff --git a/gui/graphing/timeaxiswidget.h b/gui/graphing/timeaxiswidget.h
index 836651cb..7f79a399 100644
--- a/gui/graphing/timeaxiswidget.h
+++ b/gui/graphing/timeaxiswidget.h
@@ -1,5 +1,4 @@
-#ifndef TIMEAXISWIDGET_H
-#define TIMEAXISWIDGET_H
+#pragma once
#include "graphaxiswidget.h"
@@ -12,5 +11,3 @@ public:
virtual void paintEvent(QPaintEvent *e);
};
-
-#endif
diff --git a/gui/imageviewer.h b/gui/imageviewer.h
index ce5d9bdd..daf5baed 100644
--- a/gui/imageviewer.h
+++ b/gui/imageviewer.h
@@ -1,5 +1,4 @@
-#ifndef IMAGEVIEWER_H
-#define IMAGEVIEWER_H
+#pragma once
#include "ui_imageviewer.h"
#include <QDialog>
@@ -35,6 +34,3 @@ private:
QImage m_convertedImage;
PixelWidget *m_pixelWidget;
};
-
-
-#endif
diff --git a/gui/jumpwidget.h b/gui/jumpwidget.h
index 5f71c002..8fec83f4 100644
--- a/gui/jumpwidget.h
+++ b/gui/jumpwidget.h
@@ -1,5 +1,4 @@
-#ifndef JUMPWIDGET_H
-#define JUMPWIDGET_H
+#pragma once
#include "ui_jumpwidget.h"
#include <QWidget>
@@ -27,5 +26,3 @@ protected:
private:
Ui_JumpWidget m_ui;
};
-
-#endif
diff --git a/gui/mainwindow.h b/gui/mainwindow.h
index 22799ff9..d5107da7 100644
--- a/gui/mainwindow.h
+++ b/gui/mainwindow.h
@@ -1,5 +1,4 @@
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
+#pragma once
#include "ui_mainwindow.h"
@@ -168,6 +167,3 @@ private:
ProfileDialog* m_profileDialog;
QString m_androidFilePath;
};
-
-
-#endif
diff --git a/gui/pixelwidget.h b/gui/pixelwidget.h
index 837dde40..6d92a84e 100644
--- a/gui/pixelwidget.h
+++ b/gui/pixelwidget.h
@@ -44,8 +44,7 @@
**
****************************************************************************/
-#ifndef PIXELWIDGET_H
-#define PIXELWIDGET_H
+#pragma once
#include <qwidget.h>
#include <qpixmap.h>
@@ -111,5 +110,3 @@ private:
QSize m_initialSize;
QColor m_currentColor;
};
-
-#endif // PIXELWIDGET_H
diff --git a/gui/profiledialog.h b/gui/profiledialog.h
index 862d068b..b6c3f163 100644
--- a/gui/profiledialog.h
+++ b/gui/profiledialog.h
@@ -1,5 +1,4 @@
-#ifndef PROFILEDIALOG_H
-#define PROFILEDIALOG_H
+#pragma once
#include "ui_profiledialog.h"
#include <QDialog>
@@ -27,5 +26,3 @@ signals:
private:
trace::Profile *m_profile;
};
-
-#endif
diff --git a/gui/profileheatmap.h b/gui/profileheatmap.h
index 15a919f6..548917bd 100644
--- a/gui/profileheatmap.h
+++ b/gui/profileheatmap.h
@@ -1,5 +1,4 @@
-#ifndef PROFILEHEATMAP_H
-#define PROFILEHEATMAP_H
+#pragma once
#include "graphing/heatmapview.h"
#include "profiling.h"
@@ -466,5 +465,3 @@ protected:
std::vector<int> m_rowPrograms;
SelectionState* m_selectionState;
};
-
-#endif
diff --git a/gui/profiletablemodel.h b/gui/profiletablemodel.h
index da175503..e2288b42 100644
--- a/gui/profiletablemodel.h
+++ b/gui/profiletablemodel.h
@@ -1,5 +1,4 @@
-#ifndef PROFILETABLEMODEL_H
-#define PROFILETABLEMODEL_H
+#pragma once
#include <QAbstractTableModel>
#include "trace_profiler.hpp"
@@ -67,4 +66,3 @@ private:
Qt::SortOrder m_sortOrder;
};
-#endif // PROFILEMODEL_H
diff --git a/gui/profiling.h b/gui/profiling.h
index a5b12660..6d4ef806 100644
--- a/gui/profiling.h
+++ b/gui/profiling.h
@@ -1,5 +1,4 @@
-#ifndef PROFILING_H
-#define PROFILING_H
+#pragma once
#include <QString>
#include <QLocale>
@@ -124,5 +123,3 @@ public:
}
}
};
-
-#endif
diff --git a/gui/retracer.h b/gui/retracer.h
index e64519fe..bd395e2c 100644
--- a/gui/retracer.h
+++ b/gui/retracer.h
@@ -1,5 +1,4 @@
-#ifndef RETRACER_H
-#define RETRACER_H
+#pragma once
#include "trace_api.hpp"
#include "apitrace.h"
@@ -91,5 +90,3 @@ private:
QList<qlonglong> m_thumbnailsToCapture;
};
-
-#endif
diff --git a/gui/saverthread.h b/gui/saverthread.h
index e8c6889f..f53296e1 100644
--- a/gui/saverthread.h
+++ b/gui/saverthread.h
@@ -1,5 +1,4 @@
-#ifndef SAVERTHREAD_H
-#define SAVERTHREAD_H
+#pragma once
#include "apitrace.h"
@@ -31,6 +30,3 @@ private:
QString m_writeFileName;
QSet<ApiTraceCall*> m_editedCalls;
};
-
-
-#endif
diff --git a/gui/searchwidget.h b/gui/searchwidget.h
index f59b4a0c..6415ef28 100644
--- a/gui/searchwidget.h
+++ b/gui/searchwidget.h
@@ -1,5 +1,4 @@
-#ifndef SEARCHWIDGET_H
-#define SEARCHWIDGET_H
+#pragma once
#include "ui_searchwidget.h"
#include <QPalette>
@@ -34,5 +33,3 @@ private:
Ui_SearchWidget m_ui;
QPalette m_origPalette;
};
-
-#endif
diff --git a/gui/settingsdialog.h b/gui/settingsdialog.h
index 6ea3969b..aa2db34f 100644
--- a/gui/settingsdialog.h
+++ b/gui/settingsdialog.h
@@ -1,5 +1,4 @@
-#ifndef SETTINGSDIALOG_H
-#define SETTINGSDIALOG_H
+#pragma once
#include "trace_api.hpp"
#include "apitracefilter.h"
@@ -33,5 +32,3 @@ private:
QMap<QString, QRegExp> m_showFilters;
ApiTraceFilter *m_filter;
};
-
-#endif
diff --git a/gui/shaderssourcewidget.h b/gui/shaderssourcewidget.h
index 9a5c3228..d40ea6e8 100644
--- a/gui/shaderssourcewidget.h
+++ b/gui/shaderssourcewidget.h
@@ -1,5 +1,4 @@
-#ifndef SHADERSSOURCEWIDGET_H
-#define SHADERSSOURCEWIDGET_H
+#pragma once
#include "ui_shaderssourcewidget.h"
#include <QWidget>
@@ -22,5 +21,3 @@ private:
QMap<QString, QString> m_sources;
GLSLEdit *m_edit;
};
-
-#endif
diff --git a/gui/thumbnail.h b/gui/thumbnail.h
index 23155648..9cf8fca6 100644
--- a/gui/thumbnail.h
+++ b/gui/thumbnail.h
@@ -1,5 +1,4 @@
-#ifndef THUMBNAIL_H
-#define THUMBNAIL_H
+#pragma once
#define THUMBNAIL_SIZE 64
@@ -9,5 +8,3 @@ inline QImage
thumbnail(const QImage &image, Qt::TransformationMode transformationMode = Qt::FastTransformation) {
return image.scaled(THUMBNAIL_SIZE, THUMBNAIL_SIZE, Qt::KeepAspectRatio, transformationMode);
}
-
-#endif
diff --git a/gui/tracedialog.h b/gui/tracedialog.h
index 0ebe13ad..cf45833d 100644
--- a/gui/tracedialog.h
+++ b/gui/tracedialog.h
@@ -1,5 +1,4 @@
-#ifndef TRACEDIALOG_H
-#define TRACEDIALOG_H
+#pragma once
#include "ui_tracedialog.h"
#include <QDialog>
@@ -22,5 +21,3 @@ private slots:
private:
bool isFileOk(const QString &fileName);
};
-
-#endif
diff --git a/gui/traceloader.h b/gui/traceloader.h
index 65a179d9..daf3b3da 100644
--- a/gui/traceloader.h
+++ b/gui/traceloader.h
@@ -1,5 +1,4 @@
-#ifndef TRACELOADER_H
-#define TRACELOADER_H
+#pragma once
#include "apitrace.h"
@@ -118,5 +117,3 @@ private:
QVector<ApiTraceCallSignature*> m_signatures;
};
-
-#endif
diff --git a/gui/traceprocess.h b/gui/traceprocess.h
index 343bac96..f3634237 100644
--- a/gui/traceprocess.h
+++ b/gui/traceprocess.h
@@ -1,5 +1,4 @@
-#ifndef TRACEPROCESS_H
-#define TRACEPROCESS_H
+#pragma once
#include <QObject>
#include <QProcess>
@@ -40,5 +39,3 @@ private:
bool m_canTrace;
};
-
-#endif
diff --git a/gui/trimprocess.h b/gui/trimprocess.h
index 4cce35d8..0d55c889 100644
--- a/gui/trimprocess.h
+++ b/gui/trimprocess.h
@@ -1,5 +1,4 @@
-#ifndef TRIMPROCESS_H
-#define TRIMPROCESS_H
+#pragma once
#include "apitrace.h"
@@ -40,5 +39,3 @@ private:
int m_trimIndex;
QProcess *m_process;
};
-
-#endif
diff --git a/gui/vertexdatainterpreter.h b/gui/vertexdatainterpreter.h
index 6bf9b11c..1ad46b7d 100644
--- a/gui/vertexdatainterpreter.h
+++ b/gui/vertexdatainterpreter.h
@@ -1,5 +1,4 @@
-#ifndef VERTEXDATAINTERPRETER_H
-#define VERTEXDATAINTERPRETER_H
+#pragma once
#include <QObject>
@@ -49,5 +48,3 @@ private:
int m_components;
int m_startingOffset;
};
-
-#endif