diff --git a/examples/component/button_in_frame.cpp b/examples/component/button_in_frame.cpp index 23a0d94..2eb3393 100644 --- a/examples/component/button_in_frame.cpp +++ b/examples/component/button_in_frame.cpp @@ -1,12 +1,13 @@ -#include // for array -#include // for shared_ptr, __shared_ptr_access -#include // for operator+, to_string +#include // for allocator, __shared_ptr_access, shared_ptr +#include // for to_string, operator+ #include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for Checkbox, Renderer, Vertical -#include "ftxui/component/component_base.hpp" // for ComponentBase +#include "ftxui/component/component.hpp" // for Button, Renderer, Vertical +#include "ftxui/component/component_base.hpp" // for ComponentBase +#include "ftxui/component/component_options.hpp" // for ButtonOption #include "ftxui/component/screen_interactive.hpp" // for ScreenInteractive -#include "ftxui/dom/elements.hpp" // for operator|, Element, size, border, frame, vscroll_indicator, HEIGHT, LESS_THAN +#include "ftxui/dom/elements.hpp" // for operator|, text, Element, hbox, separator, size, vbox, border, frame, vscroll_indicator, HEIGHT, LESS_THAN +#include "ftxui/screen/color.hpp" // for Color, Color::Default, Color::GrayDark, Color::White using namespace ftxui; diff --git a/examples/component/button_style.cpp b/examples/component/button_style.cpp index 7473263..275c27d 100644 --- a/examples/component/button_style.cpp +++ b/examples/component/button_style.cpp @@ -1,12 +1,11 @@ -#include // for shared_ptr, __shared_ptr_access #include // for operator+, to_string #include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for Button, Horizontal, Renderer -#include "ftxui/component/component_base.hpp" // for ComponentBase +#include "ftxui/component/component.hpp" // for Button, Renderer, Vertical, Horizontal, operator| +#include "ftxui/component/component_base.hpp" // for Component #include "ftxui/component/component_options.hpp" // for ButtonOption #include "ftxui/component/screen_interactive.hpp" // for ScreenInteractive -#include "ftxui/dom/elements.hpp" // for gauge, separator, text, vbox, operator|, Element, border +#include "ftxui/dom/elements.hpp" // for separator, Element, text, border #include "ftxui/screen/color.hpp" // for Color, Color::Blue, Color::Green, Color::Red using namespace ftxui; diff --git a/examples/component/maybe.cpp b/examples/component/maybe.cpp index 4926627..5c1419b 100644 --- a/examples/component/maybe.cpp +++ b/examples/component/maybe.cpp @@ -1,5 +1,4 @@ -#include // for allocator, shared_ptr -#include // for string, basic_string +#include // for string, allocator #include // for vector #include "ftxui/component/captured_mouse.hpp" // for ftxui diff --git a/examples/dom/hflow.cpp b/examples/dom/hflow.cpp index c2a9f88..d86ad92 100644 --- a/examples/dom/hflow.cpp +++ b/examples/dom/hflow.cpp @@ -1,8 +1,7 @@ #include // for getchar #include // for operator|, size, Element, text, hcenter, Decorator, Fit, WIDTH, hflow, window, EQUAL, GREATER_THAN, HEIGHT, bold, border, dim, LESS_THAN #include // for Full, Screen -#include // for allocator, shared_ptr -#include // for operator+, to_string, char_traits, string +#include // for allocator, operator+, to_string, char_traits, string #include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/color.hpp" // for ftxui diff --git a/examples/dom/html_like.cpp b/examples/dom/html_like.cpp index 1425273..7ea23e6 100644 --- a/examples/dom/html_like.cpp +++ b/examples/dom/html_like.cpp @@ -1,11 +1,10 @@ #include // for operator""s, chrono_literals -#include // for Full, Screen +#include // for Screen #include // for cout, ostream -#include // for allocator, shared_ptr -#include // for operator<<, string +#include // for allocator, operator<<, string #include // for sleep_for -#include "ftxui/dom/elements.hpp" // for paragraph, text, operator|, Element, border, color, hflow, spinner, vbox, bold, dim, underlined +#include "ftxui/dom/elements.hpp" // for paragraph, operator|, text, Element, border, Fit, color, hflow, spinner, vbox, bold, dim, underlined #include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/box.hpp" // for ftxui #include "ftxui/screen/color.hpp" // for Color, Color::Red diff --git a/examples/dom/vflow.cpp b/examples/dom/vflow.cpp index e67167a..2d05b42 100644 --- a/examples/dom/vflow.cpp +++ b/examples/dom/vflow.cpp @@ -1,8 +1,7 @@ #include // for getchar #include // for operator|, Element, size, text, hcenter, Fit, vflow, window, EQUAL, bold, border, dim, HEIGHT, WIDTH #include // for Full, Screen -#include // for allocator, shared_ptr -#include // for operator+, to_string, char_traits, string +#include // for allocator, operator+, to_string, char_traits, string #include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/color.hpp" // for ftxui diff --git a/include/ftxui/component/component_options.hpp b/include/ftxui/component/component_options.hpp index 7b02f0f..be55dc2 100644 --- a/include/ftxui/component/component_options.hpp +++ b/include/ftxui/component/component_options.hpp @@ -2,7 +2,7 @@ #define FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP #include // for milliseconds -#include // for Duration, QuadraticInOut, Function +#include // for Duration, Function, QuadraticInOut #include // for Element #include // for Ref #include // for function diff --git a/include/ftxui/component/screen_interactive.hpp b/include/ftxui/component/screen_interactive.hpp index ab34207..02d09c0 100644 --- a/include/ftxui/component/screen_interactive.hpp +++ b/include/ftxui/component/screen_interactive.hpp @@ -2,9 +2,9 @@ #define FTXUI_COMPONENT_SCREEN_INTERACTIVE_HPP #include // for atomic -#include // for Receiver, Sender +#include // for ReceiverImpl, SenderImpl #include // for function -#include // for shared_ptr +#include // for unique_ptr, shared_ptr #include // for string #include // for thread #include // for variant diff --git a/include/ftxui/screen/screen.hpp b/include/ftxui/screen/screen.hpp index 21eb377..061173d 100644 --- a/include/ftxui/screen/screen.hpp +++ b/include/ftxui/screen/screen.hpp @@ -2,7 +2,7 @@ #define FTXUI_SCREEN_SCREEN_HPP #include -#include // for string, allocator, basic_string +#include // for string, allocator #include // for vector #include "ftxui/screen/box.hpp" // for Box diff --git a/src/ftxui/component/animation_test.cpp b/src/ftxui/component/animation_test.cpp index e183a04..88fb6f4 100644 --- a/src/ftxui/component/animation_test.cpp +++ b/src/ftxui/component/animation_test.cpp @@ -1,11 +1,10 @@ -#include // for Message -#include // for TestPartResult -#include // for shared_ptr, __shared_ptr_access, allocator, make_shared +#include // for Message +#include // for SuiteApiResolver, TestPartResult, TestFactoryImpl +#include // for function +#include // for allocator, vector -#include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for Make -#include "ftxui/component/component_base.hpp" // for ComponentBase, Component -#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, SuiteApiResolver, TEST, TestFactoryImpl +#include "ftxui/component/animation.hpp" // for Function, BackIn, BackInOut, BackOut, BounceIn, BounceInOut, BounceOut, CircularIn, CircularInOut, CircularOut, CubicIn, CubicInOut, CubicOut, ElasticIn, ElasticInOut, ElasticOut, ExponentialIn, ExponentialInOut, ExponentialOut, Linear, QuadraticIn, QuadraticInOut, QuadraticOut, QuarticIn, QuarticInOut, QuarticOut, QuinticIn, QuinticInOut, QuinticOut, SineIn, SineInOut, SineOut +#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_NEAR, TEST namespace ftxui { diff --git a/src/ftxui/component/button_test.cpp b/src/ftxui/component/button_test.cpp index f727c5b..a2e35f1 100644 --- a/src/ftxui/component/button_test.cpp +++ b/src/ftxui/component/button_test.cpp @@ -1,16 +1,18 @@ #include // for Message #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl -#include // for allocator, __shared_ptr_access, shared_ptr -#include // for string, basic_string -#include // for vector +#include // for operator""s, chrono_literals +#include // for __shared_ptr_access, shared_ptr, allocator +#include // for string -#include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for container +#include "ftxui/component/animation.hpp" // for Duration, Params +#include "ftxui/component/component.hpp" // for Button, Horizontal #include "ftxui/component/component_base.hpp" // for ComponentBase -#include "ftxui/component/component_options.hpp" // for MenuOption -#include "ftxui/component/event.hpp" // for Event, Event::ArrowDown, Event::Return -#include "ftxui/util/ref.hpp" // for Ref -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include "ftxui/component/component_options.hpp" // for ButtonOption +#include "ftxui/component/event.hpp" // for Event, Event::Return, Event::ArrowLeft, Event::ArrowRight +#include "ftxui/component/mouse.hpp" // for Mouse, Mouse::Left, Mouse::Pressed +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen +#include "gtest/gtest_pred_impl.h" // for AssertionResult, EXPECT_EQ, Test, EXPECT_FALSE, EXPECT_TRUE, TEST namespace ftxui { @@ -45,10 +47,12 @@ TEST(ButtonTest, Basic) { }); int selected = 0; - auto container = Container::Horizontal({ - btn1, - btn2, - }, &selected); + auto container = Container::Horizontal( + { + btn1, + btn2, + }, + &selected); (void)container->Render(); @@ -93,20 +97,28 @@ TEST(ButtonTest, Animation) { int press_count = 0; std::string last_press = ""; auto option = ButtonOption::Animated(); - auto btn1 = Button("btn1", [&] { - press_count++; - last_press = "btn1"; - }, option); - auto btn2 = Button("btn2", [&] { - press_count++; - last_press = "btn2"; - }, option); + auto btn1 = Button( + "btn1", + [&] { + press_count++; + last_press = "btn1"; + }, + option); + auto btn2 = Button( + "btn2", + [&] { + press_count++; + last_press = "btn2"; + }, + option); int selected = 0; - auto container = Container::Horizontal({ - btn1, - btn2, - }, &selected); + auto container = Container::Horizontal( + { + btn1, + btn2, + }, + &selected); { Screen screen(12, 3); diff --git a/src/ftxui/component/collapsible_test.cpp b/src/ftxui/component/collapsible_test.cpp index a00adbe..7eb7323 100644 --- a/src/ftxui/component/collapsible_test.cpp +++ b/src/ftxui/component/collapsible_test.cpp @@ -1,16 +1,14 @@ #include // for Message #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl -#include // for allocator, __shared_ptr_access, shared_ptr -#include // for string, basic_string -#include // for vector +#include // for __shared_ptr_access, shared_ptr, allocator -#include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for collapsible -#include "ftxui/component/component_base.hpp" // for ComponentBase -#include "ftxui/component/component_options.hpp" // for MenuOption -#include "ftxui/component/event.hpp" // for Event, Event::ArrowDown, Event::Return -#include "ftxui/util/ref.hpp" // for Ref -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include "ftxui/component/component.hpp" // for Collapsible, Renderer +#include "ftxui/component/component_base.hpp" // for ComponentBase +#include "ftxui/component/event.hpp" // for Event, Event::Return, Event::ArrowDown +#include "ftxui/dom/elements.hpp" // for text, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen +#include "gtest/gtest_pred_impl.h" // for AssertionResult, Test, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, TEST namespace ftxui { diff --git a/src/ftxui/component/component_test.cpp b/src/ftxui/component/component_test.cpp index 8c0029a..52c888b 100644 --- a/src/ftxui/component/component_test.cpp +++ b/src/ftxui/component/component_test.cpp @@ -1,11 +1,10 @@ -#include // for Message -#include // for TestPartResult -#include // for shared_ptr, __shared_ptr_access, allocator, make_shared +#include // for Message +#include // for TestPartResult, SuiteApiResolver, TestFactoryImpl +#include // for shared_ptr, __shared_ptr_access, allocator, __shared_ptr_access<>::element_type, make_shared -#include "ftxui/component/captured_mouse.hpp" // for ftxui #include "ftxui/component/component.hpp" // for Make #include "ftxui/component/component_base.hpp" // for ComponentBase, Component -#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, SuiteApiResolver, TEST, TestFactoryImpl +#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, AssertionResult, TEST, EXPECT_FALSE namespace ftxui { diff --git a/src/ftxui/component/container_test.cpp b/src/ftxui/component/container_test.cpp index 902d4a3..b358a72 100644 --- a/src/ftxui/component/container_test.cpp +++ b/src/ftxui/component/container_test.cpp @@ -2,9 +2,8 @@ #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl #include // for __shared_ptr_access, shared_ptr, allocator -#include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for Horizontal, Vertical -#include "ftxui/component/component_base.hpp" // for ComponentBase +#include "ftxui/component/component.hpp" // for Horizontal, Vertical, Button, Tab +#include "ftxui/component/component_base.hpp" // for ComponentBase, Component #include "ftxui/component/event.hpp" // for Event, Event::Tab, Event::TabReverse, Event::ArrowDown, Event::ArrowLeft, Event::ArrowRight, Event::ArrowUp #include "gtest/gtest_pred_impl.h" // for AssertionResult, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, Test, TEST diff --git a/src/ftxui/component/input_test.cpp b/src/ftxui/component/input_test.cpp index 0621c04..635a9fc 100644 --- a/src/ftxui/component/input_test.cpp +++ b/src/ftxui/component/input_test.cpp @@ -3,7 +3,6 @@ #include // for __shared_ptr_access, shared_ptr, allocator #include // for string -#include "ftxui/component/captured_mouse.hpp" // for ftxui #include "ftxui/component/component.hpp" // for Input #include "ftxui/component/component_base.hpp" // for ComponentBase, Component #include "ftxui/component/component_options.hpp" // for InputOption @@ -13,7 +12,7 @@ #include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/screen.hpp" // for Fixed, Screen, Pixel #include "ftxui/util/ref.hpp" // for Ref -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, TEST namespace ftxui { diff --git a/src/ftxui/component/menu_test.cpp b/src/ftxui/component/menu_test.cpp index 5bfa651..05d5aff 100644 --- a/src/ftxui/component/menu_test.cpp +++ b/src/ftxui/component/menu_test.cpp @@ -1,16 +1,19 @@ #include // for Message #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl -#include // for allocator, __shared_ptr_access, shared_ptr -#include // for string, basic_string +#include // for operator""s, chrono_literals +#include // for __shared_ptr_access, shared_ptr, allocator +#include // for string #include // for vector -#include "ftxui/component/captured_mouse.hpp" // for ftxui +#include "ftxui/component/animation.hpp" // for Duration, Params #include "ftxui/component/component.hpp" // for Menu #include "ftxui/component/component_base.hpp" // for ComponentBase -#include "ftxui/component/component_options.hpp" // for MenuOption -#include "ftxui/component/event.hpp" // for Event, Event::ArrowDown, Event::Return +#include "ftxui/component/component_options.hpp" // for MenuOption, MenuOption::Down, MenuOption::Left, MenuOption::Right, MenuOption::Up +#include "ftxui/component/event.hpp" // for Event, Event::ArrowDown, Event::ArrowLeft, Event::ArrowRight, Event::ArrowUp, Event::Return +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen #include "ftxui/util/ref.hpp" // for Ref -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, TEST namespace ftxui { diff --git a/src/ftxui/component/radiobox_test.cpp b/src/ftxui/component/radiobox_test.cpp index d057560..d8863f5 100644 --- a/src/ftxui/component/radiobox_test.cpp +++ b/src/ftxui/component/radiobox_test.cpp @@ -1,10 +1,9 @@ #include // for Message #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl #include // for __shared_ptr_access, shared_ptr, allocator -#include // for string, basic_string +#include // for string #include // for vector -#include "ftxui/component/captured_mouse.hpp" // for ftxui #include "ftxui/component/component.hpp" // for Radiobox #include "ftxui/component/component_base.hpp" // for ComponentBase #include "ftxui/component/component_options.hpp" // for RadioboxOption diff --git a/src/ftxui/component/resizable_split_test.cpp b/src/ftxui/component/resizable_split_test.cpp index f9b9f11..28595ba 100644 --- a/src/ftxui/component/resizable_split_test.cpp +++ b/src/ftxui/component/resizable_split_test.cpp @@ -1,16 +1,15 @@ #include // for Message #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl #include // for __shared_ptr_access, shared_ptr, allocator -#include // for string, basic_string -#include // for vector -#include "ftxui/component/captured_mouse.hpp" // for ftxui -#include "ftxui/component/component.hpp" // for Radiobox -#include "ftxui/component/component_base.hpp" // for ComponentBase -#include "ftxui/component/component_options.hpp" // for RadioboxOption -#include "ftxui/component/event.hpp" // for Event, Event::Return, Event::ArrowDown, Event::ArrowUp, Event::Tab, Event::TabReverse -#include "ftxui/util/ref.hpp" // for Ref -#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, TEST +#include "ftxui/component/component.hpp" // for Renderer, ResizableSplitBottom, ResizableSplitLeft, ResizableSplitRight, ResizableSplitTop +#include "ftxui/component/component_base.hpp" // for ComponentBase, Component +#include "ftxui/component/event.hpp" // for Event +#include "ftxui/component/mouse.hpp" // for Mouse, Mouse::Left, Mouse::Pressed, Mouse::Released +#include "ftxui/dom/elements.hpp" // for text, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen +#include "gtest/gtest_pred_impl.h" // for AssertionResult, Test, EXPECT_EQ, EXPECT_TRUE, TEST namespace ftxui { diff --git a/src/ftxui/component/terminal_input_parser.hpp b/src/ftxui/component/terminal_input_parser.hpp index 5449b1e..1c82d72 100644 --- a/src/ftxui/component/terminal_input_parser.hpp +++ b/src/ftxui/component/terminal_input_parser.hpp @@ -7,7 +7,7 @@ #include "ftxui/component/event.hpp" // for Event (ptr only) #include "ftxui/component/mouse.hpp" // for Mouse -#include "ftxui/component/receiver.hpp" // for Sender +#include "ftxui/component/receiver.hpp" // for SenderImpl #include "ftxui/component/task.hpp" // for Task namespace ftxui { diff --git a/src/ftxui/component/terminal_input_parser_test.cpp b/src/ftxui/component/terminal_input_parser_test.cpp index 3611b22..0abb28d 100644 --- a/src/ftxui/component/terminal_input_parser_test.cpp +++ b/src/ftxui/component/terminal_input_parser_test.cpp @@ -1,13 +1,14 @@ #include // for Message #include // for TestPartResult, SuiteApiResolver, TestFactoryImpl #include // for max -#include // for unique_ptr, allocator -#include // for get +#include // for initializer_list +#include // for unique_ptr, allocator +#include // for get -#include "ftxui/component/event.hpp" // for Event, Event::Escape +#include "ftxui/component/event.hpp" // for Event, Event::Return, Event::ArrowDown, Event::ArrowLeft, Event::ArrowRight, Event::ArrowUp, Event::Backspace, Event::Custom, Event::Delete, Event::End, Event::Escape, Event::F10, Event::F11, Event::F12, Event::F5, Event::F6, Event::F7, Event::F8, Event::F9, Event::Home, Event::PageDown, Event::PageUp, Event::Tab, Event::TabReverse #include "ftxui/component/receiver.hpp" // for MakeReceiver, ReceiverImpl #include "ftxui/component/terminal_input_parser.hpp" -#include "gtest/gtest_pred_impl.h" // for AssertionResult, Test, EXPECT_EQ, EXPECT_TRUE, EXPECT_FALSE, TEST +#include "gtest/gtest_pred_impl.h" // for AssertionResult, Test, EXPECT_EQ, EXPECT_TRUE, TEST, EXPECT_FALSE namespace ftxui { diff --git a/src/ftxui/dom/benchmark_test.cpp b/src/ftxui/dom/benchmark_test.cpp index 76a028d..740e8f5 100644 --- a/src/ftxui/dom/benchmark_test.cpp +++ b/src/ftxui/dom/benchmark_test.cpp @@ -1,8 +1,7 @@ #include -#include "ftxui/dom/elements.hpp" // for separator, gauge, operator|, text, Element, blink, inverted, hbox, vbox, border +#include "ftxui/dom/elements.hpp" // for gauge, separator, operator|, text, Element, hbox, vbox, blink, border, inverted #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen namespace ftxui { diff --git a/src/ftxui/dom/blink_test.cpp b/src/ftxui/dom/blink_test.cpp index a445117..8bbe423 100644 --- a/src/ftxui/dom/blink_test.cpp +++ b/src/ftxui/dom/blink_test.cpp @@ -1,9 +1,11 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include // for Test, AssertionResult, TestInfo (ptr only), EXPECT_TRUE, TEST +#include // for allocator + +#include "ftxui/dom/elements.hpp" // for operator|, text, blink, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen, Pixel namespace ftxui { diff --git a/src/ftxui/dom/bold_test.cpp b/src/ftxui/dom/bold_test.cpp index ff8ccee..fac4431 100644 --- a/src/ftxui/dom/bold_test.cpp +++ b/src/ftxui/dom/bold_test.cpp @@ -1,9 +1,11 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include // for Test, AssertionResult, TestInfo (ptr only), EXPECT_TRUE, TEST +#include // for allocator + +#include "ftxui/dom/elements.hpp" // for operator|, text, bold, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen, Pixel namespace ftxui { diff --git a/src/ftxui/dom/border_test.cpp b/src/ftxui/dom/border_test.cpp index 501ef6b..e6ff25e 100644 --- a/src/ftxui/dom/border_test.cpp +++ b/src/ftxui/dom/border_test.cpp @@ -1,8 +1,10 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen +#include // for allocator, string + +#include "ftxui/dom/elements.hpp" // for text, operator|, Element, borderStyled, borderWith, window, border, borderDouble, borderEmpty, borderHeavy, borderLight, borderRounded, DOUBLE +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen, Pixel #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST namespace ftxui { diff --git a/src/ftxui/dom/canvas_test.cpp b/src/ftxui/dom/canvas_test.cpp index e1fff82..fe85b0a 100644 --- a/src/ftxui/dom/canvas_test.cpp +++ b/src/ftxui/dom/canvas_test.cpp @@ -1,9 +1,15 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include // for uint32_t +#include // for allocator, string + +#include "ftxui/dom/canvas.hpp" // for Canvas +#include "ftxui/dom/elements.hpp" // for canvas +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/color.hpp" // for Color, Color::Black, Color::Blue, Color::Red, Color::White, Color::Yellow, Color::Cyan, Color::Green +#include "ftxui/screen/screen.hpp" // for Screen +#include "ftxui/screen/terminal.hpp" // for SetColorSupport, Color, TrueColor +#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST namespace ftxui { diff --git a/src/ftxui/dom/color_test.cpp b/src/ftxui/dom/color_test.cpp index c402804..2c772d6 100644 --- a/src/ftxui/dom/color_test.cpp +++ b/src/ftxui/dom/color_test.cpp @@ -1,8 +1,11 @@ #include // for Message -#include // for SuiteApiResolver, TestFactoryImpl, TestPartResult +#include // for SuiteApiResolver, TestPartResult, TestFactoryImpl #include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen + +#include "ftxui/dom/elements.hpp" // for operator|, text, bgcolor, color, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/color.hpp" // for Color, Color::Red +#include "ftxui/screen/screen.hpp" // for Screen, Pixel #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST namespace ftxui { diff --git a/src/ftxui/dom/dbox.cpp b/src/ftxui/dom/dbox.cpp index 4efdb13..6bfc128 100644 --- a/src/ftxui/dom/dbox.cpp +++ b/src/ftxui/dom/dbox.cpp @@ -1,10 +1,9 @@ #include // for max #include // for __shared_ptr_access, shared_ptr, make_shared #include // for move -#include // for vector #include "ftxui/dom/elements.hpp" // for Element, Elements, dbox -#include "ftxui/dom/node.hpp" // for Node +#include "ftxui/dom/node.hpp" // for Node, Elements #include "ftxui/dom/requirement.hpp" // for Requirement #include "ftxui/screen/box.hpp" // for Box diff --git a/src/ftxui/dom/dbox_test.cpp b/src/ftxui/dom/dbox_test.cpp index 159ea31..d12871e 100644 --- a/src/ftxui/dom/dbox_test.cpp +++ b/src/ftxui/dom/dbox_test.cpp @@ -1,12 +1,9 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for remove -#include // for allocator, basic_string, string -#include // for vector +#include // for allocator -#include "ftxui/dom/elements.hpp" // for vtext, operator|, Element, flex_grow, flex_shrink, vbox +#include "ftxui/dom/elements.hpp" // for filler, operator|, text, border, dbox, hbox, vbox, Element #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/src/ftxui/dom/dim_test.cpp b/src/ftxui/dom/dim_test.cpp index a64c4a6..312c1fe 100644 --- a/src/ftxui/dom/dim_test.cpp +++ b/src/ftxui/dom/dim_test.cpp @@ -1,9 +1,11 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include // for Test, AssertionResult, TestInfo (ptr only), EXPECT_TRUE, TEST +#include // for allocator + +#include "ftxui/dom/elements.hpp" // for operator|, text, dim, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen, Pixel namespace ftxui { diff --git a/src/ftxui/dom/flexbox_test.cpp b/src/ftxui/dom/flexbox_test.cpp index 841711f..78fff80 100644 --- a/src/ftxui/dom/flexbox_test.cpp +++ b/src/ftxui/dom/flexbox_test.cpp @@ -5,7 +5,6 @@ #include "ftxui/dom/elements.hpp" // for text, flexbox #include "ftxui/dom/flexbox_config.hpp" // for FlexboxConfig, FlexboxConfig::Direction, FlexboxConfig::AlignContent, FlexboxConfig::JustifyContent, FlexboxConfig::Direction::Column, FlexboxConfig::AlignItems, FlexboxConfig::JustifyContent::SpaceAround, FlexboxConfig::AlignContent::Center, FlexboxConfig::AlignContent::FlexEnd, FlexboxConfig::AlignContent::SpaceAround, FlexboxConfig::AlignContent::SpaceBetween, FlexboxConfig::AlignContent::SpaceEvenly, FlexboxConfig::AlignItems::Center, FlexboxConfig::AlignItems::FlexEnd, FlexboxConfig::Direction::ColumnInversed, FlexboxConfig::Direction::Row, FlexboxConfig::Direction::RowInversed, FlexboxConfig::JustifyContent::Center, FlexboxConfig::JustifyContent::SpaceBetween #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/src/ftxui/dom/gauge_test.cpp b/src/ftxui/dom/gauge_test.cpp index 454850e..e8a8b9d 100644 --- a/src/ftxui/dom/gauge_test.cpp +++ b/src/ftxui/dom/gauge_test.cpp @@ -2,9 +2,8 @@ #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult #include // for allocator -#include "ftxui/dom/elements.hpp" // for gauge +#include "ftxui/dom/elements.hpp" // for gauge, gaugeUp #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/src/ftxui/dom/gridbox_test.cpp b/src/ftxui/dom/gridbox_test.cpp index 30c6e4c..19a8f8b 100644 --- a/src/ftxui/dom/gridbox_test.cpp +++ b/src/ftxui/dom/gridbox_test.cpp @@ -1,12 +1,12 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult +#include // for size_t #include // for remove -#include // for allocator, basic_string, string +#include // for string, allocator, basic_string #include // for vector -#include "ftxui/dom/elements.hpp" // for text, operator|, Element, flex, Elements, flex_grow, flex_shrink, vtext, gridbox, vbox, border +#include "ftxui/dom/elements.hpp" // for text, operator|, Elements, gridbox, Element, flex, flex_grow, flex_shrink, vtext, vbox, border #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, TEST, EXPECT_EQ diff --git a/src/ftxui/dom/hbox_test.cpp b/src/ftxui/dom/hbox_test.cpp index 05fefe1..f78a813 100644 --- a/src/ftxui/dom/hbox_test.cpp +++ b/src/ftxui/dom/hbox_test.cpp @@ -1,9 +1,10 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator, basic_string, string +#include // for size_t +#include // for string, allocator #include // for vector -#include "ftxui/dom/elements.hpp" // for text, operator|, Element, flex_grow, flex_shrink, hbox +#include "ftxui/dom/elements.hpp" // for text, operator|, hbox, Element, flex_grow, flex_shrink #include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen diff --git a/src/ftxui/dom/scroll_indicator_test.cpp b/src/ftxui/dom/scroll_indicator_test.cpp index 6272df1..665ec75 100644 --- a/src/ftxui/dom/scroll_indicator_test.cpp +++ b/src/ftxui/dom/scroll_indicator_test.cpp @@ -1,9 +1,13 @@ #include // for Message -#include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox +#include // for TestPartResult, SuiteApiResolver, TestFactoryImpl +#include // for shared_ptr +#include // for allocator, to_string, string +#include // for move + +#include "ftxui/dom/elements.hpp" // for operator|, Element, operator|=, text, vbox, Elements, border, focus, frame, vscroll_indicator +#include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/screen.hpp" // for Screen -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include "gtest/gtest_pred_impl.h" // for EXPECT_EQ, Test, TEST namespace ftxui { diff --git a/src/ftxui/dom/separator_test.cpp b/src/ftxui/dom/separator_test.cpp index eb0a25f..fe3f51c 100644 --- a/src/ftxui/dom/separator_test.cpp +++ b/src/ftxui/dom/separator_test.cpp @@ -1,8 +1,10 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen +#include // for allocator, string + +#include "ftxui/dom/elements.hpp" // for text, vbox, separator, separatorDouble, separatorEmpty, separatorHeavy, separatorLight, separatorStyled, DOUBLE +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen, Pixel #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST namespace ftxui { diff --git a/src/ftxui/dom/spinner_test.cpp b/src/ftxui/dom/spinner_test.cpp index 5c5b918..d776931 100644 --- a/src/ftxui/dom/spinner_test.cpp +++ b/src/ftxui/dom/spinner_test.cpp @@ -1,7 +1,9 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult #include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox + +#include "ftxui/dom/elements.hpp" // for spinner +#include "ftxui/dom/node.hpp" // for Render #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/src/ftxui/dom/table_test.cpp b/src/ftxui/dom/table_test.cpp index b055d27..c9b28c3 100644 --- a/src/ftxui/dom/table_test.cpp +++ b/src/ftxui/dom/table_test.cpp @@ -5,7 +5,6 @@ #include "ftxui/dom/elements.hpp" // for LIGHT, flex, center, EMPTY, DOUBLE #include "ftxui/dom/node.hpp" // for Render #include "ftxui/dom/table.hpp" -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/src/ftxui/dom/text_test.cpp b/src/ftxui/dom/text_test.cpp index 10ba7cc..50f24bf 100644 --- a/src/ftxui/dom/text_test.cpp +++ b/src/ftxui/dom/text_test.cpp @@ -4,7 +4,6 @@ #include "ftxui/dom/elements.hpp" // for text, operator|, border, Element #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/src/ftxui/dom/underlined_test.cpp b/src/ftxui/dom/underlined_test.cpp index 2109a4c..0c71341 100644 --- a/src/ftxui/dom/underlined_test.cpp +++ b/src/ftxui/dom/underlined_test.cpp @@ -1,9 +1,11 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult -#include // for allocator -#include "ftxui/dom/elements.hpp" // for text, flexbox -#include "ftxui/screen/screen.hpp" // for Screen -#include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST +#include // for Test, AssertionResult, TestInfo (ptr only), EXPECT_TRUE, TEST +#include // for allocator + +#include "ftxui/dom/elements.hpp" // for operator|, text, underlined, Element +#include "ftxui/dom/node.hpp" // for Render +#include "ftxui/screen/screen.hpp" // for Screen, Pixel namespace ftxui { diff --git a/src/ftxui/dom/util.cpp b/src/ftxui/dom/util.cpp index adf6be3..38a82cb 100644 --- a/src/ftxui/dom/util.cpp +++ b/src/ftxui/dom/util.cpp @@ -2,10 +2,9 @@ #include // for function #include // for __shared_ptr_access, make_unique #include // for move -#include // for vector -#include "ftxui/dom/elements.hpp" // for Element, Decorator, Elements, operator|, Fit, emptyElement, nothing -#include "ftxui/dom/node.hpp" // for Node, Node::Status +#include "ftxui/dom/elements.hpp" // for Element, Decorator, Elements, operator|, Fit, emptyElement, nothing, operator|= +#include "ftxui/dom/node.hpp" // for Node, Node::Status #include "ftxui/dom/requirement.hpp" // for Requirement #include "ftxui/screen/box.hpp" // for Box #include "ftxui/screen/screen.hpp" // for Full diff --git a/src/ftxui/dom/vbox_test.cpp b/src/ftxui/dom/vbox_test.cpp index 9812c35..aca59a8 100644 --- a/src/ftxui/dom/vbox_test.cpp +++ b/src/ftxui/dom/vbox_test.cpp @@ -1,12 +1,12 @@ #include // for Message #include // for SuiteApiResolver, TestFactoryImpl, TestPartResult +#include // for size_t #include // for remove -#include // for allocator, basic_string, string +#include // for string, allocator, basic_string #include // for vector -#include "ftxui/dom/elements.hpp" // for vtext, operator|, Element, flex_grow, flex_shrink, vbox +#include "ftxui/dom/elements.hpp" // for vtext, operator|, vbox, Element, flex_grow, flex_shrink #include "ftxui/dom/node.hpp" // for Render -#include "ftxui/screen/color.hpp" // for ftxui #include "ftxui/screen/screen.hpp" // for Screen #include "gtest/gtest_pred_impl.h" // for Test, EXPECT_EQ, TEST diff --git a/tools/iwyu.sh b/tools/iwyu.sh index 209fc8c..88da55e 100755 --- a/tools/iwyu.sh +++ b/tools/iwyu.sh @@ -8,7 +8,6 @@ rm * -rf echo $CMAKE_CXX_INCLUDE_WHAT_YOU_USE cmake .. -DFTXUI_BUILD_TESTS=ON -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="include-what-you-use;-Xiwyu;--cxx17ns;-Xiwyu;--mapping_file=${mapping_dir}/iwyu.imp;-Xiwyu;--verbose=3" make -j 2>out -#fix_includes.py --comments < out -fix_include --comments < out +fix_includes.py --comments < out ../tools/format.sh