mirror of https://github.com/bsnes-emu/bsnes.git
38 lines
755 B
C++
Executable File
38 lines
755 B
C++
Executable File
struct Browser : Window {
|
|
VerticalLayout layout;
|
|
HorizontalLayout pathLayout;
|
|
LineEdit pathEdit;
|
|
Button homeButton;
|
|
Button upButton;
|
|
ListView fileList;
|
|
HorizontalLayout controlLayout;
|
|
Label filterLabel;
|
|
Button openButton;
|
|
|
|
string select(const string& title, const string& extension);
|
|
void saveConfiguration();
|
|
void synchronize();
|
|
void bootstrap();
|
|
Browser();
|
|
|
|
private:
|
|
Configuration::Document config;
|
|
struct Folder {
|
|
string extension;
|
|
string path;
|
|
unsigned selection;
|
|
};
|
|
vector<Folder> folderList;
|
|
|
|
string outputFilename;
|
|
|
|
string extension;
|
|
string path;
|
|
lstring filenameList;
|
|
|
|
void setPath(const string& path, unsigned selection = 0);
|
|
void fileListActivate();
|
|
};
|
|
|
|
extern Browser* browser;
|