Rename hiro::Property to hiro::Attribute
Disable XChaCha20 CSPRNG on Android for now due to compilation issues
Add macOS IOKit joypad support [Sintendo]
This commit is contained in:
byuu
2019-09-17 03:37:03 +09:00
parent 1e626e75ef
commit 18d2ab6435
32 changed files with 511 additions and 146 deletions

View File

@@ -359,7 +359,7 @@ auto BrowserDialogWindow::run() -> BrowserDialog::Response {
window.setAlignment(state.relativeTo, state.alignment);
window.setDismissable();
window.setVisible();
fileName.setFocused();
fileName.setText(state.name).setFocused().doChange();
Application::processEvents();
view->resizeColumns();
window.setModal();
@@ -480,6 +480,11 @@ auto BrowserDialog::setFilters(const vector<string>& filters) -> type& {
return *this;
}
auto BrowserDialog::setName(const string& name) -> type& {
state.name = name;
return *this;
}
auto BrowserDialog::setOptions(const vector<string>& options) -> type& {
state.options = options;
return *this;

View File

@@ -17,6 +17,7 @@ struct BrowserDialog {
auto setAlignment(Alignment = Alignment::Center) -> type&;
auto setAlignment(sWindow relativeTo, Alignment = Alignment::Center) -> type&;
auto setFilters(const vector<string>& filters = {}) -> type&;
auto setName(const string& name = "") -> type&;
auto setOptions(const vector<string>& options = {}) -> type&;
auto setPath(const string& path = "") -> type&;
auto setTitle(const string& title = "") -> type&;
@@ -26,6 +27,7 @@ private:
string action;
Alignment alignment = Alignment::Center;
vector<string> filters = {"*"};
string name;
vector<string> options;
string path;
sWindow relativeTo;