[vlc-commits] qt: move preferences to its own folder

Pierre Lamot git at videolan.org
Tue Dec 17 15:37:16 CET 2019


vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Mon Oct 14 10:30:53 2019 +0200| [901a513644ad0372c1c2ff041254c6d0e0fae5e0] | committer: Jean-Baptiste Kempf

qt: move preferences to its own folder

  no functionnal changes

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=901a513644ad0372c1c2ff041254c6d0e0fae5e0
---

 modules/gui/qt/Makefile.am                         | 44 +++++++++++-----------
 modules/gui/qt/components/extended_panels.cpp      |  2 +-
 modules/gui/qt/components/open_panels.hpp          |  2 +-
 .../preferences}/complete_preferences.cpp          |  4 +-
 .../preferences}/complete_preferences.hpp          |  0
 .../qt/dialogs/{ => preferences}/preferences.cpp   |  6 +--
 .../qt/dialogs/{ => preferences}/preferences.hpp   |  2 +-
 .../preferences}/preferences_widgets.cpp           |  2 +-
 .../preferences}/preferences_widgets.hpp           |  0
 .../preferences}/simple_preferences.cpp            |  4 +-
 .../preferences}/simple_preferences.hpp            | 10 ++---
 .../qt/{ui => dialogs/preferences}/sprefs_audio.ui |  0
 .../qt/{ui => dialogs/preferences}/sprefs_input.ui |  0
 .../preferences}/sprefs_interface.ui               |  2 +-
 .../preferences}/sprefs_subtitles.ui               |  0
 .../qt/{ui => dialogs/preferences}/sprefs_video.ui |  0
 modules/gui/qt/dialogs_provider.cpp                |  2 +-
 po/POTFILES.in                                     | 26 ++++++-------
 18 files changed, 53 insertions(+), 53 deletions(-)

diff --git a/modules/gui/qt/Makefile.am b/modules/gui/qt/Makefile.am
index 3dd68b106f..e02f652bd0 100644
--- a/modules/gui/qt/Makefile.am
+++ b/modules/gui/qt/Makefile.am
@@ -14,7 +14,7 @@
 SUFFIXES += .ui .h .hpp .moc.cpp .qml
 
 libqt_plugin_la_CPPFLAGS = $(AM_CPPFLAGS) \
-	-I$(srcdir)/gui/qt -I$(builddir)/gui/qt/ui
+	-I$(srcdir)/gui/qt -I$(builddir)/gui/qt/ -I$(builddir)/gui/qt/ui
 libqt_plugin_la_CXXFLAGS = $(AM_CXXFLAGS) $(QT_CFLAGS) $(CXXFLAGS_qt)
 libqt_plugin_la_LIBADD = $(QT_LIBS) $(LIBS_qt) $(LIBM)
 libqt_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(guidir)'
@@ -58,7 +58,6 @@ libqt_plugin_la_SOURCES = \
 	gui/qt/adapters/variables.cpp gui/qt/adapters/variables.hpp \
 	gui/qt/adapters/var_choice_model.cpp  gui/qt/adapters/var_choice_model.hpp \
 	gui/qt/dialogs/bookmarks.cpp gui/qt/dialogs/bookmarks.hpp \
-	gui/qt/dialogs/preferences.cpp gui/qt/dialogs/preferences.hpp \
 	gui/qt/dialogs/mediainfo.cpp gui/qt/dialogs/mediainfo.hpp \
 	gui/qt/dialogs/epg.cpp gui/qt/dialogs/epg.hpp \
 	gui/qt/dialogs/extended.cpp gui/qt/dialogs/extended.hpp \
@@ -93,14 +92,15 @@ libqt_plugin_la_SOURCES = \
 	gui/qt/components/navigation_history.cpp gui/qt/components/navigation_history.hpp \
 	gui/qt/player/player_controller.cpp gui/qt/player/player_controller.hpp gui/qt/player/player_controller_p.hpp \
 	gui/qt/player/playercontrolbarmodel.cpp gui/qt/player/playercontrolbarmodel.hpp \
-	gui/qt/components/preferences_widgets.cpp \
-	gui/qt/components/preferences_widgets.hpp \
 	gui/qt/components/selectable_list_model.hpp \
 	gui/qt/components/selectable_list_model.cpp \
