mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 04:25:42 +08:00
refs #335, changed info areas, obtain actions for main menu
This commit is contained in:
committed by
Roland Winklmeier
parent
11521b2f47
commit
48741c218f
@@ -46,6 +46,11 @@ namespace BlackGui
|
||||
//! Own dockable widgets
|
||||
QList<const CDockWidgetInfoArea *> getDockWidgetInfoAreas() const;
|
||||
|
||||
//! Create a list of actions to select the info areas. This could be used in a menu
|
||||
//! or somewhere else.
|
||||
//! \param parent which will own the action (deletion)
|
||||
QList<QAction *> getInfoAreaSelectActions(QWidget *parent) const;
|
||||
|
||||
signals:
|
||||
//! Tab bar changed
|
||||
void tabBarCurrentChanged(int index);
|
||||
@@ -72,6 +77,15 @@ namespace BlackGui
|
||||
//! Select area
|
||||
void selectArea(int areaIndex);
|
||||
|
||||
//! Select area (sender is QAction)
|
||||
void selectAreaByAction();
|
||||
|
||||
//! Select next left tab
|
||||
void selectLeftTab();
|
||||
|
||||
//! Select next right tab
|
||||
void selectRightTab();
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
explicit CInfoArea(QWidget *parent = nullptr);
|
||||
@@ -82,6 +96,10 @@ namespace BlackGui
|
||||
//! \copydoc QWidget::paintEvent
|
||||
virtual void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
//! \copydoc QWidget::keyPressEvent
|
||||
//! \remarks nor fully sufficient, as the info area is hardly having focus
|
||||
virtual void keyPressEvent(QKeyEvent * event) override;
|
||||
|
||||
//! Preferred size when floating (size hint)
|
||||
virtual QSize getPreferredSizeWhenFloating(int areaIndex) const = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user