|
| 1 | + |
| 2 | +/* |
| 3 | +
|
| 4 | + Goldleaf - Multipurpose homebrew tool for Nintendo Switch |
| 5 | + Copyright © 2018-2025 XorTroll |
| 6 | +
|
| 7 | + This program is free software: you can redistribute it and/or modify |
| 8 | + it under the terms of the GNU General Public License as published by |
| 9 | + the Free Software Foundation, either version 3 of the License, or |
| 10 | + (at your option) any later version. |
| 11 | +
|
| 12 | + This program is distributed in the hope that it will be useful, |
| 13 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | + GNU General Public License for more details. |
| 16 | +
|
| 17 | + You should have received a copy of the GNU General Public License |
| 18 | + along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 19 | +
|
| 20 | +*/ |
| 21 | + |
| 22 | +#pragma once |
| 23 | +#include <ui/ui_Includes.hpp> |
| 24 | + |
| 25 | +namespace ui { |
| 26 | + |
| 27 | + class RemotePcExploreLayout : public pu::ui::Layout { |
| 28 | + private: |
| 29 | + std::vector<std::string> names; |
| 30 | + std::vector<std::string> paths; |
| 31 | + pu::ui::elm::Menu::Ref paths_menu; |
| 32 | + std::vector<pu::ui::elm::MenuItem::Ref> path_items; |
| 33 | + |
| 34 | + void OnInput(const u64 keys_down, const u64 keys_up, const u64 keys_held, const pu::ui::TouchPoint touch_pos); |
| 35 | + |
| 36 | + void OnPathSelected(); |
| 37 | + void OnSelectFileSelected(); |
| 38 | + |
| 39 | + public: |
| 40 | + RemotePcExploreLayout(); |
| 41 | + PU_SMART_CTOR(RemotePcExploreLayout) |
| 42 | + |
| 43 | + Result Reload(); |
| 44 | + }; |
| 45 | + |
| 46 | +} |
0 commit comments