Das oder die Hauptfenster Ihrer Anwendung Allan Day aday@gnome.org Christian Kirbach christian.kirbach@gmail.com 2014 Mario Blättermann mario.blaettermann@gmail.com 2016 Primäre Fenster

Primary windows are the basic high-level container for your application user interface, and should present the core functionality of your application.

Anwendungsfälle

Jede Anwendung sollte mindestens ein primäres Fenster haben, das ihr zugeordnet ist.

Anwendungstypen

Es gibt zwei Hauptmodelle für primäre Fenster:

Anwendungen mit einer Instanz

Single instance applications have a single primary window. This model is common for messaging applications, such as email, chat, or contacts.

Anwendungen mit mehreren Instanzen

Multiple instance applications can have multiple primary windows. Typically, each primary window will be identical. Multi-instance applications are frequently viewers or editors, such as for documents or images.

Both single and multiple instance applications can allow multiple content items to be opened, either through the use of tabs or browser-style navigation. However, multiple windows do offer additional capabilities, which include:

Viewing several content items alongside each other.

Placing content on different workspaces.

Organizing sets of content into different windows (if using tabs).

Parent/child primary windows

Multiple instance applications typically have identical primary windows (in the case multiple web browser windows, for example). However, this is not always the case.

Primary windows can have a parent/child relationship. In this type of application, there is only ever one parent window. This typically contains an overview of content items which can be opened in the parent window, or in a separate child window. This allows multiple content items to be simultaneously open.

While child windows can only be opened through a parent window, they are not dependent on them in order to stay open: closing the parent window does not result in the closure of the application's child windows.

GNOME's Notes application is a good example of parent/child primary windows.

Allgemeine Richtlinien

Ein einzelnes primäres Fenster sollte stets angezeigt werden, wenn Ihre Anwendung gestartet ist.

If your application launcher is activated while your application is running, all its primary windows should be displayed.

Primäre Fenster sollten die Hauptfunktionen Ihrer Anwendung bereitstellen. Verlagern Sie keine grundlegende Funktionalität in Dialoge oder sekundäre Fenster.

Primäre Fenster sollten unabhängig sein. Das bedeutet, dass durch das Schließen eines primären Fensters nicht auch die Schließung eines anderen primären Fensters ausgelöst werden sollte.

Dialogfenster sollten stets von einem primären Fenster abhängig sein. Erläuterungen hierzu finden Sie auf der Seite zu Dialogen.

The guidelines on display compatibility are particularly relevant for primary windows: be careful to ensure that they follow the advice on minimum display sizes, display orientation, and half-screen snap.

Quit sollte alle primären Fenster schließen.

API-Referenz

GtkWindow

GtkApplicationWindow