<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:uix="http://projectmallard.org/experimental/ui/" type="topic" id="primary-menus" xml:lang="de">

  <info>
    <link type="guide" xref="patterns#primary"/>
    <desc>The application's main menu, denoted by three stacked horizontal lines</desc>
    <credit type="author">
      <name>Allan Day</name>
      <email>aday@gnome.org</email>
    </credit>
    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Christian Kirbach</mal:name>
      <mal:email>christian.kirbach@gmail.com</mal:email>
      <mal:years>2014</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Mario Blättermann</mal:name>
      <mal:email>mario.blaettermann@gmail.com</mal:email>
      <mal:years>2016</mal:years>
    </mal:credit>
  </info>

<title>Primäre Menüs</title>

<media type="image" mime="image/svg" src="figures/patterns/primary-menu.svg"/>

<p>Primary menus are a standard design pattern that is found in most applications. They are labelled with the menu icon (named <code>menu-open</code>) and contain the top-level menu items for the application. This can include standard items like <gui>Preferences</gui>, <gui>Help</gui> and <gui>About Application</gui>, as well as other application-specific items.</p>


<section id="when-to-use">
<title>Anwendungsfälle</title>

<p>Most applications have primary menus, since they are the standard location for <gui>About Application</gui>, which every application is expected to have.</p>

</section>

<section id="guidance">
<title>Guidance</title>

<p>Primary menus are typically placed on the right side of the header bar. However, there are two variations on this rule:</p>

<list>
<item><p>If the application incorporates in-window navigation, with a top-level location and sub-pages, the primary menu should only be placed on the top level: sub-pages can include a <link xref="secondary-menu">secondary menu</link>, if a menu is required.</p></item>
<item><p>When used in combination with a <link xref="sidebar-lists">sidebar list</link>, the primary menu should be placed above the sidebar list on the right. If a menu is required for items shown in the content side of the window, a <link xref="secondary-menu">secondary menu</link> can be used.</p></item>
</list>

<p>Weitere Richtlinien:</p>

<list>
<item><p>Primary menus can contain items for both the current window or view, as well as the application as a whole. This differentiates them from <link xref="secondary-menus">secondary menus</link>, which only contain menu items that relate to a specific view or item.</p></item>
<item><p>Folgen Sie den <link xref="menus">Standard-Richtlinien für Menüs</link>, wenn Sie den Inhalt des primären Menüs und die anordung innerhalb dessen festlegen.</p></item>
<item><p>Ein primäres Menü ist von einem <link xref="popovers">Einblendmenü</link> umschlossen. Als solches kann ein primäres Menü verschiedene Bedienelemente enthalten, wie beispielsweise Knopfgruppen.</p></item>
</list>

</section>

<section id="standard-menu-items">
<title>Standard-Menüeinträge</title>

<p>The following are standard primary menu items, and should be placed in a group at the end of the menu:</p>

<table>
<tr>
<td><p><gui>Preferences</gui></p></td>
<td><p>Öffnet den Einstellungsdialog der Anwendung, sofern verfügbar.</p></td>
</tr>
<tr>
<td><p><gui>Keyboard Shortcuts</gui></p></td>
<td><p>Öffnet das Fenster mit den Tastenkombinationen der Anwendung, sofern verfügbar.</p></td>
</tr>
<tr>
<td><p><gui>Help</gui></p></td>
<td><p>Öffnet die Benutzerdokumentation in der Anwendung <app>Help</app>.</p></td>
</tr>
<tr>
<td><p><gui>About Application</gui></p></td>
<td><p>Öffnet den Infodialog zur Anwendung. Hier sollte der Anwendungsname enthalten sein, wie beispielsweise <gui>About Photos</gui> oder <gui>About Calculator</gui>. Jedes primäre Menü sollte einen solchen Eintrag enthalten.</p></td>
</tr>
</table>

<p>Primäre Menüs sollten keinen Schließen-Eintrag enthalten, der die Anwendung beendet, da Fenster bereits in der Kopfleiste selbst geschlossen werden können und es zweideutig sein kann, was ein Schließen-Eintrag bewirkt. Benutzer unterscheiden letztendlich nicht zwischen Beenden und Schließen und können so in die Irre geführt werden.</p>

</section>

<section id="api-reference">
<title>API-Referenz</title>

<list>
<item><p><link href="https://developer.gnome.org/gtk3/stable/GtkMenuButton.html">GtkMenuButton</link></p></item>
<item><p><link href="https://developer.gnome.org/gtk3/stable/GtkPopoverMenu.html">GtkPopoverMenu</link></p></item>
</list>

</section>

</page>
