restore DialControl Modify handlers
removed by a352018c76
but we will
need them again soon
Change-Id: Ibeaa4aeeec3dc073592ecf7e8c53b8bb03e791b4
This commit is contained in:
@@ -81,6 +81,13 @@ public:
|
|||||||
|
|
||||||
/** Links the passed numeric edit field to the control (bi-directional). */
|
/** Links the passed numeric edit field to the control (bi-directional). */
|
||||||
void SetLinkedField( NumericField* pField );
|
void SetLinkedField( NumericField* pField );
|
||||||
|
/** Returns the linked numeric edit field, or 0. */
|
||||||
|
NumericField* GetLinkedField() const;
|
||||||
|
|
||||||
|
/** The passed handler is called whenever the totation value changes. */
|
||||||
|
void SetModifyHdl( const Link& rLink );
|
||||||
|
/** Returns the current modify handler. */
|
||||||
|
const Link& GetModifyHdl() const;
|
||||||
|
|
||||||
/** Save value for later comparison */
|
/** Save value for later comparison */
|
||||||
void SaveValue();
|
void SaveValue();
|
||||||
|
@@ -458,6 +458,21 @@ bool DialControl::IsValueModified()
|
|||||||
return mpImpl->mnInitialAngle != mpImpl->mnAngle;
|
return mpImpl->mnInitialAngle != mpImpl->mnAngle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NumericField* DialControl::GetLinkedField() const
|
||||||
|
{
|
||||||
|
return mpImpl->mpLinkField;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DialControl::SetModifyHdl( const Link& rLink )
|
||||||
|
{
|
||||||
|
mpImpl->maModifyHdl = rLink;
|
||||||
|
}
|
||||||
|
|
||||||
|
const Link& DialControl::GetModifyHdl() const
|
||||||
|
{
|
||||||
|
return mpImpl->maModifyHdl;
|
||||||
|
}
|
||||||
|
|
||||||
// private --------------------------------------------------------------------
|
// private --------------------------------------------------------------------
|
||||||
|
|
||||||
void DialControl::Init( const Size& rWinSize, const Font& rWinFont )
|
void DialControl::Init( const Size& rWinSize, const Font& rWinFont )
|
||||||
|
Reference in New Issue
Block a user