-	gui/qt/components/complete_preferences.cpp \
-	gui/qt/components/complete_preferences.hpp \
-	gui/qt/components/simple_preferences.cpp \
-	gui/qt/components/simple_preferences.hpp \
+	gui/qt/dialogs/preferences/preferences.cpp gui/qt/preferences/preferences.hpp \
+	gui/qt/dialogs/preferences/preferences_widgets.cpp \
+	gui/qt/dialogs/preferences/preferences_widgets.hpp \
+	gui/qt/dialogs/preferences/complete_preferences.cpp \
+	gui/qt/dialogs/preferences/complete_preferences.hpp \
+	gui/qt/dialogs/preferences/simple_preferences.cpp \
+	gui/qt/dialogs/preferences/simple_preferences.hpp \
 	gui/qt/components/open_panels.cpp gui/qt/components/open_panels.hpp \
 	gui/qt/components/interface_widgets.cpp \
 	gui/qt/components/interface_widgets.hpp \
@@ -245,7 +245,6 @@ nodist_libqt_plugin_la_SOURCES = \
 	gui/qt/dialogs/epg.moc.cpp \
 	gui/qt/dialogs/errors.moc.cpp \
 	gui/qt/dialogs/plugins.moc.cpp \
-	gui/qt/dialogs/preferences.moc.cpp \
 	gui/qt/dialogs/sout.moc.cpp \
 	gui/qt/dialogs/convert.moc.cpp \
 	gui/qt/dialogs/help.moc.cpp \
@@ -266,9 +265,10 @@ nodist_libqt_plugin_la_SOURCES = \
 	gui/qt/components/info_widgets.moc.cpp \
 	gui/qt/player/player_controller.moc.cpp \
 	gui/qt/player/playercontrolbarmodel.moc.cpp \
-	gui/qt/components/preferences_widgets.moc.cpp \
-	gui/qt/components/complete_preferences.moc.cpp \
-	gui/qt/components/simple_preferences.moc.cpp \
+	gui/qt/dialogs/preferences/preferences.moc.cpp \
+	gui/qt/dialogs/preferences/preferences_widgets.moc.cpp \
+	gui/qt/dialogs/preferences/complete_preferences.moc.cpp \
+	gui/qt/dialogs/preferences/simple_preferences.moc.cpp \
 	gui/qt/components/open_panels.moc.cpp \
 	gui/qt/components/interface_widgets.moc.cpp \
 	gui/qt/components/navigation_history.moc.cpp \
@@ -341,11 +341,11 @@ nodist_libqt_plugin_la_SOURCES += \
 	gui/qt/ui/ui_vlm.h \
 	gui/qt/ui/ui_podcast_configuration.h \
 	gui/qt/ui/ui_profiles.h \
-	gui/qt/ui/ui_sprefs_audio.h \
-	gui/qt/ui/ui_sprefs_input.h \
-	gui/qt/ui/ui_sprefs_interface.h \
-	gui/qt/ui/ui_sprefs_subtitles.h \
-	gui/qt/ui/ui_sprefs_video.h \
+	gui/qt/dialogs/preferences/ui_sprefs_audio.h \
+	gui/qt/dialogs/preferences/ui_sprefs_input.h \
+	gui/qt/dialogs/preferences/ui_sprefs_interface.h \
+	gui/qt/dialogs/preferences/ui_sprefs_subtitles.h \
+	gui/qt/dialogs/preferences/ui_sprefs_video.h \
 	gui/qt/ui/ui_streampanel.h \
 	gui/qt/ui/ui_messages_panel.h \
 	gui/qt/ui/ui_about.h \
@@ -380,11 +380,11 @@ libqt_plugin_la_UI = \
 	gui/qt/ui/open.ui \
 	gui/qt/ui/podcast_configuration.ui \
 	gui/qt/ui/profiles.ui \
-	gui/qt/ui/sprefs_audio.ui \
-	gui/qt/ui/sprefs_input.ui \
-	gui/qt/ui/sprefs_interface.ui \
-	gui/qt/ui/sprefs_subtitles.ui \
-	gui/qt/ui/sprefs_video.ui \
+	gui/qt/dialogs/preferences/sprefs_audio.ui \
+	gui/qt/dialogs/preferences/sprefs_input.ui \
+	gui/qt/dialogs/preferences/sprefs_interface.ui \
+	gui/qt/dialogs/preferences/sprefs_subtitles.ui \
+	gui/qt/dialogs/preferences/sprefs_video.ui \
 	gui/qt/ui/streampanel.ui \
 	gui/qt/ui/messages_panel.ui \
 	gui/qt/ui/about.ui \
diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index 57fc51038b..d16acdd307 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -45,7 +45,7 @@
 #include <QScreen>
 
 #include "components/extended_panels.hpp"
-#include "dialogs/preferences.hpp"
+#include "dialogs/preferences/preferences.hpp"
 #include "qt.hpp"
 #include "player/player_controller.hpp"
 #include "util/qt_dirs.hpp"
diff --git a/modules/gui/qt/components/open_panels.hpp b/modules/gui/qt/components/open_panels.hpp
index 87e73c46d1..df2babee12 100644
--- a/modules/gui/qt/components/open_panels.hpp
+++ b/modules/gui/qt/components/open_panels.hpp
@@ -31,7 +31,7 @@
 # include "config.h"
 #endif
 
-#include "components/preferences_widgets.hpp"
+#include "dialogs/preferences/preferences_widgets.hpp"
 
 #include "ui_open_file.h"
 #include "ui_open_disk.h"
diff --git a/modules/gui/qt/components/complete_preferences.cpp b/modules/gui/qt/dialogs/preferences/complete_preferences.cpp
similarity index 99%
rename from modules/gui/qt/components/complete_preferences.cpp
rename to modules/gui/qt/dialogs/preferences/complete_preferences.cpp
index 3b972aac6c..42e83b25ba 100644
--- a/modules/gui/qt/components/complete_preferences.cpp
+++ b/modules/gui/qt/dialogs/preferences/complete_preferences.cpp
@@ -35,8 +35,8 @@
 #include <QVBoxLayout>
 #include <QGridLayout>
 
-#include "components/complete_preferences.hpp"
-#include "components/preferences_widgets.hpp"
+#include "dialogs/preferences/complete_preferences.hpp"
+#include "dialogs/preferences/preferences_widgets.hpp"
 
 #include <vlc_config_cat.h>
 #include <vlc_intf_strings.h>
diff --git a/modules/gui/qt/components/complete_preferences.hpp b/modules/gui/qt/dialogs/preferences/complete_preferences.hpp
similarity index 100%
rename from modules/gui/qt/components/complete_preferences.hpp
rename to modules/gui/qt/dialogs/preferences/complete_preferences.hpp
diff --git a/modules/gui/qt/dialogs/preferences.cpp b/modules/gui/qt/dialogs/preferences/preferences.cpp
similarity index 98%
rename from modules/gui/qt/dialogs/preferences.cpp
rename to modules/gui/qt/dialogs/preferences/preferences.cpp
index e5e3a1d420..034913558e 100644
--- a/modules/gui/qt/dialogs/preferences.cpp
+++ b/modules/gui/qt/dialogs/preferences/preferences.cpp
@@ -25,12 +25,12 @@
 # include "config.h"
 #endif
 
-#include "dialogs/preferences.hpp"
+#include "dialogs/preferences/preferences.hpp"
 #include "util/qvlcframe.hpp"
 #include "dialogs/errors.hpp"
 
-#include "components/complete_preferences.hpp"
-#include "components/simple_preferences.hpp"
+#include "dialogs/preferences/complete_preferences.hpp"
+#include "dialogs/preferences/simple_preferences.hpp"
 #include "util/searchlineedit.hpp"
 #include "util/qvlcframe.hpp"
 #include "main_interface.hpp"
diff --git a/modules/gui/qt/dialogs/preferences.hpp b/modules/gui/qt/dialogs/preferences/preferences.hpp
similarity index 97%
rename from modules/gui/qt/dialogs/preferences.hpp
rename to modules/gui/qt/dialogs/preferences/preferences.hpp
index 0512637370..4462113967 100644
--- a/modules/gui/qt/dialogs/preferences.hpp
+++ b/modules/gui/qt/dialogs/preferences/preferences.hpp
@@ -24,7 +24,7 @@
 #define QVLC_PREFS_DIALOG_H_ 1
 
 #include "util/qvlcframe.hpp"
-#include "components/simple_preferences.hpp"
+#include "dialogs/preferences/simple_preferences.hpp"
 
 class PrefsTree;
 class SPrefsCatList;
diff --git a/modules/gui/qt/components/preferences_widgets.cpp b/modules/gui/qt/dialogs/preferences/preferences_widgets.cpp
similarity index 99%
rename from modules/gui/qt/components/preferences_widgets.cpp
rename to modules/gui/qt/dialogs/preferences/preferences_widgets.cpp
index 0f73252685..41df1845ba 100644
--- a/modules/gui/qt/components/preferences_widgets.cpp
+++ b/modules/gui/qt/dialogs/preferences/preferences_widgets.cpp
@@ -30,7 +30,7 @@
 # include "config.h"
 #endif
 
