diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-03 17:11:32 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-10-03 17:11:32 +0200 |
commit | f8740b3195bdff33d11d4cd23cdd791aec175c5c (patch) | |
tree | a0bc34dc84d539d45f3c92372a33252af678c95a /plugingui/filebrowser.cc | |
parent | 13226c21a99d70dacd26aee69f3982ee72ff431a (diff) |
Refactored Directory.
Diffstat (limited to 'plugingui/filebrowser.cc')
-rw-r--r-- | plugingui/filebrowser.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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; |