summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-05-05 22:43:11 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-05-06 08:20:55 +0200
commitb515d1f36fdf8c242079da60eb4ecd5fd456583c (patch)
treef26dd6feb936ddec4799bed60d4966d46acff938 /include/vcl
parentf593be5bcde09965bb3478e00bcdedbc6bd5bc57 (diff)
Use various typed ToolBox::Set*Hdl Links
Change-Id: Iddfd36ae0de86fdd2d4febb2c05d1fe0c02801f0
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/toolbox.hxx19
1 files changed, 8 insertions, 11 deletions
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index f4f8e184f5c3..97623855095a 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -185,12 +185,12 @@ private:
PointerStyle meLastStyle;
WinBits mnWinStyle;
ToolBoxLayoutMode meLayoutMode;
- Link<> maClickHdl;
- Link<> maDoubleClickHdl;
+ Link<ToolBox *, void> maClickHdl;
+ Link<ToolBox *, void> maDoubleClickHdl;
Link<> maActivateHdl;
Link<> maDeactivateHdl;
Link<> maHighlightHdl;
- Link<> maSelectHdl;
+ Link<ToolBox *, void> maSelectHdl;
Link<> maCommandHandler;
Link<> maStateChangedHandler;
Link<> maDataChangedHandler;
@@ -495,20 +495,17 @@ public:
using DockingWindow::SetHelpId;
using DockingWindow::GetHelpId;
- void SetClickHdl( const Link<>& rLink ) { maClickHdl = rLink; }
- const Link<>& GetClickHdl() const { return maClickHdl; }
- void SetDoubleClickHdl( const Link<>& rLink ) { maDoubleClickHdl = rLink; }
- const Link<>& GetDoubleClickHdl() const { return maDoubleClickHdl; }
- void SetDropdownClickHdl( const Link<>& rLink );
- const Link<>& GetDropdownClickHdl() const;
+ void SetClickHdl( const Link<ToolBox *, void>& rLink ) { maClickHdl = rLink; }
+ void SetDoubleClickHdl( const Link<ToolBox *, void>& rLink ) { maDoubleClickHdl = rLink; }
+ void SetDropdownClickHdl( const Link<ToolBox *, void>& rLink );
void SetActivateHdl( const Link<>& rLink ) { maActivateHdl = rLink; }
const Link<>& GetActivateHdl() const { return maActivateHdl; }
void SetDeactivateHdl( const Link<>& rLink ) { maDeactivateHdl = rLink; }
const Link<>& GetDeactivateHdl() const { return maDeactivateHdl; }
void SetHighlightHdl( const Link<>& rLink ) { maHighlightHdl = rLink; }
const Link<>& GetHighlightHdl() const { return maHighlightHdl; }
- void SetSelectHdl( const Link<>& rLink ) { maSelectHdl = rLink; }
- const Link<>& GetSelectHdl() const { return maSelectHdl; }
+ void SetSelectHdl( const Link<ToolBox *, void>& rLink ) { maSelectHdl = rLink; }
+ const Link<ToolBox *, void>& GetSelectHdl() const { return maSelectHdl; }
void SetCommandHdl( const Link<>& aLink ) { maCommandHandler = aLink; }
const Link<>& GetCommandHdl() const { return maCommandHandler; }
void SetStateChangedHdl( const Link<>& aLink ) { maStateChangedHandler = aLink; }