Solve issue 856: manolo's parameter names
This commit is contained in:
parent
18ccbb4a4f
commit
2571f20111
@ -72,7 +72,7 @@ private:
|
||||
void update_favorites();
|
||||
void update_preview();
|
||||
public:
|
||||
Fl_File_Chooser(const char *d, const char *p, int t, const char *title);
|
||||
Fl_File_Chooser(const char *pathname, const char *pattern, int type_val, const char *title);
|
||||
private:
|
||||
Fl_Double_Window *window;
|
||||
inline void cb_window_i(Fl_Double_Window*, void*);
|
||||
|
@ -167,7 +167,7 @@ void Fl_File_Chooser::cb_favOkButton(Fl_Return_Button* o, void* v) {
|
||||
((Fl_File_Chooser*)(o->parent()->parent()->user_data()))->cb_favOkButton_i(o,v);
|
||||
}
|
||||
|
||||
Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char *title) {
|
||||
Fl_File_Chooser::Fl_File_Chooser(const char *pathname, const char *pattern, int type_val, const char *title) {
|
||||
if (!prefs_) {
|
||||
prefs_ = new Fl_Preferences(Fl_Preferences::CORE_USER, "fltk.org", "filechooser");
|
||||
}
|
||||
@ -315,11 +315,11 @@ Fl_File_Chooser::Fl_File_Chooser(const char *d, const char *p, int t, const char
|
||||
data_ = 0;
|
||||
directory_[0] = 0;
|
||||
window->size_range(window->w(), window->h(), Fl::w(), Fl::h());
|
||||
type(t);
|
||||
filter(p);
|
||||
type(type_val);
|
||||
filter(pattern);
|
||||
update_favorites();
|
||||
value(d);
|
||||
type(t);
|
||||
value(pathname);
|
||||
type(type_val);
|
||||
int e;
|
||||
prefs_->get("preview", e, 1);
|
||||
preview(e);
|
||||
|
@ -42,7 +42,7 @@ class FL_EXPORT Fl_File_Chooser {open
|
||||
};} {
|
||||
comment {\\enum Type
|
||||
Determines the type of file chooser presented to the user.
|
||||
} selected public local
|
||||
} public local
|
||||
}
|
||||
decl {static Fl_Preferences *prefs_;} {private local
|
||||
}
|
||||
@ -76,7 +76,7 @@ Determines the type of file chooser presented to the user.
|
||||
}
|
||||
decl {void update_preview();} {private local
|
||||
}
|
||||
Function {Fl_File_Chooser(const char *d, const char *p, int t, const char *title)} {open
|
||||
Function {Fl_File_Chooser(const char *pathname, const char *pattern, int type_val, const char *title)} {open selected
|
||||
} {
|
||||
code {if (!prefs_) {
|
||||
prefs_ = new Fl_Preferences(Fl_Preferences::CORE_USER, "fltk.org", "filechooser");
|
||||
@ -88,7 +88,7 @@ Determines the type of file chooser presented to the user.
|
||||
fileList->deselect();
|
||||
Fl::remove_timeout((Fl_Timeout_Handler)previewCB, this);
|
||||
window->hide();} open
|
||||
private xywh {1171 438 490 380} type Double hide resizable
|
||||
private xywh {0 0 490 380} type Double hide resizable
|
||||
code0 {if (title) window->label(title);} modal
|
||||
} {
|
||||
Fl_Group {} {open
|
||||
@ -194,7 +194,7 @@ window->hide();}
|
||||
}
|
||||
Fl_Window favWindow {
|
||||
label {Manage Favorites}
|
||||
private xywh {413 100 355 150} type Double hide resizable
|
||||
private xywh {0 0 355 150} type Double hide resizable
|
||||
code0 {favWindow->label(manage_favorites_label);} modal size_range {181 150 0 0}
|
||||
} {
|
||||
Fl_File_Browser favList {
|
||||
@ -245,11 +245,11 @@ window->hide();}
|
||||
data_ = 0;
|
||||
directory_[0] = 0;
|
||||
window->size_range(window->w(), window->h(), Fl::w(), Fl::h());
|
||||
type(t);
|
||||
filter(p);
|
||||
type(type_val);
|
||||
filter(pattern);
|
||||
update_favorites();
|
||||
value(d);
|
||||
type(t);
|
||||
value(pathname);
|
||||
type(type_val);
|
||||
int e;
|
||||
prefs_->get("preview", e, 1);
|
||||
preview(e);
|
||||
|
@ -148,7 +148,7 @@
|
||||
*/
|
||||
/** @} */
|
||||
|
||||
/** \fn Fl_File_Chooser::Fl_File_Chooser(const char *pathname, const char *pattern, int type, const char *title)
|
||||
/** \fn Fl_File_Chooser::Fl_File_Chooser(const char *pathname, const char *pattern, int type_val, const char *title)
|
||||
The constructor creates the Fl_File_Chooser dialog shown.
|
||||
|
||||
- The \p pathname argument can be a directory name or a
|
||||
@ -171,7 +171,7 @@
|
||||
See the FLTK documentation on fl_filename_match()
|
||||
for the kinds of pattern strings that are supported.
|
||||
|
||||
- The \p type argument can be one of the Fl_File_Chooser::Type values.
|
||||
- The \p type_val argument can be one of the Fl_File_Chooser::Type values.
|
||||
|
||||
- The \p title argument is used to set the title bar text for the
|
||||
Fl_File_Chooser window.
|
||||
|
Loading…
Reference in New Issue
Block a user