FreeCAD-Doc/localwiki/Customize_Toolbars-ru.html
2018-07-19 18:47:02 -05:00

181 lines
13 KiB
HTML

<html><head><title>Customize Toolbars/ru</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link type='text/css' href='wiki.css' rel='stylesheet'></head><body><h1>Customize Toolbars/ru</h1></div>
<div id="mw-content-text" lang="ru" dir="ltr" class="mw-content-ltr"><hr/><div class="mw-parser-output"><table class="fcinfobox wikitable ct" style="width: 230px; float: right; margin-left: 1em">
<tr>
<td class="ctTitle">
<h3><span class="mw-headline" id="Tutorial"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Base_ExampleCommandModel.png" class="image"><img alt="Base ExampleCommandModel.png" src="32px-Base_ExampleCommandModel.png" width="32" height="30" srcset="/wiki/images/thumb/9/93/Base_ExampleCommandModel.png/48px-Base_ExampleCommandModel.png 1.5x, /wiki/images/9/93/Base_ExampleCommandModel.png 2x" /></a> Tutorial</span></h3>
</td></tr>
<tr>
<th class="ctOdd">Topic
</th></tr>
<tr>
<td class="ctEven">SampleTopic
</td></tr>
<tr>
<th class="ctOdd">Level
</th></tr>
<tr>
<td class="ctEven">Beginner
</td></tr>
<tr>
<th class="ctOdd">Time to complete
</th></tr>
<tr>
<td class="ctEven">5 minutes
</td></tr>
<tr>
<th class="ctOdd">Author
</th></tr>
<tr>
<td class="ctEven"><a href="https://www.freecadweb.org/wiki/index.php?title=User:Mario52" title="User:Mario52">Mario52</a>
</td></tr>
<tr>
<th class="ctOdd">FreeCAD version
</th></tr>
<tr>
<td class="ctEven">All
</td></tr>
<tr>
<th class="ctOdd">Example File(s)
</th></tr>
<tr>
<td class="ctEven">None
</td></tr>
<tr>
<td class="ctToc"><br /><div id="toc" class="toc"><div class="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="#Tutorial"><span class="tocnumber">1</span> <span class="toctext">Tutorial</span></a></li>
<li class="toclevel-1 tocsection-1"><a href="#Synopsis"><span class="tocnumber">2</span> <span class="toctext">Synopsis</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Use"><span class="tocnumber">3</span> <span class="toctext">Use</span></a></li>
</ul>
</div>
</td></tr></table>
<p><br />
</p>
<h2><span class="mw-headline" id="Synopsis">Synopsis</span></h2>
<p>This tutorial shows you the customization of toolbars. Tools (inclusive Macro-tools) can used in different workbenches. In an example a Macro becomes a Macro-tool by creation of a <b>Menu text</b>, a <b>Tool tip</b> and an <b>Icon</b>. Afterwards this Macro-tool becomes part of an extra toolbar in a workbench.
</p>
<h2><span class="mw-headline" id="Use">Use</span></h2>
<p><u><b>1.</b> Find the Customize Menu</u>
</p>
<ul><li>Click <b>Main Menu → Tools → Customize</b>,</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_01.png" class="image" title="Customize"><img alt="Customize" src="640px-CustomizeToolBar_01.png" width="640" height="239" srcset="/wiki/images/thumb/f/f7/CustomizeToolBar_01.png/960px-CustomizeToolBar_01.png 1.5x, /wiki/images/f/f7/CustomizeToolBar_01.png 2x" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>or right click on any toolbar.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_02.png" class="image" title="Right mouse click"><img alt="Right mouse click" src="640px-CustomizeToolBar_02.png" width="640" height="470" srcset="/wiki/images/thumb/5/50/CustomizeToolBar_02.png/960px-CustomizeToolBar_02.png 1.5x, /wiki/images/5/50/CustomizeToolBar_02.png 2x" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>The Customize window appears.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_03.png" class="image" title="The Customize window appears"><img alt="The Customize window appears" src="CustomizeToolBar_03.png" width="640" height="455" /></a></div></div>
<div style="clear:both"></div>
<p><br />
<u><b>2.</b> Make a Macro to a Macro-Tool</u>
</p>
<ul><li>Select the "Macro" tab.</li></ul>
<ul><li>To add an icon for the provided macro click the Pixmap button (labelled <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">... </span>).</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_04.png" class="image" title="Select a toolbar"><img alt="Select a toolbar" src="CustomizeToolBar_04.png" width="640" height="453" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>Search for an appropriate icon from amongst FreeCAD's existing icons,</li></ul>
<div class="mw-collapsible mw-collapsed toccolours">
<p>&#160; &#160; &#160; [or add your own icon by clicking <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Add icons...</span>]. &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;(expand for an example)
</p>
<div class="mw-collapsible-content">
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_05.png" class="image" title="Add icon"><img alt="Add icon" src="CustomizeToolBar_05.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
&#160; &#160; &#160;[You will get a file selection window, select your custom image file (PNG format, 64x64 pixels)]
</p>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_06.png" class="image" title="Get a file"><img alt="Get a file" src="CustomizeToolBar_06.png" width="640" height="548" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
</div>
</div>
<ul><li> Select your icon and click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span>.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_07.png" class="image" title="Select your icon"><img alt="Select your icon" src="CustomizeToolBar_07.png" width="640" height="451" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li> The icon you selected is now displayed next to the Pixmap button labelled <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">...</span>.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_08.png" class="image" title="Your icon is displayed"><img alt="Your icon is displayed" src="CustomizeToolBar_08.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>Select the provided macro in line <b>Macro:'<i> and specify a </i></b><i>Menu text<b>: (which will appear as the text label in the menu); also fill in the </b>Tool Tip':</i> (which is the text that will appear when a mouse is over the button on the toolbar); further lines are optional.</li></ul>
<ul><li> Click the button <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Add</span>.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_09.png" class="image" title="Click the button"><img alt="Click the button" src="CustomizeToolBar_09.png" width="640" height="451" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>The button of the macro-tool is now created.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_10.png" class="image" title="Your button is created"><img alt="Your button is created" src="CustomizeToolBar_10.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
<u><b>3.</b> Create a toolbar outside the workbench <b>Macro</b> which contains the created <b>Macro-tool</b></u>
</p>
<ul><li> Select the <b>Toolbars</b> tab and choose the workbench (for which the toolbar is provided) in the drop down on the right (<b>Part</b> in this example).</li></ul>
<p>&#160; &#160; &#160;[Since version 0.15 there is a &#160;<span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;"><a href="https://www.freecadweb.org/wiki/index.php?title=File:Freecad.svg" class="image"><img alt="Freecad.svg" src="Freecad.svg" width="16" height="16" /></a> Global</span>&#160; toolbar. If this is selected, the provided toolbar will be in each workbench.]
</p>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_11.png" class="image" title="Toolbars tab"><img alt="Toolbars tab" src="CustomizeToolBar_11.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>In the dropdown on the left select <b>Macros</b>.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_12.png" class="image" title="Macros"><img alt="Macros" src="CustomizeToolBar_12.png" width="640" height="453" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>The macro-tool with its icon appears in the list.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_13.png" class="image" title="Your icon is listed"><img alt="Your icon is listed" src="CustomizeToolBar_13.png" width="640" height="453" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>Click the button <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">New...</span></li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_14.png" class="image" title="Click on &quot;New&quot;"><img alt="Click on &quot;New&quot;" src="CustomizeToolBar_14.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>In the window "New Toolbar" enter the name of the provided extra toolbar for the <b>Part</b> Workbench and click <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">OK</span></li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_15.png" class="image" title="Enter the name for your toolbar"><img alt="Enter the name for your toolbar" src="CustomizeToolBar_15.png" width="640" height="453" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>The toolbar is now created.</li></ul>
<ul><li>To add the creadet macro-tool to this toolbar, select it in the left window and then click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Button</span> with the arrow pointing right.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_16.png" class="image" title="Select your macro"><img alt="Select your macro" src="CustomizeToolBar_16.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li> You have created now a toolbar called "Camera" (with the Macro-tool <b>Camera</b> in it)</li></ul>
<ul><li>Click the <span style="background: #DDDDDD; border: 1px solid #888888; padding: 0px 5px 1px 5px;">Close</span> button.</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_17.png" class="image" title="Close"><img alt="Close" src="CustomizeToolBar_17.png" width="640" height="452" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<ul><li>Your new toolbar is now contained in the toolbars' right-click menu. Its Icons (in our example only the camera) are visible, if the toolbar is activated (blue checkmark).</li></ul>
<div class="center"><div class="floatnone"><a href="https://www.freecadweb.org/wiki/index.php?title=File:CustomizeToolBar_18.png" class="image" title="New Toolbar"><img alt="New Toolbar" src="640px-CustomizeToolBar_18.png" width="640" height="327" srcset="/wiki/images/thumb/a/af/CustomizeToolBar_18.png/960px-CustomizeToolBar_18.png 1.5x, /wiki/images/a/af/CustomizeToolBar_18.png 2x" /></a></div></div>
<div style="clear:both"></div>
<p><br />
</p>
<div style="clear:both"></div>
</div>
</div>
</div><div class="printfooter">
Online version: "<a dir="ltr" href="https://www.freecadweb.org/wiki/index.php?title=Customize_Toolbars/ru&amp;oldid=222577">http://www.freecadweb.org/wiki/index.php?title=Customize_Toolbars/ru&amp;oldid=222577</a>"</div>
<div id="catlinks" class="catlinks" data-mw="interface"></div><div class="visualClear"></div>
</div>
</div>
<div id="mw-navigation">
<h2>Navigation menu</h2>
</body></html>