X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FcreaDevManagerLib%2FwxCDMApplicationHelpDialog.h;h=f9b41315243eee0586ce1a02e119843bd3cf8a14;hb=refs%2Fheads%2Fvtk7itk4wx3-mingw64;hp=084c18116b5b96de8b966c564d2d030db186788a;hpb=4e0312091408bc9bd77f3f70ade44d207365cdbe;p=crea.git diff --git a/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.h b/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.h index 084c181..f9b4131 100644 --- a/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.h +++ b/lib/creaDevManagerLib/wxCDMApplicationHelpDialog.h @@ -23,7 +23,7 @@ # The fact that you are presently reading this means that you have had # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ -*/ + */ /* @@ -43,10 +43,23 @@ #include +/** + * Application Panel Help Dialog + */ class wxCDMApplicationHelpDialog : public wxDialog { DECLARE_EVENT_TABLE() public: + /** + * Application Panel Help Dialog Constructor. + * @param parent Parent window. + * @param application Application class reference. + * @param id Dialog ID. By default wxID_ANY. + * @param caption Dialog label. By default "Working with Applications". + * @param position Dialog position. By default wxDefaultPosition. + * @param size Dialog size. By default 410, 670. + * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER. + */ wxCDMApplicationHelpDialog( wxWindow* parent, modelCDMApplication* application, @@ -56,7 +69,20 @@ public: const wxSize& size = wxSize(410,670), long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER ); + /** + * Destructor. + */ ~wxCDMApplicationHelpDialog(); + /** + * Application Panel Help Dialog Creator. + * @param parent Parent window. + * @param id Dialog ID. By default wxID_ANY. + * @param caption Dialog label. By default "Working with Applications". + * @param position Dialog position. By default wxDefaultPosition. + * @param size Dialog size. By default 410, 670. + * @param style Dialog style. By default wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER. + * @return if the creation was successful. + */ bool Create( wxWindow* parent, wxWindowID id = wxID_ANY, @@ -67,20 +93,46 @@ public: ); protected: + /** + * Creates the help controls (text and buttons). + */ void CreateControls(); private: + /** + * Application class reference. + */ modelCDMApplication* application; -//handlers + //handlers protected: + /** + * Handler to close help dialog. + * @param event Unused. + */ void OnFinish(wxCommandEvent& event); + /** + * Handler when a cmakelists button is pressed. + * @param event cmakelists event. + */ void OnCMakeLists(wxCommandEvent& event); + /** + * Handler when a cmakelists button is hovered. + * @param event cmakelists event. + */ void OnCMakeListsEnter(wxMouseEvent& event); + /** + * Handler when a cmakelists button hover finishes. + * @param event cmakelists event. + */ void OnCMakeListsExit(wxMouseEvent& event); + /** + * Handler when the disable help checkbox is changed. + * @param event check box event. + */ void OnDisableHelp(wxCommandEvent& event); };