1. Fl_File_Chooser(const char *pathname, const char *pattern, int type, const char *title)
a. pathname 就是預設路徑。
b. pattern 就是過濾條件,如 PDF Files (*.pdf)\tPostScript Files (*.ps),中間請用 "\t" 分隔。
c. type 指的是選取條件。
d. title 指的是視窗的標題。
type 共有下列四種。
· SINGLE - 單選。allows the user to select a single, existing file.
· MULTI - 複選。allows the user to select one or more existing files.
· CREATE - 單選或建立新檔。allows the user to select a single, existing file or specify a new filename.
· DIRECTORY - 目錄。allows the user to select a single, existing directory.

2. void Fl_File_Chooser::preview(int e)// I - 1 = enable preview, 0 = disable preview
設定是否預覽,1 啟用,0 關閉。

==== 中文化 ====
1. Fl_File_Chooser2.cxx line 86
const char *Fl_File_Chooser::add_favorites_label = "Add to Favorites";
const char *Fl_File_Chooser::all_files_label = "All Files (*)";
const char *Fl_File_Chooser::custom_filter_label = "Custom Filter";
const char *Fl_File_Chooser::existing_file_label = "Please choose an existing file!";
const char *Fl_File_Chooser::favorites_label = "Favorites";
const char *Fl_File_Chooser::filename_label = "Filename:";
#ifdef WIN32
const char *Fl_File_Chooser::filesystems_label = "My Computer";
#else
const char *Fl_File_Chooser::filesystems_label = "File Systems";
#endif // WIN32
const char *Fl_File_Chooser::manage_favorites_label = "Manage Favorites";
const char *Fl_File_Chooser::new_directory_label = "New Directory?";
const char *Fl_File_Chooser::new_directory_tooltip = "Create a new directory.";
const char *Fl_File_Chooser::preview_label = "Preview";
const char *Fl_File_Chooser::save_label = "Save";
const char *Fl_File_Chooser::show_label = "Show:";
==>
const char *Fl_File_Chooser::add_favorites_label = "加入書籤";
const char *Fl_File_Chooser::all_files_label = "所有檔案 (*)";
const char *Fl_File_Chooser::custom_filter_label = "自訂檔案類型";
const char *Fl_File_Chooser::existing_file_label = "請選擇一個已存在的檔案!";
const char *Fl_File_Chooser::favorites_label = "書籤";
const char *Fl_File_Chooser::filename_label = "檔名:";
#ifdef WIN32
const char *Fl_File_Chooser::filesystems_label = "我的電腦";
#else
const char *Fl_File_Chooser::filesystems_label = "檔案系統";
#endif // WIN32
const char *Fl_File_Chooser::manage_favorites_label = "組織書籤";
const char *Fl_File_Chooser::new_directory_label = "新目錄?";
const char *Fl_File_Chooser::new_directory_tooltip = "建立一個新目錄.";
const char *Fl_File_Chooser::preview_label = "預覽";
const char *Fl_File_Chooser::save_label = "存檔";
const char *Fl_File_Chooser::show_label = "檔案類型:";



台南小新 發表在 痞客邦 PIXNET 留言(0) 人氣()