diff --git a/examples/component/button.cpp b/examples/component/button.cpp index d2cab3ca889f3a815acae304360036651ba23247..27439a3929e5a278b72e1e50b3a05f31abac4a0a 100644 --- a/examples/component/button.cpp +++ b/examples/component/button.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, __shared_ptr_access #include <string> // for operator+, to_string @@ -34,7 +37,3 @@ int main() { screen.Loop(component); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/button_animated.cpp b/examples/component/button_animated.cpp index 86abd7fd3cbf8295b492375c788a6c91c6c8cb61..10b3f8068e508b870b8eb64accf9fd3b309d495e 100644 --- a/examples/component/button_animated.cpp +++ b/examples/component/button_animated.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, __shared_ptr_access #include <string> // for operator+, to_string @@ -40,7 +43,3 @@ int main() { screen.Loop(component); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/button_in_frame.cpp b/examples/component/button_in_frame.cpp index 26ba62233636818dfd3693bf766e9083516c78c8..90680494026fe0d469b941a3ccb23cbe6ec9d617 100644 --- a/examples/component/button_in_frame.cpp +++ b/examples/component/button_in_frame.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access, shared_ptr #include <string> // for to_string, operator+ @@ -42,7 +45,3 @@ int main() { return 0; } - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/button_style.cpp b/examples/component/button_style.cpp index 340f482af9b40a20885592bdb3bb1527d739f87e..8183e97435a75c9141e04b54099bff1e4443fc82 100644 --- a/examples/component/button_style.cpp +++ b/examples/component/button_style.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for operator+, to_string #include "ftxui/component/captured_mouse.hpp" // for ftxui @@ -55,7 +58,3 @@ int main() { screen.Loop(buttons); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/canvas_animated.cpp b/examples/component/canvas_animated.cpp index b0b6036cfdda16e9ddd9eb71d309fb04faadf91b..9cc0eaa6350ccd544d4ba2d3b47357deabf55226 100644 --- a/examples/component/canvas_animated.cpp +++ b/examples/component/canvas_animated.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSED file. #include <cmath> // for sin, cos #include <ftxui/dom/elements.hpp> // for canvas, Element, separator, hbox, operator|, border #include <ftxui/screen/screen.hpp> // for Pixel @@ -257,7 +260,3 @@ int main() { return 0; } - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSED file. diff --git a/examples/component/checkbox.cpp b/examples/component/checkbox.cpp index 9ddf8dcd7779cc4184003afa8bbdfccb73f8bdcf..803f110edb373bd906dc507840d8e8841ea12798 100644 --- a/examples/component/checkbox.cpp +++ b/examples/component/checkbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access #include <string> // for string, basic_string, operator+, to_string #include <vector> // for vector @@ -25,7 +28,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(renderer); } - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/checkbox_in_frame.cpp b/examples/component/checkbox_in_frame.cpp index ca71d172da851ee2efd1a486ba3f39075d1ee627..3caaf81e05f9ee02111ff10e0314089780f04d72 100644 --- a/examples/component/checkbox_in_frame.cpp +++ b/examples/component/checkbox_in_frame.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <array> // for array #include <memory> // for shared_ptr, __shared_ptr_access #include <string> // for operator+, to_string @@ -29,7 +32,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/collapsible.cpp b/examples/component/collapsible.cpp index c569b365eb947c75a7d87a09f48b7350b2c143f2..08a018f2549b4e2bdca8c5543196e442a2004aae 100644 --- a/examples/component/collapsible.cpp +++ b/examples/component/collapsible.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, make_shared, __shared_ptr_access #include <utility> // for move #include <vector> // for vector @@ -52,7 +55,3 @@ int main() { ScreenInteractive::FitComponent().Loop(component); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/composition.cpp b/examples/component/composition.cpp index 2c49a9e19dcc58b0720824e81b60b7bbeac3086c..9fca205698ceec618321ca363d4a11254bc7dded 100644 --- a/examples/component/composition.cpp +++ b/examples/component/composition.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, shared_ptr, __shared_ptr_access #include <string> // for operator+, to_string @@ -58,7 +61,3 @@ int main() { } // Thanks to Chris Morgan for this example! - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/custom_loop.cpp b/examples/component/custom_loop.cpp index 2cafe60a02f4ab5175c0023ab9a88881f1225803..947c83fc3a2b42d54bc0b280009ff7ac818975ae 100644 --- a/examples/component/custom_loop.cpp +++ b/examples/component/custom_loop.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdlib.h> // for EXIT_SUCCESS #include <chrono> // for milliseconds #include <ftxui/component/event.hpp> // for Event @@ -49,7 +52,3 @@ int main() { return EXIT_SUCCESS; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/dropdown.cpp b/examples/component/dropdown.cpp index 1c4f082f4299a1d21a49707862052fc7906a6c0b..04febeb82dfd783e77b09868de3648c9e9974589 100644 --- a/examples/component/dropdown.cpp +++ b/examples/component/dropdown.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for basic_string, string, allocator #include <vector> // for vector @@ -39,7 +42,3 @@ int main() { auto screen = ScreenInteractive::FitComponent(); screen.Loop(layout); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/flexbox_gallery.cpp b/examples/component/flexbox_gallery.cpp index b0a13a1b2059e4f14cecb0e8c3d2d7787d90954f..e6bf432ad21f7e13b29727f95fa8add457f9c876 100644 --- a/examples/component/flexbox_gallery.cpp +++ b/examples/component/flexbox_gallery.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stddef.h> // for size_t #include <memory> // for shared_ptr, __shared_ptr_access, allocator #include <string> // for string, basic_string, to_string, operator+, char_traits @@ -186,7 +189,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/focus.cpp b/examples/component/focus.cpp index 9432d9ae516e50ba1c4df8cf69ff8728be0673e9..2b44a12aba0dd97c562c20d349d488242b97234e 100644 --- a/examples/component/focus.cpp +++ b/examples/component/focus.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, shared_ptr, __shared_ptr_access #include <string> // for operator+, char_traits, to_string, string #include <vector> // for vector @@ -64,7 +67,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/focus_cursor.cpp b/examples/component/focus_cursor.cpp index 279582b05bad06fe5c01c76526eaac22ea5caa99..b826dd3fc30666e97718da3a8f49dbe3a048e03a 100644 --- a/examples/component/focus_cursor.cpp +++ b/examples/component/focus_cursor.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/captured_mouse.hpp> // for ftxui #include <string> // for allocator, operator+, char_traits, string @@ -32,7 +35,3 @@ int main() { })); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/gallery.cpp b/examples/component/gallery.cpp index 3d4d16d3d03608701bec3ac487c8756bf62ecb7d..6add4f8be36003a6265c2e901851cc4160002e0d 100644 --- a/examples/component/gallery.cpp +++ b/examples/component/gallery.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for shared_ptr, allocator, __shared_ptr_access #include <string> // for string, basic_string @@ -128,7 +131,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/homescreen.cpp b/examples/component/homescreen.cpp index 69be5b34fb091fb4e01825f22367b7382aa96f07..98e3490e33b23899dd994ea9143888163392b90e 100644 --- a/examples/component/homescreen.cpp +++ b/examples/component/homescreen.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stddef.h> // for size_t #include <array> // for array #include <atomic> // for atomic @@ -521,7 +524,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/homescreen.gif b/examples/component/homescreen.gif deleted file mode 100644 index efea16f5ddde4b7942dc74351466d19ae56866b9..0000000000000000000000000000000000000000 Binary files a/examples/component/homescreen.gif and /dev/null differ diff --git a/examples/component/input.cpp b/examples/component/input.cpp index 3f041f9b5dae5c067d1466245c951e9f1cfd6ecf..d1332caff8cb6763efe89e3dbf13dfc77486da38 100644 --- a/examples/component/input.cpp +++ b/examples/component/input.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access #include <string> // for char_traits, operator+, string, basic_string @@ -43,7 +46,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/input_style.cpp b/examples/component/input_style.cpp index f9bf12eacbcd3d580c9a70eeccf24dc6ec82d798..338208c4c85177dd43dc915d6c94e7a291d9d218 100644 --- a/examples/component/input_style.cpp +++ b/examples/component/input_style.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/linear_gradient.hpp> // for LinearGradient #include <ftxui/screen/color.hpp> // for Color, Color::White, Color::Red, Color::Blue, Color::Black, Color::GrayDark, ftxui #include <functional> // for function @@ -92,7 +95,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(ui); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/linear_gradient_gallery.cpp b/examples/component/linear_gradient_gallery.cpp index 6e7b76b19d10c3776e45d658f25aff9dbb34d513..c8b8e15831a4f229b757dcae65b74682161ee4a8 100644 --- a/examples/component/linear_gradient_gallery.cpp +++ b/examples/component/linear_gradient_gallery.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/component_base.hpp> // for ComponentBase, Component #include <ftxui/dom/elements.hpp> // for operator|, Element, flex, bgcolor, text, vbox, center #include <ftxui/dom/linear_gradient.hpp> // for LinearGradient @@ -50,7 +53,3 @@ int main() { screen.Loop(renderer); } - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/maybe.cpp b/examples/component/maybe.cpp index f7b3dbfb3348a8529b84a34f4ceb9a28f292fca6..d97f8a8fd3a33e9dc64dacf2754cdc6d2edc295f 100644 --- a/examples/component/maybe.cpp +++ b/examples/component/maybe.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for string, allocator, basic_string #include <vector> // for vector @@ -36,7 +39,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(layout); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu.cpp b/examples/component/menu.cpp index 0794691bc487193114643758094911de2494c813..deee98662290684f8d3a467ae303c570fc974871 100644 --- a/examples/component/menu.cpp +++ b/examples/component/menu.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <iostream> // for basic_ostream::operator<<, operator<<, endl, basic_ostream, basic_ostream<>::__ostream_type, cout, ostream #include <string> // for string, basic_string, allocator @@ -27,7 +30,3 @@ int main() { std::cout << "Selected element = " << selected << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu2.cpp b/examples/component/menu2.cpp index 9854f80384d06fb48f562a58c94db7fa70396ea3..e264df0363eba2123c537c852a9ed9c8c332d667 100644 --- a/examples/component/menu2.cpp +++ b/examples/component/menu2.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for allocator, __shared_ptr_access #include <string> // for string, basic_string, operator+, to_string @@ -74,7 +77,3 @@ int main() { screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu_entries.cpp b/examples/component/menu_entries.cpp index 38dda85482af98e11a2180a5bff5c66b14715643..704a3ae2a39ac29d25f98e601303a51cbb7a0803 100644 --- a/examples/component/menu_entries.cpp +++ b/examples/component/menu_entries.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <iostream> // for basic_ostream::operator<<, operator<<, endl, basic_ostream, basic_ostream<>::__ostream_type, cout, ostream #include <memory> // for allocator, shared_ptr, __shared_ptr_access @@ -76,7 +79,3 @@ int main() { std::cout << "Selected element = " << selected << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu_entries_animated.cpp b/examples/component/menu_entries_animated.cpp index a45d562f7d7c026cb31644e991c5b35798ed92b5..acf51e93f8adc424527d9d2c4dc88de0ac9cb4e2 100644 --- a/examples/component/menu_entries_animated.cpp +++ b/examples/component/menu_entries_animated.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <iostream> // for basic_ostream::operator<<, operator<<, endl, basic_ostream, basic_ostream<>::__ostream_type, cout, ostream #include <memory> // for shared_ptr, __shared_ptr_access #include <string> // for to_string, allocator @@ -60,7 +63,3 @@ int main() { std::cout << "Selected element = " << selected << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu_in_frame.cpp b/examples/component/menu_in_frame.cpp index 43d86779df974eaf7efc12984eae316c61b3bfff..2571df0a1267f008751b054fb37f05c1015a35a0 100644 --- a/examples/component/menu_in_frame.cpp +++ b/examples/component/menu_in_frame.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, __shared_ptr_access #include <string> // for string, basic_string, operator+, to_string #include <vector> // for vector @@ -27,7 +30,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu_multiple.cpp b/examples/component/menu_multiple.cpp index de99f4e04821d0ddbf557f248ccf6b3be121674d..a4f38d8dba8d88bdb61f14b3585be584a9d92fd8 100644 --- a/examples/component/menu_multiple.cpp +++ b/examples/component/menu_multiple.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdlib.h> // for EXIT_SUCCESS #include <memory> // for allocator, __shared_ptr_access #include <string> // for string, operator+, basic_string, to_string, char_traits @@ -72,7 +75,3 @@ int main() { screen.Loop(global); return EXIT_SUCCESS; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu_style.cpp b/examples/component/menu_style.cpp index b9fd71a74130daa77ee8720ccad503771a84258f..39ccdcdd48242a9e032d3447690a963a59e503c6 100644 --- a/examples/component/menu_style.cpp +++ b/examples/component/menu_style.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <array> // for array #include <chrono> // for milliseconds #include <functional> // for function @@ -252,7 +255,3 @@ Component HMenu5(std::vector<std::string>* entries, int* selected) { option.underline.color_active = Color::Red; return Menu(entries, selected, option); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/menu_underline_animated_gallery.cpp b/examples/component/menu_underline_animated_gallery.cpp index 5f7cf7ccdd5d3a457e80e5b87b95d509c1ee25f4..9d24b94dbc0f33814f51367bd785aed8ade4c240 100644 --- a/examples/component/menu_underline_animated_gallery.cpp +++ b/examples/component/menu_underline_animated_gallery.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""ms, literals #include <memory> // for allocator, shared_ptr, __shared_ptr_access #include <string> // for string, operator+, to_string, basic_string @@ -88,7 +91,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(container); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/modal_dialog.cpp b/examples/component/modal_dialog.cpp index c8cffe9d5233debcfa93b44ada9ff3b6eb7265b4..8fc02f4cdd12cc6ee96df630b6528e9bf48d59d8 100644 --- a/examples/component/modal_dialog.cpp +++ b/examples/component/modal_dialog.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/component_options.hpp> // for ButtonOption #include <ftxui/component/mouse.hpp> // for ftxui #include <functional> // for function @@ -77,7 +80,3 @@ int main(int argc, const char* argv[]) { screen.Loop(main_component); return 0; } - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/modal_dialog_custom.cpp b/examples/component/modal_dialog_custom.cpp index acab25fa9752caed0b48b2e51ab135178e80186e..eabf391137cc80efb8b08f33d7744f5f467cc95d 100644 --- a/examples/component/modal_dialog_custom.cpp +++ b/examples/component/modal_dialog_custom.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, shared_ptr, __shared_ptr_access #include <string> // for string, basic_string, char_traits, operator+ #include <vector> // for vector @@ -88,7 +91,3 @@ int main() { screen.Loop(main_renderer); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/nested_screen.cpp b/examples/component/nested_screen.cpp index aafb134d8f0821f391912a880c857c766f30ce64..c517ed51ec9639f2989673e07890923c4d359b52 100644 --- a/examples/component/nested_screen.cpp +++ b/examples/component/nested_screen.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, shared_ptr, __shared_ptr_access #include <string> // for operator+, string, char_traits, basic_string @@ -45,7 +48,3 @@ int main() { })); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/radiobox.cpp b/examples/component/radiobox.cpp index f5a066d5b476e34a60c47dc212ad62dc288f4939..0be24ddf2483e9e78a46c2f48cdc5ae4d17e78f5 100644 --- a/examples/component/radiobox.cpp +++ b/examples/component/radiobox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for string, allocator, basic_string #include <vector> // for vector @@ -20,7 +23,3 @@ int main() { screen.Loop(Radiobox(&radiobox_list, &selected)); return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/radiobox_in_frame.cpp b/examples/component/radiobox_in_frame.cpp index 1b5771428c94f637bfdc15104eb1a928d90c93ee..bf161e9ec5b8557f7b02b4aca2d0f28e2b2ff28e 100644 --- a/examples/component/radiobox_in_frame.cpp +++ b/examples/component/radiobox_in_frame.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, __shared_ptr_access #include <string> // for string, basic_string, operator+, to_string #include <vector> // for vector @@ -27,7 +30,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/renderer.cpp b/examples/component/renderer.cpp index 07ffaf9778a7f2f0db8d446288f264a3158612af..6d0bcbefaa7d7310b9e1ec2b619dd318fd8c6049 100644 --- a/examples/component/renderer.cpp +++ b/examples/component/renderer.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, allocator, __shared_ptr_access #include "ftxui/component/captured_mouse.hpp" // for ftxui @@ -43,7 +46,3 @@ int main() { renderer_wrap, })); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/resizable_split.cpp b/examples/component/resizable_split.cpp index 066d31743d06c5758db060ce9f4e7e979bb1e574..05c6385a1668cb50e1142f1e59a8f309f7809ef2 100644 --- a/examples/component/resizable_split.cpp +++ b/examples/component/resizable_split.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, allocator, __shared_ptr_access #include "ftxui/component/captured_mouse.hpp" // for ftxui @@ -33,7 +36,3 @@ int main() { screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/slider_direction.cpp b/examples/component/slider_direction.cpp index 33b78000e2fe2206e0f3505be4c5db4cc5fc4dee..4a6c3bad36ab482deb5880a2d7ddf4c1ac99cabc 100644 --- a/examples/component/slider_direction.cpp +++ b/examples/component/slider_direction.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <array> // for array #include <cmath> // for sin #include <ftxui/component/component_base.hpp> // for ComponentBase @@ -44,7 +47,3 @@ int main() { screen.Loop(layout_horizontal); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/slider_rgb.cpp b/examples/component/slider_rgb.cpp index f3eb2f865e6dced8aa7802708c1fe0d90d7ae102..0d0160f02216720c0fcd117dc2da4926c6b2c5d8 100644 --- a/examples/component/slider_rgb.cpp +++ b/examples/component/slider_rgb.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, shared_ptr, __shared_ptr_access #include <string> // for char_traits, operator+, to_string @@ -56,7 +59,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/tab_horizontal.cpp b/examples/component/tab_horizontal.cpp index a1faefeb7fe237e13341e2ce6e320012a51c87ba..5aeead830b66f4ef939f995b05688c5e0df77a44 100644 --- a/examples/component/tab_horizontal.cpp +++ b/examples/component/tab_horizontal.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access, shared_ptr #include <string> // for string, basic_string #include <vector> // for vector @@ -65,7 +68,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/tab_vertical.cpp b/examples/component/tab_vertical.cpp index ad06b8258a1ef7f6586810eb1a8e7ee23dce0b03..415c732604bd3cbde9b6c56b4ed4586b55d28548 100644 --- a/examples/component/tab_vertical.cpp +++ b/examples/component/tab_vertical.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access, shared_ptr #include <string> // for string, basic_string #include <vector> // for vector @@ -65,7 +68,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/textarea.cpp b/examples/component/textarea.cpp index 5ea7721c88d2bd438dc4e4c6122a6626eee72788..3a79a9e5ef557a51becbc1501f4a3404f20c5583 100644 --- a/examples/component/textarea.cpp +++ b/examples/component/textarea.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access, shared_ptr #include <string> // for string @@ -29,7 +32,3 @@ int main() { auto screen = ScreenInteractive::Fullscreen(); screen.Loop(component); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/toggle.cpp b/examples/component/toggle.cpp index f1f3b06f70edabd0cb329ef074c063ed8de412bf..1bb204eff158d41676b5432af4506b979546b85e 100644 --- a/examples/component/toggle.cpp +++ b/examples/component/toggle.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for allocator, __shared_ptr_access #include <string> // for string, basic_string #include <vector> // for vector @@ -59,7 +62,3 @@ int main() { auto screen = ScreenInteractive::TerminalOutput(); screen.Loop(renderer); } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/window.cpp b/examples/component/window.cpp index 64c4cfee647cb2fd8039a6ac990dae04d2c9297a..121b48a6b7001b095f0e3bc02295f7b9d73335b8 100644 --- a/examples/component/window.cpp +++ b/examples/component/window.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/component.hpp> #include <ftxui/component/screen_interactive.hpp> @@ -83,7 +86,3 @@ int main() { return EXIT_SUCCESS; } - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/component/with_restored_io.cpp b/examples/component/with_restored_io.cpp index 9157fc20cf9d9ef5866c5ab25ff1988b10bb2052..38c91bc2775200eee33162450a0eda1aa9f66afc 100644 --- a/examples/component/with_restored_io.cpp +++ b/examples/component/with_restored_io.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cstdlib> // for system, EXIT_SUCCESS #include <iostream> // for operator<<, basic_ostream, basic_ostream::operator<<, cout, endl, flush, ostream, basic_ostream<>::__ostream_type, cin #include <memory> // for shared_ptr, __shared_ptr_access, allocator @@ -55,7 +58,3 @@ int main() { screen.Loop(renderer); return EXIT_SUCCESS; } - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/border.cpp b/examples/dom/border.cpp index 78b9135ee9c087c05568d44a056423ce7760dd4f..49ba8bb853ed44077f930fd31b34df968eee73b3 100644 --- a/examples/dom/border.cpp +++ b/examples/dom/border.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdlib.h> // for EXIT_SUCCESS #include <ftxui/dom/elements.hpp> // for text, operator|, vbox, border, Element, Fit, hbox #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -33,7 +36,3 @@ int main() { screen.Print(); return EXIT_SUCCESS; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/border_colored.cpp b/examples/dom/border_colored.cpp index 95bead5d2645019af288c4706ab6c4ce39eb79fd..5a04d3e38fffb3318e9f0d6c6b332a2a372ff539 100644 --- a/examples/dom/border_colored.cpp +++ b/examples/dom/border_colored.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for operator|, text, Element, Fit, borderDouble, borderHeavy, borderLight, borderRounded, vbox #include <ftxui/screen/screen.hpp> // for Screen #include <iostream> // for endl, cout, ostream @@ -34,7 +37,3 @@ int main() { screen.Print(); std::cout << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/border_style.cpp b/examples/dom/border_style.cpp index e16f53f5ca67ac74bb966c1c14d0e849df14e710..f71182c4d9c14b7e931c5a420ef1ad4f46bd7ae0 100644 --- a/examples/dom/border_style.cpp +++ b/examples/dom/border_style.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for operator|, text, Element, Fit, borderDouble, borderHeavy, borderLight, borderRounded, vbox #include <ftxui/screen/screen.hpp> // for Screen #include <iostream> // for endl, cout, ostream @@ -23,7 +26,3 @@ int main() { screen.Print(); std::cout << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/canvas.cpp b/examples/dom/canvas.cpp index f61cd4d0e6c2b0524008abba5aef3d21af39bb5a..ece1c5e5b5e94e47e797fd9458ab96a88e398ad9 100644 --- a/examples/dom/canvas.cpp +++ b/examples/dom/canvas.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdio.h> // for getchar #include <cmath> // for cos #include <ftxui/dom/elements.hpp> // for Fit, canvas, operator|, border, Element @@ -43,7 +46,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/color_gallery.cpp b/examples/dom/color_gallery.cpp index fc8f584c1d1f15e247afd01e04147c32bbe4ca5e..f57e387d16e07340ede981fb782c33d7df9f31ad 100644 --- a/examples/dom/color_gallery.cpp +++ b/examples/dom/color_gallery.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/screen/color_info.hpp> // for ColorInfo #include <ftxui/screen/screen.hpp> // for Full, Screen #include <ftxui/screen/terminal.hpp> // for ColorSupport, Color, Palette16, Palette256, TrueColor @@ -136,7 +139,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/color_info_palette256.cpp b/examples/dom/color_info_palette256.cpp index 3cc383de89f293e8e7a02b1d28fc77aa921b19e3..c8795ec38095eb1ba6620d2f8b550b71759b2e26 100644 --- a/examples/dom/color_info_palette256.cpp +++ b/examples/dom/color_info_palette256.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, bgcolor, hbox, operator|, Elements, Fit, vbox, Element #include <ftxui/screen/color_info.hpp> // for ColorInfo #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -34,7 +37,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/color_truecolor_HSV.cpp b/examples/dom/color_truecolor_HSV.cpp index d519069267678d9739538eeb74a02a1502dce3c9..adaa7ef4ba0cf2364a44915b09af731f1979b044 100644 --- a/examples/dom/color_truecolor_HSV.cpp +++ b/examples/dom/color_truecolor_HSV.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for operator|, Elements, Fit, bgcolor, color, hbox, text, vbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -30,7 +33,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/color_truecolor_RGB.cpp b/examples/dom/color_truecolor_RGB.cpp index 65cc04c59db8b2a05e6f77ce9ac410940634e651..6a8d1f3c71d9e41f0a0aabfe2e6fc835e916b5f5 100644 --- a/examples/dom/color_truecolor_RGB.cpp +++ b/examples/dom/color_truecolor_RGB.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for hbox, text, bgcolor, operator|, vbox, Elements, window, Element, Fit #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -49,7 +52,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/dbox.cpp b/examples/dom/dbox.cpp index b1f347c96b9dbffae195d9b1df5151a283e367a0..a1de78c5ad41b4dff9e59c7cc00b7cae768fb622 100644 --- a/examples/dom/dbox.cpp +++ b/examples/dom/dbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, border, Element, vbox, center, Fit, dbox #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -24,7 +27,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/gauge.cpp b/examples/dom/gauge.cpp index d12fbcb7468c353c6f8ed4c62427d59c4fe16d77..e2c53c591b686bbe9b10eaddc5dfa7779a33e8f2 100644 --- a/examples/dom/gauge.cpp +++ b/examples/dom/gauge.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <ftxui/dom/elements.hpp> // for text, gauge, operator|, flex, hbox, Element #include <ftxui/screen/screen.hpp> // for Screen @@ -31,7 +34,3 @@ int main() { } std::cout << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/gauge_direction.cpp b/examples/dom/gauge_direction.cpp index f7ebef895ee874ac670a6db11432077598addfe5..c852136c2481226048754a2c977f4c76b6990a77 100644 --- a/examples/dom/gauge_direction.cpp +++ b/examples/dom/gauge_direction.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <ftxui/dom/elements.hpp> // for filler, operator|, separator, text, border, Element, vbox, vtext, hbox, center, gaugeDown, gaugeLeft, gaugeRight, gaugeUp #include <ftxui/screen/screen.hpp> // for Screen @@ -73,7 +76,3 @@ int main() { } std::cout << std::endl; } - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/graph.cpp b/examples/dom/graph.cpp index 536733059be9b4e2485633ef91d2417c86d94e0e..461933fe4097fb3a9a9b7ef1eb6e669e8b8ca36f 100644 --- a/examples/dom/graph.cpp +++ b/examples/dom/graph.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <cmath> // for sin #include <ftxui/dom/elements.hpp> // for graph, operator|, separator, color, Element, vbox, flex, inverted, operator|=, Fit, hbox, size, border, GREATER_THAN, HEIGHT @@ -80,7 +83,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/gridbox.cpp b/examples/dom/gridbox.cpp index 4c5c989c79a190e61fb175854d214c4f5f954e86..c0e2e1cb8ce298900ee0c3b9cac236496ce59050 100644 --- a/examples/dom/gridbox.cpp +++ b/examples/dom/gridbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdio.h> // for getchar #include <ftxui/dom/elements.hpp> // for Elements, gridbox, Fit, operator|, text, border, Element #include <ftxui/screen/screen.hpp> // for Screen @@ -43,7 +46,3 @@ int main() { return 0; } - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/hflow.cpp b/examples/dom/hflow.cpp index 01b2886dc1df288e623cf17afd09449c92680d0c..7d8bdbe67a6017de40513fb51ab79d880d96269f 100644 --- a/examples/dom/hflow.cpp +++ b/examples/dom/hflow.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdio.h> // for getchar #include <ftxui/dom/elements.hpp> // for operator|, size, Element, text, hcenter, Decorator, Fit, WIDTH, hflow, window, EQUAL, GREATER_THAN, HEIGHT, bold, border, dim, LESS_THAN #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -47,7 +50,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/html_like.cpp b/examples/dom/html_like.cpp index fc75959fc96fed4bef89306a0dddefa45a651331..09fdb2b2edbd1a2454a1b8b062bcab1996fe197e 100644 --- a/examples/dom/html_like.cpp +++ b/examples/dom/html_like.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <ftxui/screen/screen.hpp> // for Screen #include <iostream> // for cout, ostream @@ -54,7 +57,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/linear_gradient.cpp b/examples/dom/linear_gradient.cpp index 3d5fb9a91dc6bf133ba633d1a54ff72fbb97a349..14fb9d8376a0e5df8d0ee9a3563f3e6554a72828 100644 --- a/examples/dom/linear_gradient.cpp +++ b/examples/dom/linear_gradient.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for bgcolor, operator|, operator|=, text, center, Element #include <ftxui/dom/linear_gradient.hpp> // for LinearGradient::Stop, LinearGradient #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -20,7 +23,3 @@ int main() { return 0; } - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/package_manager.cpp b/examples/dom/package_manager.cpp index b21d81ac1eb389bfffe83266af5219c435a8e42e..2829547df54c8379ae22989a450baa64492bacf7 100644 --- a/examples/dom/package_manager.cpp +++ b/examples/dom/package_manager.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <ftxui/dom/elements.hpp> // for operator|, text, Element, hbox, bold, color, filler, separator, vbox, window, gauge, Fit, size, dim, EQUAL, WIDTH #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -143,7 +146,3 @@ int main() { } std::cout << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/paragraph.cpp b/examples/dom/paragraph.cpp index 2529affb584d4dacb9460583f03ff61e58bae726..f39cb53de73c58121ef56d8caa0452e130dd357f 100644 --- a/examples/dom/paragraph.cpp +++ b/examples/dom/paragraph.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <ftxui/screen/screen.hpp> // for Full, Screen #include <iostream> // for cout, ostream @@ -48,7 +51,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/separator.cpp b/examples/dom/separator.cpp index 3b8a3a5b5f8cb532023ebf2cf318f7e204885a17..60e88985395df8233c798fb884b099b38eec3298 100644 --- a/examples/dom/separator.cpp +++ b/examples/dom/separator.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, center, separator, operator|, flex, Element, vbox, Fit, hbox, border #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -25,7 +28,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/separator_style.cpp b/examples/dom/separator_style.cpp index 1e2eb3b1055e6259b28c87b4b7f615544e152e01..acff9d7372271ed2a23955b0b622d6f8426e088e 100644 --- a/examples/dom/separator_style.cpp +++ b/examples/dom/separator_style.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/screen/screen.hpp> // for Screen #include <iostream> // for endl, cout, ostream #include <memory> // for allocator @@ -41,7 +44,3 @@ int main() { screen.Print(); std::cout << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/size.cpp b/examples/dom/size.cpp index 5cc7c367d772a308a53e8ee39cd3a9f51e45a3ee..afe65300504d67adf9b217437454e8c05855a574 100644 --- a/examples/dom/size.cpp +++ b/examples/dom/size.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for operator|, text, Element, hcenter, Fit, hbox, size, window, Elements, bold, dim, EQUAL, WIDTH #include <ftxui/screen/screen.hpp> // for Screen #include <memory> // for allocator, shared_ptr @@ -26,7 +29,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/spinner.cpp b/examples/dom/spinner.cpp index 4f8215be990771f9a3dcc952a03a221f2dedc044..70a32e1ce0e057d89b64a8127d2944d00ff8ee5c 100644 --- a/examples/dom/spinner.cpp +++ b/examples/dom/spinner.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <ftxui/dom/elements.hpp> // for Element, operator|, separator, filler, hbox, size, spinner, text, vbox, bold, border, Fit, EQUAL, WIDTH #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -41,7 +44,3 @@ int main() { } std::cout << std::endl; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_blink.cpp b/examples/dom/style_blink.cpp index f3d725077a03d6fc491477fd40eceacedbfda29f..2a3afd939bb000a4116e23f039f4a7d45a90e103 100644 --- a/examples/dom/style_blink.cpp +++ b/examples/dom/style_blink.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, blink, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_bold.cpp b/examples/dom/style_bold.cpp index 1386f119bb2d5322df6a40de42e59b3544cd0078..451693553039bfcd52f3a30ad5a3fe5ac88a10d8 100644 --- a/examples/dom/style_bold.cpp +++ b/examples/dom/style_bold.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, bold, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_color.cpp b/examples/dom/style_color.cpp index f05d36fd11b1cc6e291c2000d0e7310111b69763..aa799884611680bca99fde15c26069e86571a392 100644 --- a/examples/dom/style_color.cpp +++ b/examples/dom/style_color.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/linear_gradient.hpp> // for LinearGradient #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -62,7 +65,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_dim.cpp b/examples/dom/style_dim.cpp index a5b02af298c3e9e263e9c874e82bd45b56d25e45..dce5f8d55a7fdf1c54ca57cc820c7f18d545fb93 100644 --- a/examples/dom/style_dim.cpp +++ b/examples/dom/style_dim.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, dim, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_gallery.cpp b/examples/dom/style_gallery.cpp index 419f29454ad4f86e039fb11e7886ce20522b6e69..c80689394ef21341144c4d667ec477bcb53fbf49 100644 --- a/examples/dom/style_gallery.cpp +++ b/examples/dom/style_gallery.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, Element, bgcolor, color, blink, bold, dim, inverted, underlined, Fit, hbox #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -29,7 +32,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_hyperlink.cpp b/examples/dom/style_hyperlink.cpp index 8ab092c04f3992361ae583a7b011590f29bd61d5..bd76f4e40050c003ca3fc67fd3eb1060c6adf6a7 100644 --- a/examples/dom/style_hyperlink.cpp +++ b/examples/dom/style_hyperlink.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, bold, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_inverted.cpp b/examples/dom/style_inverted.cpp index e97cec3834cd8bece6de276748c4ac8d9bed66b0..2288fbaceb39a6942c6ededfdbdd26e4f7d2c75d 100644 --- a/examples/dom/style_inverted.cpp +++ b/examples/dom/style_inverted.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, inverted, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -18,7 +21,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_strikethrough.cpp b/examples/dom/style_strikethrough.cpp index 89b4764ef44d82d014a9a4bd57f2a51480de3cd6..00be07bfb13d5b29b8f62e388d61ca596c3be6bf 100644 --- a/examples/dom/style_strikethrough.cpp +++ b/examples/dom/style_strikethrough.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, strikethrough, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_underlined.cpp b/examples/dom/style_underlined.cpp index 8413b845e7933889edd6a0d14a9d0952f16c83c2..3c33ac44f14cb790bde8f09fb45ac28e20e2b6bd 100644 --- a/examples/dom/style_underlined.cpp +++ b/examples/dom/style_underlined.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, underlined, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/style_underlined_double.cpp b/examples/dom/style_underlined_double.cpp index 496ab67cf795c0b699329cdba61afcaac904096e..7697e8a21c64bcd2be54a2f274b5d4be4367a19d 100644 --- a/examples/dom/style_underlined_double.cpp +++ b/examples/dom/style_underlined_double.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for text, operator|, underlinedDouble, Fit, hbox, Element #include <ftxui/screen/screen.hpp> // for Full, Screen #include <memory> // for allocator @@ -19,7 +22,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/table.cpp b/examples/dom/table.cpp index 640d7af0fc9cf9754e51f9526d2242a1d66e3511..020a2afea1f10fb00ba4892ae531e921c2962eca 100644 --- a/examples/dom/table.cpp +++ b/examples/dom/table.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for color, Fit, LIGHT, align_right, bold, DOUBLE #include <ftxui/dom/table.hpp> // for Table, TableSelection #include <ftxui/screen/screen.hpp> // for Screen @@ -59,7 +62,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/vbox_hbox.cpp b/examples/dom/vbox_hbox.cpp index 8434f5f02db416028a247626baf108b2b8df9f3c..f5a31bef71f106ff86449cbd778174a8193f0107 100644 --- a/examples/dom/vbox_hbox.cpp +++ b/examples/dom/vbox_hbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdio.h> // for getchar #include <ftxui/dom/elements.hpp> // for filler, text, hbox, vbox #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -35,7 +38,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/examples/dom/vflow.cpp b/examples/dom/vflow.cpp index 96e9e8490c0d66c4aeb290bfcb936c1e4031769d..94c4a31e0a79e470c6bc86b2511e4de11172bb4c 100644 --- a/examples/dom/vflow.cpp +++ b/examples/dom/vflow.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <stdio.h> // for getchar #include <ftxui/dom/elements.hpp> // for operator|, Element, size, text, hcenter, Fit, vflow, window, EQUAL, bold, border, dim, HEIGHT, WIDTH #include <ftxui/screen/screen.hpp> // for Full, Screen @@ -44,7 +47,3 @@ int main() { return 0; } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/animation.hpp b/include/ftxui/component/animation.hpp index 146ea5c528f94ea3ec91c0b84aa56d84e5e417cd..c9f665ed6ee0b5c42357570ea4fdb5783d7cd688 100644 --- a/include/ftxui/component/animation.hpp +++ b/include/ftxui/component/animation.hpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_ANIMATION_HPP #define FTXUI_ANIMATION_HPP @@ -113,7 +116,3 @@ class Animator { } // namespace ftxui #endif /* end of include guard: FTXUI_ANIMATION_HPP */ - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/captured_mouse.hpp b/include/ftxui/component/captured_mouse.hpp index a59e3ea9844b13afe9733fb1a003a4abbea3d052..4ed6d75ae8adc57985e5b3c18d714defb4a8feb0 100644 --- a/include/ftxui/component/captured_mouse.hpp +++ b/include/ftxui/component/captured_mouse.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_CAPTURED_MOUSE_HPP #define FTXUI_CAPTURED_MOUSE_HPP @@ -12,7 +15,3 @@ using CapturedMouse = std::unique_ptr<CapturedMouseInterface>; } // namespace ftxui #endif /* end of include guard: FTXUI_CAPTURED_MOUSE_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/component.hpp b/include/ftxui/component/component.hpp index ccda278c43798467d2902c428fb89a0829d999b3..984760307741fe35fd6b4898f5b01764a4fd7c23 100644 --- a/include/ftxui/component/component.hpp +++ b/include/ftxui/component/component.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_HPP #define FTXUI_COMPONENT_HPP @@ -137,7 +140,3 @@ Component Window(WindowOptions option); } // namespace ftxui #endif /* end of include guard: FTXUI_COMPONENT_HPP */ - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/component_base.hpp b/include/ftxui/component/component_base.hpp index 25a2b87008a30b297e2a07bb5a66715a8185e74b..1e3fa133f287d32db33a6abeb1e32b7f7856ec41 100644 --- a/include/ftxui/component/component_base.hpp +++ b/include/ftxui/component/component_base.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_BASE_HPP #define FTXUI_COMPONENT_BASE_HPP @@ -93,7 +96,3 @@ class ComponentBase { } // namespace ftxui #endif /* end of include guard: FTXUI_COMPONENT_BASE_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/component_options.hpp b/include/ftxui/component/component_options.hpp index 58fc71d068c74dd0e14072cf0514fcb3a5da6fe6..b401b6d1fa67ce91bc56afee2d7abaed4d3a28b6 100644 --- a/include/ftxui/component/component_options.hpp +++ b/include/ftxui/component/component_options.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP #define FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP @@ -262,7 +265,3 @@ struct WindowOptions { } // namespace ftxui #endif /* end of include guard: FTXUI_COMPONENT_COMPONENT_OPTIONS_HPP */ - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/event.hpp b/include/ftxui/component/event.hpp index a10e256c44ffed8fb005a1f8864e018369031605..504bee093a8b217f242ca49d97d00731f36183f9 100644 --- a/include/ftxui/component/event.hpp +++ b/include/ftxui/component/event.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_EVENT_HPP #define FTXUI_COMPONENT_EVENT_HPP @@ -107,7 +110,3 @@ struct Event { } // namespace ftxui #endif /* end of include guard: FTXUI_COMPONENT_EVENT_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/loop.hpp b/include/ftxui/component/loop.hpp index 63200bed599ea12137b3caabebb6e5b3a1737747..41b340c7d34bca6cb58c238d9370f426bb14d437 100644 --- a/include/ftxui/component/loop.hpp +++ b/include/ftxui/component/loop.hpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_LOOP_HPP #define FTXUI_COMPONENT_LOOP_HPP @@ -33,7 +36,3 @@ class Loop { } // namespace ftxui #endif // FTXUI_COMPONENT_LOOP_HPP - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/mouse.hpp b/include/ftxui/component/mouse.hpp index d1c4c9cd15aa12f9060e59a59d3d38f95afbe17a..3c61008dc3f3044ced0664bbe8ec69e7f5507137 100644 --- a/include/ftxui/component/mouse.hpp +++ b/include/ftxui/component/mouse.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_MOUSE_HPP #define FTXUI_COMPONENT_MOUSE_HPP namespace ftxui { @@ -38,7 +41,4 @@ struct Mouse { } // namespace ftxui -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. #endif /* end of include guard: FTXUI_COMPONENT_MOUSE_HPP */ diff --git a/include/ftxui/component/receiver.hpp b/include/ftxui/component/receiver.hpp index 212341cb2c702fc6e2f100a51f54d3443dcc986b..95f235397104fa00a998b4a6882c42b34a79d2ae 100644 --- a/include/ftxui/component/receiver.hpp +++ b/include/ftxui/component/receiver.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_RECEIVER_HPP_ #define FTXUI_COMPONENT_RECEIVER_HPP_ @@ -135,7 +138,3 @@ Receiver<T> MakeReceiver() { } // namespace ftxui #endif // FTXUI_COMPONENT_RECEIVER_HPP_ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/screen_interactive.hpp b/include/ftxui/component/screen_interactive.hpp index ec08765db0212bd5d45076ceb23f31913dd7f603..10d022c670d08bf48f73f192250d7a3f5df9ea7c 100644 --- a/include/ftxui/component/screen_interactive.hpp +++ b/include/ftxui/component/screen_interactive.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_SCREEN_INTERACTIVE_HPP #define FTXUI_COMPONENT_SCREEN_INTERACTIVE_HPP @@ -87,7 +90,7 @@ class ScreenInteractive : public Screen { Dimension dimension, bool use_alternative_screen); - bool track_mouse_= true; + bool track_mouse_ = true; Sender<Task> task_sender_; Receiver<Task> task_receiver_; @@ -122,7 +125,3 @@ class ScreenInteractive : public Screen { } // namespace ftxui #endif /* end of include guard: FTXUI_COMPONENT_SCREEN_INTERACTIVE_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/component/task.hpp b/include/ftxui/component/task.hpp index 2070b505922a6ecc0a3698482c61896e2e6fd84f..6a770e86e4dd1e259a3303295f957b8a309661d2 100644 --- a/include/ftxui/component/task.hpp +++ b/include/ftxui/component/task.hpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_ANIMATION_HPP #define FTXUI_COMPONENT_ANIMATION_HPP @@ -12,7 +15,3 @@ using Task = std::variant<Event, Closure, AnimationTask>; } // namespace ftxui #endif // FTXUI_COMPONENT_ANIMATION_HPP - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/canvas.hpp b/include/ftxui/dom/canvas.hpp index 5ff5061e15a6f885381f268439ee59618fb3faa9..928683807d3bd6bc11ff119c5e17f5488e9c62ba 100644 --- a/include/ftxui/dom/canvas.hpp +++ b/include/ftxui/dom/canvas.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_CANVAS_HPP #define FTXUI_DOM_CANVAS_HPP @@ -133,7 +136,3 @@ struct Canvas { } // namespace ftxui #endif // FTXUI_DOM_CANVAS_HPP - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/deprecated.hpp b/include/ftxui/dom/deprecated.hpp index 497bfa16438ee32de6245e4253dc69ad0a130832..f4faf8db125e07d3a4b7425872db1dd8fe89c8cd 100644 --- a/include/ftxui/dom/deprecated.hpp +++ b/include/ftxui/dom/deprecated.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_DEPRECATED_HPP #define FTXUI_DOM_DEPRECATED_HPP @@ -10,7 +13,3 @@ Elements paragraph(std::wstring text); } // namespace ftxui #endif // FTXUI_DOM_DEPRECATED_HPP - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/direction.hpp b/include/ftxui/dom/direction.hpp index c738718d8641def0ad757ce9d113f41dc1535f06..2a38f0924d521b21e41459f56794b5c7e510c5bb 100644 --- a/include/ftxui/dom/direction.hpp +++ b/include/ftxui/dom/direction.hpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_DIRECTION_HPP #define FTXUI_DOM_DIRECTION_HPP @@ -11,7 +14,4 @@ enum class Direction { } // namespace ftxui -#endif // FTXUI_DOM_DIRECTION_HPP -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. +#endif /* end of include guard: FTXUI_DOM_DIRECTION_HPP */ diff --git a/include/ftxui/dom/elements.hpp b/include/ftxui/dom/elements.hpp index d343cdc1d45b9669407cdd1e37568103bb0b1a6f..ffd9360139e364570132b664774c19f4ba464994 100644 --- a/include/ftxui/dom/elements.hpp +++ b/include/ftxui/dom/elements.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_ELEMENTS_HPP #define FTXUI_DOM_ELEMENTS_HPP @@ -191,7 +194,3 @@ Dimensions Fit(Element&); // Include old definitions using wstring. #include "ftxui/dom/deprecated.hpp" #endif // FTXUI_DOM_ELEMENTS_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/flexbox_config.hpp b/include/ftxui/dom/flexbox_config.hpp index 15a73c964c83535dc21bf8ec4c1fd5b9ba989633..8ae26779c8f0671b3489af7d9db794a2ee66f3b4 100644 --- a/include/ftxui/dom/flexbox_config.hpp +++ b/include/ftxui/dom/flexbox_config.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_FLEXBOX_CONFIG_HPP #define FTXUI_DOM_FLEXBOX_CONFIG_HPP @@ -109,7 +112,3 @@ struct FlexboxConfig { } // namespace ftxui #endif // FTXUI_DOM_FLEXBOX_CONFIG_HPP - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/linear_gradient.hpp b/include/ftxui/dom/linear_gradient.hpp index 3c6b529f7c61ef68372b711251f2b7a8fb3a492c..da7e77b893a008623bc4c32ac8a2ac71d1c5ed44 100644 --- a/include/ftxui/dom/linear_gradient.hpp +++ b/include/ftxui/dom/linear_gradient.hpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_LINEAR_GRADIENT_HPP #define FTXUI_DOM_LINEAR_GRADIENT_HPP @@ -46,7 +49,3 @@ struct LinearGradient { } // namespace ftxui #endif // FTXUI_DOM_LINEAR_GRADIENT_HPP - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/node.hpp b/include/ftxui/dom/node.hpp index 34f7604b5f48ae5edec29df11a09ecff9912849e..a462b0a0608999d9fd91a1fcd79ff70a9cbdbc10 100644 --- a/include/ftxui/dom/node.hpp +++ b/include/ftxui/dom/node.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_NODE_HPP #define FTXUI_DOM_NODE_HPP @@ -61,7 +64,3 @@ void Render(Screen& screen, Node* node); } // namespace ftxui #endif // FTXUI_DOM_NODE_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/requirement.hpp b/include/ftxui/dom/requirement.hpp index 18b74d42acb9ce189ff10f397292e7f4edf7e32b..1b0a8842ca8bb6063a6b8069a268dd24a2c0b75b 100644 --- a/include/ftxui/dom/requirement.hpp +++ b/include/ftxui/dom/requirement.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_REQUIREMENT_HPP #define FTXUI_DOM_REQUIREMENT_HPP @@ -29,7 +32,3 @@ struct Requirement { } // namespace ftxui #endif // FTXUI_DOM_REQUIREMENT_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/table.hpp b/include/ftxui/dom/table.hpp index 1d2a4e7764a52e98c0860f6fc1b276aeaefc6163..5b7fd348629cd2ff35344fe0535672dd4ee09cd3 100644 --- a/include/ftxui/dom/table.hpp +++ b/include/ftxui/dom/table.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_TABLE #define FTXUI_DOM_TABLE @@ -90,7 +93,3 @@ class TableSelection { } // namespace ftxui #endif /* end of include guard: FTXUI_DOM_TABLE */ - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/dom/take_any_args.hpp b/include/ftxui/dom/take_any_args.hpp index 136dab13217834ccecf3d88c26e351a638e636f8..79491efe66bf002160a34ed814233916fc5c8a3f 100644 --- a/include/ftxui/dom/take_any_args.hpp +++ b/include/ftxui/dom/take_any_args.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_TAKE_ANY_ARGS_HPP #define FTXUI_DOM_TAKE_ANY_ARGS_HPP @@ -42,7 +45,3 @@ TAKE_ANY_ARGS(hflow) } // namespace ftxui #endif // FTXUI_DOM_TAKE_ANY_ARGS_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/box.hpp b/include/ftxui/screen/box.hpp index 7e0dcdc2153fc584c7a20dce9fd30cf73b026cf8..701b600c2c45491b051985923a2c0f7aee8902df 100644 --- a/include/ftxui/screen/box.hpp +++ b/include/ftxui/screen/box.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_BOX_HPP #define FTXUI_SCREEN_BOX_HPP @@ -19,7 +22,3 @@ struct Box { } // namespace ftxui #endif // FTXUI_SCREEN_BOX_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/color.hpp b/include/ftxui/screen/color.hpp index 6adf1b3c8df5ea6e825edae3b668c5c22a8bf2f7..8939e5091d0cf329ab4e6c34ec2d6194c9d87e86 100644 --- a/include/ftxui/screen/color.hpp +++ b/include/ftxui/screen/color.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_COLOR_HPP #define FTXUI_SCREEN_COLOR_HPP @@ -331,7 +334,3 @@ Color operator""_rgb(unsigned long long int combined); } // namespace ftxui #endif // FTXUI_SCREEN_COLOR_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/color_info.hpp b/include/ftxui/screen/color_info.hpp index 2cf9e4fbdcab642c1a9d619ead35e164f32aa0b7..8e625e81b9d693d49366dc8bb21bc723a5e2b875 100644 --- a/include/ftxui/screen/color_info.hpp +++ b/include/ftxui/screen/color_info.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_COLOR_INFO_HPP #define FTXUI_SCREEN_COLOR_INFO_HPP @@ -24,7 +27,3 @@ ColorInfo GetColorInfo(Color::Palette16 index); } // namespace ftxui #endif // FTXUI_SCREEN_COLOR_INFO_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/deprecated.hpp b/include/ftxui/screen/deprecated.hpp index 0d0feacc88ef65a320e3969ea04d39c944d920d5..e3a51f8deee52be152484486cb6594b2d6d38ee0 100644 --- a/include/ftxui/screen/deprecated.hpp +++ b/include/ftxui/screen/deprecated.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_DEPRECATED_HPP #define FTXUI_SCREEN_DEPRECATED_HPP @@ -9,7 +12,3 @@ int wstring_width(const std::wstring&); } // namespace ftxui #endif // FTXUI_SCREEN_DEPRECATED_HPP - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/screen.hpp b/include/ftxui/screen/screen.hpp index 612b19e6bf2cdee1c627f36c9240e4afdb327454..8d27900d148aa893af5ac391bbcbe7a379850ec7 100644 --- a/include/ftxui/screen/screen.hpp +++ b/include/ftxui/screen/screen.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_SCREEN_HPP #define FTXUI_SCREEN_SCREEN_HPP @@ -125,7 +128,3 @@ class Screen { } // namespace ftxui #endif // FTXUI_SCREEN_SCREEN_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/string.hpp b/include/ftxui/screen/string.hpp index 25fcb826b37c6fbd3f07064b0eb8d8d1dd542471..70e761c9c5ca30514297f48020599a47d5301e5c 100644 --- a/include/ftxui/screen/string.hpp +++ b/include/ftxui/screen/string.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_STRING_HPP #define FTXUI_SCREEN_STRING_HPP @@ -30,7 +33,3 @@ std::vector<int> CellToGlyphIndex(const std::string& input); #include "ftxui/screen/deprecated.hpp" #endif /* end of include guard: FTXUI_SCREEN_STRING_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/screen/terminal.hpp b/include/ftxui/screen/terminal.hpp index 2ec3bbb7453469bc98a3d5130ffeb12eb610eee5..051aed08b1e1fe9bdbf417dfdfbd061c65501d2e 100644 --- a/include/ftxui/screen/terminal.hpp +++ b/include/ftxui/screen/terminal.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_TERMINAL_HPP #define FTXUI_SCREEN_TERMINAL_HPP @@ -25,7 +28,3 @@ void SetColorSupport(Color color); } // namespace ftxui #endif // FTXUI_SCREEN_TERMINAL_HPP - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/util/autoreset.hpp b/include/ftxui/util/autoreset.hpp index 2492d8cbb27f989658e002bec05ec29fc714c405..2c8bf4ef63f02e3402fcd4747d5c76578b365a11 100644 --- a/include/ftxui/util/autoreset.hpp +++ b/include/ftxui/util/autoreset.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_UTIL_AUTORESET_HPP #define FTXUI_UTIL_AUTORESET_HPP @@ -23,7 +26,3 @@ class AutoReset { } // namespace ftxui #endif /* end of include guard: FTXUI_UTIL_AUTORESET_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/include/ftxui/util/ref.hpp b/include/ftxui/util/ref.hpp index 78714793a8e3386ca67b76bd682abb4b853e7cd0..1128b91528dcf6d2636230a55ea3c7dc9ff9f282 100644 --- a/include/ftxui/util/ref.hpp +++ b/include/ftxui/util/ref.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_UTIL_REF_HPP #define FTXUI_UTIL_REF_HPP @@ -128,7 +131,3 @@ class ConstStringListRef { } // namespace ftxui #endif /* end of include guard: FTXUI_UTIL_REF_HPP */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/animation.cpp b/src/ftxui/component/animation.cpp index a07c37271a5d4881110569489881d6fd755281f8..77aae5d1db1933a29f7dc8a87be11addaacbe0bf 100644 --- a/src/ftxui/component/animation.cpp +++ b/src/ftxui/component/animation.cpp @@ -26,40 +26,40 @@ constexpr float kPi2 = kPi / 2.f; // To Public License, Version 2, as published by Sam Hocevar. See // http://sam.zoy.org/wtfpl/COPYING for more details. -// Modeled after the line y = x +/// @brief Modeled after the line y = x float Linear(float p) { return p; } -// Modeled after the parabola y = x^2 +/// @brief Modeled after the parabola y = x^2 float QuadraticIn(float p) { return p * p; } -// Modeled after the parabola y = -x^2 + 2x +// @brief Modeled after the parabola y = -x^2 + 2x float QuadraticOut(float p) { return -(p * (p - 2.f)); } -// Modeled after the piecewise quadratic +// @brief Modeled after the piecewise quadratic // y = (1/2)((2x)^2) ; [0, 0.5) // y = -(1/2)((2x-1)*(2x-3) - 1) ; [0.5, 1] float QuadraticInOut(float p) { return p < 0.5f ? 2.f * p * p : (-2.f * p * p) + (4.f * p) - 1.f; } -// Modeled after the cubic y = x^3 +// @brief Modeled after the cubic y = x^3 float CubicIn(float p) { return p * p * p; } -// Modeled after the cubic y = (x - 1)^3 + 1 +// @brief Modeled after the cubic y = (x - 1)^3 + 1 float CubicOut(float p) { const float f = (p - 1.f); return f * f * f + 1.f; } -// Modeled after the piecewise cubic +// @brief Modeled after the piecewise cubic // y = (1/2)((2x)^3) ; [0, 0.5) // y = (1/2)((2x-2)^3 + 2) ; [0.5, 1] float CubicInOut(float p) { @@ -70,18 +70,18 @@ float CubicInOut(float p) { return 0.5f * f * f * f + 1.f; } -// Modeled after the quartic x^4 +// @brief Modeled after the quartic x^4 float QuarticIn(float p) { return p * p * p * p; } -// Modeled after the quartic y = 1 - (x - 1)^4 +// @brief Modeled after the quartic y = 1 - (x - 1)^4 float QuarticOut(float p) { const float f = (p - 1.f); return f * f * f * (1.f - p) + 1.f; } -// Modeled after the piecewise quartic +// @brief Modeled after the piecewise quartic // y = (1/2)((2x)^4) ; [0, 0.5) // y = -(1/2)((2x-2)^4 - 2) ; [0.5, 1] float QuarticInOut(float p) { @@ -92,18 +92,18 @@ float QuarticInOut(float p) { return -8.f * f * f * f * f + 1.f; } -// Modeled after the quintic y = x^5 +// @brief Modeled after the quintic y = x^5 float QuinticIn(float p) { return p * p * p * p * p; } -// Modeled after the quintic y = (x - 1)^5 + 1 +// @brief Modeled after the quintic y = (x - 1)^5 + 1 float QuinticOut(float p) { const float f = (p - 1.f); return f * f * f * f * f + 1.f; } -// Modeled after the piecewise quintic +// @brief Modeled after the piecewise quintic // y = (1/2)((2x)^5) ; [0, 0.5) // y = (1/2)((2x-2)^5 + 2) ; [0.5, 1] float QuinticInOut(float p) { @@ -114,32 +114,32 @@ float QuinticInOut(float p) { return 0.5f * f * f * f * f * f + 1.f; } -// Modeled after quarter-cycle of sine wave +// @brief Modeled after quarter-cycle of sine wave float SineIn(float p) { return std::sin((p - 1.f) * kPi2) + 1.f; } -// Modeled after quarter-cycle of sine wave (different phase) +// @brief Modeled after quarter-cycle of sine wave (different phase) float SineOut(float p) { return std::sin(p * kPi2); } -// Modeled after half sine wave +// @brief Modeled after half sine wave float SineInOut(float p) { return 0.5f * (1.f - std::cos(p * kPi)); } -// Modeled after shifted quadrant IV of unit circle +// @brief Modeled after shifted quadrant IV of unit circle float CircularIn(float p) { return 1.f - std::sqrt(1.f - (p * p)); } -// Modeled after shifted quadrant II of unit circle +// @brief Modeled after shifted quadrant II of unit circle float CircularOut(float p) { return std::sqrt((2.f - p) * p); } -// Modeled after the piecewise circular function +// @brief Modeled after the piecewise circular function // y = (1/2)(1 - sqrt(1 - 4x^2)) ; [0, 0.5) // y = (1/2)(sqrt(-(2x - 3)*(2x - 1)) + 1) ; [0.5, 1] float CircularInOut(float p) { @@ -149,17 +149,17 @@ float CircularInOut(float p) { return 0.5f * (std::sqrt(-((2.f * p) - 3.f) * ((2.f * p) - 1.f)) + 1.f); } -// Modeled after the exponential function y = 2^(10(x - 1)) +// @brief Modeled after the exponential function y = 2^(10(x - 1)) float ExponentialIn(float p) { return (p == 0.f) ? p : std::pow(2.f, 10.f * (p - 1.f)); } -// Modeled after the exponential function y = -2^(-10x) + 1 +// @brief Modeled after the exponential function y = -2^(-10x) + 1 float ExponentialOut(float p) { return (p == 1.f) ? p : 1.f - std::pow(2.f, -10.f * p); } -// Modeled after the piecewise exponential +// @brief Modeled after the piecewise exponential // y = (1/2)2^(10(2x - 1)) ; [0,0.5) // y = -(1/2)*2^(-10(2x - 1))) + 1 ; [0.5,1] float ExponentialInOut(float p) { @@ -173,18 +173,20 @@ float ExponentialInOut(float p) { return -0.5f * std::pow(2.f, (-20.f * p) + 10.f) + 1.f; } -// Modeled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - 1)) +// @brief Modeled after the damped sine wave y = sin(13pi/2*x)*pow(2, 10 * (x - +// 1)) float ElasticIn(float p) { return std::sin(13.f * kPi2 * p) * std::pow(2.f, 10.f * (p - 1.f)); } -// Modeled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, -10x) + +// @brief Modeled after the damped sine wave y = sin(-13pi/2*(x + 1))*pow(2, +// -10x) + // 1 float ElasticOut(float p) { return std::sin(-13.f * kPi2 * (p + 1.f)) * std::pow(2.f, -10.f * p) + 1.f; } -// Modeled after the piecewise exponentially-damped sine wave: +// @brief Modeled after the piecewise exponentially-damped sine wave: // y = (1/2)*sin(13pi/2*(2*x))*pow(2, 10 * ((2*x) - 1)) ; [0,0.5) // y = (1/2)*(sin(-13pi/2*((2x-1)+1))*pow(2,-10(2*x-1)) + 2) ; [0.5, 1] float ElasticInOut(float p) { @@ -197,18 +199,18 @@ float ElasticInOut(float p) { 2.f); } -// Modeled after the overshooting cubic y = x^3-x*sin(x*pi) +// @brief Modeled after the overshooting cubic y = x^3-x*sin(x*pi) float BackIn(float p) { return p * p * p - p * std::sin(p * kPi); } -// Modeled after overshooting cubic y = 1-((1-x)^3-(1-x)*sin((1-x)*pi)) +// @brief Modeled after overshooting cubic y = 1-((1-x)^3-(1-x)*sin((1-x)*pi)) float BackOut(float p) { const float f = (1.f - p); return 1.f - (f * f * f - f * std::sin(f * kPi)); } -// Modeled after the piecewise overshooting cubic function: +// @brief Modeled after the piecewise overshooting cubic function: // y = (1/2)*((2x)^3-(2x)*sin(2*x*pi)) ; [0, 0.5) // y = (1/2)*(1-((1-x)^3-(1-x)*sin((1-x)*pi))+1) ; [0.5, 1] float BackInOut(float p) { diff --git a/src/ftxui/component/animation_test.cpp b/src/ftxui/component/animation_test.cpp index 152bfc0af58003efb625117b0ac520ab12f479a9..88d611eda5dc23727f9348d8e7e69b5d0f3125e5 100644 --- a/src/ftxui/component/animation_test.cpp +++ b/src/ftxui/component/animation_test.cpp @@ -1,3 +1,7 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include <gtest/gtest.h> #include <functional> // for function #include <vector> // for allocator, vector @@ -32,7 +36,3 @@ TEST(AnimationTest, StartAndEnd) { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/button.cpp b/src/ftxui/component/button.cpp index c558dfbe219bfed372f35f18ecb1335c2101b931..c983f31f2acbe79fd5c13b096c36b8aea2ef9f37 100644 --- a/src/ftxui/component/button.cpp +++ b/src/ftxui/component/button.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. + #include <functional> // for function #include <memory> // for shared_ptr #include <utility> // for move @@ -145,7 +149,7 @@ class ButtonBase : public ComponentBase, public ButtonOption { }; } // namespace - // + /// @brief Draw a button. Execute a function when clicked. /// @param option Additional optional parameters. /// @ingroup component @@ -206,7 +210,3 @@ Component Button(ConstStringRef label, } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/button_test.cpp b/src/ftxui/component/button_test.cpp index c49582c8cf9495e27bb84072113239d135dcb025..664f0062523857b228be732765c64d8428e53d81 100644 --- a/src/ftxui/component/button_test.cpp +++ b/src/ftxui/component/button_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <chrono> // for operator""s, chrono_literals #include <memory> // for __shared_ptr_access, shared_ptr, allocator #include <string> // for string @@ -191,7 +194,3 @@ TEST(ButtonTest, Animation) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/catch_event.cpp b/src/ftxui/component/catch_event.cpp index d05eb3edc237b200f9261e59e34b16c4cba0ef65..b24cf1baba330d5b9cbe655279f093937ab145d9 100644 --- a/src/ftxui/component/catch_event.cpp +++ b/src/ftxui/component/catch_event.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for __shared_ptr_access, __shared_ptr_access<>::element_type, shared_ptr #include <type_traits> // for remove_reference, remove_reference<>::type @@ -85,7 +88,3 @@ ComponentDecorator CatchEvent(std::function<bool(Event)> on_event) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/checkbox.cpp b/src/ftxui/component/checkbox.cpp index e65ac6b1484037929bfd03d8a6db5460362b4c48..ebfa46d8b298a44c0e242998178cc9109683645c 100644 --- a/src/ftxui/component/checkbox.cpp +++ b/src/ftxui/component/checkbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <utility> // for move @@ -113,7 +116,3 @@ Component Checkbox(ConstStringRef label, bool* checked, CheckboxOption option) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/collapsible.cpp b/src/ftxui/component/collapsible.cpp index 995efa2b9402d021ddf75e23ce105d985124e5d1..bcdc16ab6b40f67426b214a76b560c2763d5dd33 100644 --- a/src/ftxui/component/collapsible.cpp +++ b/src/ftxui/component/collapsible.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for shared_ptr, allocator #include <utility> // for move @@ -56,7 +59,3 @@ Component Collapsible(ConstStringRef label, Component child, Ref<bool> show) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/component.cpp b/src/ftxui/component/component.cpp index 5d2c0aa0e62fa7b78d48a9bb5e507483b680ad17..47d882511dcf4a0c3803cb1a26b32a5ddb8c76b4 100644 --- a/src/ftxui/component/component.cpp +++ b/src/ftxui/component/component.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for find_if #include <cassert> // for assert #include <cstddef> // for size_t @@ -197,7 +200,3 @@ CapturedMouse ComponentBase::CaptureMouse(const Event& event) { // NOLINT } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/component_fuzzer.cpp b/src/ftxui/component/component_fuzzer.cpp index f29ac009ab467c3942d390247e78aac4671ab88a..ee41536ea2965e703d5dde43c4aa03d286e3adbc 100644 --- a/src/ftxui/component/component_fuzzer.cpp +++ b/src/ftxui/component/component_fuzzer.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cassert> #include <iostream> #include <vector> @@ -224,7 +227,3 @@ extern "C" int LLVMFuzzerTestOneInput(const char* data, size_t size) { } return 0; // Non-zero return values are reserved for future use. } - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/component_options.cpp b/src/ftxui/component/component_options.cpp index 5e25ef24dd6734e2271319a2579e20f04039fccb..37d2e228dd515982d6544e73beed39e9b2880faa 100644 --- a/src/ftxui/component/component_options.cpp +++ b/src/ftxui/component/component_options.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/component/component_options.hpp" #include <ftxui/dom/linear_gradient.hpp> // for LinearGradient @@ -304,7 +307,3 @@ InputOption InputOption::Spacious() { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/component_test.cpp b/src/ftxui/component/component_test.cpp index 4247c04a04a8ccc9233e0c5bfac21c9e12167453..adff775fbb6f1913b91ae68e1f2e0342be51b1ee 100644 --- a/src/ftxui/component/component_test.cpp +++ b/src/ftxui/component/component_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for shared_ptr, __shared_ptr_access, allocator, __shared_ptr_access<>::element_type, make_shared #include <string> // for string @@ -171,7 +174,3 @@ TEST(ComponentTest, NonFocusableAreNotFocused) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/container.cpp b/src/ftxui/component/container.cpp index d8a0482afb2c7ca966684c23680eff18bbff75a1..4b2d86ad790330d224f76a0c0fc05cf6ce0339a7 100644 --- a/src/ftxui/component/container.cpp +++ b/src/ftxui/component/container.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, min #include <cstddef> // for size_t #include <memory> // for make_shared, __shared_ptr_access, allocator, shared_ptr, allocator_traits<>::value_type @@ -433,7 +436,3 @@ Component Stacked(Components children) { } // namespace Container } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/container_test.cpp b/src/ftxui/component/container_test.cpp index 9710c675b3056829f420a58e3740506acce5546b..1fcc79a2e3991eff843edd110f911b82cda0c7f3 100644 --- a/src/ftxui/component/container_test.cpp +++ b/src/ftxui/component/container_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for __shared_ptr_access, shared_ptr, allocator #include <string> // for string @@ -334,7 +337,3 @@ TEST(ContainerTest, TabFocusable) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/dropdown.cpp b/src/ftxui/component/dropdown.cpp index aa930db21d7cf416915bc712ccb50ac5d4dfe321..96934e87a88ce68dbe6c20f50c40a4f0e0194427 100644 --- a/src/ftxui/component/dropdown.cpp +++ b/src/ftxui/component/dropdown.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cstddef> // for size_t #include <functional> // for function #include <memory> // for __shared_ptr_access, allocator, shared_ptr @@ -89,7 +92,3 @@ Component Dropdown(ConstStringListRef entries, int* selected) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/event.cpp b/src/ftxui/component/event.cpp index 64a18b79ec464955d30b32c9052f9e1a8415308c..801836fb92d24bd48bf55a58f2dada53ad2502b9 100644 --- a/src/ftxui/component/event.cpp +++ b/src/ftxui/component/event.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <utility> // for move #include "ftxui/component/event.hpp" @@ -87,7 +90,3 @@ const Event Event::PageDown = Event::Special({27, 91, 54, 126}); // NOLINT const Event Event::Custom = Event::Special({0}); // NOLINT } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/hoverable.cpp b/src/ftxui/component/hoverable.cpp index 8a512710a1f05b204f9743f3c3cabc107a6beb08..304ebc1720bd48a17f4e234bd5959dcd64b4bab5 100644 --- a/src/ftxui/component/hoverable.cpp +++ b/src/ftxui/component/hoverable.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/captured_mouse.hpp> // for CapturedMouse #include <functional> // for function #include <utility> // for move @@ -211,7 +214,3 @@ ComponentDecorator Hoverable(std::function<void(bool)> on_change) { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/hoverable_test.cpp b/src/ftxui/component/hoverable_test.cpp index 3a023a0264e59f4039b83425309553db1fd10ff0..66df43a5025b1055b805a84c45693b04cca48532 100644 --- a/src/ftxui/component/hoverable_test.cpp +++ b/src/ftxui/component/hoverable_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for Element, text #include <memory> // for shared_ptr, __shared_ptr_access, allocator #include <string> // for string @@ -189,7 +192,3 @@ TEST(HoverableTest, Coverage) { } // namespace } // namespace ftxui // NOLINTEND - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/input.cpp b/src/ftxui/component/input.cpp index cd5b070a51dc2af6c53fabbe818fa2fd7a465ef9..12122146775ec6b294872ee79c750ff64d75f8ac 100644 --- a/src/ftxui/component/input.cpp +++ b/src/ftxui/component/input.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, min #include <cstddef> // for size_t #include <cstdint> // for uint32_t @@ -600,7 +603,3 @@ Component Input(StringRef content, StringRef placeholder, InputOption option) { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/input_test.cpp b/src/ftxui/component/input_test.cpp index 175ff751d91c2209b62a942effb5d58e2ce145fd..96a63b38a692632c8d1c0755c43e15626d00870a 100644 --- a/src/ftxui/component/input_test.cpp +++ b/src/ftxui/component/input_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for __shared_ptr_access, shared_ptr, allocator #include <string> // for string @@ -752,7 +755,3 @@ TEST(InputTest, OnEnter) { } } // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/loop.cpp b/src/ftxui/component/loop.cpp index 657830931f27a62ba5d388179eedcfd58ebe1843..a0039812de457a9fb7f90c5b079fd31c173a70b3 100644 --- a/src/ftxui/component/loop.cpp +++ b/src/ftxui/component/loop.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/component/loop.hpp" #include <utility> // for move @@ -42,7 +45,3 @@ void Loop::Run() { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/maybe.cpp b/src/ftxui/component/maybe.cpp index 5ef0ccf50fc528dbb34d4b77e09da90af7202fdd..8f5a54b9754dd0034e63753b804453ff662467bb 100644 --- a/src/ftxui/component/maybe.cpp +++ b/src/ftxui/component/maybe.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for make_unique, __shared_ptr_access, __shared_ptr_access<>::element_type, shared_ptr #include <type_traits> // for remove_reference, remove_reference<>::type @@ -83,7 +86,3 @@ ComponentDecorator Maybe(const bool* show) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/menu.cpp b/src/ftxui/component/menu.cpp index f182ea324f31dd00424f62e2af1615d7ace133c8..7f6b92d1d1a6c656e2b293d5040e4891db8a6ca6 100644 --- a/src/ftxui/component/menu.cpp +++ b/src/ftxui/component/menu.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, fill_n, reverse #include <chrono> // for milliseconds #include <ftxui/dom/direction.hpp> // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up @@ -710,7 +713,3 @@ Component MenuEntry(MenuEntryOption option) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/menu_test.cpp b/src/ftxui/component/menu_test.cpp index 910948fb4bd9f89672dbb83df3b6307c7219aad1..3cda65ec8ef002c4b249d8be80f57c54707420a0 100644 --- a/src/ftxui/component/menu_test.cpp +++ b/src/ftxui/component/menu_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include <chrono> // for operator""s, chrono_literals #include <ftxui/dom/direction.hpp> // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up @@ -227,7 +230,3 @@ TEST(MenuTest, AnimationsVertical) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/modal.cpp b/src/ftxui/component/modal.cpp index e35e67d52f62e2f8056ad59346926a832eea65a8..1c970c39c7e7de2a937e333a6327a628dd6cc5d7 100644 --- a/src/ftxui/component/modal.cpp +++ b/src/ftxui/component/modal.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/event.hpp> // for Event #include <ftxui/dom/elements.hpp> // for operator|, Element, center, clear_under, dbox #include <memory> // for __shared_ptr_access, shared_ptr @@ -59,7 +62,3 @@ ComponentDecorator Modal(Component modal, const bool* show_modal) { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/modal_test.cpp b/src/ftxui/component/modal_test.cpp index 74bb951ab0fd5c6529403793ffd0ae99d94af014..f13ddd9f617293b5d3238eb39570ce9d1acdc21a 100644 --- a/src/ftxui/component/modal_test.cpp +++ b/src/ftxui/component/modal_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <ftxui/dom/elements.hpp> // for Element, operator|, text, border #include <memory> // for shared_ptr, allocator, __shared_ptr_access @@ -41,7 +44,3 @@ TEST(ModalTest, Basic) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/radiobox.cpp b/src/ftxui/component/radiobox.cpp index 00ac7024f25913111d7ad3d2dbafabf7adf31d65..004a2428983f102a0ed3dc17463ade0bcdca64b1 100644 --- a/src/ftxui/component/radiobox.cpp +++ b/src/ftxui/component/radiobox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for allocator_traits<>::value_type #include <utility> // for move @@ -243,7 +246,3 @@ Component Radiobox(ConstStringListRef entries, } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/radiobox_test.cpp b/src/ftxui/component/radiobox_test.cpp index eca86ecf33b71d2325512a377a35f8a45efcf92b..741119e4de3184b179fc093c422971ac4ccd1eb5 100644 --- a/src/ftxui/component/radiobox_test.cpp +++ b/src/ftxui/component/radiobox_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/elements.hpp> // for yframe #include <ftxui/dom/node.hpp> // for Render #include <ftxui/screen/screen.hpp> // for Screen @@ -305,7 +308,3 @@ TEST(RadioboxTest, RemoveEntries) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/receiver_test.cpp b/src/ftxui/component/receiver_test.cpp index 0d83b7edeabf68a9bf5183ea86ee2f3d84c9cf92..7f915823d463115ac91fd4ab18b2989d3c3abf91 100644 --- a/src/ftxui/component/receiver_test.cpp +++ b/src/ftxui/component/receiver_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for string #include <thread> // for thread #include <utility> // for move @@ -77,7 +80,3 @@ TEST(Receiver, BasicWithThread) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/renderer.cpp b/src/ftxui/component/renderer.cpp index 82300fe7f44a36f4588e9158dc277d332c576ab0..30157ac4ad3861a6e97b595885fc0d2ac8f88ebb 100644 --- a/src/ftxui/component/renderer.cpp +++ b/src/ftxui/component/renderer.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for __shared_ptr_access, shared_ptr #include <utility> // for move @@ -130,7 +133,3 @@ ComponentDecorator Renderer(ElementDecorator decorator) { // NOLINT } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/resizable_split.cpp b/src/ftxui/component/resizable_split.cpp index 98c5ba235a9d481402c7da86c739e1ce1cd2786e..9e0d62e35d1f797341c65dc7d925dcb76f032d50 100644 --- a/src/ftxui/component/resizable_split.cpp +++ b/src/ftxui/component/resizable_split.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/component_options.hpp> // for ResizableSplitOption #include <ftxui/dom/direction.hpp> // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up #include <ftxui/util/ref.hpp> // for Ref @@ -300,7 +303,3 @@ Component ResizableSplitBottom(Component main, Component back, int* main_size) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/resizable_split_test.cpp b/src/ftxui/component/resizable_split_test.cpp index 851f9c33e0d0cc2729373f8aa521808789995da7..352b33eeff41655e4cc10b8ea0fc10ac422ef508 100644 --- a/src/ftxui/component/resizable_split_test.cpp +++ b/src/ftxui/component/resizable_split_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/direction.hpp> // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up #include <memory> // for __shared_ptr_access, shared_ptr, allocator #include <string> // for string @@ -206,7 +209,3 @@ TEST(ResizableSplit, BasicBottomWithCustomSeparator) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/screen_interactive.cpp b/src/ftxui/component/screen_interactive.cpp index ddaabcb674fd11a8b0fde5a25f0f7e825b6a092e..f10a37c07c2c2d6ec187b02ef50f660ff0351b7c 100644 --- a/src/ftxui/component/screen_interactive.cpp +++ b/src/ftxui/component/screen_interactive.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for copy, max, min #include <array> // for array #include <chrono> // for operator-, milliseconds, operator>=, duration, common_type<>::type, time_point @@ -838,7 +841,3 @@ void ScreenInteractive::Signal(int signal) { } } // namespace ftxui. - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/screen_interactive_test.cpp b/src/ftxui/component/screen_interactive_test.cpp index c2b9dd415fcf7c928267991ee051177dbe705470..3a80c137067996758d784ee1eef3235112d3dafc 100644 --- a/src/ftxui/component/screen_interactive_test.cpp +++ b/src/ftxui/component/screen_interactive_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> // for Test, TestInfo (ptr only), TEST, EXPECT_EQ, Message, TestPartResult #include <csignal> // for raise, SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM #include <ftxui/component/event.hpp> // for Event, Event::Custom @@ -62,7 +65,3 @@ TEST(ScreenInteractive, PostTaskToNonActive) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/slider.cpp b/src/ftxui/component/slider.cpp index db617d8c367a11b3a43c2ffbea4b607b1e0f7a33..5b63bf7cd8668b6307172e53bad2241c4816e1dc 100644 --- a/src/ftxui/component/slider.cpp +++ b/src/ftxui/component/slider.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, min #include <cstdint> // for uint8_t, uint16_t, uint32_t, uint64_t #include <ftxui/component/component_options.hpp> // for SliderOption @@ -350,7 +353,3 @@ template Component Slider(SliderOption<float>); template Component Slider(SliderOption<double>); } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/slider_test.cpp b/src/ftxui/component/slider_test.cpp index d33225aa4141d1938b9e2075b0b13e79aafaa839..42113557b05c041b2b7ab333204a3f7d0377e486 100644 --- a/src/ftxui/component/slider_test.cpp +++ b/src/ftxui/component/slider_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <array> // for array #include <cstddef> // for size_t #include <ftxui/component/mouse.hpp> // for Mouse, Mouse::Left, Mouse::Pressed, Mouse::Released @@ -193,7 +196,3 @@ TEST(SliderTest, Focus) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/terminal_input_parser.cpp b/src/ftxui/component/terminal_input_parser.cpp index c60c4f01ff9ac7b70c6c01237b1804a44e1e2f59..3ba0e69d5ae8cfa8a91fea4712b35c8e161f44bb 100644 --- a/src/ftxui/component/terminal_input_parser.cpp +++ b/src/ftxui/component/terminal_input_parser.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/component/terminal_input_parser.hpp" #include <cstdint> // for uint32_t @@ -414,7 +417,3 @@ TerminalInputParser::Output TerminalInputParser::ParseCursorReporting( } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/terminal_input_parser.hpp b/src/ftxui/component/terminal_input_parser.hpp index 5449b1e4029402fd8c07618dc697bbfdc972ffe0..5a808c56d163c292d5fb2fed9cbd8f2eb3af6e69 100644 --- a/src/ftxui/component/terminal_input_parser.hpp +++ b/src/ftxui/component/terminal_input_parser.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_COMPONENT_TERMINAL_INPUT_PARSER #define FTXUI_COMPONENT_TERMINAL_INPUT_PARSER @@ -67,7 +70,3 @@ class TerminalInputParser { } // namespace ftxui #endif /* end of include guard: FTXUI_COMPONENT_TERMINAL_INPUT_PARSER */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/terminal_input_parser_test.cpp b/src/ftxui/component/terminal_input_parser_test.cpp index f037ac7333a70548629126e8448a27f20a2fbf7b..971c08674d608aa6e6c238d7a88b38d0c20197b4 100644 --- a/src/ftxui/component/terminal_input_parser_test.cpp +++ b/src/ftxui/component/terminal_input_parser_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/component/mouse.hpp> // for Mouse, Mouse::Left, Mouse::Middle, Mouse::Pressed, Mouse::Released, Mouse::Right #include <ftxui/component/task.hpp> // for Task #include <initializer_list> // for initializer_list @@ -445,7 +448,3 @@ TEST(Event, Special) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/terminal_input_parser_test_fuzzer.cpp b/src/ftxui/component/terminal_input_parser_test_fuzzer.cpp index 870a3035d9f261340704ebdeda0fd29f7aa2ba6b..a10ebdfe5b9e64eede26ed22858617492923f2b7 100644 --- a/src/ftxui/component/terminal_input_parser_test_fuzzer.cpp +++ b/src/ftxui/component/terminal_input_parser_test_fuzzer.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <vector> #include "ftxui/component/terminal_input_parser.hpp" @@ -15,7 +18,3 @@ extern "C" int LLVMFuzzerTestOneInput(const char* data, size_t size) { ; return 0; // Non-zero return values are reserved for future use. } - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/toggle_test.cpp b/src/ftxui/component/toggle_test.cpp index 722a27cc1d4e4c11b346080d8a80cdc882b810ad..d4b8b9d799ac412f28e3d2fee2948afebabfd8e5 100644 --- a/src/ftxui/component/toggle_test.cpp +++ b/src/ftxui/component/toggle_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for __shared_ptr_access, shared_ptr, allocator #include <string> // for string, basic_string @@ -179,7 +182,3 @@ TEST(ToggleTest, RemoveEntries) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/util.cpp b/src/ftxui/component/util.cpp index 246a469e7a254bfb4c9a523c68f7fba31fcbe26b..fa100696d0350963c777eb15a25438895cc433c9 100644 --- a/src/ftxui/component/util.cpp +++ b/src/ftxui/component/util.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include "ftxui/component/component.hpp" // for Renderer, ComponentDecorator, ElementDecorator, operator|, operator|= @@ -28,7 +31,3 @@ Component& operator|=(Component& component, ElementDecorator decorator) { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/component/window.cpp b/src/ftxui/component/window.cpp index 6afffad396990dc7ae38217fa9089adc9530e3ab..daed7e10eee04d0e82874f07b08e0ba697ccf143 100644 --- a/src/ftxui/component/window.cpp +++ b/src/ftxui/component/window.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #define NOMINMAX #include <algorithm> #include <ftxui/component/component.hpp> @@ -303,7 +306,3 @@ Component Window(WindowOptions option) { } }; // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/automerge.cpp b/src/ftxui/dom/automerge.cpp index 8a341dceb037f13ffce4f79064097af30b573d46..d8456281f93bb2c639eeaec93fe11b762020ac7a 100644 --- a/src/ftxui/dom/automerge.cpp +++ b/src/ftxui/dom/automerge.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element automerge(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/benchmark_test.cpp b/src/ftxui/dom/benchmark_test.cpp index fa49d106e0050ba5db67450ab47ad78523180baf..fa90b8cde241971b891dd146b9b4577f6f993e18 100644 --- a/src/ftxui/dom/benchmark_test.cpp +++ b/src/ftxui/dom/benchmark_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <benchmark/benchmark.h> #include <iostream> @@ -82,7 +85,3 @@ BENCHMARK(BenchmarkStyle) } // namespace ftxui // NOLINTEND - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/blink.cpp b/src/ftxui/dom/blink.cpp index d426f6e0dc1cd106ecca5a0edb1a92e62293b7a4..a71c305f7c19f4ee1283f122dd735581056320d4 100644 --- a/src/ftxui/dom/blink.cpp +++ b/src/ftxui/dom/blink.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element blink(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/blink_test.cpp b/src/ftxui/dom/blink_test.cpp index 2a96825eb2c9bc521c51cee8d5dd299cced14cc0..dfd6905c43205829c1a7fea5f5c301eedba6a9c0 100644 --- a/src/ftxui/dom/blink_test.cpp +++ b/src/ftxui/dom/blink_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for allocator, string #include "ftxui/dom/elements.hpp" // for operator|, text, blink, Element @@ -17,7 +20,3 @@ TEST(BlinkTest, Basic) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/bold.cpp b/src/ftxui/dom/bold.cpp index cfa3c24c4bb966e565eae170e2e626650e39eacd..02dde65573332a258910c854ac1add466df7523a 100644 --- a/src/ftxui/dom/bold.cpp +++ b/src/ftxui/dom/bold.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element bold(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/bold_test.cpp b/src/ftxui/dom/bold_test.cpp index 9007bb3e36f6c9c9742aa27672e6c7f60b6ac646..dc29e1f4aac9dd43364b317b5707751b3d9274df 100644 --- a/src/ftxui/dom/bold_test.cpp +++ b/src/ftxui/dom/bold_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for allocator, string #include "ftxui/dom/elements.hpp" // for operator|, text, bold, Element @@ -17,7 +20,3 @@ TEST(BoldTest, Basic) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/border.cpp b/src/ftxui/dom/border.cpp index 6b2a63b605dc1ada64bebdf9c9fdf883eb06a7ca..9cda0f03fa844820241d68b6a926c7a205589f23 100644 --- a/src/ftxui/dom/border.cpp +++ b/src/ftxui/dom/border.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max #include <array> // for array #include <ftxui/screen/color.hpp> // for Color @@ -497,7 +500,3 @@ Element window(Element title, Element content) { ROUNDED); } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/border_test.cpp b/src/ftxui/dom/border_test.cpp index fc2249d5ced4d51555e06ba886e4b4eec0b76424..9714ef61870158bcead68d91cc3d9b31d6fc09a9 100644 --- a/src/ftxui/dom/border_test.cpp +++ b/src/ftxui/dom/border_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <string> // for allocator, string @@ -102,7 +105,3 @@ TEST(BorderTest, Window) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/box_helper.cpp b/src/ftxui/dom/box_helper.cpp index 5694d5a3353b92cea02243ff812237f18a021bbc..a09b8e279cedd7e055d8f5aa791599fd28f48704 100644 --- a/src/ftxui/dom/box_helper.cpp +++ b/src/ftxui/dom/box_helper.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/dom/box_helper.hpp" #include <algorithm> // for max @@ -86,7 +89,3 @@ void Compute(std::vector<Element>* elements, int target_size) { } } // namespace ftxui::box_helper - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/box_helper.hpp b/src/ftxui/dom/box_helper.hpp index 4d9562419b059fe99e1570c19a87330208d8a548..00b5586bbaf9ed9d3dd797fbc100af4c8a8c7964 100644 --- a/src/ftxui/dom/box_helper.hpp +++ b/src/ftxui/dom/box_helper.hpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file.line. #ifndef FTXUI_DOM_BOX_HELPER_HPP #define FTXUI_DOM_BOX_HELPER_HPP @@ -22,7 +25,3 @@ void Compute(std::vector<Element>* elements, int target_size); } // namespace ftxui #endif /* end of include guard: FTXUI_DOM_BOX_HELPER_HPP */ - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file.line. diff --git a/src/ftxui/dom/canvas.cpp b/src/ftxui/dom/canvas.cpp index f6501fd7ddf34567890abd02c869bba0b2efe230..58c24904df4521ece7337331bfd9337a8cf54e63 100644 --- a/src/ftxui/dom/canvas.cpp +++ b/src/ftxui/dom/canvas.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/dom/canvas.hpp" #include <algorithm> // for max, min @@ -899,7 +902,3 @@ Element canvas(std::function<void(Canvas&)> fn) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/canvas_test.cpp b/src/ftxui/dom/canvas_test.cpp index 568cbe579d25198ccda26e3d2de7348039ad0be3..06f915cc29313400a3af721a605cc6881127d450 100644 --- a/src/ftxui/dom/canvas_test.cpp +++ b/src/ftxui/dom/canvas_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <cstdint> // for uint32_t #include <string> // for allocator, string @@ -103,7 +106,3 @@ TEST(CanvasTest, GoldText) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/clear_under.cpp b/src/ftxui/dom/clear_under.cpp index dd17222697dee37e5a26ef2a72c3baaf2195b2a9..8ad27816f126f2999f05b30fa6f8ee8fcf9f019b 100644 --- a/src/ftxui/dom/clear_under.cpp +++ b/src/ftxui/dom/clear_under.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -34,7 +37,3 @@ Element clear_under(Element element) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/color.cpp b/src/ftxui/dom/color.cpp index 67f32c46487a3189595a9f50e2b4cc5dccca25da..18d4c66c4bbabbfd3ec86ef5ef5f093a70074055 100644 --- a/src/ftxui/dom/color.cpp +++ b/src/ftxui/dom/color.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -102,7 +105,3 @@ Decorator bgcolor(Color color) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/color_test.cpp b/src/ftxui/dom/color_test.cpp index 087327e753494b6913f606be5045d5c3eccc96a3..b72338b53004bb677acbfb709d129ca16e48ee84 100644 --- a/src/ftxui/dom/color_test.cpp +++ b/src/ftxui/dom/color_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include <string> // for allocator @@ -27,7 +30,3 @@ TEST(ColorTest, Background) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/composite_decorator.cpp b/src/ftxui/dom/composite_decorator.cpp index 43c4f488d72c446ec992989e78a421c0b74acbe3..f7ce45d4050b1c1b1398e9427be7f03c789295a8 100644 --- a/src/ftxui/dom/composite_decorator.cpp +++ b/src/ftxui/dom/composite_decorator.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <utility> // for move @@ -38,7 +41,3 @@ Element align_right(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/dbox.cpp b/src/ftxui/dom/dbox.cpp index 2c4ec263bab2026ad1b7ee6d7dd84b095a8ade8b..d5e414cbd98f6a1db6afdaec411ccec817389599 100644 --- a/src/ftxui/dom/dbox.cpp +++ b/src/ftxui/dom/dbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max #include <memory> // for __shared_ptr_access, shared_ptr, make_shared #include <utility> // for move @@ -54,7 +57,3 @@ Element dbox(Elements children_) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/dbox_test.cpp b/src/ftxui/dom/dbox_test.cpp index 9a420a916e6990068415e85a6f557a64f322ff13..f8575099c69e18543986dc23f04cd0f0505d91a3 100644 --- a/src/ftxui/dom/dbox_test.cpp +++ b/src/ftxui/dom/dbox_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <string> // for allocator @@ -31,7 +34,3 @@ TEST(DBoxTest, Basic) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/dim.cpp b/src/ftxui/dom/dim.cpp index 39b897d34cdd82d8c529bef9279b47bc134eb279..f4384a99bf6d733390f63da7e4f316630b34624d 100644 --- a/src/ftxui/dom/dim.cpp +++ b/src/ftxui/dom/dim.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element dim(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/dim_test.cpp b/src/ftxui/dom/dim_test.cpp index d1d0198b70566fe9d38076fa21beba0a6b97abf7..40c16db47dc880f069324bcc3e27e6e3545111e1 100644 --- a/src/ftxui/dom/dim_test.cpp +++ b/src/ftxui/dom/dim_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for allocator, string #include "ftxui/dom/elements.hpp" // for operator|, text, dim, Element @@ -17,7 +20,3 @@ TEST(DimTest, Basic) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flex.cpp b/src/ftxui/dom/flex.cpp index 09d26d3c524a738807fd2018b13e3253134a0212..2576761ea4ac8a1dad5d13081c593516dc81d18e 100644 --- a/src/ftxui/dom/flex.cpp +++ b/src/ftxui/dom/flex.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared, __shared_ptr_access #include <utility> // for move #include <vector> // for __alloc_traits<>::value_type @@ -176,7 +179,3 @@ Element notflex(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flexbox.cpp b/src/ftxui/dom/flexbox.cpp index 8c1ce2c6e740332057f62ab975adbc8d2ad44efd..336527b196d4a2870e98421147412703b444c537 100644 --- a/src/ftxui/dom/flexbox.cpp +++ b/src/ftxui/dom/flexbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for min, max #include <cstddef> // for size_t #include <memory> // for __shared_ptr_access, shared_ptr, allocator_traits<>::value_type, make_shared @@ -259,7 +262,3 @@ Element vflow(Elements children) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flexbox_config.cpp b/src/ftxui/dom/flexbox_config.cpp index acec612311f4e61e3778654fb102c5b6a9864ce6..c70343b0435f3b0711e4160ff6e983f8fd22ee73 100644 --- a/src/ftxui/dom/flexbox_config.cpp +++ b/src/ftxui/dom/flexbox_config.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/dom/flexbox_config.hpp" namespace ftxui { @@ -34,7 +37,3 @@ FlexboxConfig& FlexboxConfig::SetGap(int x, int y) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flexbox_helper.cpp b/src/ftxui/dom/flexbox_helper.cpp index 37cd2b7beb1c4e39904958888f7af3cd0e46e911..96655feac362620a96d8959b6d47eed29d06deae 100644 --- a/src/ftxui/dom/flexbox_helper.cpp +++ b/src/ftxui/dom/flexbox_helper.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/dom/flexbox_helper.hpp" #include <algorithm> // for max, min @@ -363,7 +366,3 @@ void Compute(Global& global) { } } // namespace ftxui::flexbox_helper - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flexbox_helper.hpp b/src/ftxui/dom/flexbox_helper.hpp index 733e25c7f4d247128c332a76e7e26afb38d4fe4f..73d2cf4a409b576ae3bb4aafbeafd066b9119e0d 100644 --- a/src/ftxui/dom/flexbox_helper.hpp +++ b/src/ftxui/dom/flexbox_helper.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_FLEXBOX_HELPER_HPP #define FTXUI_DOM_FLEXBOX_HELPER_HPP @@ -39,7 +42,3 @@ void Compute(Global& global); } // namespace ftxui #endif /* end of include guard: FTXUI_DOM_FLEXBOX_HELPER_HPP*/ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flexbox_helper_test.cpp b/src/ftxui/dom/flexbox_helper_test.cpp index 0fbb5c0b6a3663787e1bbd7c5f1841563eddd0f1..011bf314f4e4f28aaf85461172450817759b6e55 100644 --- a/src/ftxui/dom/flexbox_helper_test.cpp +++ b/src/ftxui/dom/flexbox_helper_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <ftxui/dom/flexbox_config.hpp> // for FlexboxConfig, FlexboxConfig::Direction, FlexboxConfig::Direction::Column, FlexboxConfig::Direction::ColumnInversed, FlexboxConfig::Direction::Row, FlexboxConfig::Direction::RowInversed #include <memory> // for allocator_traits<>::value_type @@ -229,7 +232,3 @@ TEST(FlexboxHelperTest, BasicColumnInversed) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/flexbox_test.cpp b/src/ftxui/dom/flexbox_test.cpp index cdfa15f6b2e117f08bb1be2701b0be51a87afc52..834354733f6689a9b9adf931d299845f93282d29 100644 --- a/src/ftxui/dom/flexbox_test.cpp +++ b/src/ftxui/dom/flexbox_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <string> // for allocator @@ -456,7 +459,3 @@ TEST(FlexboxTest, Focus) { } // namespace ftxui // NOLINTEND - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/focus.cpp b/src/ftxui/dom/focus.cpp index 5294eca681cb2ddf09f450169683045b7b624a04..b0d6cca4d7c76af2bcff33c192f76fb0d7eb6695 100644 --- a/src/ftxui/dom/focus.cpp +++ b/src/ftxui/dom/focus.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -92,7 +95,3 @@ Decorator focusPosition(int x, int y) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/frame.cpp b/src/ftxui/dom/frame.cpp index 6cc94cd1f1ff23f86470658e31d475ce888027c8..ee5400efe50ad4edc099bc9c3052777f4ef21eac 100644 --- a/src/ftxui/dom/frame.cpp +++ b/src/ftxui/dom/frame.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, min #include <memory> // for make_shared, __shared_ptr_access #include <utility> // for move @@ -194,7 +197,3 @@ Element focusCursorUnderlineBlinking(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/gauge.cpp b/src/ftxui/dom/gauge.cpp index 5d7c7143b264dc4b266d71273f2636da11c098b2..c210f79e4eebf9d5d614e4c6359a161b5501b24a 100644 --- a/src/ftxui/dom/gauge.cpp +++ b/src/ftxui/dom/gauge.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/direction.hpp> // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up #include <memory> // for allocator, make_shared #include <string> // for string @@ -289,7 +292,3 @@ Element gauge(float progress) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/gauge_test.cpp b/src/ftxui/dom/gauge_test.cpp index 3e5a0658f849d17c4b7f57f2a8972c50e8380eef..08fcb68a458656f55701571d94744a2b5b18fbf4 100644 --- a/src/ftxui/dom/gauge_test.cpp +++ b/src/ftxui/dom/gauge_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <memory> // for allocator @@ -98,7 +101,3 @@ TEST(GaugeTest, OneVertical) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/graph.cpp b/src/ftxui/dom/graph.cpp index 5425041f35f0b38c294c4cf0ed695e9360afb131..ca32088a4f9ae5657c4571bb72c06fbca859fcc2 100644 --- a/src/ftxui/dom/graph.cpp +++ b/src/ftxui/dom/graph.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <functional> // for function #include <memory> // for allocator, make_shared #include <string> // for string @@ -67,7 +70,3 @@ Element graph(GraphFunction graph_function) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/gridbox.cpp b/src/ftxui/dom/gridbox.cpp index 46d21cb4fcb3feb7343ef0a47f761168d1ddd2ee..1137f5a0b268debd2349e5667c240db2b1a74cea 100644 --- a/src/ftxui/dom/gridbox.cpp +++ b/src/ftxui/dom/gridbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, min #include <cstddef> // for size_t #include <memory> // for __shared_ptr_access, shared_ptr, make_shared, allocator_traits<>::value_type @@ -182,7 +185,3 @@ Element gridbox(std::vector<Elements> lines) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/gridbox_test.cpp b/src/ftxui/dom/gridbox_test.cpp index 998fa7f8e52021c4e993978ba6097acd02879e9b..64382f7844beaf5608a75d8c40ea6e6e1ebd9270 100644 --- a/src/ftxui/dom/gridbox_test.cpp +++ b/src/ftxui/dom/gridbox_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <algorithm> // for remove #include <cstddef> // for size_t @@ -617,7 +620,3 @@ TEST(GridboxTest, Focus) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/hbox.cpp b/src/ftxui/dom/hbox.cpp index ba06dadf55089292a68fedfcce6f11de35701449..45e6010cd931926209d96f90a0e64ecbca1f930c 100644 --- a/src/ftxui/dom/hbox.cpp +++ b/src/ftxui/dom/hbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max #include <cstddef> // for size_t #include <memory> // for __shared_ptr_access, shared_ptr, make_shared, allocator_traits<>::value_type @@ -79,7 +82,3 @@ Element hbox(Elements children) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/hbox_test.cpp b/src/ftxui/dom/hbox_test.cpp index 662558f420a602272b9237754cf916540c7495fb..982bfde45b759005bcbdd9f097b8a483cfc5942e 100644 --- a/src/ftxui/dom/hbox_test.cpp +++ b/src/ftxui/dom/hbox_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> // for Test, TestInfo (ptr only), EXPECT_EQ, Message, TEST, TestPartResult #include <cstddef> // for size_t #include <string> // for allocator, basic_string, string @@ -357,7 +360,3 @@ TEST(HBoxTest, FlexGrow_NoFlex_FlewShrink) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/hyperlink.cpp b/src/ftxui/dom/hyperlink.cpp index 4d2dd05f9cfe20fca51f5e90eda662cdbccdb091..5c493c408526827614280972ed779db9d93d97e1 100644 --- a/src/ftxui/dom/hyperlink.cpp +++ b/src/ftxui/dom/hyperlink.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cstdint> // for uint8_t #include <memory> // for make_shared #include <string> // for string @@ -67,7 +70,3 @@ Decorator hyperlink(std::string link) { } } // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/hyperlink_test.cpp b/src/ftxui/dom/hyperlink_test.cpp index 5579831421655fd578fcbd0feb7cef2f7fa5f2da..df1e155b83b61768cd7a2b10df779260c8ddbc61 100644 --- a/src/ftxui/dom/hyperlink_test.cpp +++ b/src/ftxui/dom/hyperlink_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include <string> // for allocator, string @@ -37,7 +40,3 @@ TEST(HyperlinkTest, Basic) { } } // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/inverted.cpp b/src/ftxui/dom/inverted.cpp index 4e8c6c86ff6341b702dae296183d9e270c58093e..976921698499c1d734cf84d650bd0a9a8d79016d 100644 --- a/src/ftxui/dom/inverted.cpp +++ b/src/ftxui/dom/inverted.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -31,7 +34,3 @@ Element inverted(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/linear_gradient.cpp b/src/ftxui/dom/linear_gradient.cpp index 906da7f0c7b5f4d8a2bd0fc2f6c42d92504b6f0b..0f7d17612057ee9cfe6f7334093d04c441debad8 100644 --- a/src/ftxui/dom/linear_gradient.cpp +++ b/src/ftxui/dom/linear_gradient.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max, min, sort, copy #include <cmath> // for fmod, cos, sin #include <cstddef> // for size_t @@ -293,7 +296,3 @@ Decorator bgcolor(const LinearGradient& gradient) { } } // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/linear_gradient_test.cpp b/src/ftxui/dom/linear_gradient_test.cpp index 704a63a0bd93b1c43809e27cbdba34dfed01730e..81d6f1b03c02c5037330b378a90414647772551b 100644 --- a/src/ftxui/dom/linear_gradient_test.cpp +++ b/src/ftxui/dom/linear_gradient_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include <ftxui/dom/linear_gradient.hpp> // for LinearGradient::Stop, LinearGradient #include <memory> // for allocator_traits<>::value_type @@ -86,7 +89,3 @@ TEST(ColorTest, GradientBackground) { } // namespace ftxui // NOLINTEND - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/node.cpp b/src/ftxui/dom/node.cpp index 6be453f1220f97f38d8af95658bbbf0419acd3f8..5220335d9f45213ada12364385e5c289610d177a 100644 --- a/src/ftxui/dom/node.cpp +++ b/src/ftxui/dom/node.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/screen/box.hpp> // for Box #include <utility> // for move @@ -79,7 +82,3 @@ void Render(Screen& screen, Node* node) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/node_decorator.cpp b/src/ftxui/dom/node_decorator.cpp index 37a7e2d27fd390d7779cec04aeabaca17b96606c..8118d35c5216aee26440c12146cc663391016d84 100644 --- a/src/ftxui/dom/node_decorator.cpp +++ b/src/ftxui/dom/node_decorator.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <ftxui/dom/node.hpp> // for Node, Elements #include <memory> // for __shared_ptr_access #include <vector> // for __alloc_traits<>::value_type @@ -19,7 +22,3 @@ void NodeDecorator::SetBox(Box box) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/node_decorator.hpp b/src/ftxui/dom/node_decorator.hpp index 41d75e88fdf892e19e873dd959632f65e98cfc3e..5d96d0dbb4718a26faab32d31d79818a3e1bb27f 100644 --- a/src/ftxui/dom/node_decorator.hpp +++ b/src/ftxui/dom/node_decorator.hpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_DOM_NODE_DECORATOR_H_ #define FTXUI_DOM_NODE_DECORATOR_H_ @@ -20,7 +23,3 @@ class NodeDecorator : public Node { } // namespace ftxui #endif /* end of include guard: FTXUI_DOM_NODE_DECORATOR_H_ */ - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/paragraph.cpp b/src/ftxui/dom/paragraph.cpp index ab46dfa4095038331fc4d50340c14f3478f7261f..93f75c2ffbd5bb4fecdec5be296bea79ba7d9b80 100644 --- a/src/ftxui/dom/paragraph.cpp +++ b/src/ftxui/dom/paragraph.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <sstream> // for basic_istream, stringstream #include <string> // for string, allocator, getline #include <utility> // for move @@ -69,7 +72,3 @@ Element paragraphAlignJustify(const std::string& the_text) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/reflect.cpp b/src/ftxui/dom/reflect.cpp index be86041e30d6b06ad7355425b3f04f35d15908e9..6bf6187c28677a6f8ff36378a1328f7d126a5acf 100644 --- a/src/ftxui/dom/reflect.cpp +++ b/src/ftxui/dom/reflect.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared, __shared_ptr_access #include <utility> // for move #include <vector> // for __alloc_traits<>::value_type @@ -43,7 +46,3 @@ Decorator reflect(Box& box) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/scroll_indicator.cpp b/src/ftxui/dom/scroll_indicator.cpp index cac1d05a6eef5ccdde37d7f161c99b3d0bd73eea..a744ddc5be3c9bf92071b0c0a4b19d5067c83628 100644 --- a/src/ftxui/dom/scroll_indicator.cpp +++ b/src/ftxui/dom/scroll_indicator.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max #include <memory> // for make_shared, __shared_ptr_access #include <string> // for string @@ -70,7 +73,3 @@ Element vscroll_indicator(Element child) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/scroll_indicator_test.cpp b/src/ftxui/dom/scroll_indicator_test.cpp index 426500cd8dfadee3e534662112d29d6c19ca8a78..3f8e1cfd94b5e2595d7e92b15da912a7915bb297 100644 --- a/src/ftxui/dom/scroll_indicator_test.cpp +++ b/src/ftxui/dom/scroll_indicator_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <memory> // for shared_ptr #include <string> // for allocator, to_string, string @@ -199,7 +202,3 @@ TEST(ScrollIndicator, HorizontalFlexbox) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/separator.cpp b/src/ftxui/dom/separator.cpp index aeb00d0f3b5bc3f410e45b0b7e1129a2b78bf0e9..8a556e86b13c64ef0e263292b0304124f27f05b6 100644 --- a/src/ftxui/dom/separator.cpp +++ b/src/ftxui/dom/separator.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <array> // for array, array<>::value_type #include <memory> // for make_shared, allocator #include <string> // for basic_string, string @@ -564,7 +567,3 @@ Element separatorVSelector(float up, } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/separator_test.cpp b/src/ftxui/dom/separator_test.cpp index af85938ca91d1fedabcfb6d794b989b072e0c279..9ad21670c89b0bc438994c1e084996c40f5c1164 100644 --- a/src/ftxui/dom/separator_test.cpp +++ b/src/ftxui/dom/separator_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <string> // for allocator, string @@ -124,7 +127,3 @@ TEST(SeparatorTest, WithPixel) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/size.cpp b/src/ftxui/dom/size.cpp index 750ba8c4fa313f265da0550d469a72b301049848..388649e0c241fb977ec992b463a3657af329ceb9 100644 --- a/src/ftxui/dom/size.cpp +++ b/src/ftxui/dom/size.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for min, max #include <memory> // for make_shared, __shared_ptr_access #include <utility> // for move @@ -89,7 +92,3 @@ Decorator size(WidthOrHeight direction, Constraint constraint, int value) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/spinner.cpp b/src/ftxui/dom/spinner.cpp index 4f1d35045fd432a41998b9a130331a76c3cb8fb9..7d0035ce1cc4677df33004ad945ce4b990e435fa 100644 --- a/src/ftxui/dom/spinner.cpp +++ b/src/ftxui/dom/spinner.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cstddef> // for size_t #include <memory> // for allocator, allocator_traits<>::value_type #include <string> // for basic_string, string @@ -296,7 +299,3 @@ Element spinner(int charset_index, size_t image_index) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/spinner_test.cpp b/src/ftxui/dom/spinner_test.cpp index d0d5813209e0806d7104d0eaa809574753c35840..0d6b686a367414a36caba60a9b7d5bbb0c97df17 100644 --- a/src/ftxui/dom/spinner_test.cpp +++ b/src/ftxui/dom/spinner_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <string> // for allocator @@ -38,7 +41,3 @@ TEST(SpinnerTest, Spinner4) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/strikethrough.cpp b/src/ftxui/dom/strikethrough.cpp index 13c8559ea80051c1a36f8295d8d1c5a4f4a22469..f5eba40c7779e11953b6f72c1aa2681477d6696f 100644 --- a/src/ftxui/dom/strikethrough.cpp +++ b/src/ftxui/dom/strikethrough.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element strikethrough(Element child) { } } // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/table.cpp b/src/ftxui/dom/table.cpp index 439747703a1c66f220684b787c9b277c5710da27..38369c1881aec296ee357a43c9ca14403d19e24d 100644 --- a/src/ftxui/dom/table.cpp +++ b/src/ftxui/dom/table.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/dom/table.hpp" #include <algorithm> // for max @@ -340,7 +343,3 @@ void TableSelection::BorderBottom(BorderStyle border) { } } // namespace ftxui - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/table_test.cpp b/src/ftxui/dom/table_test.cpp index b1175aa51bad190a6ac299940e0f5d6ae05e2b61..99a4405ac7683790cd9d1b2db261b40db5de24b6 100644 --- a/src/ftxui/dom/table_test.cpp +++ b/src/ftxui/dom/table_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2021 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <memory> // for allocator @@ -733,7 +736,3 @@ TEST(TableTest, Merge) { } // namespace ftxui // NOLINTEND - -// Copyright 2021 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/text.cpp b/src/ftxui/dom/text.cpp index c598be1a6bb82589da89d32fe7dad6065e29209e..36b31a2752831cb16301daca6d7fd323c612e3e8 100644 --- a/src/ftxui/dom/text.cpp +++ b/src/ftxui/dom/text.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for min #include <memory> // for make_shared #include <string> // for string, wstring @@ -176,7 +179,3 @@ Element vtext(std::wstring text) { // NOLINT } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/text_test.cpp b/src/ftxui/dom/text_test.cpp index fa89aba4540c656df614c66960fc36ca177996c9..f5364afbb78fdd6e3189761127023812c6363c47 100644 --- a/src/ftxui/dom/text_test.cpp +++ b/src/ftxui/dom/text_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <string> // for allocator, string @@ -120,7 +123,3 @@ TEST(TextTest, CombiningCharactersWithSpace) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/underlined.cpp b/src/ftxui/dom/underlined.cpp index ce217e8c29653384af8d309480c22de87aabf491..f1958a6bf190bbe85ec8eea8dedd4d1fdba8a317 100644 --- a/src/ftxui/dom/underlined.cpp +++ b/src/ftxui/dom/underlined.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element underlined(Element child) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/underlined_double.cpp b/src/ftxui/dom/underlined_double.cpp index c1089f7bb863c3becd4374780dc23601da94b2b1..e51ab7878720089d32a0b647a690943851328b38 100644 --- a/src/ftxui/dom/underlined_double.cpp +++ b/src/ftxui/dom/underlined_double.cpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <memory> // for make_shared #include <utility> // for move @@ -30,7 +33,3 @@ Element underlinedDouble(Element child) { } } // namespace ftxui - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/underlined_test.cpp b/src/ftxui/dom/underlined_test.cpp index acb3947879ac54fcd2d3d546cc836277dd94a929..77071c81513862cef3c3efe367c0d50acb04aa5b 100644 --- a/src/ftxui/dom/underlined_test.cpp +++ b/src/ftxui/dom/underlined_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <string> // for allocator, string #include "ftxui/dom/elements.hpp" // for operator|, text, underlined, Element @@ -17,7 +20,3 @@ TEST(UnderlinedTest, Basic) { } // namespace ftxui // NOLINTEND - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/util.cpp b/src/ftxui/dom/util.cpp index e5856311e95654ed670a33b88c9f82508c936e9e..c404a3261ef4633532c0f1bcd061f5ad5072597a 100644 --- a/src/ftxui/dom/util.cpp +++ b/src/ftxui/dom/util.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for min #include <functional> // for function #include <memory> // for __shared_ptr_access, make_unique @@ -140,7 +143,3 @@ Element emptyElement() { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/vbox.cpp b/src/ftxui/dom/vbox.cpp index fa753731e150eda8f57ad08d337e28e4be2e43cb..cab9d4080607ad982ff9d52a936dc71c90e93b8b 100644 --- a/src/ftxui/dom/vbox.cpp +++ b/src/ftxui/dom/vbox.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <algorithm> // for max #include <cstddef> // for size_t #include <memory> // for __shared_ptr_access, shared_ptr, make_shared, allocator_traits<>::value_type @@ -80,7 +83,3 @@ Element vbox(Elements children) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/dom/vbox_test.cpp b/src/ftxui/dom/vbox_test.cpp index cad86e0d926c182c8815b6daf24c6989fca64448..ba082eefc0387d283b9c21ace706a7398e68c512 100644 --- a/src/ftxui/dom/vbox_test.cpp +++ b/src/ftxui/dom/vbox_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <gtest/gtest.h> #include <algorithm> // for remove #include <cstddef> // for size_t @@ -367,7 +370,3 @@ TEST(VBoxText, FlexGrow_NoFlex_FlewShrink) { } // namespace ftxui // NOLINTEND - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/box.cpp b/src/ftxui/screen/box.cpp index 15a60bac1e8741b616b046c3313da662da65e8f3..38fe484c13ee1d1f886358780ae8e99d2f3169b8 100644 --- a/src/ftxui/screen/box.cpp +++ b/src/ftxui/screen/box.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/screen/box.hpp" #include <algorithm> @@ -50,7 +53,3 @@ bool Box::operator!=(const Box& other) const { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/color.cpp b/src/ftxui/screen/color.cpp index 41e28911cb7de096e13b82f5a1159fb85fb00d9f..4646b973fc0a0bcc3c16e7f4b001b1684973ca85 100644 --- a/src/ftxui/screen/color.cpp +++ b/src/ftxui/screen/color.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/screen/color.hpp" #include <array> // for array @@ -250,7 +253,3 @@ Color operator""_rgb(unsigned long long int combined) { } // namespace literals } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/color_info.cpp b/src/ftxui/screen/color_info.cpp index 932c8bac4a8712daba31ef7a08b88c4f27dd5918..54663ec871f815bb0bca6b2b36cac438a7e8225a 100644 --- a/src/ftxui/screen/color_info.cpp +++ b/src/ftxui/screen/color_info.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/screen/color_info.hpp" #include <array> @@ -276,7 +279,3 @@ ColorInfo GetColorInfo(Color::Palette16 index) { // clang-format off } - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/color_test.cpp b/src/ftxui/screen/color_test.cpp index 4dc65dfd079481384294ab37c49eb79f562a24a2..f02119c952e0beb014675c85911fcfcd96b297e3 100644 --- a/src/ftxui/screen/color_test.cpp +++ b/src/ftxui/screen/color_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/screen/color.hpp" #include <gtest/gtest.h> #include "ftxui/screen/terminal.hpp" @@ -81,7 +84,3 @@ TEST(ColorTest, HSV) { } } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/screen.cpp b/src/ftxui/screen/screen.cpp index cb220d0abe9494c3b7c05653096bf23cf1084ecf..2a12219ea3fa55c2f518c1148122cfcf3d27d126 100644 --- a/src/ftxui/screen/screen.cpp +++ b/src/ftxui/screen/screen.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cstdint> // for size_t #include <iostream> // for operator<<, stringstream, basic_ostream, flush, cout, ostream #include <limits> @@ -576,7 +579,3 @@ const std::string& Screen::Hyperlink(uint8_t id) const { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/string.cpp b/src/ftxui/screen/string.cpp index e6ee21984e4d208af33ad79100af75d68eebf6b3..0b5630c6719db107e7239e1d4f3b4725c7cf9e31 100644 --- a/src/ftxui/screen/string.cpp +++ b/src/ftxui/screen/string.cpp @@ -1,3 +1,7 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. +// // Content of this file was created thanks to: // - // https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/WordBreakProperty.txt @@ -1663,7 +1667,3 @@ std::wstring to_wstring(const std::string& s) { } } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/string_internal.hpp b/src/ftxui/screen/string_internal.hpp index 7015d3bf4436d6c3e102f051f5630abdc68b2a1c..8b58eb9bee0506d0cfaac1e0a01c1ee00c3f10ff 100644 --- a/src/ftxui/screen/string_internal.hpp +++ b/src/ftxui/screen/string_internal.hpp @@ -1,3 +1,6 @@ +// Copyright 2023 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #ifndef FTXUI_SCREEN_STRING_INTERNAL_HPP #define FTXUI_SCREEN_STRING_INTERNAL_HPP @@ -60,7 +63,3 @@ bool IsWordBreakingCharacter(const std::string& input, size_t glyph_index); } // namespace ftxui #endif /* end of include guard: FTXUI_SCREEN_STRING_INTERNAL_HPP */ - -// Copyright 2023 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/string_test.cpp b/src/ftxui/screen/string_test.cpp index 98c8faea892e5ee1b7c02888347c1017add60d2e..27b3e65bab939354da03f0433eb6cf2a6a082b9b 100644 --- a/src/ftxui/screen/string_test.cpp +++ b/src/ftxui/screen/string_test.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include "ftxui/screen/string.hpp" #include <gtest/gtest.h> #include <string> // for allocator, string @@ -161,7 +164,4 @@ TEST(StringTest, to_wstring) { EXPECT_EQ(to_wstring(std::string("🎅🎄")), L"🎅🎄"); } -} // namespace ftxui -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. +} diff --git a/src/ftxui/screen/terminal.cpp b/src/ftxui/screen/terminal.cpp index a43cab1ba437a3cbfb29fc654623afda052f7680..19c93b2a3d3aaa2b56712350f21d3cdc81b123f2 100644 --- a/src/ftxui/screen/terminal.cpp +++ b/src/ftxui/screen/terminal.cpp @@ -1,3 +1,6 @@ +// Copyright 2020 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. #include <cstdlib> // for getenv #include <string> // for string, allocator @@ -133,7 +136,3 @@ void SetColorSupport(Color color) { } // namespace Terminal } // namespace ftxui - -// Copyright 2020 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/src/ftxui/screen/util.hpp b/src/ftxui/screen/util.hpp index d1d1a9f12449990f592abde32fe41c34c70ec32c..e2d765747f26fa0ccd35f76ecb1c59d77136831a 100644 --- a/src/ftxui/screen/util.hpp +++ b/src/ftxui/screen/util.hpp @@ -1,3 +1,6 @@ +// Copyright 2022 Arthur Sonzogni. All rights reserved. +// Use of this source code is governed by the MIT license that can be found in +// the LICENSE file. namespace ftxui { namespace util { @@ -9,7 +12,3 @@ constexpr const T& clamp(const T& v, const T& lo, const T& hi) { } // namespace util } // namespace ftxui - -// Copyright 2022 Arthur Sonzogni. All rights reserved. -// Use of this source code is governed by the MIT license that can be found in -// the LICENSE file. diff --git a/tools/format.sh b/tools/format.sh index ec36deef042a2690e234d2eda194ab3c7c27c61d..c1d33e79f98068fc8fb875f27c2650524652ff79 100755 --- a/tools/format.sh +++ b/tools/format.sh @@ -8,7 +8,7 @@ for file in $files do if ! grep -q Copyright $file then - cat $file ./tools/license_headers.cpp > $file.new && mv $file.new $file + cat ./tools/license_headers.cpp $file > $file.new && mv $file.new $file fi done diff --git a/tools/license_headers.cpp b/tools/license_headers.cpp index fa07c0e8ad80d1a3fb642bf69187bb530cb132e1..851e894a58e3a72812c617721f3a47546d60022f 100644 --- a/tools/license_headers.cpp +++ b/tools/license_headers.cpp @@ -1,4 +1,4 @@ - // Copyright 2023 Arthur Sonzogni. All rights reserved. // Use of this source code is governed by the MIT license that can be found in // the LICENSE file. +