Blame hig/pt_BR/selection-mode.page

Packit 1470ea
Packit 1470ea
<page xmlns="http://projectmallard.org/1.0/" type="topic" id="selection-mode" xml:lang="pt-BR">
Packit 1470ea
Packit 1470ea
  <info>
Packit 1470ea
    <link type="guide" xref="patterns#primary"/>
Packit 1470ea
    <desc>Pattern for selecting content items</desc>  
Packit 1470ea
    <credit type="author">
Packit 1470ea
      <name>Allan Day</name>
Packit 1470ea
      <email>aday@gnome.org</email>
Packit 1470ea
    </credit>
Packit 1470ea
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
Packit 1470ea
  
Packit 1470ea
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
Packit 1470ea
      <mal:name>Georges Neto</mal:name>
Packit 1470ea
      <mal:email>georges.stavracas@gmail.com</mal:email>
Packit 1470ea
      <mal:years>2014.</mal:years>
Packit 1470ea
    </mal:credit>
Packit 1470ea
  
Packit 1470ea
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
Packit 1470ea
      <mal:name>Rafael Fontenelle</mal:name>
Packit 1470ea
      <mal:email>rafaelff@gnome.org</mal:email>
Packit 1470ea
      <mal:years>2017</mal:years>
Packit 1470ea
    </mal:credit>
Packit 1470ea
  </info>
Packit 1470ea
Packit 1470ea
<title>Selection mode</title>
Packit 1470ea
Packit 1470ea
<media type="image" mime="image/svg" src="figures/patterns/selection-mode.svg"/>
Packit 1470ea
Packit 1470ea

Selection mode is a design pattern for allow actions to be performed on items of content. It is typically used in conjunction with lists and grids.

Packit 1470ea
Packit 1470ea

When selection mode is active, check boxes allow items to be selected, and an action bar is shown at the bottom of the view. This contains the various actions that can be performed on selected content items.

Packit 1470ea
Packit 1470ea
<section id="when-to-use">
Packit 1470ea
<title>Quando usar</title>
Packit 1470ea
Packit 1470ea

Selection mode is appropriate when:

Packit 1470ea
Packit 1470ea
<list>
Packit 1470ea
<item>

It is common to perform actions simultaneously on multiple content items.

</item>
Packit 1470ea
<item>

Multiple actions are available to be performed on content items.

</item>
Packit 1470ea
<item>

It is helpful for users to be able to perform actions on content items without opening them.

</item>
Packit 1470ea
</list>
Packit 1470ea
Packit 1470ea

If it is more typical for users to perform actions on single content items, you might want to consider another design pattern, such as a context menu. Likewise, if there is only one action that can be performed on content items, a variant of selection mode can be used (an overlaid button could allow the action to be performed on items directly, rather than requiring them to be selected first, for example).

Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
<section id="activating-selection-mode">
Packit 1470ea
<title>Activating selection mode</title>
Packit 1470ea
Packit 1470ea

The primary way of activating selection mode is through the selection mode button, which is located in the header bar and which is identified by a check mark icon. Selection mode can also be activated by rubber band selection, or by holding Ctrl or Shift and clicking/pressing content items.

Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
Packit 1470ea
<section id="action-bar">
Packit 1470ea
<title>The action bar</title>
Packit 1470ea
Packit 1470ea
<list>
Packit 1470ea
<item>

Controls in the action bar should be insensitive when no items have been selected. Sometimes actions may only be applied to multiple content items; in this case the relevant controls should only be sensitive when multiple items are selected.

</item>
Packit 1470ea
<item>

Controls in the action toolbar can have icons or text labels.

</item>
Packit 1470ea
<item>

Groups of actions can be distinguished by placing them at either end of the toolbar. Destructive actions, like delete, should be placed away from other controls.

</item>
Packit 1470ea
</list>
Packit 1470ea
Packit 1470ea
</section>
Packit 1470ea
</page>