Skip to content

Commit

Permalink
Replaced ID_* references with ID.* as the former ones are obsolete.
Browse files Browse the repository at this point in the history
  • Loading branch information
pkulchenko committed Nov 19, 2017
1 parent 78aa7d0 commit 2ceee44
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions clippy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function PasteClip(i)
stack[kStackLimit] = nil
end

ide.frame:AddPendingEvent(wx.wxCommandEvent(wx.wxEVT_COMMAND_MENU_SELECTED, ID_PASTE))
ide.frame:AddPendingEvent(wx.wxCommandEvent(wx.wxEVT_COMMAND_MENU_SELECTED, ID.PASTE))
return true
end
return false
Expand Down Expand Up @@ -99,7 +99,7 @@ end

local function OnEditorAction( self, editor, event )
local eid = event:GetId()
if eid == ID_COPY or eid == ID_CUT then
if eid == ID.COPY or eid == ID.CUT then
-- call the original handler first to process Copy/Cut event
self.onEditorAction = nil
ide.frame:ProcessEvent(wx.wxCommandEvent(wx.wxEVT_COMMAND_MENU_SELECTED, eid))
Expand All @@ -125,7 +125,7 @@ return
description = "Enables a stack-based clipboard which saves the last 10 entries.",
author = "sclark39",
dependencies = "1.3",
version = 0.22,
version = 0.23,
onRegister = OnRegister,
onUnRegister = OnUnRegister,
onEditorAction = OnEditorAction,
Expand Down
4 changes: 2 additions & 2 deletions escapetoquit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ return {
name = "Quit on Escape",
description = "Exits application on Escape.",
author = "Paul Kulchenko",
version = 0.1,
version = 0.11,

onEditorKeyDown = function(self, editor, event)
if (event:GetKeyCode() == wx.WXK_ESCAPE
and event:GetModifiers() == wx.wxMOD_NONE) then
ide:GetMainFrame():AddPendingEvent(wx.wxCommandEvent(
wx.wxEVT_COMMAND_MENU_SELECTED, ID_EXIT))
wx.wxEVT_COMMAND_MENU_SELECTED, ID.EXIT))
end
end,
}
4 changes: 2 additions & 2 deletions openwithdefault.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ return {
name = "Open With Default",
description = "Opens file with Default Program when activated.",
author = "Paul Kulchenko",
version = 0.2,
version = 0.21,
dependencies = 1.0,

onFiletreeActivate = function(self, tree, event, item_id)
Expand All @@ -13,7 +13,7 @@ return {
local ft = wx.wxTheMimeTypesManager:GetFileTypeFromExtension('.'..ext)
if ft then
tree:SelectItem(item_id)
tree:AddPendingEvent(wx.wxCommandEvent(wx.wxEVT_COMMAND_MENU_SELECTED, ID_OPENEXTENSION))
tree:AddPendingEvent(wx.wxCommandEvent(wx.wxEVT_COMMAND_MENU_SELECTED, ID.OPENEXTENSION))
return false
end
end,
Expand Down
4 changes: 2 additions & 2 deletions projectsettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ return {
name = "Project settings",
description = "Adds project settings loaded on project switch.",
author = "Paul Kulchenko",
version = 0.2,
version = 0.21,
dependencies = "1.30",

onRegister = function(self)
local menu = ide:FindTopMenu("&Edit")
local prefs = menu:FindItem(ID_PREFERENCES):GetSubMenu()
local prefs = menu:FindItem(ID.PREFERENCES):GetSubMenu()
menuid = prefs:Append(id, "Settings: Project")

local config = self:GetConfig()
Expand Down

0 comments on commit 2ceee44

Please sign in to comment.