-#include "components/preferences_widgets.hpp"
+#include "dialogs/preferences/preferences_widgets.hpp"
 #include "util/customwidgets.hpp"
 #include "util/searchlineedit.hpp"
 #include "util/qt_dirs.hpp"
diff --git a/modules/gui/qt/components/preferences_widgets.hpp b/modules/gui/qt/dialogs/preferences/preferences_widgets.hpp
similarity index 100%
rename from modules/gui/qt/components/preferences_widgets.hpp
rename to modules/gui/qt/dialogs/preferences/preferences_widgets.hpp
diff --git a/modules/gui/qt/components/simple_preferences.cpp b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
similarity index 99%
rename from modules/gui/qt/components/simple_preferences.cpp
rename to modules/gui/qt/dialogs/preferences/simple_preferences.cpp
index 5a93e68f43..115186cbb1 100644
--- a/modules/gui/qt/components/simple_preferences.cpp
+++ b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
@@ -26,8 +26,8 @@
 # include "config.h"
 #endif
 
-#include "components/simple_preferences.hpp"
-#include "components/preferences_widgets.hpp"
+#include "simple_preferences.hpp"
+#include "preferences_widgets.hpp"
 
 #include <vlc_config_cat.h>
 #include <vlc_configuration.h>
diff --git a/modules/gui/qt/components/simple_preferences.hpp b/modules/gui/qt/dialogs/preferences/simple_preferences.hpp
similarity index 93%
rename from modules/gui/qt/components/simple_preferences.hpp
rename to modules/gui/qt/dialogs/preferences/simple_preferences.hpp
index f33431d068..be31f6ecde 100644
--- a/modules/gui/qt/components/simple_preferences.hpp
+++ b/modules/gui/qt/dialogs/preferences/simple_preferences.hpp
@@ -30,11 +30,11 @@
 #include <vlc_common.h>
 #include <vlc_interface.h>
 
-#include "ui_sprefs_input.h"
-#include "ui_sprefs_audio.h"
-#include "ui_sprefs_video.h"
-#include "ui_sprefs_subtitles.h"
-#include "ui_sprefs_interface.h"
+#include "dialogs/preferences/ui_sprefs_input.h"
+#include "dialogs/preferences/ui_sprefs_audio.h"
+#include "dialogs/preferences/ui_sprefs_video.h"
+#include "dialogs/preferences/ui_sprefs_subtitles.h"
+#include "dialogs/preferences/ui_sprefs_interface.h"
 
 #include <vlc_media_library.h>
 #include <QDialogButtonBox>
diff --git a/modules/gui/qt/ui/sprefs_audio.ui b/modules/gui/qt/dialogs/preferences/sprefs_audio.ui
similarity index 100%
rename from modules/gui/qt/ui/sprefs_audio.ui
rename to modules/gui/qt/dialogs/preferences/sprefs_audio.ui
diff --git a/modules/gui/qt/ui/sprefs_input.ui b/modules/gui/qt/dialogs/preferences/sprefs_input.ui
similarity index 100%
rename from modules/gui/qt/ui/sprefs_input.ui
rename to modules/gui/qt/dialogs/preferences/sprefs_input.ui
diff --git a/modules/gui/qt/ui/sprefs_interface.ui b/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
similarity index 99%
rename from modules/gui/qt/ui/sprefs_interface.ui
rename to modules/gui/qt/dialogs/preferences/sprefs_interface.ui
index 9e187f767e..cb43c06b49 100644
--- a/modules/gui/qt/ui/sprefs_interface.ui
+++ b/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
@@ -710,7 +710,7 @@
   <customwidget>
    <class>InterfacePreviewWidget</class>
    <extends>QLabel</extends>
-   <header>components/preferences_widgets.hpp</header>
+   <header>dialogs/preferences/preferences_widgets.hpp</header>
   </customwidget>
  </customwidgets>
  <tabstops>
