diff options
author | crupest <crupest@outlook.com> | 2018-11-07 21:40:04 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-11-07 21:40:04 +0800 |
commit | efdce672123284847bd7fb6f12ac1ec96f28f3ef (patch) | |
tree | 298e6313e9a48c5867b2355242b78d3cd23fdc61 /src | |
parent | 634dab6ad2c9e4675beacfb77ac02b2d43cab132 (diff) | |
download | cru-efdce672123284847bd7fb6f12ac1ec96f28f3ef.tar.gz cru-efdce672123284847bd7fb6f12ac1ec96f28f3ef.tar.bz2 cru-efdce672123284847bd7fb6f12ac1ec96f28f3ef.zip |
Make all header *.hpp .
Diffstat (limited to 'src')
-rw-r--r-- | src/application.cpp | 16 | ||||
-rw-r--r-- | src/application.hpp (renamed from src/application.h) | 4 | ||||
-rw-r--r-- | src/base.cpp | 6 | ||||
-rw-r--r-- | src/base.hpp (renamed from src/base.h) | 2 | ||||
-rw-r--r-- | src/cru_debug.cpp | 4 | ||||
-rw-r--r-- | src/cru_debug.hpp (renamed from src/cru_debug.h) | 4 | ||||
-rw-r--r-- | src/cru_event.hpp (renamed from src/cru_event.h) | 2 | ||||
-rw-r--r-- | src/exception.cpp | 4 | ||||
-rw-r--r-- | src/exception.hpp (renamed from src/exception.h) | 4 | ||||
-rw-r--r-- | src/format.hpp (renamed from src/format.h) | 2 | ||||
-rw-r--r-- | src/global_macros.hpp (renamed from src/global_macros.h) | 0 | ||||
-rw-r--r-- | src/graph/graph.cpp | 6 | ||||
-rw-r--r-- | src/graph/graph.hpp (renamed from src/graph/graph.h) | 6 | ||||
-rw-r--r-- | src/main.cpp | 14 | ||||
-rw-r--r-- | src/system_headers.hpp (renamed from src/system_headers.h) | 0 | ||||
-rw-r--r-- | src/timer.cpp | 4 | ||||
-rw-r--r-- | src/timer.hpp (renamed from src/timer.h) | 4 | ||||
-rw-r--r-- | src/ui/animations/animation.cpp | 2 | ||||
-rw-r--r-- | src/ui/animations/animation.hpp (renamed from src/ui/animations/animation.h) | 6 | ||||
-rw-r--r-- | src/ui/border_property.cpp | 4 | ||||
-rw-r--r-- | src/ui/border_property.hpp (renamed from src/ui/border_property.h) | 4 | ||||
-rw-r--r-- | src/ui/control.cpp | 10 | ||||
-rw-r--r-- | src/ui/control.hpp (renamed from src/ui/control.h) | 16 | ||||
-rw-r--r-- | src/ui/controls/button.cpp | 4 | ||||
-rw-r--r-- | src/ui/controls/button.hpp (renamed from src/ui/controls/button.h) | 2 | ||||
-rw-r--r-- | src/ui/controls/linear_layout.cpp | 2 | ||||
-rw-r--r-- | src/ui/controls/linear_layout.hpp (renamed from src/ui/controls/linear_layout.h) | 2 | ||||
-rw-r--r-- | src/ui/controls/text_block.cpp | 4 | ||||
-rw-r--r-- | src/ui/controls/text_block.hpp (renamed from src/ui/controls/text_block.h) | 2 | ||||
-rw-r--r-- | src/ui/controls/text_box.cpp | 6 | ||||
-rw-r--r-- | src/ui/controls/text_box.hpp (renamed from src/ui/controls/text_box.h) | 4 | ||||
-rw-r--r-- | src/ui/controls/text_control.cpp | 8 | ||||
-rw-r--r-- | src/ui/controls/text_control.hpp (renamed from src/ui/controls/text_control.h) | 2 | ||||
-rw-r--r-- | src/ui/controls/toggle_button.cpp | 6 | ||||
-rw-r--r-- | src/ui/controls/toggle_button.hpp (renamed from src/ui/controls/toggle_button.h) | 2 | ||||
-rw-r--r-- | src/ui/cursor.cpp | 4 | ||||
-rw-r--r-- | src/ui/cursor.hpp (renamed from src/ui/cursor.h) | 4 | ||||
-rw-r--r-- | src/ui/events/ui_event.cpp | 4 | ||||
-rw-r--r-- | src/ui/events/ui_event.hpp (renamed from src/ui/events/ui_event.h) | 10 | ||||
-rw-r--r-- | src/ui/layout_base.cpp | 8 | ||||
-rw-r--r-- | src/ui/layout_base.hpp (renamed from src/ui/layout_base.h) | 4 | ||||
-rw-r--r-- | src/ui/ui_base.cpp | 4 | ||||
-rw-r--r-- | src/ui/ui_base.hpp (renamed from src/ui/ui_base.h) | 0 | ||||
-rw-r--r-- | src/ui/window.cpp | 10 | ||||
-rw-r--r-- | src/ui/window.hpp (renamed from src/ui/window.h) | 6 |
45 files changed, 111 insertions, 111 deletions
diff --git a/src/application.cpp b/src/application.cpp index a7984d25..df99cab8 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -1,11 +1,11 @@ -#include "application.h" - -#include "exception.h" -#include "timer.h" -#include "ui/window.h" -#include "ui/cursor.h" -#include "graph/graph.h" -#include "ui/animations/animation.h" +#include "application.hpp" + +#include "exception.hpp" +#include "timer.hpp" +#include "ui/window.hpp" +#include "ui/cursor.hpp" +#include "graph/graph.hpp" +#include "ui/animations/animation.hpp" namespace cru { constexpr auto god_window_class_name = L"GodWindowClass"; diff --git a/src/application.h b/src/application.hpp index 530a781a..fe38ba0f 100644 --- a/src/application.h +++ b/src/application.hpp @@ -1,11 +1,11 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <memory> #include <optional> #include <functional> -#include "base.h" +#include "base.hpp" namespace cru { diff --git a/src/base.cpp b/src/base.cpp index f5868170..a2d20fc4 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -1,7 +1,7 @@ -#include "base.h" +#include "base.hpp" -#include "system_headers.h" -#include "exception.h" +#include "system_headers.hpp" +#include "exception.hpp" namespace cru { diff --git a/src/base.h b/src/base.hpp index 9b3b50a1..d4a3548f 100644 --- a/src/base.h +++ b/src/base.hpp @@ -1,7 +1,7 @@ #pragma once // ReSharper disable once CppUnusedIncludeDirective -#include "global_macros.h" +#include "global_macros.hpp" #include <string> diff --git a/src/cru_debug.cpp b/src/cru_debug.cpp index 0007d21b..9c61d052 100644 --- a/src/cru_debug.cpp +++ b/src/cru_debug.cpp @@ -1,6 +1,6 @@ -#include "cru_debug.h" +#include "cru_debug.hpp" -#include "system_headers.h" +#include "system_headers.hpp" namespace cru::debug { diff --git a/src/cru_debug.h b/src/cru_debug.hpp index c750e11f..ed6fcaf6 100644 --- a/src/cru_debug.h +++ b/src/cru_debug.hpp @@ -2,8 +2,8 @@ #include <functional> -#include "base.h" -#include "format.h" +#include "base.hpp" +#include "format.hpp" namespace cru::debug { diff --git a/src/cru_event.h b/src/cru_event.hpp index 1103cdba..76a36b22 100644 --- a/src/cru_event.h +++ b/src/cru_event.hpp @@ -4,7 +4,7 @@ #include <functional> #include <unordered_map> -#include "base.h" +#include "base.hpp" namespace cru { //Base class of all event args. diff --git a/src/exception.cpp b/src/exception.cpp index 92face96..cb1ca2c7 100644 --- a/src/exception.cpp +++ b/src/exception.cpp @@ -1,6 +1,6 @@ -#include "exception.h" +#include "exception.hpp" -#include "format.h" +#include "format.hpp" namespace cru { diff --git a/src/exception.h b/src/exception.hpp index ae9457e7..68558478 100644 --- a/src/exception.h +++ b/src/exception.hpp @@ -1,9 +1,9 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <optional> -#include "base.h" +#include "base.hpp" namespace cru { diff --git a/src/format.h b/src/format.hpp index 51875938..3f6253ff 100644 --- a/src/format.h +++ b/src/format.hpp @@ -1,6 +1,6 @@ #pragma once -#include "base.h" +#include "base.hpp" namespace cru { diff --git a/src/global_macros.h b/src/global_macros.hpp index eda57187..eda57187 100644 --- a/src/global_macros.h +++ b/src/global_macros.hpp diff --git a/src/graph/graph.cpp b/src/graph/graph.cpp index e8d58a58..febb7fee 100644 --- a/src/graph/graph.cpp +++ b/src/graph/graph.cpp @@ -1,7 +1,7 @@ -#include "graph.h" +#include "graph.hpp" -#include "application.h" -#include "exception.h" +#include "application.hpp" +#include "exception.hpp" namespace cru::graph { diff --git a/src/graph/graph.h b/src/graph/graph.hpp index ff8b88b8..9ef2e4b8 100644 --- a/src/graph/graph.h +++ b/src/graph/graph.hpp @@ -1,10 +1,10 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <memory> -#include "base.h" -#include "application.h" +#include "base.hpp" +#include "application.hpp" namespace cru::graph diff --git a/src/main.cpp b/src/main.cpp index f2e65dd2..264b3c7c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,10 +1,10 @@ -#include "application.h" -#include "ui/window.h" -#include "ui/controls/linear_layout.h" -#include "ui/controls/text_block.h" -#include "ui/controls/toggle_button.h" -#include "ui/controls/button.h" -#include "ui/controls/text_box.h" +#include "application.hpp" +#include "ui/window.hpp" +#include "ui/controls/linear_layout.hpp" +#include "ui/controls/text_block.hpp" +#include "ui/controls/toggle_button.hpp" +#include "ui/controls/button.hpp" +#include "ui/controls/text_box.hpp" using cru::String; using cru::Application; diff --git a/src/system_headers.h b/src/system_headers.hpp index 99c091e1..99c091e1 100644 --- a/src/system_headers.h +++ b/src/system_headers.hpp diff --git a/src/timer.cpp b/src/timer.cpp index 174e9402..3d89d567 100644 --- a/src/timer.cpp +++ b/src/timer.cpp @@ -1,6 +1,6 @@ -#include "timer.h" +#include "timer.hpp" -#include "application.h" +#include "application.hpp" namespace cru { diff --git a/src/timer.h b/src/timer.hpp index 0fac2cdd..5d6e8b71 100644 --- a/src/timer.h +++ b/src/timer.hpp @@ -1,13 +1,13 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <map> #include <chrono> #include <functional> #include <optional> -#include "base.h" +#include "base.hpp" namespace cru { diff --git a/src/ui/animations/animation.cpp b/src/ui/animations/animation.cpp index ca0fe8bc..33c743cf 100644 --- a/src/ui/animations/animation.cpp +++ b/src/ui/animations/animation.cpp @@ -1,4 +1,4 @@ -#include "animation.h" +#include "animation.hpp" #include <utility> diff --git a/src/ui/animations/animation.h b/src/ui/animations/animation.hpp index 91a666c9..99389f33 100644 --- a/src/ui/animations/animation.h +++ b/src/ui/animations/animation.hpp @@ -2,9 +2,9 @@ #include <unordered_map> -#include "base.h" -#include "application.h" -#include "timer.h" +#include "base.hpp" +#include "application.hpp" +#include "timer.hpp" namespace cru::ui::animations { diff --git a/src/ui/border_property.cpp b/src/ui/border_property.cpp index f716a8be..7f61c1b7 100644 --- a/src/ui/border_property.cpp +++ b/src/ui/border_property.cpp @@ -1,6 +1,6 @@ -#include "border_property.h" +#include "border_property.hpp" -#include "graph/graph.h" +#include "graph/graph.hpp" namespace cru::ui { diff --git a/src/ui/border_property.h b/src/ui/border_property.hpp index ce16dea7..a280fe44 100644 --- a/src/ui/border_property.h +++ b/src/ui/border_property.hpp @@ -1,8 +1,8 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" -#include "base.h" +#include "base.hpp" namespace cru::ui diff --git a/src/ui/control.cpp b/src/ui/control.cpp index ec8420c1..bb3e35f8 100644 --- a/src/ui/control.cpp +++ b/src/ui/control.cpp @@ -1,11 +1,11 @@ -#include "control.h" +#include "control.hpp" #include <algorithm> -#include "window.h" -#include "graph/graph.h" -#include "exception.h" -#include "cru_debug.h" +#include "window.hpp" +#include "graph/graph.hpp" +#include "exception.hpp" +#include "cru_debug.hpp" namespace cru::ui { diff --git a/src/ui/control.h b/src/ui/control.hpp index 020f959e..26be653a 100644 --- a/src/ui/control.h +++ b/src/ui/control.hpp @@ -1,18 +1,18 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <unordered_map> #include <any> #include <typeinfo> #include <utility> -#include "base.h" -#include "format.h" -#include "ui_base.h" -#include "layout_base.h" -#include "events/ui_event.h" -#include "border_property.h" -#include "cursor.h" +#include "base.hpp" +#include "format.hpp" +#include "ui_base.hpp" +#include "layout_base.hpp" +#include "events/ui_event.hpp" +#include "border_property.hpp" +#include "cursor.hpp" namespace cru::ui { diff --git a/src/ui/controls/button.cpp b/src/ui/controls/button.cpp index 11f8e31b..0422506b 100644 --- a/src/ui/controls/button.cpp +++ b/src/ui/controls/button.cpp @@ -1,6 +1,6 @@ -#include "button.h" +#include "button.hpp" -#include "graph/graph.h" +#include "graph/graph.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/button.h b/src/ui/controls/button.hpp index f50a6cbd..50640b11 100644 --- a/src/ui/controls/button.h +++ b/src/ui/controls/button.hpp @@ -2,7 +2,7 @@ #include <initializer_list> -#include "ui/control.h" +#include "ui/control.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/linear_layout.cpp b/src/ui/controls/linear_layout.cpp index ed445f4c..f21a9933 100644 --- a/src/ui/controls/linear_layout.cpp +++ b/src/ui/controls/linear_layout.cpp @@ -1,4 +1,4 @@ -#include "linear_layout.h" +#include "linear_layout.hpp" #include <algorithm> diff --git a/src/ui/controls/linear_layout.h b/src/ui/controls/linear_layout.hpp index 021f4b7d..b7ca42ec 100644 --- a/src/ui/controls/linear_layout.h +++ b/src/ui/controls/linear_layout.hpp @@ -1,6 +1,6 @@ #pragma once -#include "ui/control.h" +#include "ui/control.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/text_block.cpp b/src/ui/controls/text_block.cpp index e6c7fd7e..b8a7e8a6 100644 --- a/src/ui/controls/text_block.cpp +++ b/src/ui/controls/text_block.cpp @@ -1,6 +1,6 @@ -#include "text_block.h" +#include "text_block.hpp" -#include "ui/window.h" +#include "ui/window.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/text_block.h b/src/ui/controls/text_block.hpp index 681dc47b..b2b4aaf9 100644 --- a/src/ui/controls/text_block.h +++ b/src/ui/controls/text_block.hpp @@ -1,6 +1,6 @@ #pragma once -#include "text_control.h" +#include "text_control.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/text_box.cpp b/src/ui/controls/text_box.cpp index a132ba67..605e1a24 100644 --- a/src/ui/controls/text_box.cpp +++ b/src/ui/controls/text_box.cpp @@ -1,10 +1,10 @@ -#include "text_box.h" +#include "text_box.hpp" #include <cwctype> #include <cassert> -#include "graph/graph.h" -#include "exception.h" +#include "graph/graph.hpp" +#include "exception.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/text_box.h b/src/ui/controls/text_box.hpp index 85a5942d..434aa232 100644 --- a/src/ui/controls/text_box.h +++ b/src/ui/controls/text_box.hpp @@ -1,7 +1,7 @@ #pragma once -#include "text_control.h" -#include "timer.h" +#include "text_control.hpp" +#include "timer.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/text_control.cpp b/src/ui/controls/text_control.cpp index 6ccb8a02..5d2c840e 100644 --- a/src/ui/controls/text_control.cpp +++ b/src/ui/controls/text_control.cpp @@ -1,8 +1,8 @@ -#include "text_control.h" +#include "text_control.hpp" -#include "ui/window.h" -#include "graph/graph.h" -#include "exception.h" +#include "ui/window.hpp" +#include "graph/graph.hpp" +#include "exception.hpp" #include <cassert> namespace cru::ui::controls diff --git a/src/ui/controls/text_control.h b/src/ui/controls/text_control.hpp index bfdfe20f..93120a44 100644 --- a/src/ui/controls/text_control.h +++ b/src/ui/controls/text_control.hpp @@ -1,6 +1,6 @@ #pragma once -#include "ui/control.h" +#include "ui/control.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/toggle_button.cpp b/src/ui/controls/toggle_button.cpp index 9bcd7a26..f35b8bfe 100644 --- a/src/ui/controls/toggle_button.cpp +++ b/src/ui/controls/toggle_button.cpp @@ -1,7 +1,7 @@ -#include "toggle_button.h" +#include "toggle_button.hpp" -#include "graph/graph.h" -#include "ui/animations/animation.h" +#include "graph/graph.hpp" +#include "ui/animations/animation.hpp" namespace cru::ui::controls { diff --git a/src/ui/controls/toggle_button.h b/src/ui/controls/toggle_button.hpp index 6f3683de..5de40ca5 100644 --- a/src/ui/controls/toggle_button.h +++ b/src/ui/controls/toggle_button.hpp @@ -1,6 +1,6 @@ #pragma once -#include "ui/control.h" +#include "ui/control.hpp" namespace cru::ui::controls { diff --git a/src/ui/cursor.cpp b/src/ui/cursor.cpp index e1f0e5ef..cf88cd25 100644 --- a/src/ui/cursor.cpp +++ b/src/ui/cursor.cpp @@ -1,6 +1,6 @@ -#include "cursor.h" +#include "cursor.hpp" -#include "exception.h" +#include "exception.hpp" namespace cru::ui { diff --git a/src/ui/cursor.h b/src/ui/cursor.hpp index ccb21d32..e3657171 100644 --- a/src/ui/cursor.h +++ b/src/ui/cursor.hpp @@ -1,9 +1,9 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <memory> -#include "base.h" +#include "base.hpp" namespace cru::ui { diff --git a/src/ui/events/ui_event.cpp b/src/ui/events/ui_event.cpp index 9f5185ce..a1fc3d82 100644 --- a/src/ui/events/ui_event.cpp +++ b/src/ui/events/ui_event.cpp @@ -1,6 +1,6 @@ -#include "ui_event.h" +#include "ui_event.hpp" -#include "ui/control.h" +#include "ui/control.hpp" namespace cru::ui::events { diff --git a/src/ui/events/ui_event.h b/src/ui/events/ui_event.hpp index 24429f04..c0585506 100644 --- a/src/ui/events/ui_event.h +++ b/src/ui/events/ui_event.hpp @@ -1,12 +1,12 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <optional> -#include "base.h" -#include "cru_event.h" -#include "ui/ui_base.h" -#include "ui/layout_base.h" +#include "base.hpp" +#include "cru_event.hpp" +#include "ui/ui_base.hpp" +#include "ui/layout_base.hpp" namespace cru::ui { diff --git a/src/ui/layout_base.cpp b/src/ui/layout_base.cpp index 0ffe3870..a384500a 100644 --- a/src/ui/layout_base.cpp +++ b/src/ui/layout_base.cpp @@ -1,8 +1,8 @@ -#include "layout_base.h" +#include "layout_base.hpp" -#include "application.h" -#include "control.h" -#include "window.h" +#include "application.hpp" +#include "control.hpp" +#include "window.hpp" namespace cru::ui { diff --git a/src/ui/layout_base.h b/src/ui/layout_base.hpp index b3001268..1c35f0b7 100644 --- a/src/ui/layout_base.h +++ b/src/ui/layout_base.hpp @@ -2,8 +2,8 @@ #include <unordered_set> -#include "base.h" -#include "ui_base.h" +#include "base.hpp" +#include "ui_base.hpp" namespace cru::ui { diff --git a/src/ui/ui_base.cpp b/src/ui/ui_base.cpp index 0195c588..b52694e7 100644 --- a/src/ui/ui_base.cpp +++ b/src/ui/ui_base.cpp @@ -1,6 +1,6 @@ -#include "ui_base.h" +#include "ui_base.hpp" -#include "system_headers.h" +#include "system_headers.hpp" namespace cru::ui { diff --git a/src/ui/ui_base.h b/src/ui/ui_base.hpp index 8daa43d7..8daa43d7 100644 --- a/src/ui/ui_base.h +++ b/src/ui/ui_base.hpp diff --git a/src/ui/window.cpp b/src/ui/window.cpp index cc08810b..e426bc78 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -1,9 +1,9 @@ -#include "window.h" +#include "window.hpp" -#include "application.h" -#include "graph/graph.h" -#include "exception.h" -#include "cursor.h" +#include "application.hpp" +#include "graph/graph.hpp" +#include "exception.hpp" +#include "cursor.hpp" namespace cru::ui { diff --git a/src/ui/window.h b/src/ui/window.hpp index 822bf32d..9f773f55 100644 --- a/src/ui/window.h +++ b/src/ui/window.hpp @@ -1,12 +1,12 @@ #pragma once -#include "system_headers.h" +#include "system_headers.hpp" #include <map> #include <list> #include <memory> -#include "control.h" -#include "events/ui_event.h" +#include "control.hpp" +#include "events/ui_event.hpp" namespace cru::graph { |