| 1 | struct LibraryBrowser : VerticalLayout { |
| 2 | ListView folders; |
| 3 | HorizontalLayout informationLayout; |
| 4 | Label informationType; |
| 5 | Label information; |
| 6 | ComboButton mediaMode; |
| 7 | |
| 8 | LibraryBrowser(Emulator::Interface& emulator); |
| 9 | void onActivate(); |
| 10 | void onChange(); |
| 11 | void refresh(); |
| 12 | void setMode(); |
| 13 | |
| 14 | Emulator::Interface& emulator; |
| 15 | string pathname; |
| 16 | string type; |
| 17 | string typeMask; |
| 18 | string typeSuffix; |
| 19 | }; |
| 20 | |
| 21 | struct LibraryImport : VerticalLayout { |
| 22 | Label information; |
| 23 | Button importButton; |
| 24 | |
| 25 | LibraryImport(); |
| 26 | void onImportActivate(); |
| 27 | }; |
| 28 | |
| 29 | struct LibraryManager : Window { |
| 30 | VerticalLayout layout; |
| 31 | TabFrame libraryFrame; |
| 32 | vector<LibraryBrowser*> browsers; |
| 33 | LibraryImport libraryImport; |
| 34 | HorizontalLayout informationLayout; |
| 35 | Label information; |
| 36 | Button skipButton; |
| 37 | Button loadButton; |
| 38 | |
| 39 | LibraryManager(); |
| 40 | void bootstrap(); |
| 41 | string load(const string& type); |
| 42 | void onChange(); |
| 43 | void onLoad(); |
| 44 | void setInformation(bool load); |
| 45 | void show(); |
| 46 | void show(const string& type); |
| 47 | void synchronize(); |
| 48 | |
| 49 | lstring loaded; |
| 50 | string requestedLoadType; |
| 51 | bool slotLoad = false; |
| 52 | string loadPathname; |
| 53 | }; |
| 54 | |
| 55 | extern LibraryManager* libraryManager; |