commit 6b027aa2e713d70dcd9dd431af87133d8231f44a Author: Pavel Sanda <sa...@lyx.org> Date: Fri May 23 01:30:23 2025 +0200
Forward decls are enough for just references/pointers. --- src/frontends/qt/GuiCitation.cpp | 3 ++- src/frontends/qt/GuiDelimiter.cpp | 3 ++- src/frontends/qt/GuiErrorList.cpp | 3 ++- src/frontends/qt/GuiParagraph.cpp | 3 ++- src/frontends/qt/GuiPrefs.cpp | 3 ++- src/frontends/qt/GuiSymbols.cpp | 2 +- 6 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt/GuiCitation.cpp b/src/frontends/qt/GuiCitation.cpp index b142778bef..509637e326 100644 --- a/src/frontends/qt/GuiCitation.cpp +++ b/src/frontends/qt/GuiCitation.cpp @@ -18,7 +18,6 @@ #include "FancyLineEdit.h" #include "GuiSelectionManager.h" -#include "GuiView.h" #include "qt_helpers.h" #include "Buffer.h" @@ -52,6 +51,8 @@ using namespace lyx::support; namespace lyx { namespace frontend { +class GuiView; + // FIXME THREAD // I am guessing that it would not hurt to make these private members. static vector<string> citeCmds_; diff --git a/src/frontends/qt/GuiDelimiter.cpp b/src/frontends/qt/GuiDelimiter.cpp index 4c389123e1..7b361add9a 100644 --- a/src/frontends/qt/GuiDelimiter.cpp +++ b/src/frontends/qt/GuiDelimiter.cpp @@ -13,7 +13,6 @@ #include "GuiDelimiter.h" #include "GuiApplication.h" -#include "GuiView.h" #include "qt_helpers.h" #include "FuncRequest.h" @@ -36,6 +35,8 @@ using namespace std; namespace lyx { namespace frontend { +class GuiView; + namespace { static char const * latex_delimiters[] = { diff --git a/src/frontends/qt/GuiErrorList.cpp b/src/frontends/qt/GuiErrorList.cpp index 8e1232b9d9..883610ea3d 100644 --- a/src/frontends/qt/GuiErrorList.cpp +++ b/src/frontends/qt/GuiErrorList.cpp @@ -12,7 +12,6 @@ #include "GuiErrorList.h" -#include "GuiView.h" #include "qt_helpers.h" #include "Buffer.h" @@ -54,6 +53,8 @@ string const guiErrorType(string const & s) namespace lyx { namespace frontend { +class GuiView; + GuiErrorList::GuiErrorList(GuiView & lv) : GuiDialog(lv, "errorlist", qt_("Error List")), buf_(nullptr), from_master_(false) { diff --git a/src/frontends/qt/GuiParagraph.cpp b/src/frontends/qt/GuiParagraph.cpp index 6c9c8894c4..4de971f214 100644 --- a/src/frontends/qt/GuiParagraph.cpp +++ b/src/frontends/qt/GuiParagraph.cpp @@ -22,7 +22,6 @@ #include "BufferView.h" #include "Cursor.h" #include "FuncRequest.h" -#include "GuiView.h" #include "Layout.h" #include "Paragraph.h" #include "ParagraphParameters.h" @@ -41,6 +40,8 @@ using namespace std; namespace lyx { namespace frontend { +class GuiView; + GuiParagraph::GuiParagraph(GuiView & lv) : DialogView(lv, "paragraph", qt_("Paragraph Settings")) { diff --git a/src/frontends/qt/GuiPrefs.cpp b/src/frontends/qt/GuiPrefs.cpp index 41622df15e..8d558997d0 100644 --- a/src/frontends/qt/GuiPrefs.cpp +++ b/src/frontends/qt/GuiPrefs.cpp @@ -18,7 +18,6 @@ #include "GuiApplication.h" #include "GuiFontExample.h" #include "GuiLyXFiles.h" -#include "GuiView.h" #include "qt_helpers.h" #include "version.h" #include "Validator.h" @@ -93,6 +92,8 @@ namespace lyx { namespace frontend { +class GuiView; + QString const catLookAndFeel = N_("Look & Feel"); QString const catEditing = N_("Editing"); QString const catLanguage = N_("Language Settings"); diff --git a/src/frontends/qt/GuiSymbols.cpp b/src/frontends/qt/GuiSymbols.cpp index cd6b48d275..01cf73c03e 100644 --- a/src/frontends/qt/GuiSymbols.cpp +++ b/src/frontends/qt/GuiSymbols.cpp @@ -12,7 +12,6 @@ #include "GuiSymbols.h" -#include "GuiView.h" #include "qt_helpers.h" #include "Buffer.h" @@ -37,6 +36,7 @@ using namespace std; namespace lyx { namespace frontend { +class GuiView; namespace { -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs