コード例 #1
0
 protected function open_image_file_picker($img_path)
 {
     $img_path = empty($img_path) ? NULL : $this->interpreter_instance->get_image_path($img_path);
     $f_dialog = new FilePicker($this, $this->interpreter_instance->get_input_folder_path(), $img_path);
     if (wxID_OK != $f_dialog->ShowModal()) {
         return FALSE;
     }
     $sel_path = $f_dialog->GetValue();
     if (empty($sel_path)) {
         return FALSE;
     }
     return $sel_path;
 }