From 5beb046f9eba558700074dd9c296f86b19540bd1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 5 Sep 2019 00:42:16 -0400 Subject: [PATCH] General: Add necessary includes where applicable As part of the changes within hecl, this exposed a few indirect inclusions. We can simply include the headers to resolve these cases. --- specter/include/specter/RootView.hpp | 1 + specter/lib/Button.cpp | 1 + specter/lib/Icon.cpp | 2 ++ specter/lib/Menu.cpp | 2 ++ specter/lib/ModalWindow.cpp | 1 + specter/lib/PathButtons.cpp | 2 ++ specter/lib/RootView.cpp | 1 + specter/lib/ScrollView.cpp | 2 ++ specter/lib/Space.cpp | 1 + specter/lib/SplitView.cpp | 7 +++++-- specter/lib/Table.cpp | 3 +++ specter/lib/TextField.cpp | 2 ++ specter/lib/Toolbar.cpp | 7 +++++-- specter/lib/Tooltip.cpp | 2 ++ 14 files changed, 30 insertions(+), 4 deletions(-) diff --git a/specter/include/specter/RootView.hpp b/specter/include/specter/RootView.hpp index 2bf6c5d56..d0a6678f3 100644 --- a/specter/include/specter/RootView.hpp +++ b/specter/include/specter/RootView.hpp @@ -11,6 +11,7 @@ #include "specter/View.hpp" #include +#include #include #include #include diff --git a/specter/lib/Button.cpp b/specter/lib/Button.cpp index 449408cf7..4af7183a3 100644 --- a/specter/lib/Button.cpp +++ b/specter/lib/Button.cpp @@ -5,6 +5,7 @@ #include "specter/TextView.hpp" #include "specter/ViewResources.hpp" +#include #include namespace specter { diff --git a/specter/lib/Icon.cpp b/specter/lib/Icon.cpp index efb004d45..025b2e29d 100644 --- a/specter/lib/Icon.cpp +++ b/specter/lib/Icon.cpp @@ -1,6 +1,8 @@ #include "specter/Icon.hpp" #include "specter/RootView.hpp" +#include + namespace specter { IconView::IconView(ViewResources& res, View& parentView, Icon& icon) : View(res, parentView) { diff --git a/specter/lib/Menu.cpp b/specter/lib/Menu.cpp index 27ceefa0c..6f75abcc1 100644 --- a/specter/lib/Menu.cpp +++ b/specter/lib/Menu.cpp @@ -6,6 +6,8 @@ #include "specter/TextView.hpp" #include "specter/ViewResources.hpp" +#include + #define ROW_HEIGHT 18 #define ITEM_MARGIN 1 diff --git a/specter/lib/ModalWindow.cpp b/specter/lib/ModalWindow.cpp index ba6adc697..de5d36d0e 100644 --- a/specter/lib/ModalWindow.cpp +++ b/specter/lib/ModalWindow.cpp @@ -7,6 +7,7 @@ #include "specter/ViewResources.hpp" #include +#include namespace specter { diff --git a/specter/lib/PathButtons.cpp b/specter/lib/PathButtons.cpp index d4ff13b56..79833537e 100644 --- a/specter/lib/PathButtons.cpp +++ b/specter/lib/PathButtons.cpp @@ -4,6 +4,8 @@ #include "specter/RootView.hpp" #include "specter/ViewResources.hpp" +#include + namespace specter { struct PathButtons::PathButton final : IButtonBinding { PathButtons& m_pb; diff --git a/specter/lib/RootView.cpp b/specter/lib/RootView.cpp index 1140c9104..099cd84bf 100644 --- a/specter/lib/RootView.cpp +++ b/specter/lib/RootView.cpp @@ -8,6 +8,7 @@ #include "specter/Tooltip.hpp" #include "specter/ViewResources.hpp" +#include #include namespace specter { diff --git a/specter/lib/ScrollView.cpp b/specter/lib/ScrollView.cpp index 64550d9fb..5abb8f291 100644 --- a/specter/lib/ScrollView.cpp +++ b/specter/lib/ScrollView.cpp @@ -7,6 +7,8 @@ #include "specter/RootView.hpp" #include "specter/ViewResources.hpp" +#include + namespace specter { #define MAX_SCROLL_SPEED 100 diff --git a/specter/lib/Space.cpp b/specter/lib/Space.cpp index e444799b0..140731362 100644 --- a/specter/lib/Space.cpp +++ b/specter/lib/Space.cpp @@ -4,6 +4,7 @@ #include "specter/RootView.hpp" #include "specter/ViewResources.hpp" +#include #include namespace specter { diff --git a/specter/lib/SplitView.cpp b/specter/lib/SplitView.cpp index 207738485..7551e9d28 100644 --- a/specter/lib/SplitView.cpp +++ b/specter/lib/SplitView.cpp @@ -1,8 +1,11 @@ -#include "logvisor/logvisor.hpp" #include "specter/SplitView.hpp" + +#include "specter/Space.hpp" #include "specter/RootView.hpp" #include "specter/ViewResources.hpp" -#include "specter/Space.hpp" + +#include +#include namespace specter { static logvisor::Module Log("specter::SplitView"); diff --git a/specter/lib/Table.cpp b/specter/lib/Table.cpp index c5563633f..a43a2aa1b 100644 --- a/specter/lib/Table.cpp +++ b/specter/lib/Table.cpp @@ -2,9 +2,12 @@ #include "specter/RootView.hpp" #include "specter/ScrollView.hpp" + #include "specter/TextView.hpp" #include "specter/ViewResources.hpp" +#include + namespace specter { static logvisor::Module Log("specter::Table"); #define ROW_HEIGHT 18 diff --git a/specter/lib/TextField.cpp b/specter/lib/TextField.cpp index 3e924469a..05584af57 100644 --- a/specter/lib/TextField.cpp +++ b/specter/lib/TextField.cpp @@ -4,6 +4,8 @@ #include "specter/TextView.hpp" #include "specter/ViewResources.hpp" +#include + namespace specter { TextField::TextField(ViewResources& res, View& parentView, IStringBinding* strBind) diff --git a/specter/lib/Toolbar.cpp b/specter/lib/Toolbar.cpp index dd88c4746..10d93d5aa 100644 --- a/specter/lib/Toolbar.cpp +++ b/specter/lib/Toolbar.cpp @@ -1,7 +1,10 @@ -#include "logvisor/logvisor.hpp" #include "specter/Toolbar.hpp" -#include "specter/ViewResources.hpp" + #include "specter/RootView.hpp" +#include "specter/ViewResources.hpp" + +#include +#include #define TOOLBAR_PADDING 10 diff --git a/specter/lib/Tooltip.cpp b/specter/lib/Tooltip.cpp index e2a30cd93..3d07b3051 100644 --- a/specter/lib/Tooltip.cpp +++ b/specter/lib/Tooltip.cpp @@ -4,6 +4,8 @@ #include "specter/RootView.hpp" #include "specter/ViewResources.hpp" +#include + namespace specter { #define TOOLTIP_MAX_WIDTH 316