{"id":306,"date":"2022-01-07T18:16:43","date_gmt":"2022-01-07T21:16:43","guid":{"rendered":"https:\/\/gladiston.net.br\/?page_id=306"},"modified":"2022-07-13T16:05:16","modified_gmt":"2022-07-13T19:05:16","slug":"menu-de-ferramentasmenu-tools","status":"publish","type":"page","link":"https:\/\/gladiston.net.br\/en\/programacao\/lazarus-ide\/menu-de-ferramentasmenu-tools\/","title":{"rendered":"Tools Menu"},"content":{"rendered":"<p>The menu&nbsp;<strong>tools<\/strong>&nbsp;Lazarus as in Delphi allows us to add external tools so that we don&#039;t have to go to the file manager or system menu to call them. To add program go to&nbsp;<strong>Tools-&gt;Configure External Tools<\/strong>, then we have a window like this:<\/p>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/ide_tools1.png\" alt=\"Tools\" width=\"781\" height=\"574\"\/><\/figure>\n\n\n\n<p>The empty list is very useless, so let&#039;s add some tools, for example, DBeaver, which is a very interesting tool to scour and look for information in the database, click Add and proceed with the essential fields:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/ide_tools2.png\" alt=\"Tools\"\/><\/figure>\n\n\n\n<p>The information of&nbsp;<strong>\u201cProgram Filename\u201d<\/strong>&nbsp;and&nbsp;<strong>&quot;Parameters&quot;<\/strong>&nbsp;you take it from the shortcuts that call the installed programs. With more experience you will notice that the option&nbsp;<strong>Key<\/strong>&nbsp;further down it serves to inform a global shortcut key to call this program directly, for example,&nbsp;<strong>Ctrl+Shift+D<\/strong>&nbsp;to immediately call the DBEAver program without having to choose it from the menu. If you have to add the same program, but with different parameters, use the option of&nbsp;<strong>Clone<\/strong>&nbsp;on the button&nbsp;<strong>&quot;More&quot;<\/strong>.<\/p>\n\n\n\n<p>You can also include shortcuts to the pages on the internet that you consume the most like forums, arts, gitbub, \u2026 For example, many programmers use the site&nbsp;<a href=\"https:\/\/gladiston.github.io\/hello_lazarus\/romannurik.github.io\">romannurik.github.io<\/a>&nbsp;to get\/create icons to use in your programs and projects, the secret in this case is to use the browser shortcut and the parameter to indicate the website we want, see the example below:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/ide_tools3.png\" alt=\"atalhos para as p\u00e1ginas na internet\"\/><\/figure>\n\n\n\n<p>Do this for the most accessed pages on your programming platform, looking something like this:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gladiston.github.io\/hello_lazarus\/assets\/ide_tools4.png\" alt=\"atalhos para as p\u00e1ginas na internet\"\/><\/figure>\n\n\n\n<p>The example above was for the Windows platform, but the same technique works in a similar way for the Linux platform.<\/p>\n\n\n\n<p>Linux users generally know their platform, but here are some tips that are important to simplify finding programs using the terminal:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">whereis firefox<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><code>firefox: \/usr\/bin\/firefox \/usr\/lib64\/firefox \/etc\/firefox \/usr\/share\/man\/man1\/firefox.1.gz<\/code><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>whereis flamerobin<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>flamerobin: \/usr\/local\/bin\/flamerobin<\/code><\/pre>\n\n\n\n<p>But the&nbsp;<strong>whereis<\/strong>&nbsp;does not find programs installed via snap or flatpak, these program managers use their own mechanisms, for example, to find a program installed via&nbsp;<strong>flatpak<\/strong>&nbsp;using the &#039;flatpak list&#039; command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flatpak list|grep VLC<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>VLC org.videolan.VLC 3.0.16 stable system<\/code><\/pre>\n\n\n\n<p>or if the program is already running it will be even easier:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>flatpak ps<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>PID Instance Runtime Application<br>2790350712 2319 org.telegram.desktop org.freedesktop.Platform<\/code><\/pre>\n\n\n\n<p>So to run it, we just need its flatpak name and run it like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>flatpak run org.videolan.VLC<br>flatpak run org.telegram.desktop<\/code><\/code><\/pre>\n\n\n\n<p>Then you can create shortcuts using the way your system is used to working.<\/p>\n\n\n\n<p>In the Windows environment, I consider the following programs in the tools menu to be essential:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong><a href=\"https:\/\/dbeaver.io\/download\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"DBWeaver\">DBWeaver<\/a>:<\/strong>\u00a0D:\\Apps\\DBeaver\\dbeaver.exe -nl en<\/li><li><strong><a href=\"http:\/\/www.flamerobin.org\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"flameRobin\">flameRobin<\/a>:<\/strong>\u00a0\u201cD:\\Apps\\Flamerobin\\Flamerobin.exe\u201d<\/li><li><strong><a href=\"https:\/\/sourceforge.net\/projects\/lrsexplorer\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"LRS Explorer\">LRS Explorer<\/a>:<\/strong>\u00a0\u201cD:\\Apps\\LRS Explorer\\LRS_Explorer.exe\u201d<\/li><li><strong>Character&#039;s map:<\/strong>\u00a0%windir%\\system32\\charmap.exe<\/li><li><strong><a href=\"https:\/\/www.iconsdb.com\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"iconsdb\">iconsdb<\/a>:<\/strong>\u00a0\u201cC:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\u201d https:\/\/www.iconsdb.com\/<\/li><li><strong><a href=\"https:\/\/romannurik.github.io\/AndroidAssetStudio\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Android Asset Studio\">Android Asset Studio<\/a>:<\/strong>\u00a0\u201cC:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\u201d https:\/\/romannurik.github.io\/AndroidAssetStudio\/<\/li><li><strong><a href=\"https:\/\/thispersondoesnotexist.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"People Who Don&#039;t Exist\">People Who Don&#039;t Exist<\/a>:<\/strong>\u00a0\u201cC:\\Program Files\\Google\\Chrome\\Application\\chrome.exe\u201d https:\/\/thispersondoesnotexist.com\/<\/li><\/ol>\n\n\n\n<p>Consider using a hotkey for external programs or frequently used websites.<\/p>","protected":false},"excerpt":{"rendered":"<p>O menu&nbsp;Tools&nbsp;do Lazarus assim como no Delphi permite que acrescentemos ferramentas exteriores para que n\u00e3o precisemos ir at\u00e9 o gerenciador de arquivos ou menu do sistema para cham\u00e1-los. Para acrescentar programa vamos em&nbsp;Tools-&gt;Configure External Tools, da\u00ed ent\u00e3o temos uma janela assim: \u00c9 muito in\u00fatil a lista vazia ent\u00e3o vamos acrescentar algumas ferramentas, por exemplo, o [&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-306","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/306","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=306"}],"version-history":[{"count":6,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/306\/revisions"}],"predecessor-version":[{"id":1378,"href":"https:\/\/gladiston.net.br\/en\/wp-json\/wp\/v2\/pages\/306\/revisions\/1378"}],"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=306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}