1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
/* File : Fl_File_Chooser.i */
//%module Fl_File_Chooser
%feature("docstring") ::Fl_File_Chooser
"""
The Fl_File_Chooser widget displays a standard file selection dialog that
supports various selection modes.
The Fl_File_Chooser class also exports several static values that may be used
to localize or customize the appearance of all file chooser dialogs:
Member Default value
add_favorites_label 'Add to Favorites'
all_files_label 'All Files (*)'
custom_filter_label 'Custom Filter'
existing_file_label 'Please choose an existing file!'
favorites_label 'Favorites'
filename_label 'Filename:'
filesystems_label 'My Computer' (WIN32)
'File Systems' (all others)
manage_favorites_label 'Manage Favorites'
new_directory_label 'New Directory?'
new_directory_tooltip 'Create a new directory.'
preview_label 'Preview'
save_label 'Save'
show_label 'Show:'
sort fl_numericsort
The sort member specifies the sort function that is used when loading the
contents of a directory.
""" ;
%{
#include "FL/Fl_File_Chooser.H"
%}
%include "macros.i"
//CHANGE_OWNERSHIP(Fl_File_Chooser)
%ignore Fl_File_Chooser::sort;
// this is not declared on all systems!
%ignore Fl_File_Chooser::rescan_keep_filename;
DEFINE_CALLBACK(Fl_File_Chooser)
%ignore Fl_File_Chooser::user_data(void *);
%ignore Fl_File_Chooser::user_data() const;
%include "FL/Fl_File_Chooser.H"
ADD_CALLBACK(Fl_File_Chooser)
ADD_USERDATA(Fl_File_Chooser)
%typemap(in) PyObject *PyFunc {
if (!PyCallable_Check($input)) {
PyErr_SetString(PyExc_TypeError, "Need a callable object!");
return NULL;
}
$1 = $input;
}
|