Na tej stronie

Core::IOptionsPage Class

class Core::IOptionsPage

Klasa `IOptionsPage` stanowi interfejs służący do udostępniania stron w oknie dialogowym „ Options ” (w systemie macOS nazywanym „ Preferences ”). Więcej...

Header: #include <coreplugin/dialogs/ioptionspage.h>

Funkcje publiczne

IOptionsPage(bool registerGlobally = true)
Utils::Id category() const
Utils::FilePath categoryIconPath() const
QString displayCategory() const
QString displayName() const
Utils::Id id() const

Statyczne elementy publiczne

const QList<Core::IOptionsPage *> allOptionsPages()
void registerCategory(Utils::Id id, const QString &displayName, const Utils::FilePath &iconPath)

Funkcje chronione

void setDisplayName(const QString &displayName)
void setId(Utils::Id id)

Szczegółowy opis

Dokumentacja funkcji składowych

[explicit] IOptionsPage::IOptionsPage(bool registerGlobally = true)

Tworzy stronę opcji i rejestruje ją w globalnej puli stron opcji, jeśli wartość parametru ` registerGlobally ` wynosi ` true`.

[static] const QList<Core::IOptionsPage *> IOptionsPage::allOptionsPages()

Zwraca listę wszystkich stron opcji.

Utils::Id IOptionsPage::category() const

Zwraca unikalny identyfikator kategorii, w której powinna zostać wyświetlona strona opcji. Identyfikator ten służy do sortowania listy po lewej stronie okna dialogowego „ Options ”.

Utils::FilePath IOptionsPage::categoryIconPath() const

Zwraca ścieżkę do ikony kategorii na stronie opcji. Ikona ta zostanie odczytana z tej ścieżki i wyświetlona na liście po lewej stronie okna dialogowego „ Options ”.

QString IOptionsPage::displayCategory() const

Zwraca przetłumaczoną nazwę kategorii ze strony opcji. Nazwa ta jest wyświetlana na liście po lewej stronie okna dialogowego „ Options ”.

QString IOptionsPage::displayName() const

Zwraca przetłumaczoną nazwę wyświetlaną strony opcji.

Zobacz także funkcję setDisplayName().

Utils::Id IOptionsPage::id() const

Zwraca unikalny identyfikator służący do odwołania się do strony opcji.

Zobacz także funkcję setId().

[static] void IOptionsPage::registerCategory(Utils::Id id, const QString &displayName, const Utils::FilePath &iconPath)

Rejestruje kategorię o identyfikatorze id, nazwie widocznej dla użytkownika displayName oraz ikonie określonej przez iconPath.

[protected] void IOptionsPage::setDisplayName(const QString &displayName)

Ustawia „ displayName ” jako nazwę wyświetlaną na stronie opcji.

Zobacz także: displayName().

[protected] void IOptionsPage::setId(Utils::Id id)

Ustawia opcję „ id ” na stronie opcji.

Zobacz także: id().

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.