diff options
author | hjk <qtc-committer@nokia.com> | 2009-01-26 15:27:04 +0100 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2009-01-26 15:27:04 +0100 |
commit | 64f2d9f3d61dceaea47b7e9ddfd710b5aebb28f9 (patch) | |
tree | 3a9715f00e654882e86a99ee2a71d7c683f81967 /src/plugins/coreplugin/rightpane.h | |
parent | a438a853f3082d4a0b1bf597709afd31207d8636 (diff) | |
download | qt-creator-64f2d9f3d61dceaea47b7e9ddfd710b5aebb28f9.tar.gz |
Fixes: coreplugin: small fixes
Details: comments & codestyle
Diffstat (limited to 'src/plugins/coreplugin/rightpane.h')
-rw-r--r-- | src/plugins/coreplugin/rightpane.h | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/plugins/coreplugin/rightpane.h b/src/plugins/coreplugin/rightpane.h index 776b9fdb2b..0eb0159be4 100644 --- a/src/plugins/coreplugin/rightpane.h +++ b/src/plugins/coreplugin/rightpane.h @@ -44,41 +44,51 @@ namespace Core { class IMode; class RightPaneWidget; -// TODO: The right pane works only for the help plugin atm. -// It can't cope with more than one plugin publishing objects they want in the right pane -// For that the API would need to be different. (Might be that instead of adding objects -// to the pool, there should be a method RightPaneWidget::setWidget(QWidget *w) -// Anyway if a second plugin wants to show something there, redesign this API +// TODO: The right pane works only for the help plugin atm. It can't cope +// with more than one plugin publishing objects they want in the right pane +// For that the API would need to be different. (Might be that instead of +// adding objects to the pool, there should be a method +// RightPaneWidget::setWidget(QWidget *w) Anyway if a second plugin wants to +// show something there, redesign this API + class CORE_EXPORT RightPanePlaceHolder : public QWidget { friend class Core::RightPaneWidget; Q_OBJECT + public: RightPanePlaceHolder(Core::IMode *mode, QWidget *parent = 0); ~RightPanePlaceHolder(); static RightPanePlaceHolder *current(); + private slots: void currentModeChanged(Core::IMode *); + private: void applyStoredSize(int width); Core::IMode *m_mode; static RightPanePlaceHolder* m_current; }; + class CORE_EXPORT BaseRightPaneWidget : public QObject { Q_OBJECT + public: BaseRightPaneWidget(QWidget *widget); ~BaseRightPaneWidget(); QWidget *widget() const; + private: QWidget *m_widget; }; + class CORE_EXPORT RightPaneWidget : public QWidget { Q_OBJECT + public: RightPaneWidget(); ~RightPaneWidget(); @@ -89,11 +99,13 @@ public: bool isShown(); void setShown(bool b); - static RightPaneWidget* instance(); + static RightPaneWidget *instance(); int storedWidth(); + protected: void resizeEvent(QResizeEvent *); + private slots: void objectAdded(QObject *obj); void aboutToRemoveObject(QObject *obj); |