Skip to content

Commit

Permalink
- Added Snippet Plugin to repository (by Frank Lichtner)
Browse files Browse the repository at this point in the history
git-svn-id: https://codelite.svn.sourceforge.net/svnroot/codelite/trunk@2082 9da81c78-c036-0410-9e1f-a2b0375e4b5a
  • Loading branch information
eranif committed Sep 6, 2008
1 parent 9a3b605 commit 89389fe
Show file tree
Hide file tree
Showing 25 changed files with 9,582 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CodeLite/CodeLite.project
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,6 @@
<File Name="tagscache.cpp"/>
<File Name="tagscache.h"/>
</VirtualDirectory>
<Dependencies Name="WinReleaseUnicode"/>
<Dependencies Name="WinDebugUnicode"/>
<Dependencies Name="WinReleaseUnicode"/>
</CodeLite_Project>
2 changes: 1 addition & 1 deletion Debugger/DebuggerGDB.project
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@
</Configuration>
</Settings>
<Dependencies/>
<Dependencies Name="WinReleaseUnicode"/>
<Dependencies Name="WinDebugUnicode"/>
<Dependencies Name="WinReleaseUnicode"/>
</CodeLite_Project>
2 changes: 1 addition & 1 deletion Interfaces/Interfaces.project
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
<File Name="plugin_version.h"/>
</VirtualDirectory>
<Dependencies/>
<Dependencies Name="Common"/>
<Settings Type="Static Library">
<Configuration Name="Common" CompilerType="gnu g++" DebuggerType="" Type="">
<General OutputFile="" IntermediateDirectory="./Debug" Command="" CommandArguments="" WorkingDirectory="./Debug" PauseExecWhenProcTerminates="yes"/>
Expand Down Expand Up @@ -66,4 +65,5 @@
</Configuration>
</Settings>
<Dependencies Name="Debug"/>
<Dependencies Name="Common"/>
</CodeLite_Project>
5 changes: 5 additions & 0 deletions LiteEditor.workspace
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<Project Name="Copyright" Path="Copyright/Copyright.project" Active="No"/>
<Project Name="UnitTestPP" Path="UnitTestCPP/UnitTestPP.project" Active="No"/>
<Project Name="ExternalTools" Path="ExternalTools/ExternalTools.project" Active="No"/>
<Project Name="snipwiz" Path="SnipWiz\snipwiz.project" Active="No"/>
<BuildMatrix>
<WorkspaceConfiguration Name="Release Unicode" Selected="no">
<Project Name="wxsqlite3" ConfigName="ReleaseUnicode"/>
Expand All @@ -43,6 +44,7 @@
<Project Name="Copyright" ConfigName="ReleaseUnicode"/>
<Project Name="CodeLite" ConfigName="ReleaseUnicode"/>
<Project Name="CodeFormatter" ConfigName="ReleaseUnicode"/>
<Project Name="snipwiz" ConfigName="DebugUnicode"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Debug Unicode" Selected="no">
<Project Name="wxsqlite3" ConfigName="DebugUnicode"/>
Expand All @@ -60,11 +62,13 @@
<Project Name="Copyright" ConfigName="DebugUnicode"/>
<Project Name="CodeLite" ConfigName="DebugUnicode"/>
<Project Name="CodeFormatter" ConfigName="DebugUnicode"/>
<Project Name="snipwiz" ConfigName="DebugUnicode"/>
</WorkspaceConfiguration>
<WorkspaceConfiguration Name="Win Release Unicode" Selected="yes">
<Project Name="wxsqlite3" ConfigName="WinReleaseUnicode"/>
<Project Name="wxscintilla" ConfigName="WinReleaseUnicode"/>
<Project Name="sqlite3" ConfigName="Common"/>
<Project Name="snipwiz" ConfigName="WinReleaseUnicode"/>
<Project Name="plugin_sdk" ConfigName="WinReleaseUnicode"/>
<Project Name="UnitTestPP" ConfigName="WinReleaseUnicode"/>
<Project Name="Subversion" ConfigName="WinReleaseUnicode"/>
Expand All @@ -82,6 +86,7 @@
<Project Name="wxsqlite3" ConfigName="WinDebugUnicode"/>
<Project Name="wxscintilla" ConfigName="WinDebugUnicode"/>
<Project Name="sqlite3" ConfigName="Common"/>
<Project Name="snipwiz" ConfigName="WinDebugUnicode"/>
<Project Name="plugin_sdk" ConfigName="WinDebugUnicode"/>
<Project Name="UnitTestPP" ConfigName="WinDebugUnicode"/>
<Project Name="Subversion" ConfigName="WinDebugUnicode"/>
Expand Down
2 changes: 2 additions & 0 deletions LiteEditor/LiteEditor.project
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ resources.cpp: resources.xrc
<Project Name="Copyright"/>
<Project Name="UnitTestPP"/>
<Project Name="ExternalTools"/>
<Project Name="snipwiz"/>
</Dependencies>
<Dependencies Name="WinReleaseUnicode">
<Project Name="wxscintilla"/>
Expand All @@ -552,5 +553,6 @@ resources.cpp: resources.xrc
<Project Name="Copyright"/>
<Project Name="UnitTestPP"/>
<Project Name="ExternalTools"/>
<Project Name="snipwiz"/>
</Dependencies>
</CodeLite_Project>
116 changes: 116 additions & 0 deletions SnipWiz/AboutHtml.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
const char snipwizhtml_txt[] ={
0x3C,0x48,0x54,0x4D,0x4C,0x3E,0x3C,0x42,0x4F,0x44,0x59,0x20,0x42,0x47,
0x43,0x4F,0x4C,0x4F,0x52,0x3D,0x22,0x23,0x46,0x46,0x46,0x46,0x45,0x36,
0x22,0x20,0x54,0x45,0x58,0x54,0x3D,0x22,0x23,0x30,0x30,0x30,0x30,0x30,
0x30,0x22,0x20,0x4C,0x49,0x4E,0x4B,0x3D,0x22,0x23,0x30,0x30,0x30,0x30,
0x46,0x46,0x22,0x20,0x56,0x4C,0x49,0x4E,0x4B,0x3D,0x22,0x23,0x34,0x30,
0x30,0x30,0x34,0x30,0x22,0x20,0x41,0x4C,0x49,0x4E,0x4B,0x3D,0x22,0x23,
0x46,0x46,0x30,0x30,0x30,0x30,0x22,0x20,0x54,0x4F,0x50,0x4D,0x41,0x52,
0x47,0x49,0x4E,0x3D,0x22,0x35,0x22,0x20,0x4C,0x45,0x46,0x54,0x4D,0x41,
0x52,0x47,0x49,0x4E,0x3D,0x22,0x35,0x22,0x3E,0x0D,0x0A,0x3C,0x46,0x4F,
0x4E,0x54,0x20,0x43,0x4F,0x4C,0x4F,0x52,0x3D,0x22,0x22,0x20,0x53,0x49,
0x5A,0x45,0x3D,0x22,0x32,0x22,0x20,0x46,0x41,0x43,0x45,0x3D,0x22,0x41,
0x72,0x69,0x61,0x6C,0x2C,0x20,0x4C,0x75,0x63,0x69,0x64,0x61,0x20,0x53,
0x61,0x6E,0x73,0x22,0x3E,0x0D,0x0A,0x3C,0x42,0x3E,0x53,0x6E,0x69,0x70,
0x57,0x69,0x7A,0x3C,0x2F,0x42,0x3E,0x20,0x69,0x73,0x20,0x61,0x20,0x6C,
0x69,0x74,0x74,0x6C,0x65,0x20,0x74,0x6F,0x6F,0x6C,0x20,0x74,0x6F,0x20,
0x6D,0x61,0x6B,0x65,0x20,0x70,0x72,0x6F,0x67,0x72,0x61,0x6D,0x6D,0x65,
0x72,0x73,0x20,0x6C,0x69,0x76,0x65,0x20,0x61,0x20,0x62,0x69,0x74,0x20,
0x65,0x61,0x73,0x69,0x65,0x72,0x2E,0x20,0x49,0x74,0x20,0x63,0x6F,0x6E,
0x73,0x69,0x73,0x74,0x73,0x20,0x6F,0x66,0x20,0x74,0x77,0x6F,0x20,0x70,
0x61,0x72,0x74,0x73,0x2C,0x20,0x74,0x68,0x65,0x20,0x27,0x3C,0x42,0x3E,
0x3C,0x49,0x3E,0x53,0x6E,0x69,0x70,0x70,0x65,0x74,0x20,0x57,0x69,0x7A,
0x61,0x72,0x64,0x3C,0x2F,0x49,0x3E,0x3C,0x2F,0x42,0x3E,0x27,0x20,0x61,
0x6E,0x64,0x20,0x74,0x68,0x65,0x20,0x27,0x3C,0x42,0x3E,0x3C,0x49,0x3E,
0x54,0x65,0x6D,0x70,0x6C,0x61,0x74,0x65,0x20,0x43,0x6C,0x61,0x73,0x73,
0x20,0x57,0x69,0x7A,0x61,0x72,0x64,0x3C,0x2F,0x49,0x3E,0x3C,0x2F,0x42,
0x3E,0x27,0x2E,0x3C,0x50,0x3E,0x0D,0x0A,0x0D,0x0A,0x3C,0x42,0x3E,0x53,
0x6E,0x69,0x70,0x70,0x65,0x74,0x20,0x57,0x69,0x7A,0x61,0x72,0x64,0x3A,
0x3C,0x2F,0x42,0x3E,0x3C,0x42,0x52,0x3E,0x0D,0x0A,0x59,0x6F,0x75,0x20,
0x63,0x61,0x6E,0x20,0x75,0x73,0x65,0x20,0x69,0x74,0x20,0x74,0x6F,0x20,
0x61,0x64,0x64,0x20,0x73,0x6F,0x6D,0x65,0x20,0x63,0x6F,0x64,0x65,0x20,
0x73,0x6E,0x69,0x70,0x70,0x65,0x74,0x73,0x20,0x6F,0x72,0x20,0x65,0x76,
0x65,0x6E,0x20,0x65,0x78,0x70,0x61,0x6E,0x64,0x20,0x74,0x68,0x65,0x6D,
0x20,0x74,0x6F,0x20,0x73,0x6F,0x6D,0x65,0x74,0x68,0x69,0x6E,0x67,0x20,
0x75,0x73,0x65,0x66,0x75,0x6C,0x6C,0x79,0x2E,0x3C,0x50,0x3E,0x0D,0x0A,
0x20,0x0D,0x0A,0x54,0x68,0x65,0x72,0x65,0x20,0x61,0x72,0x65,0x20,0x74,
0x77,0x6F,0x20,0x70,0x6C,0x61,0x63,0x65,0x68,0x6F,0x6C,0x64,0x65,0x72,
0x20,0x77,0x68,0x69,0x63,0x68,0x20,0x63,0x61,0x6E,0x20,0x62,0x65,0x20,
0x75,0x73,0x65,0x64,0x20,0x69,0x6E,0x20,0x74,0x68,0x65,0x20,0x73,0x6E,
0x69,0x70,0x70,0x65,0x74,0x73,0x2E,0x3C,0x42,0x52,0x3E,0x0D,0x0A,0x3C,
0x44,0x44,0x3E,0x3C,0x42,0x3E,0x40,0x3C,0x2F,0x42,0x3E,0x20,0x77,0x69,
0x6C,0x6C,0x20,0x62,0x65,0x20,0x72,0x65,0x70,0x6C,0x61,0x63,0x65,0x64,
0x20,0x62,0x79,0x20,0x74,0x68,0x65,0x20,0x73,0x65,0x6C,0x65,0x63,0x74,
0x69,0x6F,0x6E,0x2C,0x20,0x69,0x66,0x20,0x61,0x6E,0x79,0x2E,0x0D,0x0A,
0x3C,0x44,0x44,0x3E,0x3C,0x42,0x3E,0x24,0x3C,0x2F,0x42,0x3E,0x20,0x77,
0x69,0x6C,0x6C,0x20,0x73,0x65,0x74,0x20,0x74,0x68,0x65,0x20,0x70,0x6F,
0x73,0x69,0x74,0x69,0x6F,0x6E,0x20,0x77,0x68,0x65,0x72,0x65,0x20,0x74,
0x68,0x65,0x20,0x63,0x61,0x72,0x65,0x74,0x20,0x73,0x68,0x6F,0x75,0x6C,
0x64,0x20,0x62,0x65,0x20,0x61,0x66,0x74,0x65,0x72,0x20,0x74,0x68,0x65,
0x20,0x73,0x6E,0x69,0x70,0x70,0x65,0x74,0x20,0x68,0x61,0x73,0x20,0x62,
0x65,0x65,0x6E,0x20,0x69,0x6E,0x73,0x65,0x72,0x74,0x65,0x64,0x2E,0x3C,
0x50,0x3E,0x0D,0x0A,0x0D,0x0A,0x3C,0x44,0x44,0x3E,0x3C,0x55,0x3E,0x45,
0x78,0x61,0x6D,0x70,0x6C,0x65,0x3A,0x3C,0x2F,0x55,0x3E,0x0D,0x0A,0x3C,
0x44,0x44,0x3E,0x3C,0x43,0x4F,0x44,0x45,0x3E,0x66,0x6F,0x72,0x28,0x40,
0x20,0x3D,0x20,0x30,0x3B,0x20,0x40,0x20,0x26,0x6C,0x74,0x3B,0x20,0x24,
0x3B,0x20,0x40,0x2B,0x2B,0x29,0x3B,0x3C,0x2F,0x43,0x4F,0x44,0x45,0x3E,
0x0D,0x0A,0x3C,0x44,0x44,0x3E,0x4C,0x65,0x74,0x27,0x73,0x20,0x73,0x61,
0x79,0x20,0x79,0x6F,0x75,0x20,0x68,0x61,0x64,0x20,0x73,0x65,0x6C,0x65,
0x63,0x74,0x65,0x64,0x20,0x74,0x68,0x65,0x20,0x77,0x6F,0x72,0x64,0x20,
0x27,0x3C,0x43,0x4F,0x44,0x45,0x3E,0x63,0x6F,0x75,0x6E,0x74,0x65,0x72,
0x3C,0x2F,0x43,0x4F,0x44,0x45,0x3E,0x27,0x20,0x74,0x68,0x69,0x73,0x20,
0x77,0x69,0x6C,0x6C,0x20,0x65,0x78,0x70,0x61,0x6E,0x64,0x20,0x74,0x6F,
0x0D,0x0A,0x3C,0x44,0x44,0x3E,0x3C,0x43,0x4F,0x44,0x45,0x3E,0x66,0x6F,
0x72,0x28,0x63,0x6F,0x75,0x6E,0x74,0x65,0x72,0x20,0x3D,0x20,0x30,0x3B,
0x20,0x63,0x6F,0x75,0x6E,0x74,0x65,0x72,0x20,0x26,0x6C,0x74,0x3B,0x20,
0x7C,0x3B,0x20,0x63,0x6F,0x75,0x6E,0x74,0x65,0x72,0x2B,0x2B,0x29,0x3B,
0x3C,0x2F,0x43,0x4F,0x44,0x45,0x3E,0x3C,0x50,0x3E,0x0D,0x0A,0x0D,0x0A,
0x57,0x68,0x65,0x6E,0x20,0x79,0x6F,0x75,0x20,0x70,0x72,0x65,0x73,0x73,
0x65,0x64,0x20,0x74,0x68,0x65,0x20,0x27,0x3C,0x49,0x3E,0x43,0x74,0x72,
0x6C,0x3C,0x2F,0x49,0x3E,0x27,0x20,0x6B,0x65,0x79,0x20,0x77,0x68,0x69,
0x6C,0x65,0x20,0x63,0x6C,0x69,0x63,0x6B,0x69,0x6E,0x67,0x20,0x6F,0x6E,
0x20,0x74,0x68,0x65,0x20,0x73,0x6E,0x69,0x70,0x70,0x65,0x74,0x20,0x6D,
0x65,0x6E,0x75,0x2C,0x20,0x74,0x68,0x65,0x20,0x73,0x6E,0x69,0x70,0x70,
0x65,0x74,0x20,0x69,0x73,0x20,0x6E,0x6F,0x74,0x20,0x69,0x6E,0x73,0x65,
0x72,0x74,0x65,0x64,0x20,0x61,0x74,0x20,0x74,0x68,0x65,0x20,0x63,0x75,
0x72,0x72,0x65,0x6E,0x74,0x20,0x63,0x61,0x72,0x65,0x74,0x20,0x70,0x6F,
0x73,0x69,0x74,0x69,0x6F,0x6E,0x2C,0x20,0x62,0x75,0x74,0x20,0x69,0x73,
0x20,0x63,0x6F,0x70,0x69,0x65,0x64,0x20,0x74,0x6F,0x20,0x74,0x68,0x65,
0x20,0x63,0x6C,0x69,0x70,0x62,0x6F,0x61,0x72,0x64,0x20,0x61,0x6E,0x64,
0x20,0x74,0x6F,0x20,0x61,0x6E,0x20,0x69,0x6E,0x74,0x65,0x72,0x6E,0x61,
0x6C,0x20,0x62,0x75,0x66,0x66,0x65,0x72,0x2C,0x20,0x73,0x6F,0x20,0x79,
0x6F,0x75,0x20,0x63,0x61,0x6E,0x20,0x69,0x6E,0x73,0x65,0x72,0x74,0x20,
0x69,0x74,0x20,0x73,0x6F,0x6D,0x65,0x77,0x68,0x65,0x72,0x65,0x20,0x65,
0x6C,0x73,0x65,0x2E,0x3C,0x42,0x52,0x3E,0x0D,0x0A,0x49,0x66,0x20,0x79,
0x6F,0x75,0x20,0x68,0x61,0x76,0x65,0x20,0x61,0x20,0x6D,0x75,0x6C,0x74,
0x79,0x20,0x6C,0x69,0x6E,0x65,0x20,0x73,0x6E,0x69,0x70,0x70,0x65,0x74,
0x2C,0x20,0x79,0x6F,0x75,0x20,0x73,0x68,0x6F,0x75,0x6C,0x64,0x20,0x70,
0x61,0x73,0x74,0x65,0x20,0x66,0x72,0x6F,0x6D,0x20,0x74,0x68,0x65,0x20,
0x69,0x6E,0x74,0x65,0x72,0x6E,0x61,0x6C,0x20,0x62,0x75,0x66,0x66,0x65,
0x72,0x20,0x69,0x6E,0x20,0x74,0x68,0x65,0x20,0x6D,0x65,0x6E,0x75,0x2C,
0x20,0x73,0x69,0x6E,0x63,0x65,0x20,0x74,0x68,0x69,0x73,0x20,0x77,0x69,
0x6C,0x6C,0x20,0x6B,0x65,0x65,0x70,0x20,0x79,0x6F,0x75,0x72,0x20,0x69,
0x6E,0x74,0x65,0x6E,0x64,0x61,0x74,0x69,0x6F,0x6E,0x2E,0x3C,0x50,0x3E,
0x20,0x0D,0x0A,0x0D,0x0A,0x3C,0x42,0x3E,0x54,0x65,0x6D,0x70,0x6C,0x61,
0x74,0x65,0x20,0x43,0x6C,0x61,0x73,0x73,0x20,0x57,0x69,0x7A,0x61,0x72,
0x64,0x3A,0x3C,0x2F,0x42,0x3E,0x3C,0x42,0x52,0x3E,0x0D,0x0A,0x54,0x65,
0x6D,0x70,0x6C,0x61,0x74,0x65,0x20,0x63,0x6C,0x61,0x73,0x73,0x65,0x73,
0x20,0x63,0x61,0x6E,0x20,0x62,0x65,0x20,0x75,0x73,0x65,0x64,0x20,0x74,
0x6F,0x20,0x67,0x65,0x6E,0x65,0x72,0x61,0x74,0x65,0x20,0x70,0x72,0x65,
0x64,0x65,0x66,0x69,0x6E,0x65,0x64,0x20,0x63,0x6C,0x61,0x73,0x73,0x65,
0x73,0x2E,0x20,0x49,0x74,0x27,0x73,0x20,0x61,0x63,0x74,0x75,0x61,0x6C,
0x6C,0x79,0x20,0x61,0x20,0x73,0x69,0x6D,0x70,0x6C,0x65,0x20,0x74,0x68,
0x69,0x6E,0x67,0x2C,0x20,0x73,0x69,0x6E,0x63,0x65,0x20,0x69,0x74,0x20,
0x6A,0x75,0x73,0x74,0x20,0x72,0x65,0x70,0x6C,0x61,0x63,0x65,0x73,0x20,
0x61,0x6C,0x6C,0x20,0x6F,0x63,0x63,0x75,0x72,0x72,0x65,0x6E,0x63,0x65,
0x73,0x20,0x6F,0x66,0x20,0x74,0x68,0x65,0x20,0x6B,0x65,0x79,0x77,0x6F,
0x72,0x64,0x20,0x3C,0x43,0x4F,0x44,0x45,0x3E,0x25,0x43,0x4C,0x41,0x53,
0x53,0x25,0x3C,0x2F,0x43,0x4F,0x44,0x45,0x3E,0x20,0x77,0x69,0x74,0x68,
0x20,0x74,0x68,0x65,0x20,0x65,0x6E,0x74,0x65,0x72,0x65,0x64,0x20,0x63,
0x6C,0x61,0x73,0x73,0x20,0x6E,0x61,0x6D,0x65,0x20,0x61,0x6E,0x64,0x20,
0x67,0x65,0x6E,0x65,0x72,0x61,0x74,0x65,0x73,0x20,0x74,0x68,0x65,0x20,
0x61,0x70,0x70,0x72,0x6F,0x70,0x72,0x69,0x61,0x74,0x65,0x20,0x66,0x69,
0x6C,0x65,0x73,0x2E,0x3C,0x42,0x52,0x3E,0x3C,0x2F,0x46,0x4F,0x4E,0x54,
0x3E,0x0D,0x0A,0x3C,0x2F,0x42,0x4F,0x44,0x59,0x3E,0x3C,0x2F,0x48,0x54,
0x4D,0x4C,0x3E
};
123 changes: 123 additions & 0 deletions SnipWiz/editsnippetsbasedlg.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "editsnippetsbasedlg.h"

