X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/da1ed74c85f53a75a193c7dcbd2013aa266a222c..4ee4c7b948e76377a6947d3ffbe5099870d0c3e9:/interface/wx/module.h diff --git a/interface/wx/module.h b/interface/wx/module.h index f8f1717c89..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() = 0; - - /** - Provide this function with appropriate initialization for your module. - If the function returns @false, wxWidgets will exit immediately. - */ - virtual bool OnInit() = 0; };