diff --git a/Rakefile b/Rakefile index 3f59bf7f7..a9b3f701b 100644 --- a/Rakefile +++ b/Rakefile @@ -653,7 +653,7 @@ end if $build_mkvtoolnix_gui ui_files = FileList["src/mkvtoolnix-gui/forms/**/*.ui"].to_a ui_files.each do |ui| - file ui.ext('cpp').gsub(/forms\//, '') => ui.ext('h') + file ui.ext('cpp').gsub(/forms\/(.*)\.cpp$/, '\1/\1.cpp') => ui.ext('h') end Application.new("src/mkvtoolnix-gui/mkvtoolnix-gui"). diff --git a/src/mkvtoolnix-gui/main_window.cpp b/src/mkvtoolnix-gui/main_window/main_window.cpp similarity index 96% rename from src/mkvtoolnix-gui/main_window.cpp rename to src/mkvtoolnix-gui/main_window/main_window.cpp index 1dc242a70..d45fef6a5 100644 --- a/src/mkvtoolnix-gui/main_window.cpp +++ b/src/mkvtoolnix-gui/main_window/main_window.cpp @@ -1,7 +1,7 @@ #include "common/common_pch.h" #include "common/qt.h" -#include "mkvtoolnix-gui/main_window.h" +#include "mkvtoolnix-gui/main_window/main_window.h" #include "mkvtoolnix-gui/forms/main_window.h" #include "mkvtoolnix-gui/util/file_identifier.h" #include "mkvtoolnix-gui/util/file_type_filter.h" diff --git a/src/mkvtoolnix-gui/main_window.h b/src/mkvtoolnix-gui/main_window/main_window.h similarity index 100% rename from src/mkvtoolnix-gui/main_window.h rename to src/mkvtoolnix-gui/main_window/main_window.h diff --git a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp index c31d35652..4b26176bc 100644 --- a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp +++ b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp @@ -4,7 +4,7 @@ #include "mkvtoolnix-gui/app.h" #include "mkvtoolnix-gui/mkvtoolnix_gui.h" -#include "mkvtoolnix-gui/main_window.h" +#include "mkvtoolnix-gui/main_window/main_window.h" int main(int argc,