///////////////////////////////////////////////////////////////////////////

EditSnippetsBaseDlg::EditSnippetsBaseDlg( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
this->SetSizeHints( wxDefaultSize, wxDefaultSize );

wxBoxSizer* bSizer3;
bSizer3 = new wxBoxSizer( wxVERTICAL );

m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
m_panel2 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
wxBoxSizer* bSizer4;
bSizer4 = new wxBoxSizer( wxVERTICAL );

wxBoxSizer* bSizer5;
bSizer5 = new wxBoxSizer( wxHORIZONTAL );

m_listBox1 = new wxListBox( m_panel2, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
bSizer5->Add( m_listBox1, 0, wxALL|wxEXPAND, 5 );

wxBoxSizer* bSizer6;
bSizer6 = new wxBoxSizer( wxVERTICAL );

wxBoxSizer* bSizer7;
bSizer7 = new wxBoxSizer( wxHORIZONTAL );

m_staticText1 = new wxStaticText( m_panel2, wxID_ANY, wxT("Menu Entry:"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText1->Wrap( -1 );
bSizer7->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );

m_textCtrlMenuEntry = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
bSizer7->Add( m_textCtrlMenuEntry, 1, wxALL, 5 );

bSizer6->Add( bSizer7, 1, wxEXPAND, 5 );

m_staticText2 = new wxStaticText( m_panel2, wxID_ANY, wxT("Use @ as placeholder for selection and $ to set the caret position.\ne.g. for(@ = 0; @ < $; @++)"), wxDefaultPosition, wxDefaultSize, 0 );
m_staticText2->Wrap( -1 );
bSizer6->Add( m_staticText2, 0, wxALL, 5 );

m_textCtrlSnippet = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_PROCESS_TAB|wxTE_RICH2 );
m_textCtrlSnippet->SetMinSize( wxSize( -1,200 ) );

bSizer6->Add( m_textCtrlSnippet, 0, wxALL|wxEXPAND, 5 );

wxBoxSizer* bSizer8;
bSizer8 = new wxBoxSizer( wxHORIZONTAL );

m_buttonAdd = new wxButton( m_panel2, wxID_ANY, wxT("Add"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer8->Add( m_buttonAdd, 0, wxALL, 5 );

m_buttonChange = new wxButton( m_panel2, wxID_ANY, wxT("Change"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer8->Add( m_buttonChange, 0, wxALL, 5 );

m_buttonRemove = new wxButton( m_panel2, wxID_ANY, wxT("Remove"), wxDefaultPosition, wxDefaultSize, 0 );
bSizer8->Add( m_buttonRemove, 0, wxALL, 5 );

bSizer6->Add( bSizer8, 0, wxALIGN_CENTER_HORIZONTAL, 5 );

bSizer5->Add( bSizer6, 1, 0, 5 );

bSizer4->Add( bSizer5, 1, wxEXPAND, 5 );

m_panel2->SetSizer( bSizer4 );
m_panel2->Layout();
bSizer4->Fit( m_panel2 );
m_notebook1->AddPage( m_panel2, wxT("Snippets"), true );
m_panel3 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
wxBoxSizer* bSizer9;
bSizer9 = new wxBoxSizer( wxVERTICAL );

m_htmlWinAbout = new wxHtmlWindow( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHW_SCROLLBAR_AUTO );
bSizer9->Add( m_htmlWinAbout, 1, wxALL|wxEXPAND, 5 );

m_panel3->SetSizer( bSizer9 );
m_panel3->Layout();
bSizer9->Fit( m_panel3 );
m_notebook1->AddPage( m_panel3, wxT("About"), false );

bSizer3->Add( m_notebook1, 1, wxEXPAND | wxALL, 5 );

m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
bSizer3->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 );

m_buttonClose = new wxButton( this, wxID_OK, wxT("Close"), wxDefaultPosition, wxDefaultSize, 0 );
m_buttonClose->SetDefault();
bSizer3->Add( m_buttonClose, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5 );

this->SetSizer( bSizer3 );
this->Layout();
bSizer3->Fit( this );

this->Centre( wxBOTH );

// Connect Events
m_listBox1->Connect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( EditSnippetsBaseDlg::OnItemSelected ), NULL, this );
m_buttonAdd->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditSnippetsBaseDlg::OnAddSnippet ), NULL, this );
m_buttonAdd->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EditSnippetsBaseDlg::OnAddSnippetUI ), NULL, this );
m_buttonChange->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditSnippetsBaseDlg::OnChangeSnippet ), NULL, this );
m_buttonChange->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EditSnippetsBaseDlg::OnChangeSnippetUI ), NULL, this );
m_buttonRemove->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditSnippetsBaseDlg::OnRemoveSnippet ), NULL, this );
m_buttonRemove->Connect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EditSnippetsBaseDlg::OnRemoveSnippetUI ), NULL, this );
}

EditSnippetsBaseDlg::~EditSnippetsBaseDlg()
{
// Disconnect Events
m_listBox1->Disconnect( wxEVT_COMMAND_LISTBOX_SELECTED, wxCommandEventHandler( EditSnippetsBaseDlg::OnItemSelected ), NULL, this );
m_buttonAdd->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditSnippetsBaseDlg::OnAddSnippet ), NULL, this );
m_buttonAdd->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EditSnippetsBaseDlg::OnAddSnippetUI ), NULL, this );
m_buttonChange->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditSnippetsBaseDlg::OnChangeSnippet ), NULL, this );
m_buttonChange->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EditSnippetsBaseDlg::OnChangeSnippetUI ), NULL, this );
m_buttonRemove->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( EditSnippetsBaseDlg::OnRemoveSnippet ), NULL, this );
m_buttonRemove->Disconnect( wxEVT_UPDATE_UI, wxUpdateUIEventHandler( EditSnippetsBaseDlg::OnRemoveSnippetUI ), NULL, this );
}
Loading

0 comments on commit 89389fe

Please sign in to comment.