2020-01-18 11:38:21 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
*
|
2021-04-22 11:24:48 +03:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 11:38:21 +03:00
|
|
|
*/
|
|
|
|
|
2021-05-14 19:37:08 +03:00
|
|
|
#include "ViewWidget.h"
|
2020-04-05 21:25:14 +03:00
|
|
|
#include <AK/URL.h>
|
2020-04-12 16:24:13 +03:00
|
|
|
#include <LibCore/ArgsParser.h>
|
2020-04-05 21:25:14 +03:00
|
|
|
#include <LibCore/MimeData.h>
|
2021-03-12 15:25:38 +03:00
|
|
|
#include <LibDesktop/Launcher.h>
|
2020-02-06 22:33:02 +03:00
|
|
|
#include <LibGUI/Action.h>
|
|
|
|
#include <LibGUI/Application.h>
|
|
|
|
#include <LibGUI/BoxLayout.h>
|
2020-09-05 17:53:30 +03:00
|
|
|
#include <LibGUI/Clipboard.h>
|
2020-06-18 00:25:57 +03:00
|
|
|
#include <LibGUI/Desktop.h>
|
2020-04-05 21:25:14 +03:00
|
|
|
#include <LibGUI/FilePicker.h>
|
2020-02-06 22:33:02 +03:00
|
|
|
#include <LibGUI/Label.h>
|
|
|
|
#include <LibGUI/Menu.h>
|
2021-04-13 17:18:20 +03:00
|
|
|
#include <LibGUI/Menubar.h>
|
2020-04-12 16:40:05 +03:00
|
|
|
#include <LibGUI/MessageBox.h>
|
2021-04-13 17:18:20 +03:00
|
|
|
#include <LibGUI/Toolbar.h>
|
|
|
|
#include <LibGUI/ToolbarContainer.h>
|
2020-02-06 22:33:02 +03:00
|
|
|
#include <LibGUI/Window.h>
|
2020-02-15 01:02:47 +03:00
|
|
|
#include <LibGfx/Bitmap.h>
|
2020-04-23 19:21:23 +03:00
|
|
|
#include <LibGfx/Palette.h>
|
2020-06-18 16:00:19 +03:00
|
|
|
#include <LibGfx/Rect.h>
|
2020-08-04 15:23:06 +03:00
|
|
|
#include <serenity.h>
|
2019-03-21 05:57:42 +03:00
|
|
|
#include <stdio.h>
|
2020-04-12 16:40:05 +03:00
|
|
|
#include <string.h>
|
2019-03-21 05:57:42 +03:00
|
|
|
|
2021-05-14 19:37:08 +03:00
|
|
|
using namespace ImageViewer;
|
|
|
|
|
2019-03-21 05:57:42 +03:00
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
2021-05-14 00:20:26 +03:00
|
|
|
if (pledge("stdio recvfd sendfd rpath wpath cpath unix thread", nullptr) < 0) {
|
2020-01-12 04:02:44 +03:00
|
|
|
perror("pledge");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2020-07-04 15:05:19 +03:00
|
|
|
auto app = GUI::Application::construct(argc, argv);
|
2019-03-21 05:57:42 +03:00
|
|
|
|
2021-05-14 19:34:44 +03:00
|
|
|
if (!Desktop::Launcher::add_allowed_handler_with_any_url("/bin/ImageViewer")) {
|
2021-03-12 15:25:38 +03:00
|
|
|
warnln("Failed to set up allowed launch URLs");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2021-03-12 17:34:36 +03:00
|
|
|
if (!Desktop::Launcher::add_allowed_handler_with_only_specific_urls(
|
2021-05-14 19:34:44 +03:00
|
|
|
"/bin/Help", { URL::create_with_file_protocol("/usr/share/man/man1/ImageViewer.md") })) {
|
2021-03-12 17:34:36 +03:00
|
|
|
warnln("Failed to set up allowed launch URLs");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2021-03-12 15:25:38 +03:00
|
|
|
if (!Desktop::Launcher::seal_allowlist()) {
|
|
|
|
warnln("Failed to seal allowed launch URLs");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2020-11-02 22:30:17 +03:00
|
|
|
auto app_icon = GUI::Icon::default_icon("filetype-image");
|
|
|
|
|
2020-04-12 16:24:13 +03:00
|
|
|
const char* path = nullptr;
|
|
|
|
Core::ArgsParser args_parser;
|
|
|
|
args_parser.add_positional_argument(path, "The image file to be displayed.", "file", Core::ArgsParser::Required::No);
|
|
|
|
args_parser.parse(argc, argv);
|
2019-03-21 05:57:42 +03:00
|
|
|
|
2020-02-02 17:07:41 +03:00
|
|
|
auto window = GUI::Window::construct();
|
2020-04-05 21:25:14 +03:00
|
|
|
window->set_double_buffering_enabled(true);
|
2020-08-01 01:12:11 +03:00
|
|
|
window->resize(300, 200);
|
2020-11-02 22:30:17 +03:00
|
|
|
window->set_icon(app_icon.bitmap_for_size(16));
|
2021-05-14 19:34:44 +03:00
|
|
|
window->set_title("Image Viewer");
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2020-04-12 17:40:34 +03:00
|
|
|
auto& root_widget = window->set_main_widget<GUI::Widget>();
|
2020-04-23 19:21:23 +03:00
|
|
|
root_widget.set_fill_with_background_color(true);
|
2020-04-12 17:40:34 +03:00
|
|
|
root_widget.set_layout<GUI::VerticalBoxLayout>();
|
2020-04-23 19:21:23 +03:00
|
|
|
root_widget.layout()->set_spacing(2);
|
2019-03-21 15:31:47 +03:00
|
|
|
|
2021-04-13 17:18:20 +03:00
|
|
|
auto& toolbar_container = root_widget.add<GUI::ToolbarContainer>();
|
|
|
|
auto& main_toolbar = toolbar_container.add<GUI::Toolbar>();
|
2020-04-12 17:40:34 +03:00
|
|
|
|
2021-05-14 19:37:08 +03:00
|
|
|
auto& widget = root_widget.add<ViewWidget>();
|
2020-06-18 16:00:19 +03:00
|
|
|
widget.on_scale_change = [&](int scale, Gfx::IntRect rect) {
|
|
|
|
if (!widget.bitmap()) {
|
2021-05-14 19:34:44 +03:00
|
|
|
window->set_title("Image Viewer");
|
2020-06-18 16:00:19 +03:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2021-05-14 19:34:44 +03:00
|
|
|
window->set_title(String::formatted("{} {} {}% - Image Viewer", widget.path(), widget.bitmap()->size().to_string(), scale));
|
2020-06-18 16:00:19 +03:00
|
|
|
|
|
|
|
if (window->is_fullscreen())
|
|
|
|
return;
|
|
|
|
|
|
|
|
if (window->is_maximized())
|
|
|
|
return;
|
|
|
|
|
|
|
|
auto w = max(window->width(), rect.width() + 4);
|
|
|
|
auto h = max(window->height(), rect.height() + widget.toolbar_height() + 6);
|
|
|
|
window->resize(w, h);
|
2019-06-23 17:35:43 +03:00
|
|
|
};
|
2020-04-05 21:25:14 +03:00
|
|
|
widget.on_drop = [&](auto& event) {
|
|
|
|
window->move_to_front();
|
|
|
|
|
2021-03-12 15:25:38 +03:00
|
|
|
if (!event.mime_data().has_urls())
|
|
|
|
return;
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2021-03-12 15:25:38 +03:00
|
|
|
auto urls = event.mime_data().urls();
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2021-03-12 15:25:38 +03:00
|
|
|
if (urls.is_empty())
|
|
|
|
return;
|
|
|
|
|
|
|
|
widget.load_from_file(urls.first().path());
|
|
|
|
|
|
|
|
for (size_t i = 1; i < urls.size(); ++i) {
|
2021-05-14 19:34:44 +03:00
|
|
|
Desktop::Launcher::open(URL::create_with_file_protocol(urls[i].path().characters()), "/bin/ImageViewer");
|
2020-04-05 21:25:14 +03:00
|
|
|
}
|
|
|
|
};
|
2020-06-16 10:47:47 +03:00
|
|
|
widget.on_doubleclick = [&] {
|
|
|
|
window->set_fullscreen(!window->is_fullscreen());
|
|
|
|
toolbar_container.set_visible(!window->is_fullscreen());
|
|
|
|
};
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2020-04-12 14:35:15 +03:00
|
|
|
// Actions
|
2020-04-12 16:40:05 +03:00
|
|
|
auto open_action = GUI::CommonActions::make_open_action(
|
|
|
|
[&](auto&) {
|
2021-04-10 15:58:35 +03:00
|
|
|
auto path = GUI::FilePicker::get_open_filepath(window, "Open Image");
|
2020-04-12 16:40:05 +03:00
|
|
|
if (path.has_value()) {
|
|
|
|
widget.load_from_file(path.value());
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
auto delete_action = GUI::CommonActions::make_delete_action(
|
|
|
|
[&](auto&) {
|
|
|
|
auto path = widget.path();
|
2020-04-12 17:40:34 +03:00
|
|
|
if (path.is_empty())
|
2020-04-12 16:40:05 +03:00
|
|
|
return;
|
|
|
|
|
2020-07-16 05:45:11 +03:00
|
|
|
auto msgbox_result = GUI::MessageBox::show(window,
|
2020-10-06 15:32:29 +03:00
|
|
|
String::formatted("Really delete {}?", path),
|
2020-04-12 16:40:05 +03:00
|
|
|
"Confirm deletion",
|
|
|
|
GUI::MessageBox::Type::Warning,
|
2020-07-16 05:45:11 +03:00
|
|
|
GUI::MessageBox::InputType::OKCancel);
|
2020-04-12 16:40:05 +03:00
|
|
|
|
|
|
|
if (msgbox_result == GUI::MessageBox::ExecCancel)
|
|
|
|
return;
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
if (unlink(widget.path().characters()) < 0) {
|
2020-04-12 16:40:05 +03:00
|
|
|
int saved_errno = errno;
|
2020-07-16 05:45:11 +03:00
|
|
|
GUI::MessageBox::show(window,
|
2020-10-06 15:32:29 +03:00
|
|
|
String::formatted("unlink({}) failed: {}", path, strerror(saved_errno)),
|
2020-04-12 16:40:05 +03:00
|
|
|
"Delete failed",
|
2020-07-16 05:45:11 +03:00
|
|
|
GUI::MessageBox::Type::Error);
|
2020-04-12 16:40:05 +03:00
|
|
|
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
widget.clear();
|
|
|
|
});
|
|
|
|
|
|
|
|
auto quit_action = GUI::CommonActions::make_quit_action(
|
|
|
|
[&](auto&) {
|
2020-07-04 15:05:19 +03:00
|
|
|
app->quit();
|
2020-04-12 16:40:05 +03:00
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto rotate_left_action = GUI::Action::create("Rotate &Left", { Mod_None, Key_L },
|
2020-04-12 16:03:31 +03:00
|
|
|
[&](auto&) {
|
2021-05-03 08:38:29 +03:00
|
|
|
widget.rotate(Gfx::RotationDirection::CounterClockwise);
|
2020-04-12 16:03:31 +03:00
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto rotate_right_action = GUI::Action::create("Rotate &Right", { Mod_None, Key_R },
|
2020-04-12 16:03:31 +03:00
|
|
|
[&](auto&) {
|
2021-05-03 08:38:29 +03:00
|
|
|
widget.rotate(Gfx::RotationDirection::Clockwise);
|
2020-04-12 16:03:31 +03:00
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto vertical_flip_action = GUI::Action::create("Flip &Vertically", { Mod_None, Key_V },
|
2020-04-12 16:03:31 +03:00
|
|
|
[&](auto&) {
|
|
|
|
widget.flip(Gfx::Orientation::Vertical);
|
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto horizontal_flip_action = GUI::Action::create("Flip &Horizontally", { Mod_None, Key_H },
|
2020-04-12 16:03:31 +03:00
|
|
|
[&](auto&) {
|
|
|
|
widget.flip(Gfx::Orientation::Horizontal);
|
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto desktop_wallpaper_action = GUI::Action::create("Set as Desktop &Wallpaper",
|
2020-06-18 00:25:57 +03:00
|
|
|
[&](auto&) {
|
|
|
|
GUI::Desktop::the().set_wallpaper(widget.path());
|
|
|
|
});
|
|
|
|
|
2021-05-21 19:51:06 +03:00
|
|
|
auto go_first_action = GUI::Action::create("&Go to First", { Mod_None, Key_Home }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-first.png"),
|
2020-04-12 14:35:15 +03:00
|
|
|
[&](auto&) {
|
2021-05-14 19:37:08 +03:00
|
|
|
widget.navigate(ViewWidget::Directions::First);
|
2020-04-12 14:35:15 +03:00
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto go_back_action = GUI::Action::create("Go &Back", { Mod_None, Key_Left }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-back.png"),
|
2020-04-12 14:35:15 +03:00
|
|
|
[&](auto&) {
|
2021-05-14 19:37:08 +03:00
|
|
|
widget.navigate(ViewWidget::Directions::Back);
|
2020-04-12 14:35:15 +03:00
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto go_forward_action = GUI::Action::create("Go &Forward", { Mod_None, Key_Right }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-forward.png"),
|
2020-04-12 14:35:15 +03:00
|
|
|
[&](auto&) {
|
2021-05-14 19:37:08 +03:00
|
|
|
widget.navigate(ViewWidget::Directions::Forward);
|
2020-04-12 14:35:15 +03:00
|
|
|
});
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto go_last_action = GUI::Action::create("Go to &Last", { Mod_None, Key_End }, Gfx::Bitmap::load_from_file("/res/icons/16x16/go-last.png"),
|
2020-04-12 14:35:15 +03:00
|
|
|
[&](auto&) {
|
2021-05-14 19:37:08 +03:00
|
|
|
widget.navigate(ViewWidget::Directions::Last);
|
2020-04-12 14:35:15 +03:00
|
|
|
});
|
|
|
|
|
2021-05-16 11:01:29 +03:00
|
|
|
auto full_screen_action = GUI::CommonActions::make_fullscreen_action(
|
2020-04-12 16:24:31 +03:00
|
|
|
[&](auto&) {
|
2020-06-16 10:47:47 +03:00
|
|
|
widget.on_doubleclick();
|
2020-04-12 16:24:31 +03:00
|
|
|
});
|
|
|
|
|
2021-05-15 21:35:52 +03:00
|
|
|
auto zoom_in_action = GUI::CommonActions::make_zoom_in_action(
|
2020-04-12 16:24:31 +03:00
|
|
|
[&](auto&) {
|
|
|
|
widget.set_scale(widget.scale() + 10);
|
2021-05-15 21:35:52 +03:00
|
|
|
},
|
|
|
|
window);
|
2020-04-12 16:24:31 +03:00
|
|
|
|
2021-05-15 21:35:52 +03:00
|
|
|
auto reset_zoom_action = GUI::CommonActions::make_reset_zoom_action(
|
2020-04-12 16:24:31 +03:00
|
|
|
[&](auto&) {
|
|
|
|
widget.set_scale(100);
|
2021-05-15 21:35:52 +03:00
|
|
|
},
|
|
|
|
window);
|
2020-04-12 16:24:31 +03:00
|
|
|
|
2021-05-15 21:35:52 +03:00
|
|
|
auto zoom_out_action = GUI::CommonActions::make_zoom_out_action(
|
2020-04-12 16:24:31 +03:00
|
|
|
[&](auto&) {
|
|
|
|
widget.set_scale(widget.scale() - 10);
|
2021-05-15 21:35:52 +03:00
|
|
|
},
|
|
|
|
window);
|
2020-04-12 17:59:24 +03:00
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto hide_show_toolbar_action = GUI::Action::create("Hide/Show &Toolbar", { Mod_Ctrl, Key_T },
|
2020-04-12 17:40:34 +03:00
|
|
|
[&](auto&) {
|
2020-04-24 17:33:27 +03:00
|
|
|
toolbar_container.set_visible(!toolbar_container.is_visible());
|
2020-04-12 17:40:34 +03:00
|
|
|
});
|
|
|
|
|
2020-09-05 17:53:30 +03:00
|
|
|
auto copy_action = GUI::CommonActions::make_copy_action([&](auto&) {
|
|
|
|
if (widget.bitmap())
|
|
|
|
GUI::Clipboard::the().set_bitmap(*widget.bitmap());
|
|
|
|
});
|
|
|
|
|
2021-05-16 11:01:29 +03:00
|
|
|
widget.on_image_change = [&](const Gfx::Bitmap* bitmap) {
|
|
|
|
bool should_enable_image_actions = (bitmap != nullptr);
|
|
|
|
delete_action->set_enabled(should_enable_image_actions);
|
|
|
|
rotate_left_action->set_enabled(should_enable_image_actions);
|
|
|
|
rotate_right_action->set_enabled(should_enable_image_actions);
|
|
|
|
vertical_flip_action->set_enabled(should_enable_image_actions);
|
|
|
|
horizontal_flip_action->set_enabled(should_enable_image_actions);
|
|
|
|
desktop_wallpaper_action->set_enabled(should_enable_image_actions);
|
|
|
|
go_first_action->set_enabled(should_enable_image_actions);
|
|
|
|
go_back_action->set_enabled(should_enable_image_actions);
|
|
|
|
go_forward_action->set_enabled(should_enable_image_actions);
|
|
|
|
go_last_action->set_enabled(should_enable_image_actions);
|
|
|
|
zoom_in_action->set_enabled(should_enable_image_actions);
|
|
|
|
reset_zoom_action->set_enabled(should_enable_image_actions);
|
|
|
|
zoom_out_action->set_enabled(should_enable_image_actions);
|
|
|
|
if (!should_enable_image_actions) {
|
|
|
|
window->set_title("Image Viewer");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2020-04-12 17:40:34 +03:00
|
|
|
main_toolbar.add_action(open_action);
|
|
|
|
main_toolbar.add_action(delete_action);
|
|
|
|
main_toolbar.add_separator();
|
|
|
|
main_toolbar.add_action(go_first_action);
|
|
|
|
main_toolbar.add_action(go_back_action);
|
|
|
|
main_toolbar.add_action(go_forward_action);
|
|
|
|
main_toolbar.add_action(go_last_action);
|
|
|
|
main_toolbar.add_separator();
|
|
|
|
main_toolbar.add_action(zoom_in_action);
|
2021-05-15 21:35:52 +03:00
|
|
|
main_toolbar.add_action(reset_zoom_action);
|
2020-04-12 17:40:34 +03:00
|
|
|
main_toolbar.add_action(zoom_out_action);
|
2020-04-12 16:24:31 +03:00
|
|
|
|
2021-04-13 17:18:20 +03:00
|
|
|
auto menubar = GUI::Menubar::construct();
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2021-05-01 11:45:39 +03:00
|
|
|
auto& file_menu = menubar->add_menu("&File");
|
|
|
|
file_menu.add_action(open_action);
|
|
|
|
file_menu.add_action(delete_action);
|
|
|
|
file_menu.add_separator();
|
|
|
|
file_menu.add_action(quit_action);
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto& image_menu = menubar->add_menu("&Image");
|
2020-04-12 16:03:31 +03:00
|
|
|
image_menu.add_action(rotate_left_action);
|
|
|
|
image_menu.add_action(rotate_right_action);
|
|
|
|
image_menu.add_action(vertical_flip_action);
|
|
|
|
image_menu.add_action(horizontal_flip_action);
|
2020-06-18 00:25:57 +03:00
|
|
|
image_menu.add_separator();
|
|
|
|
image_menu.add_action(desktop_wallpaper_action);
|
2020-04-12 16:03:31 +03:00
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto& navigate_menu = menubar->add_menu("&Navigate");
|
2020-04-12 14:35:15 +03:00
|
|
|
navigate_menu.add_action(go_first_action);
|
|
|
|
navigate_menu.add_action(go_back_action);
|
|
|
|
navigate_menu.add_action(go_forward_action);
|
|
|
|
navigate_menu.add_action(go_last_action);
|
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto& view_menu = menubar->add_menu("&View");
|
2021-05-16 11:01:29 +03:00
|
|
|
view_menu.add_action(full_screen_action);
|
2020-04-12 16:24:31 +03:00
|
|
|
view_menu.add_separator();
|
|
|
|
view_menu.add_action(zoom_in_action);
|
2021-05-15 21:35:52 +03:00
|
|
|
view_menu.add_action(reset_zoom_action);
|
2020-04-12 16:24:31 +03:00
|
|
|
view_menu.add_action(zoom_out_action);
|
2020-04-12 17:40:34 +03:00
|
|
|
view_menu.add_separator();
|
|
|
|
view_menu.add_action(hide_show_toolbar_action);
|
2020-04-12 16:24:31 +03:00
|
|
|
|
2021-04-10 15:58:35 +03:00
|
|
|
auto& help_menu = menubar->add_menu("&Help");
|
2021-03-12 17:34:36 +03:00
|
|
|
help_menu.add_action(GUI::CommonActions::make_help_action([](auto&) {
|
2021-05-14 19:34:44 +03:00
|
|
|
Desktop::Launcher::open(URL::create_with_file_protocol("/usr/share/man/man1/ImageViewer.md"), "/bin/Help");
|
2021-03-12 17:34:36 +03:00
|
|
|
}));
|
2021-05-14 19:34:44 +03:00
|
|
|
help_menu.add_action(GUI::CommonActions::make_about_action("Image Viewer", app_icon, window));
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2021-03-25 23:41:39 +03:00
|
|
|
window->set_menubar(move(menubar));
|
2020-04-05 21:25:14 +03:00
|
|
|
|
2020-04-12 16:24:13 +03:00
|
|
|
if (path != nullptr) {
|
|
|
|
widget.load_from_file(path);
|
2021-05-16 11:01:29 +03:00
|
|
|
} else {
|
|
|
|
widget.clear();
|
2020-04-12 16:24:13 +03:00
|
|
|
}
|
|
|
|
|
2019-03-21 05:57:42 +03:00
|
|
|
window->show();
|
|
|
|
|
2020-07-04 15:05:19 +03:00
|
|
|
return app->exec();
|
2019-03-21 05:57:42 +03:00
|
|
|
}
|