17 #ifndef _ufilebox_hpp_ 18 #define _ufilebox_hpp_ 1 19 #include <ubit/ubox.hpp> 20 #include <ubit/uchoice.hpp> 69 const UStr& getPath()
const {
return *fpath;}
81 virtual void setName(
const UStr&);
86 virtual void showList(
bool);
87 virtual void showHiddenFiles(
bool);
92 void setAutoClose(
bool stat) {autoclose = stat;}
100 UBox *show_list, *show_hidden_files;
106 virtual void selectBehavior(
UEvent&,
UStr* pathname);
107 virtual void setDirImpl(
UStr*);
108 virtual void changeDirImpl(
UStr*);
Box container.
Definition: ubox.hpp:64
UFilebox(const UArgs &arglist=UArgs::none)
create a new file box (
Definition: ufilebox.cpp:39
Ubit Event class.
Definition: uevent.hpp:30
virtual void setDir(const UStr &)
note that setDir and setFilter reload the directory.
Definition: ufilebox.cpp:364
virtual void rescan()
rescans the directory and updates the display.
Definition: ufilebox.cpp:219
virtual void setFilter(const UStr &)
syntax: "C++ Files (*.cpp; *.hpp)" or "*.cc; *.hh" or "*.*"
Definition: ufilebox.cpp:375
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
UStr & path()
returns the full pathname: getDir()/getName().
Definition: ufilebox.hpp:70
Definition: uhardfont.hpp:31
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
const UStr & getDir() const
returns the directory of the file (without the file name).
Definition: ufilebox.hpp:63
Definition: ufilebox.hpp:49
Makes widgets (exclusively) selectable.
Definition: uchoice.hpp:153
const UStr & getFilter() const
returns the extension filter.
Definition: ufilebox.hpp:73
Ubit String.
Definition: ustr.hpp:72
const UStr & getName() const
returns the name of the file (without the directory).
Definition: ufilebox.hpp:66