X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba1d7a6cec8d9569ce2e380d4a39ddcd4450c9b5..b5fe7ca67bf3121959a0b5a59afd00c1708f2f03:/interface/wx/module.h diff --git a/interface/wx/module.h b/interface/wx/module.h index 4e72b4ec6f..a6a091e613 100644 --- a/interface/wx/module.h +++ b/interface/wx/module.h @@ -73,7 +73,7 @@ @endcode @library{wxbase} - @category{misc} + @category{appmanagement} */ class wxModule : public wxObject { @@ -88,6 +88,19 @@ public: */ virtual ~wxModule(); + /** + Provide this function with appropriate cleanup for your module. + */ + virtual void OnExit() = 0; + + /** + Provide this function with appropriate initialization for your module. + If the function returns @false, wxWidgets will exit immediately. + */ + virtual bool OnInit() = 0; + +protected: + /** Call this function from the constructor of the derived class. @@ -114,16 +127,5 @@ public: The class name of the dependent module. */ void AddDependency(const char* classname); - - /** - Provide this function with appropriate cleanup for your module. - */ - virtual void OnExit(); - - /** - Provide this function with appropriate initialization for your module. - If the function returns @false, wxWidgets will exit immediately. - */ - virtual bool OnInit(); };