mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2026-04-19 06:42:43 +00:00
removed scrolling due to bug + Fixed file source
This commit is contained in:
@@ -7,28 +7,35 @@
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#include <thread>
|
||||
#include <ShObjIdl.h>
|
||||
#endif
|
||||
|
||||
class FileSelect {
|
||||
public:
|
||||
FileSelect(std::string defaultPath, char* filter = "All\0*.*");
|
||||
void render(std::string id);
|
||||
FileSelect(std::string defaultPath);
|
||||
bool render(std::string id);
|
||||
void setPath(std::string path);
|
||||
bool pathIsValid();
|
||||
bool pathChanged();
|
||||
|
||||
std::string expandString(std::string input);
|
||||
|
||||
std::string path = "";
|
||||
|
||||
#ifdef _WIN32
|
||||
void setWindowsFilter(COMDLG_FILTERSPEC* filt, int n);
|
||||
#endif
|
||||
|
||||
private:
|
||||
#ifdef _WIN32
|
||||
void windowsWorker();
|
||||
std::thread workerThread;
|
||||
COMDLG_FILTERSPEC* filter = NULL;
|
||||
int filterCount = 0;
|
||||
#endif
|
||||
|
||||
char _filter[2048];
|
||||
bool pathValid = false;
|
||||
bool dialogOpen = false;
|
||||
char strPath[2048];
|
||||
bool _pathChanged = false;
|
||||
bool pathChanged = false;
|
||||
};
|
||||
Reference in New Issue
Block a user