{"id":20697248,"url":"https://github.com/tsnsoft/codelite_wxwidgets_div2_demo","last_synced_at":"2025-04-22T20:46:07.508Z","repository":{"id":119296057,"uuid":"308280841","full_name":"tsnsoft/CodeLite_wxWidgets_Div2_demo","owner":"tsnsoft","description":"Пример работы с wxWidgets с обработкой ошибок на C++ в CodeLite (linux, debian)","archived":false,"fork":false,"pushed_at":"2020-11-09T16:58:11.000Z","size":2146,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-29T18:41:37.976Z","etag":null,"topics":["codelite","cpp","example","linux","wxwidgets"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tsnsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-29T09:38:23.000Z","updated_at":"2021-01-13T04:14:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"51a88ee3-e2c4-43c6-a7ab-efdad2ba1ecd","html_url":"https://github.com/tsnsoft/CodeLite_wxWidgets_Div2_demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCodeLite_wxWidgets_Div2_demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCodeLite_wxWidgets_Div2_demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCodeLite_wxWidgets_Div2_demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsnsoft%2FCodeLite_wxWidgets_Div2_demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsnsoft","download_url":"https://codeload.github.com/tsnsoft/CodeLite_wxWidgets_Div2_demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250322044,"owners_count":21411694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codelite","cpp","example","linux","wxwidgets"],"created_at":"2024-11-17T00:17:18.152Z","updated_at":"2025-04-22T20:46:07.503Z","avatar_url":"https://github.com/tsnsoft.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CodeLite_wxWidgets_Div2_demo\nПример работы с wxWidgets с обработкой ошибок на C++ в CodeLite (linux, debian)\n\n![srcreenshot](screenshot1.png)\n\n![srcreenshot](screenshot2.png)\n\n![srcreenshot](screenshot3.png)\n\n![srcreenshot](screenshot4.png)\n\n![srcreenshot](screenshot5.png)\n\n## main.h:\n```\nclass MainFrame : public MainFrameBase\n{\npublic:\n    MainFrame(wxWindow* parent);\n    virtual ~MainFrame();\n\nprotected:\n    // protected event handlers\n    virtual void OnCloseFrame(\n        wxCloseEvent\u0026 event); // Копируем сюда из gui.h те методы, которые хотим реально реализовать\n    virtual void myClick(wxCommandEvent\u0026 event); // иначе все обявленные методы в gui.h останутся \"пустыми\"\n};\n```\n\n## main.cpp или в любом своем файле *.cpp:\n\n```\n// ЭТО РЕАЛИЗАЦИЯ НАШЕГО МЕТОДА!\nvoid MainFrame::myClick(wxCommandEvent\u0026 event)\n{\n    try {\n\tdouble a, b, c;\n\tif(!m_textCtrl1-\u003eGetValue().ToDouble(\u0026a))\n\t    throw std::logic_error(\"error: a\");\n\tif(!m_textCtrl2-\u003eGetValue().ToDouble(\u0026b))\n\t    throw std::logic_error(\"error: b\");\n\tc = a / b;\n\tif(isnan(c) || isinf(c)) {\n\t    throw std::logic_error(\"error: 0/0 or x/0\");\n\t}\n\tm_staticText2-\u003eSetLabel(wxString::Format(\"%.5f\", c));\n    } catch(std::exception\u0026 e) {\n\tm_staticText2-\u003eSetLabel(\"???\");\n\twxMessageBox(e.what());\n    }\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcodelite_wxwidgets_div2_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsnsoft%2Fcodelite_wxwidgets_div2_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsnsoft%2Fcodelite_wxwidgets_div2_demo/lists"}