diff --git a/examples/component/button.cpp b/examples/component/button.cpp index d2cab3c..27439a3 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 // for shared_ptr, __shared_ptr_access #include // 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 86abd7f..10b3f80 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 // for shared_ptr, __shared_ptr_access #include // 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 26ba622..9068049 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 // for allocator, __shared_ptr_access, shared_ptr #include // 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 340f482..8183e97 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 // 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 b0b6036..9cc0eaa 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 // for sin, cos #include // for canvas, Element, separator, hbox, operator|, border #include // 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 9ddf8dc..803f110 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 // for allocator, __shared_ptr_access #include // for string, basic_string, operator+, to_string #include // 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 ca71d17..3caaf81 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 // for array #include // for shared_ptr, __shared_ptr_access #include // 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 c569b36..08a018f 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 // for allocator, make_shared, __shared_ptr_access #include // for move #include // 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 2c49a9e..9fca205 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 // for allocator, shared_ptr, __shared_ptr_access #include // 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 2cafe60..947c83f 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 // for EXIT_SUCCESS #include // for milliseconds #include // 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 1c4f082..04febeb 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 // for basic_string, string, allocator #include // 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 b0a13a1..e6bf432 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 // for size_t #include // for shared_ptr, __shared_ptr_access, allocator #include // 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 9432d9a..2b44a12 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 // for allocator, shared_ptr, __shared_ptr_access #include // for operator+, char_traits, to_string, string #include // 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 279582b..b826dd3 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 // for ftxui #include // 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 3d4d16d..6add4f8 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 // for function #include // for shared_ptr, allocator, __shared_ptr_access #include // 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 69be5b3..98e3490 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 // for size_t #include // for array #include // 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 efea16f..0000000 Binary files a/examples/component/homescreen.gif and /dev/null differ diff --git a/examples/component/input.cpp b/examples/component/input.cpp index 3f041f9..d1332ca 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 // for allocator, __shared_ptr_access #include // 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 f9bf12e..338208c 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 // for LinearGradient #include // for Color, Color::White, Color::Red, Color::Blue, Color::Black, Color::GrayDark, ftxui #include // 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 6e7b76b..c8b8e15 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 // for ComponentBase, Component #include // for operator|, Element, flex, bgcolor, text, vbox, center #include // 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 f7b3dbf..d97f8a8 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 // for string, allocator, basic_string #include // 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 0794691..deee986 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 // for function #include // for basic_ostream::operator<<, operator<<, endl, basic_ostream, basic_ostream<>::__ostream_type, cout, ostream #include // 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 9854f80..e264df0 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 // for function #include // for allocator, __shared_ptr_access #include // 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 38dda85..704a3ae 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 // for function #include // for basic_ostream::operator<<, operator<<, endl, basic_ostream, basic_ostream<>::__ostream_type, cout, ostream #include // 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 a45d562..acf51e9 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 // for basic_ostream::operator<<, operator<<, endl, basic_ostream, basic_ostream<>::__ostream_type, cout, ostream #include // for shared_ptr, __shared_ptr_access #include // 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 43d8677..2571df0 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 // for shared_ptr, __shared_ptr_access #include // for string, basic_string, operator+, to_string #include // 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 de99f4e..a4f38d8 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 // for EXIT_SUCCESS #include // for allocator, __shared_ptr_access #include // 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 b9fd71a..39ccdcd 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 // for array #include // for milliseconds #include // for function @@ -252,7 +255,3 @@ Component HMenu5(std::vector* 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 5f7cf7c..9d24b94 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 // for operator""ms, literals #include // for allocator, shared_ptr, __shared_ptr_access #include // 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 c8cffe9..8fc02f4 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 // for ButtonOption #include // for ftxui #include // 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 acab25f..eabf391 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 // for allocator, shared_ptr, __shared_ptr_access #include // for string, basic_string, char_traits, operator+ #include // 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 aafb134..c517ed5 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 // for allocator, shared_ptr, __shared_ptr_access #include // 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 f5a066d..0be24dd 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 // for string, allocator, basic_string #include // 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 1b57714..bf161e9 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 // for shared_ptr, __shared_ptr_access #include // for string, basic_string, operator+, to_string #include // 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 07ffaf9..6d0bcbe 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 // 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 066d317..05c6385 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 // 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 33b7800..4a6c3ba 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 // for array #include // for sin #include // 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 f3eb2f8..0d0160f 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 // for allocator, shared_ptr, __shared_ptr_access #include // 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 a1faefe..5aeead8 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 // for allocator, __shared_ptr_access, shared_ptr #include // for string, basic_string #include // 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 ad06b82..415c732 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 // for allocator, __shared_ptr_access, shared_ptr #include // for string, basic_string #include // 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 5ea7721..3a79a9e 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 // for allocator, __shared_ptr_access, shared_ptr #include // 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 f1f3b06..1bb204e 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 // for allocator, __shared_ptr_access #include // for string, basic_string #include // 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 64c4cfe..121b48a 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 #include @@ -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 9157fc2..38c91bc 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 // for system, EXIT_SUCCESS #include // for operator<<, basic_ostream, basic_ostream::operator<<, cout, endl, flush, ostream, basic_ostream<>::__ostream_type, cin #include // 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 78b9135..49ba8bb 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 // for EXIT_SUCCESS #include // for text, operator|, vbox, border, Element, Fit, hbox #include // 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 95bead5..5a04d3e 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 // for operator|, text, Element, Fit, borderDouble, borderHeavy, borderLight, borderRounded, vbox #include // for Screen #include // 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 e16f53f..f71182c 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 // for operator|, text, Element, Fit, borderDouble, borderHeavy, borderLight, borderRounded, vbox #include // for Screen #include // 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 f61cd4d..ece1c5e 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 // for getchar #include // for cos #include // 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 fc8f584..f57e387 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 // for ColorInfo #include // for Full, Screen #include // 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 3cc383d..c8795ec 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 // for text, bgcolor, hbox, operator|, Elements, Fit, vbox, Element #include // for ColorInfo #include // 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 d519069..adaa7ef 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 // for operator|, Elements, Fit, bgcolor, color, hbox, text, vbox, Element #include // for Full, Screen #include // 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 65cc04c..6a8d1f3 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 // for hbox, text, bgcolor, operator|, vbox, Elements, window, Element, Fit #include // for Full, Screen #include // 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 b1f347c..a1de78c 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 // for text, operator|, border, Element, vbox, center, Fit, dbox #include // for Full, Screen #include // 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 d12fbcb..e2c53c5 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 // for operator""s, chrono_literals #include // for text, gauge, operator|, flex, hbox, Element #include // 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 f7ebef8..c852136 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 // for operator""s, chrono_literals #include // for filler, operator|, separator, text, border, Element, vbox, vtext, hbox, center, gaugeDown, gaugeLeft, gaugeRight, gaugeUp #include // 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 5367330..461933f 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 // for operator""s, chrono_literals #include // for sin #include // 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 4c5c989..c0e2e1c 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 // for getchar #include // for Elements, gridbox, Fit, operator|, text, border, Element #include // 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 01b2886..7d8bdbe 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 // for getchar #include // for operator|, size, Element, text, hcenter, Decorator, Fit, WIDTH, hflow, window, EQUAL, GREATER_THAN, HEIGHT, bold, border, dim, LESS_THAN #include // for Full, Screen @@ -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 fc75959..09fdb2b 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 // for operator""s, chrono_literals #include // for Screen #include // 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 3d5fb9a..14fb9d8 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 // for bgcolor, operator|, operator|=, text, center, Element #include // for LinearGradient::Stop, LinearGradient #include // 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 b21d81a..2829547 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 // for operator""s, chrono_literals #include // for operator|, text, Element, hbox, bold, color, filler, separator, vbox, window, gauge, Fit, size, dim, EQUAL, WIDTH #include // 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 2529aff..f39cb53 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 // for operator""s, chrono_literals #include // for Full, Screen #include // 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 3b8a3a5..60e8898 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 // for text, center, separator, operator|, flex, Element, vbox, Fit, hbox, border #include // for Full, Screen #include // 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 1e2eb3b..acff9d7 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 // for Screen #include // for endl, cout, ostream #include // 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 5cc7c36..afe6530 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 // for operator|, text, Element, hcenter, Fit, hbox, size, window, Elements, bold, dim, EQUAL, WIDTH #include // for Screen #include // 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 4f8215b..70a32e1 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 // for operator""s, chrono_literals #include // for Element, operator|, separator, filler, hbox, size, spinner, text, vbox, bold, border, Fit, EQUAL, WIDTH #include // 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 f3d7250..2a3afd9 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 // for text, operator|, blink, Fit, hbox, Element #include // for Full, Screen #include // 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 1386f11..4516935 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 // for text, operator|, bold, Fit, hbox, Element #include // for Full, Screen #include // 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 f05d36f..aa79988 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 // for LinearGradient #include // for Full, Screen #include // 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 a5b02af..dce5f8d 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 // for text, operator|, dim, Fit, hbox, Element #include // for Full, Screen #include // 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 419f294..c806893 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 // for text, operator|, Element, bgcolor, color, blink, bold, dim, inverted, underlined, Fit, hbox #include // for Full, Screen #include // 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 8ab092c..bd76f4e 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 // for text, operator|, bold, Fit, hbox, Element #include // for Full, Screen #include // 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 e97cec3..2288fba 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 // for text, operator|, inverted, Fit, hbox, Element #include // for Full, Screen #include // 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 89b4764..00be07b 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 // for text, operator|, strikethrough, Fit, hbox, Element #include // for Full, Screen #include // 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 8413b84..3c33ac4 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 // for text, operator|, underlined, Fit, hbox, Element #include // for Full, Screen #include // 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 496ab67..7697e8a 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 // for text, operator|, underlinedDouble, Fit, hbox, Element #include // for Full, Screen #include // 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 640d7af..020a2af 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 // for color, Fit, LIGHT, align_right, bold, DOUBLE #include // for Table, TableSelection #include // 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 8434f5f..f5a31be 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 // for getchar #include // for filler, text, hbox, vbox #include // 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 96e9e84..94c4a31 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 // for getchar #include // for operator|, Element, size, text, hcenter, Fit, vflow, window, EQUAL, bold, border, dim, HEIGHT, WIDTH #include // 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 146ea5c..c9f665e 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 a59e3ea..4ed6d75 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; } // 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 ccda278..9847603 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 25a2b87..1e3fa13 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 58fc71d..b401b6d 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 a10e256..504bee0 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 63200be..41b340c 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 d1c4c9c..3c61008 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 212341c..95f2353 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 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 ec08765..10d022c 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_sender_; Receiver 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 2070b50..6a770e8 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; } // 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 5ff5061..9286838 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 497bfa1..f4faf8d 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 c738718..2a38f09 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 d343cdc..ffd9360 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 15a73c9..8ae2677 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 3c6b529..da7e77b 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 34f7604..a462b0a 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 18b74d4..1b0a884 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 1d2a4e7..5b7fd34 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 136dab1..79491ef 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 7e0dcdc..701b600 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 6adf1b3..8939e50 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 2cf9e4f..8e625e8 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 0d0feac..e3a51f8 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 612b19e..8d27900 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 25fcb82..70e761c 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 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 2ec3bbb..051aed0 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 2492d8c..2c8bf4e 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 7871479..1128b91 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 a07c372..77aae5d 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 152bfc0..88d611e 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 #include // for function #include // 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 c558dfb..c983f31 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 // for function #include // for shared_ptr #include // 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 c49582c..664f006 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 // for operator""s, chrono_literals #include // for __shared_ptr_access, shared_ptr, allocator #include // 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 d05eb3e..b24cf1b 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 // for function #include // for __shared_ptr_access, __shared_ptr_access<>::element_type, shared_ptr #include // for remove_reference, remove_reference<>::type @@ -85,7 +88,3 @@ ComponentDecorator CatchEvent(std::function 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 e65ac6b..ebfa46d 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 // for function #include // 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 995efa2..bcdc16a 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 // for function #include // for shared_ptr, allocator #include // for move @@ -56,7 +59,3 @@ Component Collapsible(ConstStringRef label, Component child, Ref 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 5d2c0aa..47d8825 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 // for find_if #include // for assert #include // 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 f29ac00..ee41536 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 #include #include @@ -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 5e25ef2..37d2e22 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 // 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 4247c04..adff775 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 // for shared_ptr, __shared_ptr_access, allocator, __shared_ptr_access<>::element_type, make_shared #include // 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 d8a0482..4b2d86a 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 // for max, min #include // for size_t #include // 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 9710c67..1fcc79a 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 // for __shared_ptr_access, shared_ptr, allocator #include // 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 aa930db..96934e8 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 // for size_t #include // for function #include // 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 64a18b7..801836f 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 // 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 8a51271..304ebc1 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 // for CapturedMouse #include // for function #include // for move @@ -211,7 +214,3 @@ ComponentDecorator Hoverable(std::function 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 3a023a0..66df43a 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 // for Element, text #include // for shared_ptr, __shared_ptr_access, allocator #include // 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 cd5b070..1212214 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 // for max, min #include // for size_t #include // 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 175ff75..96a63b3 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 // for __shared_ptr_access, shared_ptr, allocator #include // 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 6578309..a003981 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 // 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 5ef0ccf..8f5a54b 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 // for function #include // for make_unique, __shared_ptr_access, __shared_ptr_access<>::element_type, shared_ptr #include // 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 f182ea3..7f6b92d 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 // for max, fill_n, reverse #include // for milliseconds #include // 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 910948f..3cda65e 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 // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include // for operator""s, chrono_literals #include // 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 e35e67d..1c970c3 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 // for Event #include // for operator|, Element, center, clear_under, dbox #include // 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 74bb951..f13ddd9 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 #include // for Element, operator|, text, border #include // 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 00ac702..004a242 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 // for function #include // for allocator_traits<>::value_type #include // 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 eca86ec..741119e 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 // for yframe #include // for Render #include // 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 0d83b7e..7f91582 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 // for string #include // for thread #include // 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 82300fe..30157ac 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 // for function #include // for __shared_ptr_access, shared_ptr #include // 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 98c5ba2..9e0d62e 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 // for ResizableSplitOption #include // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up #include // 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 851f9c3..352b33e 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 // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up #include // for __shared_ptr_access, shared_ptr, allocator #include // 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 ddaabcb..f10a37c 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 // for copy, max, min #include // for array #include // 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 c2b9dd4..3a80c13 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 // for Test, TestInfo (ptr only), TEST, EXPECT_EQ, Message, TestPartResult #include // for raise, SIGABRT, SIGFPE, SIGILL, SIGINT, SIGSEGV, SIGTERM #include // 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 db617d8..5b63bf7 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 // for max, min #include // for uint8_t, uint16_t, uint32_t, uint64_t #include // for SliderOption @@ -350,7 +353,3 @@ template Component Slider(SliderOption); template Component Slider(SliderOption); } // 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 d33225a..4211355 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 // for array #include // for size_t #include // 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 c60c4f0..3ba0e69 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 // 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 5449b1e..5a808c5 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 f037ac7..971c086 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 // for Mouse, Mouse::Left, Mouse::Middle, Mouse::Pressed, Mouse::Released, Mouse::Right #include // for Task #include // 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 870a303..a10ebdf 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 #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 722a27c..d4b8b9d 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 // for function #include // for __shared_ptr_access, shared_ptr, allocator #include // 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 246a469..fa10069 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 // 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 6afffad..daed7e1 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 #include @@ -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 8a341dc..d845628 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 // for make_shared #include // 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 fa49d10..fa90b8c 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 #include @@ -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 d426f6e..a71c305 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 // for make_shared #include // 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 2a96825..dfd6905 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 // 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 cfa3c24..02dde65 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 // for make_shared #include // 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 9007bb3..dc29e1f 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 // 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 6b2a63b..9cda0f0 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 // for max #include // for array #include // 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 fc2249d..9714ef6 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 #include // 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 5694d5a..a09b8e2 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 // for max @@ -86,7 +89,3 @@ void Compute(std::vector* 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 4d95624..00b5586 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* 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 f6501fd..58c2490 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 // for max, min @@ -899,7 +902,3 @@ Element canvas(std::function 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 568cbe5..06f915c 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 #include // for uint32_t #include // 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 dd17222..8ad2781 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 // for make_shared #include // 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 67f32c4..18d4c66 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 // for make_shared #include // 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 087327e..b72338b 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 // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include // 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 43c4f48..f7ce45d 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 // 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 2c4ec26..d5e414c 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 // for max #include // for __shared_ptr_access, shared_ptr, make_shared #include // 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 9a420a9..f857509 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 #include // 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 39b897d..f4384a9 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 // for make_shared #include // 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 d1d0198..40c16db 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 // 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 09d26d3..2576761 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 // for make_shared, __shared_ptr_access #include // for move #include // 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 8c1ce2c..336527b 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 // for min, max #include // for size_t #include // 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 acec612..c70343b 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 37cd2b7..96655fe 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 // 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 733e25c..73d2cf4 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 0fbb5c0..011bf31 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 #include // for FlexboxConfig, FlexboxConfig::Direction, FlexboxConfig::Direction::Column, FlexboxConfig::Direction::ColumnInversed, FlexboxConfig::Direction::Row, FlexboxConfig::Direction::RowInversed #include // 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 cdfa15f..8343547 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 #include // 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 5294eca..b0d6cca 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 // for make_shared #include // 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 6cc94cd..ee5400e 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 // for max, min #include // for make_shared, __shared_ptr_access #include // 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 5d7c714..c210f79 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 // for Direction, Direction::Down, Direction::Left, Direction::Right, Direction::Up #include // for allocator, make_shared #include // 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 3e5a065..08fcb68 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 #include // 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 5425041..ca32088 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 // for function #include // for allocator, make_shared #include // 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 46d21cb..1137f5a 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 // for max, min #include // for size_t #include // for __shared_ptr_access, shared_ptr, make_shared, allocator_traits<>::value_type @@ -182,7 +185,3 @@ Element gridbox(std::vector 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 998fa7f..64382f7 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 #include // for remove #include // 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 ba06dad..45e6010 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 // for max #include // for size_t #include // 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 662558f..982bfde 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 // for Test, TestInfo (ptr only), EXPECT_EQ, Message, TEST, TestPartResult #include // for size_t #include // 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 4d2dd05..5c493c4 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 // for uint8_t #include // for make_shared #include // 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 5579831..df1e155 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 // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include // 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 4e8c6c8..9769216 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 // for make_shared #include // 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 906da7f..0f7d176 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 // for max, min, sort, copy #include // for fmod, cos, sin #include // 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 704a63a..81d6f1b 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 // for Test, EXPECT_EQ, Message, TestPartResult, TestInfo (ptr only), TEST #include // for LinearGradient::Stop, LinearGradient #include // 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 6be453f..5220335 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 // for Box #include // 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 37a7e2d..8118d35 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 // for Node, Elements #include // for __shared_ptr_access #include // 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 41d75e8..5d96d0d 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 ab46dfa..93f75c2 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 // for basic_istream, stringstream #include // for string, allocator, getline #include // 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 be86041..6bf6187 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 // for make_shared, __shared_ptr_access #include // for move #include // 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 cac1d05..a744ddc 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 // for max #include // for make_shared, __shared_ptr_access #include // 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 426500c..3f8e1cf 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 #include // for shared_ptr #include // 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 aeb00d0..8a556e8 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 // for array, array<>::value_type #include // for make_shared, allocator #include // 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 af85938..9ad2167 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 #include // 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 750ba8c..388649e 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 // for min, max #include // for make_shared, __shared_ptr_access #include // 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 4f1d350..7d0035c 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 // for size_t #include // for allocator, allocator_traits<>::value_type #include // 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 d0d5813..0d6b686 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 #include // 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 13c8559..f5eba40 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 // for make_shared #include // 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 4397477..38369c1 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 // 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 b1175aa..99a4405 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 #include // 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 c598be1..36b31a2 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 // for min #include // for make_shared #include // 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 fa89aba..f5364af 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 #include // 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 ce217e8..f1958a6 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 // for make_shared #include // 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 c1089f7..e51ab78 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 // for make_shared #include // 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 acb3947..77071c8 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 // 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 e585631..c404a32 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 // for min #include // for function #include // 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 fa75373..cab9d40 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 // for max #include // for size_t #include // 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 cad86e0..ba082ee 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 #include // for remove #include // 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 15a60ba..38fe484 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 @@ -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 41e2891..4646b97 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 // 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 932c8ba..54663ec 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 @@ -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 4dc65df..f02119c 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 #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 cb220d0..2a12219 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 // for size_t #include // for operator<<, stringstream, basic_ostream, flush, cout, ostream #include @@ -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 e6ee219..0b5630c 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 7015d3b..8b58eb9 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 98c8fae..27b3e65 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 #include // 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 a43cab1..19c93b2 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 // for getenv #include // 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 d1d1a9f..e2d7657 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 ec36dee..c1d33e7 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 fa07c0e..851e894 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. +