Skip to content
Permalink
Browse files

Refactoring

  • Loading branch information...
Kvaz1r committed Oct 5, 2019
1 parent 8a3ee69 commit dfc5d445e1dc59ac2124b5acf986e2ea36b21c36
@@ -168,13 +168,13 @@
<template name="evt_entry_OnSize">@#error wxSizeEvent does not propogate, so wxEVT_SIZE from $name can only be handled with Connect()</template>
<template name="evt_connect_OnSize">$name->Connect( wxEVT_SIZE, #handler, NULL, this );</template>

<!-- wxUpdateUIEvent -->
<template name="evt_entry_OnUpdateUI">EVT_UPDATE_UI( $id, #handler )</template>
<template name="evt_connect_OnUpdateUI">$name->Connect( wxEVT_UPDATE_UI, #handler, NULL, this );</template>

<!-- wxMoveEvent -->
<template name="evt_entry_OnMove">@#error wxMoveEvent does not propogate, so wxEVT_MOVE from $name can only be handled with Connect()</template>
<template name="evt_connect_OnMove">$name->Connect( wxEVT_MOVE, #handler, NULL, this );</template>

<!-- wxUpdateUIEvent -->
<template name="evt_entry_OnUpdateUI">EVT_UPDATE_UI( $id, #handler )</template>
<template name="evt_connect_OnUpdateUI">$name->Connect( wxEVT_UPDATE_UI, #handler, NULL, this );</template>
</templates>

<templates class="AUI">
@@ -149,11 +149,11 @@
<!-- wxSizeEvent -->
<template name="evt_connect_OnSize">#utbl$name:Connect( wx.wxEVT_SIZE, function(event)#nl --implements #handler#nl #skip #nl end )</template>

<!-- wxMoveEvent -->
<template name="evt_connect_OnMove">#utbl$name:Connect( wx.wxEVT_MOVE, function(event)#nl --implements #handler#nl #skip #nl end )</template>

<!-- wxUpdateUIEvent -->
<template name="evt_connect_OnUpdateUI">#utbl$name:Connect( wx.wxEVT_UPDATE_UI, function(event)#nl --implements #handler#nl #skip #nl end )</template>

<!-- wxSizeEvent -->
<template name="evt_connect_OnMove">#utbl$name:Connect( wx.wxEVT_MOVE, function(event)#nl --implements #handler#nl #skip #nl end )</template>
</templates>
<templates class="wxTreeCtrlBase">
<template name="evt_connect_OnTreeBeginDrag">#utbl$name:Connect( wx.wxEVT_COMMAND_TREE_BEGIN_DRAG, function(event)#nl --implements #handler#nl #skip #nl end )</template>
@@ -106,11 +106,11 @@
<!-- wxSizeEvent -->
<template name="evt_connect_OnSize">@$this->$name->Connect( wxEVT_SIZE, #handler );</template>

<!-- wxUpdateUIEvent -->
<template name="evt_connect_OnUpdateUI">@$this->$name->Connect( wxEVT_UPDATE_UI, #handler );</template>

<!-- wxMoveEvent -->
<template name="evt_connect_OnMove">@$this->$name->Connect( wxEVT_MOVE, #handler );</template>

<!-- wxUpdateUIEvent -->
<template name="evt_connect_OnUpdateUI">@$this->$name->Connect( wxEVT_UPDATE_UI, #handler );</template>
</templates>

<templates class="Validator">
@@ -108,11 +108,11 @@
<!-- wxSizeEvent -->
<template name="evt_connect_OnSize">self.$name.Bind( wx.EVT_SIZE, #handler )</template>

<!-- wxUpdateUIEvent -->
<template name="evt_connect_OnUpdateUI">self.$name.Bind( wx.EVT_UPDATE_UI, #handler )</template>

<!-- wxMoveEvent -->
<template name="evt_connect_OnMove">self.$name.Bind( wx.EVT_MOVE, #handler )</template>

<!-- wxUpdateUIEvent -->
<template name="evt_connect_OnUpdateUI">self.$name.Bind( wx.EVT_UPDATE_UI, #handler )</template>
</templates>

<templates class="Validator">
@@ -178,8 +178,8 @@
<event name="OnEraseBackground" class="wxEraseEvent" help="Process a wxEVT_ERASE_BACKGROUND event." />
<event name="OnPaint" class="wxPaintEvent" help="Process a wxEVT_PAINT event." />
<event name="OnSize" class="wxSizeEvent" help="Process a wxEVT_SIZE event." />
<event name="OnUpdateUI" class="wxUpdateUIEvent" help="Process a wxEVT_UPDATE_UI event." />
<event name="OnMove" class="wxMoveEvent" help="Process a wxEVT_MOVE event, which is generated when a window is moved. Not generated in wxGTK" />
<event name="OnUpdateUI" class="wxUpdateUIEvent" help="Process a wxEVT_UPDATE_UI event." />
</category>
</objectinfo>

0 comments on commit dfc5d44

Please sign in to comment.
You can’t perform that action at this time.