{"id":22087443,"url":"https://github.com/iotagtk1/gladegenerator","last_synced_at":"2025-07-24T18:33:06.351Z","repository":{"id":40519388,"uuid":"371254912","full_name":"iotagtk1/gladeGenerator","owner":"iotagtk1","description":" This is a tool to support development with GTK+ Glade Interface Designer, which analyzes the contents of Glade files and automatically generates event handler syntax in C#.","archived":false,"fork":false,"pushed_at":"2023-05-06T03:47:57.000Z","size":5580,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-11-30T15:42:07.296Z","etag":null,"topics":["csharp","generator","glade","gtk","gtk3","linux"],"latest_commit_sha":null,"homepage":"","language":"C#","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/iotagtk1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-27T05:18:42.000Z","updated_at":"2024-03-12T06:34:15.000Z","dependencies_parsed_at":"2023-01-22T05:02:44.493Z","dependency_job_id":null,"html_url":"https://github.com/iotagtk1/gladeGenerator","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotagtk1%2FgladeGenerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotagtk1%2FgladeGenerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotagtk1%2FgladeGenerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iotagtk1%2FgladeGenerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iotagtk1","download_url":"https://codeload.github.com/iotagtk1/gladeGenerator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227470230,"owners_count":17778930,"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":["csharp","generator","glade","gtk","gtk3","linux"],"created_at":"2024-12-01T02:05:34.741Z","updated_at":"2024-12-01T02:05:35.874Z","avatar_url":"https://github.com/iotagtk1.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"[GUI Version](https://github.com/iotagtk1/GladeGeneratorGUI)\n\n### Description\nThis tool supports GUI development in GtkSharp, and automatically generates event handlers when events are added to the Glade tool's controls.\nWhat will be auto-generated\nVariable name of the control\nThe event handler of the control\n\n\n### Introduction\n\n### Environment\n.net6\n\nGtkSharp\n\nRider or Terminal or VisualSutdio Code\n\n\n### Rider Setting\nExploerPanel - right click - edit execution configuration - external tools\n\n![alt text](./readMe/1.png)\n\nSet up external tools. Set the arguments\n\n![alt text](./readMe/3.png)\n\nUncheck Run after file sync.\n\n![alt text](./readMe/5.png)\n\nexecution\nTopMenu - Tool - ExternalTool\n\nRight-click on the Exploer bar\nYou can run it from an external tool\n\n### Arguments Macro Required\n\nSet the path of the program\nYou must specify a macro\ncopy perst****\n\n``` Rider arguments macro require\n-projectName $FilePath$ -fileDir $FilePath$ -saveDir $SolutionDir$\n```\n****\n\nThe working directory can be empty.\n\n#### Description\n\nprojectName Used for the namespace of the exported program. Rider doesn't have a macro for namespaces, so we need to fill in ProjetctPath\nprojectPath　Required to get accurate namespace\nfileDir The file or folder selected in Rider's explorer.\nsaveDir The directory to be saved. The default setting is the project folder.\n\n### ConfigSetting.xml\n```\n\u003cSetting AddSaveFolder=\"\" isCodeHint =\"true\" codeHitFolder=\"codeHint\" /\u003e\n```\n\nisCodeHint    We will also export a sample of the code when we export it.\ncodeHitFolder Name of the folder with the code samples\n************\nCodeHint can be customized\n\n### GladFileClassMap.xml\nOverrides the name of the class to be written out\n\n```\n\u003cgladeFileMap\u003e\n  \u003cgladeFile targetFileName=\"\" reNameClassName=\"\" /\u003e\n\u003c/gladeFileMap\u003e\n```\ntargetFileName　Write the glade file name. Include extension\nreNameClassName　Write the class name to be rewritten\n\n#### NoImportGladeFileSetting.xml\nYou can prevent the specified grade file from being loaded.\n\n```\n\u003cNoImportGladeFile\u003e\n  \u003cgladFile targetFileName=\"\" /\u003e\n\u003c/NoImportGladeFile\u003e\n```\n#### template.txt\nThe contents of the exported class can be changed\n\n#### Automatic generation of declarations\nEvery time you add a control to the Glade file, a declaration statement is added\n\n![alt text](./readMe/6.png)\n\n````\nusing System;\nusing Gtk;\nUsing UI = Gtk.Builder.ObjectAttribute;\nnamespace testGtkApplication\n{\n    partial class MainWindow\n    {    \n\t    //[UI] private readonly Gtk.Window MainWindow = null;\n\t    [UI] private readonly Gtk.Box sdfsdfsd111 = null;\n\t    [UI] private readonly Gtk.Button _button1 = null;\t\t\n    }\n}\n````\n\n### Auto-generated content\n\n#### Automatic generation of event handlers\nEvery time you add a signal to the control, an event handler statement is added.\n\n```\nusing System;\nusing Gtk;\nUsing UI = Gtk.Builder.ObjectAttribute;\nnamespace testGtkApplication\n{\n    partial class MainWindow\n    {\n\t    private void on__button1_Clicked(object sender , EventArgs e){\n\t\t\t\n\t    }\t    \n    }\n}\n````\n\n````\npartial class MainWindow\n````\n\nAdd \"partial\" before \"class\" in the class file you want to use\n\n````\nUse the IntelliSense feature in the name field of the handler of the grade\n````\nEnter 'On' in the Name field of the grade handler. IntelliSense will work.\n\n### Use Rider for Free\n\nIf you are an open source developer, you can use all JetBrains products for free!\n\nhttps://www.jetbrains.com/community/opensource\n\n### Donation \n\nAny token on the Stellear network can be used.\nXLM etc\nThis will be used for software maintenance costs.\n\nGCZWMTY26CCFMIVCAMYZ5OOQXBAPN7VXDMQSHBZT3BFN5DFHQMXLEKEU\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiotagtk1%2Fgladegenerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiotagtk1%2Fgladegenerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiotagtk1%2Fgladegenerator/lists"}