Perspective Class
(Utils::Perspective)Public Types
| enum | OperationType { SplitVertical, SplitHorizontal, AddToTab, Raise } |
Public Functions
| Perspective(const QString &id, const QString &name, const QString &parentPerspectiveId = QString(), const QString &settingId = QString()) | |
| ~Perspective() | |
| void | addToolBarAction(QAction *action) |
| void | addToolBarAction(OptionalAction *action) |
| void | addToolBarWidget(QWidget *widget) |
| void | addToolbarSeparator() |
| void | addWindow(QWidget *widget, OperationType op, QWidget *anchorWidget, bool visibleByDefault = true, Qt::DockWidgetArea area = Qt::BottomDockWidgetArea) |
| QWidget * | centralWidget() const |
| void | destroy() |
| QString | id() const |
| bool | isCurrent() const |
| QString | name() const |
| void | select() |
| void | setAboutToActivateCallback(const Callback &cb) |
| void | setCentralWidget(QWidget *centralWidget) |
| void | setEnabled(bool enabled) |
| void | setShouldPersistChecker(const ShouldPersistChecker &checker) |
| void | useSubPerspectiveSwitcher(QWidget *widget) |
Static Public Members
| Perspective * | findPerspective(const QString &perspectiveId) |
Member Function Documentation
Perspective::Perspective(const QString &id, const QString &name, const QString &parentPerspectiveId = QString(), const QString &settingId = QString())
Default constructs an instance of Perspective.
Perspective::~Perspective()
Destroys the instance of Perspective.
void Perspective::addToolBarAction(QAction *action)
void Perspective::addToolBarAction(OptionalAction *action)
void Perspective::addToolBarWidget(QWidget *widget)
void Perspective::addToolbarSeparator()
void Perspective::addWindow(QWidget *widget, OperationType op, QWidget *anchorWidget, bool visibleByDefault = true, Qt::DockWidgetArea area = Qt::BottomDockWidgetArea)
QWidget *Perspective::centralWidget() const
See also setCentralWidget().
void Perspective::destroy()
[static] Perspective *Perspective::findPerspective(const QString &perspectiveId)
QString Perspective::id() const
bool Perspective::isCurrent() const
QString Perspective::name() const
void Perspective::select()
void Perspective::setAboutToActivateCallback(const Callback &cb)
void Perspective::setCentralWidget(QWidget *centralWidget)
See also centralWidget().