From f8740b3195bdff33d11d4cd23cdd791aec175c5c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 3 Oct 2015 17:11:32 +0200 Subject: Refactored Directory. --- plugingui/filebrowser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugingui/filebrowser.cc') diff --git a/plugingui/filebrowser.cc b/plugingui/filebrowser.cc index 5846ffe..790a4d3 100644 --- a/plugingui/filebrowser.cc +++ b/plugingui/filebrowser.cc @@ -71,7 +71,7 @@ static void changeDir(void *ptr) GUI::ListBox *lb = prv->listbox; GUI::LineEdit *le = prv->lineedit; std::string value = lb->selectedValue(); - Directory* dir = prv->dir; + GUI::Directory* dir = prv->dir; // if(!Directory::isDir(dir->path() + dir->seperator())) { // return; @@ -90,7 +90,7 @@ static void changeDir(void *ptr) } #endif - if(value.empty() && !dir->isDir() && Directory::exists(dir->path())) { + if(value.empty() && !dir->isDir() && GUI::Directory::exists(dir->path())) { DEBUG(filebrowser, "Selecting file '%s'\n", dir->path().c_str()); if(prv->filesel_handler) prv->filesel_handler(prv->ptr, dir->path().c_str()); return; @@ -127,7 +127,7 @@ static void changeDir(void *ptr) return; } - Directory::EntryList entries = dir->entryList(); + GUI::Directory::EntryList entries = dir->entryList(); if(entries.empty()) { dir->cdUp(); @@ -138,7 +138,7 @@ static void changeDir(void *ptr) dir->path().c_str()); le->setText(dir->path()); - for(Directory::EntryList::iterator it = entries.begin(); + for(GUI::Directory::EntryList::iterator it = entries.begin(); it != entries.end(); it++) { GUI::ListBoxBasic::Item item; std::string name = *it; -- cgit v1.2.3