Kaydet (Commit) 5652d862 authored tarafından Caolán McNamara's avatar Caolán McNamara

add a callback mechanism for post-expansion mode change

Change-Id: I9219706bcc54c846b846550d88fef1e29f7cb63a
üst 11b8aaf2
...@@ -525,12 +525,15 @@ public: ...@@ -525,12 +525,15 @@ public:
m_aDisclosureButton.Check(bExpanded); m_aDisclosureButton.Check(bExpanded);
} }
virtual void StateChanged(StateChangedType nType); virtual void StateChanged(StateChangedType nType);
void SetExpandedHdl( const Link& rLink ) { maExpandedHdl = rLink; }
const Link& GetExpandedHdl() const { return maExpandedHdl; }
protected: protected:
virtual Size calculateRequisition() const; virtual Size calculateRequisition() const;
virtual void setAllocation(const Size &rAllocation); virtual void setAllocation(const Size &rAllocation);
private: private:
bool m_bResizeTopLevel; bool m_bResizeTopLevel;
DisclosureButton m_aDisclosureButton; DisclosureButton m_aDisclosureButton;
Link maExpandedHdl;
DECL_DLLPRIVATE_LINK(ClickHdl, DisclosureButton* pBtn); DECL_DLLPRIVATE_LINK(ClickHdl, DisclosureButton* pBtn);
}; };
......
...@@ -1501,6 +1501,7 @@ IMPL_LINK( VclExpander, ClickHdl, DisclosureButton*, pBtn ) ...@@ -1501,6 +1501,7 @@ IMPL_LINK( VclExpander, ClickHdl, DisclosureButton*, pBtn )
if (pResizeDialog) if (pResizeDialog)
pResizeDialog->setOptimalLayoutSize(); pResizeDialog->setOptimalLayoutSize();
} }
maExpandedHdl.Call(this);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment