%pythoncode { __docfilter__ = wx.__DocFilter(globals()) }
-%include _webkit_rename.i
-
//---------------------------------------------------------------------------
// Put some wx default wxChar* values into wxStrings.
bool CanGetPageSource() { return false; }
wxString GetPageSource() { return wxEmptyString; }
void SetPageSource(wxString& source, const wxString& baseUrl = wxEmptyString) {}
+ wxString GetPageURL() { return wxEmptyString; }
+ wxString GetPageTitle() { return wxEmptyString; }
};
wxWEBKIT_STATE_TRANSFERRING = 0,
wxWEBKIT_STATE_STOP = 0,
wxWEBKIT_STATE_FAILED = 0,
+
+ wxEVT_WEBKIT_STATE_CHANGED = 0
};
class wxWebKitStateChangedEvent : public wxCommandEvent
wxWebKitStateChangedEvent( wxWindow* win = NULL )
{ wxPyRaiseNotImplemented(); }
- int GetState() { return 0 }
+ int GetState() { return 0; }
void SetState(const int state) {}
wxString GetURL() { return wxEmptyString; }
void SetURL(const wxString& url) {}
#endif
%}
-// Now define it for SWIG, usign either the real class or the dummy above.
+// Now define it for SWIG, using either the real class or the dummy above.
MustHaveApp(wxWebKitCtrl);
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxPyWebKitNameStr);
- %name(PreWebKitCtrl)wxWebKitCtrl();
+ %RenameCtor(PreWebKitCtrl, wxWebKitCtrl());
bool Create(wxWindow *parent,
bool CanGetPageSource();
wxString GetPageSource();
void SetPageSource(wxString& source, const wxString& baseUrl = wxPyEmptyString);
+ wxString GetPageURL();
+ wxString GetPageTitle();
+
+ %property(PageSource, GetPageSource, SetPageSource, doc="See `GetPageSource` and `SetPageSource`");
+ %property(PageTitle, GetPageTitle, doc="See `GetPageTitle`");
+ %property(PageURL, GetPageURL, doc="See `GetPageURL`");
};
void SetState(const int state);
wxString GetURL();
void SetURL(const wxString& url);
+
+ %property(State, GetState, SetState, doc="See `GetState` and `SetState`");
+ %property(URL, GetURL, SetURL, doc="See `GetURL` and `SetURL`");
};