2020-06-10 21:08:31 +08:00
|
|
|
%Import QtWidgets/QtWidgetsmod.sip
|
|
|
|
|
|
|
|
%If (Qt_5_0_0 -)
|
|
|
|
|
|
|
|
namespace ads
|
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Manages focus styling of dock widgets and handling of focus changes
|
|
|
|
*/
|
|
|
|
class CDockFocusController : QObject
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <DockFocusController.h>
|
|
|
|
%End
|
|
|
|
|
|
|
|
public:
|
|
|
|
CDockFocusController(ads::CDockManager* DockManager);
|
|
|
|
virtual ~CDockFocusController();
|
|
|
|
|
|
|
|
void notifyWidgetOrAreaRelocation(QWidget* RelocatedWidget);
|
|
|
|
void notifyFloatingWidgetDrop(ads::CFloatingDockContainer* FloatingWidget);
|
2020-10-02 01:14:48 +08:00
|
|
|
ads::CDockWidget* focusedDockWidget() const;
|
2021-08-26 19:51:09 +08:00
|
|
|
void setDockWidgetTabFocused(ads::CDockWidgetTab* Tab);
|
2023-03-21 13:04:19 +08:00
|
|
|
void clearDockWidgetFocus(ads::CDockWidget* dockWidget);
|
2020-06-10 21:08:31 +08:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setDockWidgetFocused(ads::CDockWidget* focusedNow);
|
|
|
|
|
|
|
|
}; // class DockFocusController
|
|
|
|
};
|
|
|
|
// namespace ads
|
|
|
|
|
|
|
|
%End
|