19 #include <ubit/udoc.hpp> 32 static UStyle* createStyle();
37 const UStr& getName()
const {
return *pname;}
39 bool isDir()
const {
return is_dir;}
40 void setDir(
bool state) {is_dir = state;}
58 static UStyle* createStyle();
60 virtual int readDir(
const UStr& pathname,
bool remote_dir =
false);
68 virtual UStr& pathname() {
return *ppathname;}
69 virtual UStr& title() {
return *ptitle;}
70 virtual UListbox& icons() {
return *picons;}
72 virtual const UChoice& choice()
const;
74 virtual void addIcon(
class UIcon&);
75 virtual void removeIcon(
class UIcon&,
bool auto_delete=
true);
76 virtual void removeAllIcons(
bool auto_delete =
true);
78 virtual class UIcon* getSelectedIcon();
79 virtual class UIcon* getPreviousIcon();
80 virtual class UIcon* getNextIcon();
81 virtual class UIcon* getIcon(
int)
const;
83 virtual void selectIcon(
UIcon&);
84 virtual void selectIcon(
const UStr& name);
85 virtual void selectPreviousIcon();
86 virtual void selectNextIcon();
95 unsigned long filetime;
virtual int loadImage(const UStr &image_path)
load and shows the icon image, returns file loading status.
Definition: uicon.cpp:214
file finder.
Definition: ufinder.hpp:47
Makes the children of a widget (exclusively) selectable.
Definition: uchoice.hpp:30
Item Button widget (a kind of button that is used in UListbox(es)).
Definition: uinteractors.hpp:303
Icon box.
Definition: uicon.hpp:52
List widget: enforces a list layout and makes buttons (and items, checkboxes, etc) contained in this ...
Definition: ulistbox.hpp:117
Argument list (for passing arguments to constructor or add functions).
Definition: uargs.hpp:43
UIcon(const UStr &name="", UArgs content=UArgs::none)
creates a new icon.
Definition: uicon.cpp:180
Definition: uhardfont.hpp:31
static const UArgs none
the empty arglist.
Definition: uargs.hpp:45
Compiled Object Style.
Definition: ustyle.hpp:44
document box gadget.
Definition: uboxes.hpp:161
Ubit String.
Definition: ustr.hpp:72
UIcon (for UIconbox)
Definition: uicon.hpp:24