Skip to content

Commit

Permalink
Remove #include "gui/..." prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
MRtrixBot authored and daljit46 committed Oct 17, 2024
1 parent 7241db9 commit 0913ceb
Show file tree
Hide file tree
Showing 157 changed files with 417 additions and 417 deletions.
14 changes: 7 additions & 7 deletions cpp/cmd/mrview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
*/

// clang-format off
#include "gui/gui.h"
#include "gui.h"
#include "command.h"
// clang-format on

#include "gui/mrview/icons.h"
#include "gui/mrview/mode/list.h"
#include "gui/mrview/sync/syncmanager.h"
#include "gui/mrview/tool/list.h"
#include "gui/mrview/window.h"
#include "mrview/icons.h"
#include "mrview/mode/list.h"
#include "mrview/sync/syncmanager.h"
#include "mrview/tool/list.h"
#include "mrview/window.h"
#include "memory.h"
#include "progressbar.h"

Expand Down Expand Up @@ -75,7 +75,7 @@ void usage() {
MR::GUI::MRView::Tool::classname::add_commandline_options(OPTIONS);
{
using namespace MR::GUI::MRView::Tool;
#include "gui/mrview/tool/list.h"
#include "mrview/tool/list.h"
}

REQUIRES_AT_LEAST_ONE_ARGUMENT = false;
Expand Down
6 changes: 3 additions & 3 deletions cpp/cmd/shview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@
*/

// clang-format off
#include "gui/gui.h"
#include "gui.h"
#include "command.h"
// clang-format on

#include "file/path.h"
#include "gui/shview/icons.h"
#include "gui/shview/render_window.h"
#include "shview/icons.h"
#include "shview/render_window.h"
#include "math/SH.h"
#include "progressbar.h"

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set_target_properties(mrtrix-gui PROPERTIES
)

if(MRTRIX_USE_PCH)
target_precompile_headers(mrtrix-gui PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/gui/gui_pch.h)
target_precompile_headers(mrtrix-gui PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/gui_pch.h)
endif()

target_include_directories(mrtrix-gui PUBLIC
Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/color_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/color_button.h"
#include "color_button.h"

QColorButton::QColorButton(QWidget *parent, const char *name) : QPushButton(name, parent) {
connect(this, SIGNAL(clicked()), this, SLOT(chooseColor()));
Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/color_button.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "gui/opengl/gl.h"
#include "opengl/gl.h"

class QColorButton : public QPushButton {
Q_OBJECT
Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/crosshair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/crosshair.h"
#include "crosshair.h"

#include "gui/projection.h"
#include "projection.h"

namespace MR::GUI {

Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/crosshair.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "types.h"

#include "gui/opengl/gl.h"
#include "gui/opengl/shader.h"
#include "opengl/gl.h"
#include "opengl/shader.h"

namespace MR::GUI {

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/cursor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/cursor.h"
#include "cursor.h"

namespace MR::GUI {

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/cursor.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "gui/opengl/gl.h"
#include "opengl/gl.h"

namespace MR::GUI {
class Cursor {
Expand Down
10 changes: 5 additions & 5 deletions cpp/lib/gui/dialog/dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/dialog.h"
#include "dialog/dialog.h"

#include "app.h"
#include "exception.h"
#include "file/dicom/tree.h"
#include "progressbar.h"

#include "gui/dialog/dicom.h"
#include "gui/dialog/file.h"
#include "gui/dialog/progress.h"
#include "gui/dialog/report_exception.h"
#include "dialog/dicom.h"
#include "dialog/file.h"
#include "dialog/progress.h"
#include "dialog/report_exception.h"

namespace MR::GUI::Dialog {

Expand Down
6 changes: 3 additions & 3 deletions cpp/lib/gui/dialog/dicom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/dicom.h"
#include "dialog/dicom.h"
#include "file/dicom/tree.h"
#include "gui/dialog/list.h"
#include "gui/gui.h"
#include "dialog/list.h"
#include "gui.h"

namespace MR::GUI::Dialog {

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/dicom.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#pragma once

#include "file/dicom/tree.h"
#include "gui/opengl/gl.h"
#include "opengl/gl.h"

namespace MR::GUI::Dialog {

Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/dialog/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

#include "app.h"
#include "formats/list.h"
#include "gui/dialog/file.h"
#include "gui/gui.h"
#include "dialog/file.h"
#include "gui.h"

#ifdef MRTRIX_MACOSX
#define FILE_DIALOG_OPTIONS QFileDialog::DontUseNativeDialog
Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/file.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#pragma once

#include "file/path.h"
#include "gui/opengl/gl.h"
#include "opengl/gl.h"

namespace MR::GUI::Dialog::File {

Expand Down
6 changes: 3 additions & 3 deletions cpp/lib/gui/dialog/image_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/image_properties.h"
#include "dialog/image_properties.h"
#include "dwi/gradient.h"
#include "file/matrix.h"
#include "gui/dialog/file.h"
#include "gui/dialog/list.h"
#include "dialog/file.h"
#include "dialog/list.h"
#include "header.h"
#include "stride.h"

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/image_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "gui/opengl/gl.h"
#include "opengl/gl.h"
#include "header.h"

namespace MR {
Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/list.h"
#include "dialog/list.h"

namespace MR::GUI::Dialog {

Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/dialog/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

#pragma once

#include "gui/gui.h"
#include "gui/opengl/gl.h"
#include "gui.h"
#include "opengl/gl.h"

namespace MR::GUI::Dialog {

Expand Down
6 changes: 3 additions & 3 deletions cpp/lib/gui/dialog/opengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/opengl.h"
#include "gui/dialog/list.h"
#include "gui/opengl/gl.h"
#include "dialog/opengl.h"
#include "dialog/list.h"
#include "opengl/gl.h"

namespace MR::GUI::Dialog {

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/opengl.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "gui/opengl/gl.h"
#include "opengl/gl.h"

namespace MR::GUI::Dialog {

Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/dialog/progress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/progress.h"
#include "gui/gui.h"
#include "dialog/progress.h"
#include "gui.h"
#include <cassert>

namespace MR::GUI::Dialog::ProgressBar {
Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/progress.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "gui/opengl/gl.h"
#include "opengl/gl.h"
#include "progressbar.h"

namespace MR::GUI::Dialog::ProgressBar {
Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/dialog/report_exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/dialog/report_exception.h"
#include "gui/gui.h"
#include "dialog/report_exception.h"
#include "gui.h"

namespace MR::GUI::Dialog {

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dialog/report_exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#pragma once

#include "exception.h"
#include "gui/opengl/gl.h"
#include "opengl/gl.h"

namespace MR::GUI::Dialog {

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/dwi/render_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <QOpenGLWidget>

#include "app.h"
#include "gui/dwi/render_frame.h"
#include "dwi/render_frame.h"

namespace MR::GUI::DWI {

Expand Down
12 changes: 6 additions & 6 deletions cpp/lib/gui/dwi/render_frame.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
#pragma once

#include "dwi/directions/set.h"
#include "gui/dwi/renderer.h"
#include "gui/opengl/font.h"
#include "gui/opengl/gl.h"
#include "gui/opengl/lighting.h"
#include "gui/opengl/transformation.h"
#include "gui/projection.h"
#include "dwi/renderer.h"
#include "opengl/font.h"
#include "opengl/gl.h"
#include "opengl/lighting.h"
#include "opengl/transformation.h"
#include "projection.h"
#include "memory.h"
#include "types.h"

Expand Down
8 changes: 4 additions & 4 deletions cpp/lib/gui/dwi/renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

#include <map>

#include "gui/dwi/renderer.h"
#include "gui/gui.h"
#include "gui/opengl/lighting.h"
#include "gui/projection.h"
#include "dwi/renderer.h"
#include "gui.h"
#include "opengl/lighting.h"
#include "projection.h"
#include "math/legendre.h"

namespace MR::GUI::DWI {
Expand Down
8 changes: 4 additions & 4 deletions cpp/lib/gui/dwi/renderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include <QOpenGLWidget>

#include "dwi/directions/set.h"
#include "gui/gui.h"
#include "gui/opengl/gl.h"
#include "gui/opengl/shader.h"
#include "gui/shapes/halfsphere.h"
#include "gui.h"
#include "opengl/gl.h"
#include "opengl/shader.h"
#include "shapes/halfsphere.h"
#include "math/SH.h"

namespace MR::GUI {
Expand Down
4 changes: 2 additions & 2 deletions cpp/lib/gui/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/gui.h"
#include "gui/opengl/gl.h"
#include "gui.h"
#include "opengl/gl.h"
#include <clocale>
#include <locale>

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include "app.h"
#include "file/config.h"
#include "gui/opengl/gl.h"
#include "opengl/gl.h"

#include <functional>

Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/gui_pch.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
#ifdef __APPLE__
#define GL_SILENCE_DEPRECATION
#endif
#include "gui/opengl/gl.h"
#include "opengl/gl.h"
6 changes: 3 additions & 3 deletions cpp/lib/gui/lighting_dock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
* For more details, see http://www.mrtrix.org/.
*/

#include "gui/lighting_dock.h"
#include "lighting_dock.h"
#include "file/config.h"
#include "gui/color_button.h"
#include "gui/gui.h"
#include "color_button.h"
#include "gui.h"
#include "math/math.h"

namespace MR::GUI {
Expand Down
2 changes: 1 addition & 1 deletion cpp/lib/gui/lighting_dock.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#pragma once

#include "gui/opengl/lighting.h"
#include "opengl/lighting.h"

namespace MR::GUI {
class LightingSettings : public QFrame {
Expand Down
Loading

0 comments on commit 0913ceb

Please sign in to comment.