summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-02-01 18:05:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-01 18:05:18 +0100
commit7a8e610ddde160950839f3af9356d4c416b39396 (patch)
treeea3ba79c11677dd97fa6b5cb567f8ef5628c039a /plugingui/filebrowser.h
parent5ca1c40c92f074315bbdfe328c00484ff18146f2 (diff)
Add 'Set default path' button in filebrowser.
Diffstat (limited to 'plugingui/filebrowser.h')
-rw-r--r--plugingui/filebrowser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugingui/filebrowser.h b/plugingui/filebrowser.h
index ff8a7e8..7566391 100644
--- a/plugingui/filebrowser.h
+++ b/plugingui/filebrowser.h
@@ -50,6 +50,7 @@ public:
Notifier<const std::string&> fileSelectNotifier; // (const std::string& path)
Notifier<> fileSelectCancelNotifier;
+ Notifier<const std::string&> defaultPathChangedNotifier; // (const std::string& path)
// From Widget:
bool isFocusable() override { return true; }
@@ -66,6 +67,7 @@ public:
private:
void listSelectionChanged();
void selectButtonClicked();
+ void setDefaultPath();
void cancelButtonClicked();
void handleKeyEvent();
@@ -85,6 +87,7 @@ private:
ListBox listbox;
Button btn_sel;
+ Button btn_def;
Button btn_esc;
Image back;