2002-11-19 20:26:10 +03:00
|
|
|
// generated by Fast Light User Interface Designer (fluid) version 1.0102
|
2001-08-02 01:24:49 +04:00
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
#include "../FL/Fl_File_Chooser.H"
|
2001-08-02 01:24:49 +04:00
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
inline void Fl_File_Chooser::cb_window_i(Fl_Window*, void*) {
|
2002-05-01 12:28:59 +04:00
|
|
|
fileName->value(directory_);
|
2002-05-24 18:02:56 +04:00
|
|
|
fileList->deselect();
|
2002-06-07 19:06:32 +04:00
|
|
|
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
|
2001-08-02 20:17:04 +04:00
|
|
|
window->hide();
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::cb_window(Fl_Window* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->user_data()))->cb_window_i(o,v);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2002-06-07 19:06:32 +04:00
|
|
|
inline void Fl_File_Chooser::cb_showChoice_i(Fl_Choice*, void*) {
|
|
|
|
showChoiceCB();
|
2001-08-02 20:17:04 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
void Fl_File_Chooser::cb_showChoice(Fl_Choice* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_showChoice_i(o,v);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2002-06-07 19:06:32 +04:00
|
|
|
inline void Fl_File_Chooser::cb_favoritesButton_i(Fl_Menu_Button*, void*) {
|
|
|
|
favoritesButtonCB();
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
void Fl_File_Chooser::cb_favoritesButton(Fl_Menu_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favoritesButton_i(o,v);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
inline void Fl_File_Chooser::cb_newButton_i(Fl_Button*, void*) {
|
2001-08-02 01:24:49 +04:00
|
|
|
newdir();
|
|
|
|
}
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::cb_newButton(Fl_Button* o, void* v) {
|
2002-06-07 19:06:32 +04:00
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_newButton_i(o,v);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2002-06-07 19:06:32 +04:00
|
|
|
#include <FL/Fl_Bitmap.H>
|
2001-12-11 19:03:13 +03:00
|
|
|
static unsigned char idata_new[] =
|
2001-08-02 01:24:49 +04:00
|
|
|
"\0\0x\0\204\0\2\1\1\376\1\200""1\200""1\200\375\200\375\200""1\200""1\200\1\
|
|
|
|
\200\1\200\377\377\0\0";
|
2001-12-11 19:03:13 +03:00
|
|
|
static Fl_Bitmap image_new(idata_new, 16, 16);
|
2001-08-02 01:24:49 +04:00
|
|
|
|
2002-06-07 19:06:32 +04:00
|
|
|
inline void Fl_File_Chooser::cb__i(Fl_Tile*, void*) {
|
|
|
|
update_preview();
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
void Fl_File_Chooser::cb_(Fl_Tile* o, void* v) {
|
2001-09-29 18:38:59 +04:00
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb__i(o,v);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2002-04-19 00:37:29 +04:00
|
|
|
inline void Fl_File_Chooser::cb_fileList_i(Fl_File_Browser*, void*) {
|
|
|
|
fileListCB();
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_fileList(Fl_File_Browser* o, void* v) {
|
2002-06-07 19:06:32 +04:00
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_fileList_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_previewButton_i(Fl_Check_Button*, void*) {
|
|
|
|
preview(previewButton->value());
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_previewButton(Fl_Check_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_previewButton_i(o,v);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
|
|
|
|
2002-05-01 01:50:16 +04:00
|
|
|
inline void Fl_File_Chooser::cb_fileName_i(Fl_File_Input*, void*) {
|
2002-04-19 00:37:29 +04:00
|
|
|
fileNameCB();
|
|
|
|
}
|
2002-05-01 01:50:16 +04:00
|
|
|
void Fl_File_Chooser::cb_fileName(Fl_File_Input* o, void* v) {
|
2002-06-07 19:06:32 +04:00
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_fileName_i(o,v);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_okButton_i(Fl_Return_Button*, void*) {
|
|
|
|
// Do any callback that is registered...
|
|
|
|
if (callback_)
|
|
|
|
(*callback_)(this, data_);
|
|
|
|
|
|
|
|
window->hide();
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_okButton(Fl_Return_Button* o, void* v) {
|
2002-06-07 19:06:32 +04:00
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_okButton_i(o,v);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_Cancel_i(Fl_Button*, void*) {
|
2002-11-19 20:26:10 +03:00
|
|
|
fileName->value("");
|
2002-05-24 18:02:56 +04:00
|
|
|
fileList->deselect();
|
2002-06-07 19:06:32 +04:00
|
|
|
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
|
2002-04-19 00:37:29 +04:00
|
|
|
window->hide();
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_Cancel(Fl_Button* o, void* v) {
|
2002-06-07 19:06:32 +04:00
|
|
|
((Fl_File_Chooser*)(o->parent()->parent()->parent()->user_data()))->cb_Cancel_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_favList_i(Fl_File_Browser*, void*) {
|
|
|
|
favoritesCB(favList);
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_favList(Fl_File_Browser* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favList_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_favUpButton_i(Fl_Button*, void*) {
|
|
|
|
favoritesCB(favUpButton);
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_favUpButton(Fl_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favUpButton_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_favDeleteButton_i(Fl_Button*, void*) {
|
|
|
|
favoritesCB(favDeleteButton);
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_favDeleteButton(Fl_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favDeleteButton_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_favDownButton_i(Fl_Button*, void*) {
|
|
|
|
favoritesCB(favDownButton);
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_favDownButton(Fl_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favDownButton_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_favCancelButton_i(Fl_Button*, void*) {
|
|
|
|
favWindow->hide();
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_favCancelButton(Fl_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favCancelButton_i(o,v);
|
|
|
|
}
|
|
|
|
|
|
|
|
inline void Fl_File_Chooser::cb_favOkButton_i(Fl_Return_Button*, void*) {
|
|
|
|
favoritesCB(favOkButton);
|
|
|
|
}
|
|
|
|
void Fl_File_Chooser::cb_favOkButton(Fl_Return_Button* o, void* v) {
|
|
|
|
((Fl_File_Chooser*)(o->parent()->user_data()))->cb_favOkButton_i(o,v);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char *title) {
|
2001-08-02 20:17:04 +04:00
|
|
|
Fl_Window* w;
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Window* o = window = new Fl_Window(490, 380, "Choose File");
|
2001-08-02 20:17:04 +04:00
|
|
|
w = o;
|
2001-08-02 01:24:49 +04:00
|
|
|
o->callback((Fl_Callback*)cb_window, (void*)(this));
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(65, 10, 415, 25);
|
|
|
|
{ Fl_Choice* o = showChoice = new Fl_Choice(65, 10, 215, 25, "Show:");
|
|
|
|
o->down_box(FL_BORDER_BOX);
|
|
|
|
o->callback((Fl_Callback*)cb_showChoice);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
showChoice->label(show_label);
|
|
|
|
}
|
|
|
|
{ Fl_Menu_Button* o = favoritesButton = new Fl_Menu_Button(290, 10, 155, 25, "Favorites");
|
|
|
|
o->down_box(FL_BORDER_BOX);
|
|
|
|
o->callback((Fl_Callback*)cb_favoritesButton);
|
|
|
|
o->align(FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
|
|
|
|
favoritesButton->label(favorites_label);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = newButton = new Fl_Button(455, 10, 25, 25);
|
|
|
|
o->tooltip("Create a new directory.");
|
|
|
|
o->image(image_new);
|
|
|
|
o->labelsize(8);
|
|
|
|
o->callback((Fl_Callback*)cb_newButton);
|
|
|
|
}
|
|
|
|
o->end();
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Tile* o = new Fl_Tile(10, 45, 470, 225);
|
2001-09-29 10:40:06 +04:00
|
|
|
o->callback((Fl_Callback*)cb_);
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_File_Browser* o = fileList = new Fl_File_Browser(10, 45, 295, 225);
|
|
|
|
o->type(2);
|
|
|
|
o->callback((Fl_Callback*)cb_fileList);
|
|
|
|
w->hotspot(o);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = previewBox = new Fl_Box(305, 45, 175, 225, "?");
|
|
|
|
o->box(FL_DOWN_BOX);
|
|
|
|
o->labelsize(100);
|
|
|
|
o->align(FL_ALIGN_CLIP|FL_ALIGN_INSIDE);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
Fl_Group::current()->resizable(o);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Group* o = new Fl_Group(0, 275, 480, 95);
|
|
|
|
{ Fl_Group* o = new Fl_Group(10, 275, 470, 20);
|
2002-08-30 20:58:16 +04:00
|
|
|
{ Fl_Check_Button* o = previewButton = new Fl_Check_Button(10, 275, 170, 20, "Preview");
|
2002-06-07 19:06:32 +04:00
|
|
|
o->down_box(FL_DOWN_BOX);
|
|
|
|
o->value(1);
|
|
|
|
o->shortcut(0x80070);
|
|
|
|
o->callback((Fl_Callback*)cb_previewButton);
|
|
|
|
previewButton->label(preview_label);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = new Fl_Box(10, 275, 395, 20);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_File_Input* o = fileName = new Fl_File_Input(85, 300, 395, 35);
|
|
|
|
o->callback((Fl_Callback*)cb_fileName);
|
|
|
|
o->when(FL_WHEN_ENTER_KEY);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
fileName->when(FL_WHEN_CHANGED | FL_WHEN_ENTER_KEY_ALWAYS);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = new Fl_Box(0, 310, 85, 25, "Filename:");
|
|
|
|
o->align(FL_ALIGN_RIGHT|FL_ALIGN_INSIDE);
|
|
|
|
o->label(filename_label);
|
|
|
|
}
|
|
|
|
{ Fl_Group* o = new Fl_Group(10, 345, 470, 25);
|
|
|
|
{ Fl_Return_Button* o = okButton = new Fl_Return_Button(320, 345, 75, 25, "OK");
|
|
|
|
o->callback((Fl_Callback*)cb_okButton);
|
|
|
|
okButton->label(fl_ok);
|
|
|
|
}
|
|
|
|
{ Fl_Button* o = new Fl_Button(405, 345, 75, 25, "Cancel");
|
|
|
|
o->callback((Fl_Callback*)cb_Cancel);
|
|
|
|
o->label(fl_cancel);
|
|
|
|
}
|
|
|
|
{ Fl_Box* o = new Fl_Box(10, 345, 300, 25);
|
|
|
|
Fl_Group::current()->resizable(o);
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
if (title) window->label(title);
|
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
|
|
|
}
|
|
|
|
{ Fl_Window* o = favWindow = new Fl_Window(355, 150, "Manage Favorites");
|
|
|
|
w = o;
|
|
|
|
o->user_data((void*)(this));
|
|
|
|
{ Fl_File_Browser* o = favList = new Fl_File_Browser(10, 10, 300, 95);
|
2002-04-19 00:37:29 +04:00
|
|
|
o->type(2);
|
2002-06-07 19:06:32 +04:00
|
|
|
o->callback((Fl_Callback*)cb_favList);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Button* o = favUpButton = new Fl_Button(320, 10, 25, 25, "@8>");
|
|
|
|
o->callback((Fl_Callback*)cb_favUpButton);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Button* o = favDeleteButton = new Fl_Button(320, 45, 25, 25, "X");
|
|
|
|
o->labelfont(1);
|
|
|
|
o->callback((Fl_Callback*)cb_favDeleteButton);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Button* o = favDownButton = new Fl_Button(320, 80, 25, 25, "@2>");
|
|
|
|
o->callback((Fl_Callback*)cb_favDownButton);
|
2002-04-19 00:37:29 +04:00
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
{ Fl_Button* o = favCancelButton = new Fl_Button(270, 115, 75, 25, "Cancel");
|
|
|
|
o->callback((Fl_Callback*)cb_favCancelButton);
|
|
|
|
favCancelButton->label(fl_cancel);
|
|
|
|
}
|
|
|
|
{ Fl_Return_Button* o = favOkButton = new Fl_Return_Button(185, 115, 75, 25, "OK");
|
|
|
|
o->callback((Fl_Callback*)cb_favOkButton);
|
|
|
|
favOkButton->label(fl_ok);
|
|
|
|
}
|
|
|
|
favWindow->label(manage_favorites_label);
|
2001-08-02 01:24:49 +04:00
|
|
|
o->set_modal();
|
|
|
|
o->end();
|
|
|
|
}
|
2002-06-07 19:06:32 +04:00
|
|
|
callback_ = 0;
|
2001-08-04 16:21:34 +04:00
|
|
|
data_ = 0;
|
2002-08-30 22:19:31 +04:00
|
|
|
directory_[0] = 0;
|
|
|
|
window->size_range(window->w(), window->h(), Fl::w(), Fl::h());
|
|
|
|
type(t);
|
|
|
|
filter(p);
|
|
|
|
update_favorites();
|
|
|
|
value(d);
|
|
|
|
type(t);
|
|
|
|
int e;
|
|
|
|
prefs_.get("preview", e, 1);
|
|
|
|
preview(e);
|
2002-06-07 19:06:32 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
Fl_File_Chooser::~Fl_File_Chooser() {
|
|
|
|
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
|
|
|
|
delete window;
|
|
|
|
delete favWindow;
|
2001-08-04 16:21:34 +04:00
|
|
|
}
|
|
|
|
|
2002-06-07 19:06:32 +04:00
|
|
|
void Fl_File_Chooser::callback(void (*cb)(Fl_File_Chooser *, void *), void *d ) {
|
2001-08-04 16:21:34 +04:00
|
|
|
callback_ = cb;
|
|
|
|
data_ = d;
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::color(Fl_Color c) {
|
2001-08-02 01:24:49 +04:00
|
|
|
fileList->color(c);
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
Fl_Color Fl_File_Chooser::color() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (fileList->color());
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
char * Fl_File_Chooser::directory() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return directory_;
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
const char * Fl_File_Chooser::filter() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (fileList->filter());
|
|
|
|
}
|
|
|
|
|
2002-07-02 01:14:20 +04:00
|
|
|
int Fl_File_Chooser::filter_value() {
|
|
|
|
return showChoice->value();
|
|
|
|
}
|
|
|
|
|
|
|
|
void Fl_File_Chooser::filter_value(int f) {
|
|
|
|
showChoice->value(f);
|
|
|
|
showChoiceCB();
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::hide() {
|
2001-08-02 01:24:49 +04:00
|
|
|
window->hide();
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::iconsize(uchar s) {
|
2001-08-02 01:24:49 +04:00
|
|
|
fileList->iconsize(s);
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
uchar Fl_File_Chooser::iconsize() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (fileList->iconsize());
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::label(const char *l) {
|
2001-08-02 01:24:49 +04:00
|
|
|
window->label(l);
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
const char * Fl_File_Chooser::label() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (window->label());
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::show() {
|
2001-12-17 21:40:44 +03:00
|
|
|
window->hotspot(fileList);
|
|
|
|
window->show();
|
2002-05-01 16:41:21 +04:00
|
|
|
fileName->take_focus();
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-12-15 18:20:54 +03:00
|
|
|
int Fl_File_Chooser::shown() {
|
|
|
|
return window->shown();
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::textcolor(Fl_Color c) {
|
2001-08-02 01:24:49 +04:00
|
|
|
fileList->textcolor(c);
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
Fl_Color Fl_File_Chooser::textcolor() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (fileList->textcolor());
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::textfont(uchar f) {
|
2001-08-02 20:17:04 +04:00
|
|
|
fileList->textfont(f);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
uchar Fl_File_Chooser::textfont() {
|
2001-08-02 20:17:04 +04:00
|
|
|
return (fileList->textfont());
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::textsize(uchar s) {
|
2001-08-02 20:17:04 +04:00
|
|
|
fileList->textsize(s);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
uchar Fl_File_Chooser::textsize() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (fileList->textsize());
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
void Fl_File_Chooser::type(int t) {
|
2001-08-02 01:24:49 +04:00
|
|
|
type_ = t;
|
2001-09-29 18:38:59 +04:00
|
|
|
if (t & MULTI)
|
2001-08-02 01:24:49 +04:00
|
|
|
fileList->type(FL_MULTI_BROWSER);
|
|
|
|
else
|
|
|
|
fileList->type(FL_HOLD_BROWSER);
|
2001-09-29 18:38:59 +04:00
|
|
|
if (t & CREATE)
|
2001-08-02 01:24:49 +04:00
|
|
|
newButton->activate();
|
2002-10-03 19:46:30 +04:00
|
|
|
else
|
|
|
|
newButton->deactivate();
|
2001-09-29 18:38:59 +04:00
|
|
|
if (t & DIRECTORY)
|
|
|
|
fileList->filetype(Fl_File_Browser::DIRECTORIES);
|
|
|
|
else
|
|
|
|
fileList->filetype(Fl_File_Browser::FILES);
|
2001-08-02 01:24:49 +04:00
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
int Fl_File_Chooser::type() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return (type_);
|
|
|
|
}
|
|
|
|
|
2001-09-29 18:38:59 +04:00
|
|
|
int Fl_File_Chooser::visible() {
|
2001-08-02 01:24:49 +04:00
|
|
|
return window->visible();
|
|
|
|
}
|