/usr/include/wx-3.0/wx/wxPython/i_files/_filectrl.i is in python-wxgtk3.0-dev 3.0.2.0+dfsg-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | /////////////////////////////////////////////////////////////////////////////
// Name: _filectrl.i
// Purpose: SWIG interface for wxFileCtrl
//
// Author: Robin Dunn
//
// Created: 4-Nov-2008
// RCS-ID: $Id: $
// Copyright: (c) 2008 by Total Control Software
// Licence: wxWindows license
/////////////////////////////////////////////////////////////////////////////
// Not a %module
//---------------------------------------------------------------------------
%newgroup
MAKE_CONST_WXSTRING(FileCtrlNameStr);
enum
{
wxFC_OPEN,
wxFC_SAVE,
wxFC_MULTIPLE,
wxFC_NOSHOWHIDDEN,
wxFC_DEFAULT_STYLE
};
MustHaveApp(wxFileCtrl);
DocStr(wxFileCtrl,
"
", "
");
class wxFileCtrl : public wxWindow // wxControl on GTK, wxPanel on generic...
{
public:
%pythonAppend wxFileCtrl "self._setOORInfo(self)";
%pythonAppend wxFileCtrl() "";
wxFileCtrl(wxWindow *parent,
wxWindowID id=-1,
const wxString& defaultDirectory = wxEmptyString,
const wxString& defaultFilename = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
long style = wxFC_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxString& name = wxPyFileCtrlNameStr);
DocCtorStrName(
wxFileCtrl(),
"Precreate a wx.FileCtrl for 2-phase creation.", "",
PreFileCtrl);
bool Create(wxWindow *parent,
wxWindowID id=-1,
const wxString& defaultDirectory = wxEmptyString,
const wxString& defaultFilename = wxEmptyString,
const wxString& wildCard = wxFileSelectorDefaultWildcardStr,
long style = wxFC_DEFAULT_STYLE,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxString& name = wxPyFileCtrlNameStr);
virtual void SetWildcard( const wxString& wildCard );
virtual void SetFilterIndex( int filterindex );
virtual bool SetDirectory( const wxString& dir );
virtual bool SetFilename( const wxString& name );
virtual bool SetPath( const wxString& path );
virtual wxString GetFilename() const;
virtual wxString GetDirectory() const;
virtual wxString GetWildcard() const;
virtual wxString GetPath() const;
virtual int GetFilterIndex() const;
// virtual void GetPaths( wxArrayString& paths ) const;
// virtual void GetFilenames( wxArrayString& files ) const;
%extend {
wxArrayString GetPaths() {
wxArrayString rval;
self->GetPaths(rval);
return rval;
}
wxArrayString GetFilenames() {
wxArrayString rval;
self->GetFilenames(rval);
return rval;
}
}
virtual bool HasMultipleFileSelection() const;
virtual void ShowHidden(bool show);
%property(Filename, GetFilename, SetFilename);
%property(Directory, GetDirectory, SetDirectory);
%property(Wildcard, GetWildcard, SetWildcard);
%property(Path, GetPath, SetPath);
%property(FilterIndex, GetFilterIndex, SetFilterIndex);
%property(Paths, GetPaths);
%property(Filenames, GetFilenames);
};
class wxFileCtrlEvent : public wxCommandEvent
{
public:
wxFileCtrlEvent( wxEventType type, wxObject *evtObject, int id );
// no need for the copy constructor as the default one will be fine.
virtual wxEvent *Clone() const;
void SetFiles( const wxArrayString &files );
void SetDirectory( const wxString &directory );
void SetFilterIndex(int filterIndex);
wxArrayString GetFiles() const;
wxString GetDirectory() const;
int GetFilterIndex() const;
wxString GetFile() const;
%property(Files, GetFiles, SetFiles);
%property(Directory, GetDirectory, SetDirectory);
%property(FilterIndex, GetFilterIndex, SetFilterIndex);
};
%constant wxEventType wxEVT_FILECTRL_SELECTIONCHANGED;
%constant wxEventType wxEVT_FILECTRL_FILEACTIVATED;
%constant wxEventType wxEVT_FILECTRL_FOLDERCHANGED;
%constant wxEventType wxEVT_FILECTRL_FILTERCHANGED;
%pythoncode {
EVT_FILECTRL_SELECTIONCHANGED = wx.PyEventBinder( wxEVT_FILECTRL_SELECTIONCHANGED, 1)
EVT_FILECTRL_FILEACTIVATED = wx.PyEventBinder( wxEVT_FILECTRL_FILEACTIVATED, 1)
EVT_FILECTRL_FOLDERCHANGED = wx.PyEventBinder( wxEVT_FILECTRL_FOLDERCHANGED, 1)
EVT_FILECTRL_FILTERCHANGED = wx.PyEventBinder( wxEVT_FILECTRL_FILTERCHANGED, 1)
}
//---------------------------------------------------------------------------
|