16#include <QtCore/QString>
33class QxAppShellPrivate;
36class QxWorkspaceManager;
90 void addPage(
const QString &
id,
const QIcon &icon,
const QString &title, QWidget *page);
92 void insertPage(
int index,
const QString &
id,
const QIcon &icon,
const QString &title, QWidget *page);
97 void removePage(
const QString &
id);
99 int pageCount()
const;
101 int indexOfPage(
const QString &
id)
const;
103 QString pageId(
int index)
const;
105 QWidget *page(
const QString &
id)
const;
107 int currentPageIndex()
const;
108 QString currentPageId()
const;
109 QWidget *currentPage()
const;
120 addDock(
Qx::DockWidgetArea area,
const QString &
id,
const QString &title, QWidget *widget);
137 void setStatusMessage(
const QString &message);
138 QString statusMessage()
const;
147 void setBusy(
bool busy);
155 void setProgressRange(
int minimum,
int maximum);
156 int progressMinimum()
const;
157 int progressMaximum()
const;
169 void setProgress(
int value);
170 int progress()
const;
172 void clearProgress();
178 bool isProgressVisible()
const;
199 int timeoutMs = QxToast::DefaultTimeout);
213 QStringList workspaceNames()
const;
218 bool saveWorkspace(
const QString &
name);
230 bool applyWorkspace(
const QString &
name);
253 void restoreLayout();
256 bool autoSaveLayout()
const;
257 void setAutoSaveLayout(
bool on);
261 void setCurrentPage(
int index);
263 void setCurrentPage(
const QString &
id);
273 void closeEvent(QCloseEvent *event)
override;
The window skeleton of a ribbon application.
void currentPageChanged(int index, const QString &id)
Emitted when the page on screen changes, which also covers the case where another page was inserted o...
A vertical rail of exclusive, checkable entries.
The stack of toasts of one window.
One short message, shown over the window it belongs to and gone a few seconds later.
Level
What the message is about; it selects the icon and the accent colour.
The named layouts of one shell.
Thin wrapper around QSettings that keeps call sites free of the usual boilerplate: typed accessors wi...
The central dock window that maintains the complete docking system.
The thin surface a plugin programs against.
#define QX_APP_END_NAMESPACE
#define QX_DECLARE_PRIVATE(Class)
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_APP_BEGIN_NAMESPACE
#define QX_CORE_PREPEND_NAMESPACE(name)
#define QX_DOCK_END_NAMESPACE
#define QX_DOCK_BEGIN_NAMESPACE
#define QX_DOCK_PREPEND_NAMESPACE(name)