| 365 | |
| 366 | |
| 367 | class ModalDialog : public olc::PGEX |
| 368 | { |
| 369 | public: |
| 370 | ModalDialog(); |
| 371 | |
| 372 | public: |
| 373 | void ShowFileOpen(const std::string& sPath); |
| 374 | |
| 375 | protected: |
| 376 | virtual bool OnBeforeUserUpdate(float& fElapsedTime) override; |
| 377 | |
| 378 | private: |
| 379 | bool m_bShowDialog = false; |
| 380 | |
| 381 | Manager m_manFileSelect; |
| 382 | ListBox* m_listVolumes = nullptr; |
| 383 | ListBox* m_listDirectory = nullptr; |
| 384 | ListBox* m_listFiles = nullptr; |
| 385 | |
| 386 | std::vector<std::string> m_vVolumes; |
| 387 | std::vector<std::string> m_vDirectory; |
| 388 | std::vector<std::string> m_vFiles; |
| 389 | std::filesystem::path m_path; |
| 390 | }; |
| 391 | } |
| 392 | |
| 393 |
nothing calls this directly
no outgoing calls
no test coverage detected