{"id":28908590,"url":"https://github.com/mattools/genericdialog","last_synced_at":"2025-10-25T22:07:32.260Z","repository":{"id":94537957,"uuid":"127263114","full_name":"mattools/GenericDialog","owner":"mattools","description":"A generic dialog for Matlab, mimicking ImageJ's functionalities","archived":false,"fork":false,"pushed_at":"2023-08-02T12:21:55.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-21T16:48:23.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"MATLAB","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattools.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-03-29T08:42:39.000Z","updated_at":"2023-07-26T08:38:04.000Z","dependencies_parsed_at":"2025-06-21T16:41:17.481Z","dependency_job_id":"d183e6a8-b75f-4526-8bc9-6190a46974c1","html_url":"https://github.com/mattools/GenericDialog","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mattools/GenericDialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FGenericDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FGenericDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FGenericDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FGenericDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattools","download_url":"https://codeload.github.com/mattools/GenericDialog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattools%2FGenericDialog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281026261,"owners_count":26431762,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-06-21T16:40:58.482Z","updated_at":"2025-10-25T22:07:32.252Z","avatar_url":"https://github.com/mattools.png","language":"MATLAB","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenericDialog\nA simple generic dialog for Matlab, to quickly prompt a set of parameters. \nThe design is based on the \"GenericDialog\" class from the ImageJ software, and mimics its functionalities.\n\nThe implementation is based on the [GUILayout Toolbox](https://fr.mathworks.com/matlabcentral/fileexchange/47982-gui-layout-toolbox),\nmaking the dialog easily resizable.\n\n## Example\n\n```matlab\n% create a new dialog, and populate it with some fields\n% each option is defined by a name, a default value, and optionnal settings\ngd = GenericDialog('Create Image');\naddTextField(gd, 'Name: ', 'New Image');\naddNumericField(gd, 'Width: ', 320, 0);\naddNumericField(gd, 'Height: ', 200, 0);\naddChoice(gd, 'Type: ', {'uint8', 'uint16', 'double'}, 'uint8');\naddCheckBox(gd, 'Display', true);\n    \n% display the dialog, and wait for user input\nshowDialog(gd);\n% check if ok or canceled was clicked\nif wasCanceled(gd)\n    return;\nend\n     \n% retrieve the user inputs\nname    = getNextString(gd);\nwidth   = getNextNumber(gd);\nheight  = getNextNumber(gd);\ntype    = getNextString(gd);\ndisplay = getNextBoolean(gd);\n     \n% Create a new image based on user inputs, and display it if requested\nimg = zeros([height width], type);\nif display\n    imshow(img);\n    title(name);\nend\n```\n\n![Sample dialog as created by \"GenericDialog\"](https://github.com/mattools/GenericDialog/blob/master/images/demo_GenericDialog_view.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattools%2Fgenericdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattools%2Fgenericdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattools%2Fgenericdialog/lists"}