new file picker, part 2
working stat
This commit is contained in:
parent
6aca12184f
commit
be3f7a9ec1
3 changed files with 78 additions and 23 deletions
|
|
@ -18,7 +18,9 @@
|
|||
*/
|
||||
|
||||
#include "../ta-utils.h"
|
||||
#include <stdint.h>
|
||||
#include <thread>
|
||||
#include "imgui.h"
|
||||
|
||||
class FurnaceFilePicker {
|
||||
enum FileType {
|
||||
|
|
@ -33,9 +35,13 @@ class FurnaceFilePicker {
|
|||
String path;
|
||||
String name;
|
||||
String ext;
|
||||
bool hasSize, hasTime;
|
||||
uint64_t size;
|
||||
struct tm time;
|
||||
FileType type;
|
||||
FileEntry():
|
||||
hasSize(false), hasTime(false),
|
||||
size(0), type(FP_TYPE_UNKNOWN) {}
|
||||
};
|
||||
std::vector<FileEntry*> entries;
|
||||
std::vector<FileEntry*> sortedEntries;
|
||||
|
|
@ -44,6 +50,7 @@ class FurnaceFilePicker {
|
|||
String windowName;
|
||||
String path;
|
||||
String failMessage;
|
||||
ImGuiListClipper listClipper;
|
||||
bool haveFiles, haveStat, stopReading, isOpen;
|
||||
|
||||
void clearAllFiles();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue