Core::Context Class
class Core::ContextKlasa Context implementira popis ID-ova konteksta. Više...
| Header: | #include <coreplugin/icontext.h> |
Javne vrste
Javne funkcije
| Context() | |
| Context(Utils::Id c1) | |
| Context(Utils::Id c1, Utils::Id c2) | |
| Context(Utils::Id c1, Utils::Id c2, Utils::Id c3) | |
| void | add(Utils::Id c) |
| void | add(const Core::Context &c) |
| Utils::Id | at(int i) const |
| Core::Context::const_iterator | begin() const |
| bool | contains(Utils::Id c) const |
| Core::Context::const_iterator | end() const |
| int | indexOf(Utils::Id c) const |
| bool | isEmpty() const |
| void | prepend(Utils::Id c) |
| void | removeAt(int i) |
| int | size() const |
Detaljan opis
Konteksti se koriste za registraciju akcija kod Core::ActionManager-a i pri stvaranju UI elemenata koji pružaju kontekst za akcije.
Pogledajte The Action Manager and Commands za pregled načina na koji se konteksti koriste.
Vidi također Core::IContext, Core::ActionManager i The Action Manager and Commands.
Dokumentacija o vrsti člana
[alias] Context::const_iterator
Context::const_iterator pruža konst interator u STL stilu za Context.
Dokumentacija članovskih funkcija
[constexpr noexcept] Context::Context()
Stvara listu konteksta koja predstavlja globalni kontekst.
[explicit] Context::Context(Utils::Id c1)
Stvara kontekstnu listu s jednim ID-om c1.
Context::Context(Utils::Id c1, Utils::Id c2)
Stvara kontekstnu listu s ID-ovima c1 i c2.
Context::Context(Utils::Id c1, Utils::Id c2, Utils::Id c3)
Stvara kontekstnu listu s ID-ovima c1, c2 i c3.
void Context::add(Utils::Id c)
Dodaje ID c na kraj popisa konteksta.
void Context::add(const Core::Context &c)
Dodaje listu konteksta c na kraj ove liste konteksta.
Utils::Id Context::at(int i) const
Vraća ID na indeksu i u kontekstnoj listi.
Core::Context::const_iterator Context::begin() const
Vraća STL-ov stil iteratora koji pokazuje na prvi ID u popisu konteksta.
bool Context::contains(Utils::Id c) const
Vraća istinitu vrijednost ako ova kontekstna lista sadrži ID c.
Core::Context::const_iterator Context::end() const
Vraća STL-ov tip iteratora koji pokazuje na zamišljeni element nakon posljednjeg ID-a u popisu konteksta.
int Context::indexOf(Utils::Id c) const
Vraća položaj indeksa ID-a c na popisu konteksta. Vraća -1 ako nije pronađen nijedan element.
bool Context::isEmpty() const
Vraća istinu ako je ovaj popis konteksta prazan i stoga je zadano konstruiran.
void Context::prepend(Utils::Id c)
Dodaje ID c kao prvi element na popis konteksta.
void Context::removeAt(int i)
Uklanja ID na indeksu i iz kontekstne liste.
int Context::size() const
Vraća broj ID-ova u popisu konteksta.
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.