diff --git a/modules/gui/qt/ui/sprefs_subtitles.ui b/modules/gui/qt/dialogs/preferences/sprefs_subtitles.ui
similarity index 100%
rename from modules/gui/qt/ui/sprefs_subtitles.ui
rename to modules/gui/qt/dialogs/preferences/sprefs_subtitles.ui
diff --git a/modules/gui/qt/ui/sprefs_video.ui b/modules/gui/qt/dialogs/preferences/sprefs_video.ui
similarity index 100%
rename from modules/gui/qt/ui/sprefs_video.ui
rename to modules/gui/qt/dialogs/preferences/sprefs_video.ui
diff --git a/modules/gui/qt/dialogs_provider.cpp b/modules/gui/qt/dialogs_provider.cpp
index f92f456718..6be4665a24 100644
--- a/modules/gui/qt/dialogs_provider.cpp
+++ b/modules/gui/qt/dialogs_provider.cpp
@@ -39,7 +39,7 @@
 
 /* The dialogs */
 #include "dialogs/bookmarks.hpp"
-#include "dialogs/preferences.hpp"
+#include "dialogs/preferences/preferences.hpp"
 #include "dialogs/mediainfo.hpp"
 #include "dialogs/messages.hpp"
 #include "dialogs/extended.hpp"
diff --git a/po/POTFILES.in b/po/POTFILES.in
index d2771b57ec..f5e56c3842 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -672,8 +672,8 @@ modules/gui/minimal_macosx/macosx.c
 modules/gui/ncurses.c
 modules/gui/qt/adapters/chromaprint.cpp
 modules/gui/qt/adapters/chromaprint.hpp
-modules/gui/qt/components/complete_preferences.cpp
-modules/gui/qt/components/complete_preferences.hpp
+modules/gui/qt/dialogs/preferences/complete_preferences.cpp
+modules/gui/qt/dialogs/preferences/complete_preferences.hpp
 modules/gui/qt/components/controller.cpp
 modules/gui/qt/components/controller.hpp
 modules/gui/qt/components/controller_widget.cpp
@@ -702,10 +702,10 @@ modules/gui/qt/components/interface_widgets.cpp
 modules/gui/qt/components/interface_widgets.hpp
 modules/gui/qt/components/open_panels.cpp
 modules/gui/qt/components/open_panels.hpp
-modules/gui/qt/components/preferences_widgets.cpp
-modules/gui/qt/components/preferences_widgets.hpp
-modules/gui/qt/components/simple_preferences.cpp
-modules/gui/qt/components/simple_preferences.hpp
+modules/gui/qt/dialogs/preferences/preferences_widgets.cpp
+modules/gui/qt/dialogs/preferences/preferences_widgets.hpp
+modules/gui/qt/dialogs/preferences/simple_preferences.cpp
+modules/gui/qt/dialogs/preferences/simple_preferences.hpp
 modules/gui/qt/components/sout/profile_selector.cpp
 modules/gui/qt/components/sout/profile_selector.hpp
 modules/gui/qt/components/sout/profiles.hpp
@@ -743,8 +743,8 @@ modules/gui/qt/dialogs/plugins.cpp
 modules/gui/qt/dialogs/plugins.hpp
 modules/gui/qt/dialogs/podcast_configuration.cpp
 modules/gui/qt/dialogs/podcast_configuration.hpp
-modules/gui/qt/dialogs/preferences.cpp
-modules/gui/qt/dialogs/preferences.hpp
+modules/gui/qt/dialogs/preferences/preferences.cpp
+modules/gui/qt/dialogs/preferences/preferences.hpp
 modules/gui/qt/dialogs/sout.cpp
 modules/gui/qt/dialogs/sout.hpp
 modules/gui/qt/dialogs/toolbar.cpp
@@ -1286,11 +1286,11 @@ share/lua/http/mobile_view.html
 #modules/gui/qt/ui/ui_podcast_configuration.h
 #modules/gui/qt/ui/ui_profiles.h
 #modules/gui/qt/ui/ui_sout.h
-#modules/gui/qt/ui/ui_sprefs_audio.h
-#modules/gui/qt/ui/ui_sprefs_input.h
-#modules/gui/qt/ui/ui_sprefs_interface.h
-#modules/gui/qt/ui/ui_sprefs_subtitles.h
-#modules/gui/qt/ui/ui_sprefs_video.h
+#modules/gui/qt/dialogs/preferences/ui_sprefs_audio.h
+#modules/gui/qt/dialogs/preferences/ui_sprefs_input.h
+#modules/gui/qt/dialogs/preferences/ui_sprefs_interface.h
+#modules/gui/qt/dialogs/preferences/ui_sprefs_subtitles.h
+#modules/gui/qt/dialogs/preferences/ui_sprefs_video.h
 #modules/gui/qt/ui/ui_streampanel.h
 #modules/gui/qt/ui/ui_update.h
 #modules/gui/qt/ui/ui_video_effects.h



More information about the vlc-commits mailing list