{"id":355,"date":"2022-01-07T18:30:34","date_gmt":"2022-01-07T21:30:34","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=355"},"modified":"2022-07-13T16:05:35","modified_gmt":"2022-07-13T19:05:35","slug":"usando-grupo-de-projetos","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/usando-grupo-de-projetos\/","title":{"rendered":"Using project group"},"content":{"rendered":"<p>By default Lazarus-IDE only opens one project at a time, and that&#039;s not always nice. In some environments it is convenient to have all projects in a group and edit\/compile whatever is most convenient. For example, opening all projects in a group, and compiling all of them in one move, instead of compiling one at a time.<\/p>\n\n\n\n<p>There is a personal recommendation, use the project manager only from version 2.2 onwards, I had some embarrassments in Lazarus 2.0.13 and I think the project manager is not cool in this version, but in Lazarus 2.2 it is working very well and replaces it with advantages the Project inspector.<\/p>\n\n\n\n<p>If you also think so then install the Project Manager following\u00a0<a href=\"https:\/\/gladiston.github.io\/hello_lazarus\/pacote_project_manager.html\">these instructions<\/a>\u00a0and then watch the video that visually summarizes what will be done:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Productivity with Lazarus IDE: Using Project Group\" width=\"580\" height=\"435\" src=\"https:\/\/www.youtube.com\/embed\/11PS7W3lNYk?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Once installed, go to&nbsp;<strong>Tools|Options|Environment|Project Grops<\/strong>&nbsp;and turn on options&nbsp;<strong>Open last group on start<\/strong>and also&nbsp;<strong>Compile and build compile target<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/productivity_project_group1.png\" alt=\"Configura\u00e7\u00e3o do Gerenciador de Projetos\"\/><\/figure>\n\n\n\n<p>then go to&nbsp;<strong>Project|New project group<\/strong>&nbsp;to create a new group or else&nbsp;<strong>Project|Open project group<\/strong>&nbsp;to open an existing group. You can dock it on a side panel if you want to make it permanent.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/productivity_project_group2.png\" alt=\"Gerenciador de Projetos docado na lateral\"\/><\/figure>\n\n\n\n<p>As much as I wanted to explain, the Project Group is not that different from the Project Inspector, the difference lies in being able to clean, compile (with its different Build Modes) instead of just one project, perform this operation in several projects.<\/p>\n\n\n\n<p>When tapping on the project group name, you will notice two options are enabled&nbsp;<strong>\u201cCompile\u201d<\/strong>&nbsp;and&nbsp;<strong>\u201cComplete clean\u201d<\/strong>:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/productivity_project_group3.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>These options will respectively allow you to compile all projects in the group or clean their compilation garbage.<\/p>\n\n\n\n<p>When compiling all the projects in the group, the project manager repeats the last build mode of the project, it does not give the option to change the Build mode for all projects and this is an option that differentiates it from&nbsp;<strong>Delphi Project Manager<\/strong>. If you need the Build mode to be modified you will have to go to&nbsp;<strong>Project|Project Options<\/strong>&nbsp;or a mouse click on the project and then choose&nbsp;<strong>Properties<\/strong>, both lead to the same place:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/productivity_project_group4.png\" alt=\"Propriedades do Projeto(Project Options)\"\/><\/figure>\n\n\n\n<p>The&nbsp;<strong>project group<\/strong>&nbsp;is a welcome option for programmers who have to change projects all the time. But for now, by not offering quick \u201cBuild mode\u201d switching for the group, its advantage is just this.<\/p>\n\n\n\n<p>If you are using Lazarus 2.2 or higher it is better to leave the&nbsp;<strong>project group<\/strong>&nbsp;instead of&nbsp;<strong>project inspector<\/strong>&nbsp;because at least here, it lists the files in a more coherent order, first the project file, then the datamodules and then the other files (not alphabetically):<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/productivity_project_group5.png\" alt=\"Lista de arquivos do projeto\"\/><\/figure>\n\n\n\n<p>I still don&#039;t understand if the way listed above was intentional or accidental, I hope it was intentional because it was a very good idea, but if it was accidental then I will correct this article later.<\/p>","protected":false},"excerpt":{"rendered":"<p>Por padr\u00e3o o Lazarus-IDE abre apenas um projeto por vez, e isso nem sempre \u00e9 bacana. Em alguns ambientes \u00e9 conveniente ter todos os projetos num grupo e editar\/compilar o que for mais conveniente. Por exemplo, abrir todos os projetos de um grupo, e compilar todos eles num \u00fanico movimento, ao inv\u00e9s de compilar um [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":159,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/template-full-width.php","meta":{"footnotes":""},"class_list":["post-355","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/355","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/comments?post=355"}],"version-history":[{"count":2,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/355\/revisions"}],"predecessor-version":[{"id":479,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/355\/revisions\/479"}],"up":[{"embeddable":true,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/159"}],"wp:attachment":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/media?parent=355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}