summaryrefslogtreecommitdiff
path: root/plugingui/filebrowser.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-04-16 20:50:30 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-04-16 20:52:53 +0200
commit41a34f74ed1cf16428533724c5eb6f381d813850 (patch)
treeab78fa6e0c67f4705ec0b3d664721b94cc235d56 /plugingui/filebrowser.cc
parent04321fa1f096c51a08f43363f4e7fb3de014a370 (diff)
Make FileBrowser a Dialog.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r--plugingui/filebrowser.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc
index 6ac9d3e..50e34c3 100644
--- a/plugingui/filebrowser.cc
+++ b/plugingui/filebrowser.cc
@@ -46,10 +46,11 @@
#include <direct.h>
#endif
-namespace GUI {
+namespace GUI
+{
-FileBrowser::FileBrowser(Widget *parent)
- : Widget(parent)
+FileBrowser::FileBrowser(Widget* parent)
+ : Dialog(parent, true)
, dir(Directory::cwd())
, lbl_path(this)
, lineedit(this)
@@ -78,10 +79,6 @@ FileBrowser::FileBrowser(Widget *parent)
changeDir();
}
-FileBrowser::~FileBrowser()
-{
-}
-
void FileBrowser::setPath(const std::string& path)
{
INFO(filebrowser, "Setting path to '%s'\n", path.c_str());
@@ -102,7 +99,7 @@ void FileBrowser::setPath(const std::string& path)
void FileBrowser::resize(std::size_t width, std::size_t height)
{
- Widget::resize(width, height);
+ Dialog::resize(width, height);
int offset = 0;
int brd = 5; // border