Core::ModeManager Class
class Core::ModeManagerModeManager 클래스는 모드의 활성화와 모드 선택기 도구 모음의 동작을 관리합니다. 더 보기...
| Header: | #include <coreplugin/modemanager.h> |
| Inherits: | QObject |
신호
| void | currentModeChanged(Utils::Id mode, Utils::Id oldMode = {}) |
정적 공용 멤버
| void | activateMode(Utils::Id id) |
| void | addAction(QAction *action, int priority) |
| Core::IMode * | currentMode() |
| Utils::Id | currentModeId() |
| Core::ModeManager * | instance() |
상세 설명
모드는 ` IMode ` 클래스를 통해 구현됩니다. `ModeManager`를 사용하여 모드의 활성화를 강제하거나, 활성 모드가 변경되었을 때 알림을 받을 수 있습니다.
ModeManager는 또한 모드 선택기 툴바에 표시되는 동작을 관리합니다. 툴바에 동작을 추가하는 것은 매우 신중하게 수행해야 합니다.
멤버 함수 문서
[static] void ModeManager::activateMode(Utils::Id id)
ID가 id 인 모드를 현재 모드로 설정합니다.
currentMode(), currentModeId(), currentModeAboutToChange(), currentModeChanged()도 참조하십시오 .
[static] void ModeManager::addAction(QAction *action, int priority)
모드 선택기의 도구 모음에 ‘ action ’을 추가합니다. 작업은 ‘ priority ’ 순으로 내림차순으로 정렬됩니다. 이 기능은 아주 드물게만 사용하십시오.
[static] Core::IMode *ModeManager::currentMode()
현재 모드에 대한 포인터를 반환합니다.
activateMode() 및 currentModeId()도 참조하십시오 .
[signal] void ModeManager::currentModeChanged(Utils::Id mode, Utils::Id oldMode = {})
oldMode 에서 mode 로 전류 모드가 변경된 후 발생했습니다.
[static] Utils::Id ModeManager::currentModeId()
현재 모드의 ID를 반환합니다.
activateMode() 및 currentMode()도 참조하십시오 .
[static] Core::ModeManager *ModeManager::instance()
인스턴스에 대한 포인터를 반환합니다. 신호에 연결할 때만 사용하십시오.
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.