Permalink
Browse files

New plugin: ImageMixture

Create an new image from a few image files by joining them together.
  • Loading branch information...
1 parent aa90a7b commit 78335f3befa476a65933a719fe4106baf148d77e @d2phap committed Feb 21, 2014
Showing with 5,063 additions and 3,610 deletions.
  1. +63 −0 .gitattributes
  2. +156 −0 .gitignore
  3. +124 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixer/Config.cs
  4. +71 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixer/Image Mixture.csproj
  5. +166 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixer/ImageMixture.Designer.cs
  6. +116 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixer/ImageMixture.cs
  7. +120 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixer/ImageMixture.resx
  8. +36 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixer/Properties/AssemblyInfo.cs
  9. +28 −0 Source/Plugins/Image Mixer/Image Mixer/Image Mixture.sln
  10. +61 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Form1.Designer.cs
  11. +19 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Form1.cs
  12. +120 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Form1.resx
  13. +21 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Program.cs
  14. +36 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Properties/AssemblyInfo.cs
  15. +71 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Properties/Resources.Designer.cs
  16. +117 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Properties/Resources.resx
  17. +30 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Properties/Settings.Designer.cs
  18. +7 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Properties/Settings.settings
  19. +91 −0 Source/Plugins/Image Mixer/Image Mixer/Testing/Testing.csproj
  20. +194 −194 Source/Plugins/Theme/ThemeConfig/ThemeConfig.csproj
  21. +66 −66 Source/Plugins/Theme/ThemeConfig/ThemeConfig.csproj.user
  22. +527 −527 Source/Plugins/Theme/ThemeConfig/ctlMain.cs
  23. +161 −161 Source/Plugins/Theme/ThemeConfig/ctlMain.resx
  24. +930 −930 Source/Plugins/Theme/ThemeConfig/frmEdit.Designer.cs
  25. +443 −443 Source/Plugins/Theme/ThemeConfig/frmEdit.cs
  26. +647 −647 Source/Plugins/Theme/ThemeConfig/frmEdit.resx
  27. +18 −18 Source/Plugins/Theme/ThemeConfig/obj/Debug/ThemeConfig.csproj.FileListAbsolute.txt
  28. +63 −63 Source/Plugins/Theme/WindowsFormsApplication1/Form1.Designer.cs
  29. +24 −24 Source/Plugins/Theme/WindowsFormsApplication1/Form1.cs
  30. +119 −119 Source/Plugins/Theme/WindowsFormsApplication1/Form1.resx
  31. +21 −21 Source/Plugins/Theme/WindowsFormsApplication1/Program.cs
  32. +36 −36 Source/Plugins/Theme/WindowsFormsApplication1/Properties/AssemblyInfo.cs
  33. +71 −71 Source/Plugins/Theme/WindowsFormsApplication1/Properties/Resources.Designer.cs
  34. +116 −116 Source/Plugins/Theme/WindowsFormsApplication1/Properties/Resources.resx
  35. +30 −30 Source/Plugins/Theme/WindowsFormsApplication1/Properties/Settings.Designer.cs
  36. +7 −7 Source/Plugins/Theme/WindowsFormsApplication1/Properties/Settings.settings
  37. +96 −96 Source/Plugins/Theme/WindowsFormsApplication1/WindowsFormsApplication1.csproj
  38. +6 −6 Source/Plugins/Theme/WindowsFormsApplication1/bin/Debug/Temp/xxxx/config.xml
  39. +11 −11 Source/Plugins/Theme/WindowsFormsApplication1/bin/Debug/WindowsFormsApplication1.vshost.exe.manifest
  40. +24 −24 ...ins/Theme/WindowsFormsApplication1/obj/Debug/WindowsFormsApplication1.csproj.FileListAbsolute.txt
View
@@ -0,0 +1,63 @@
+###############################################################################
+# Set default behavior to automatically normalize line endings.
+###############################################################################
+* text=auto
+
+###############################################################################
+# Set default behavior for command prompt diff.
+#
+# This is need for earlier builds of msysgit that does not have it on by
+# default for csharp files.
+# Note: This is only used by command line
+###############################################################################
+#*.cs diff=csharp
+
+###############################################################################
+# Set the merge driver for project and solution files
+#
+# Merging from the command prompt will add diff markers to the files if there
+# are conflicts (Merging from VS is not affected by the settings below, in VS
+# the diff markers are never inserted). Diff markers may cause the following
+# file extensions to fail to load in VS. An alternative would be to treat
+# these files as binary and thus will always conflict and require user
+# intervention with every merge. To do so, just uncomment the entries below
+###############################################################################
+#*.sln merge=binary
+#*.csproj merge=binary
+#*.vbproj merge=binary
+#*.vcxproj merge=binary
+#*.vcproj merge=binary
+#*.dbproj merge=binary
+#*.fsproj merge=binary
+#*.lsproj merge=binary
+#*.wixproj merge=binary
+#*.modelproj merge=binary
+#*.sqlproj merge=binary
+#*.wwaproj merge=binary
+
+###############################################################################
+# behavior for image files
+#
+# image files are treated as binary by default.
+###############################################################################
+#*.jpg binary
+#*.png binary
+#*.gif binary
+
+###############################################################################
+# diff behavior for common document formats
+#
+# Convert binary document formats to text before diffing them. This feature
+# is only available from the command line. Turn it on by uncommenting the
+# entries below.
+###############################################################################
+#*.doc diff=astextplain
+#*.DOC diff=astextplain
+#*.docx diff=astextplain
+#*.DOCX diff=astextplain
+#*.dot diff=astextplain
+#*.DOT diff=astextplain
+#*.pdf diff=astextplain
+#*.PDF diff=astextplain
+#*.rtf diff=astextplain
+#*.RTF diff=astextplain
View
@@ -0,0 +1,156 @@
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+
+[Dd]ebug/
+[Rr]elease/
+x64/
+build/
+[Bb]in/
+[Oo]bj/
+
+# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
+!packages/*/build/
+
+# MSTest test Results
+[Tt]est[Rr]esult*/
+[Bb]uild[Ll]og.*
+
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.tmp_proj
+*.log
+*.vspscc
+*.vssscc
+.builds
+*.pidb
+*.log
+*.scc
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+*.cachefile
+
+# Visual Studio profiler
+*.psess
+*.vsp
+*.vspx
+
+# Guidance Automation Toolkit
+*.gpState
+
+# ReSharper is a .NET coding add-in
+_ReSharper*/
+*.[Rr]e[Ss]harper
+
+# TeamCity is a build add-in
+_TeamCity*
+
+# DotCover is a Code Coverage Tool
+*.dotCover
+
+# NCrunch
+*.ncrunch*
+.*crunch*.local.xml
+
+# Installshield output folder
+[Ee]xpress/
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish/
+
+# Publish Web Output
+*.Publish.xml
+
+# NuGet Packages Directory
+## TODO: If you have NuGet Package Restore enabled, uncomment the next line
+#packages/
+
+# Windows Azure Build Output
+csx
+*.build.csdef
+
+# Windows Store app package directory
+AppPackages/
+
+# Others
+sql/
+*.Cache
+ClientBin/
+[Ss]tyle[Cc]op.*
+~$*
+*~
+*.dbmdl
+*.[Pp]ublish.xml
+*.pfx
+*.publishsettings
+
+# RIA/Silverlight projects
+Generated_Code/
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+UpgradeLog*.htm
+
+# SQL Server files
+App_Data/*.mdf
+App_Data/*.ldf
+
+
+#LightSwitch generated files
+GeneratedArtifacts/
+_Pvt_Extensions/
+ModelManifest.xml
+
+# =========================
+# Windows detritus
+# =========================
+
+# Windows image file caches
+Thumbs.db
+ehthumbs.db
+
+# Folder config file
+Desktop.ini
+
+# Recycle Bin used on file shares
+$RECYCLE.BIN/
+
+# Mac desktop service store files
+.DS_Store
@@ -0,0 +1,124 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using ImageGlass.Plugins;
+using System.Reflection;
+
+namespace Image_Mixer
+{
+ public class Config : IPlugin
+ {
+ //Declarations of all our internal plugin variables
+ string myName = "Image Mixer"; //Tên của plugin
+ string myDescription = "Create an new image from a few image files by joining them together."; //Miêu tả cho plugin
+ string myAuthor = "Dương Diệu Pháp"; //Tên tác giả
+ string myVersion = "1.0"; //Phiên bản của plugin
+
+ public Config()
+ {
+ //
+ // TODO: Add constructor logic here
+ //
+ }
+
+
+ IPluginHost myHost = null;
+ System.Windows.Forms.UserControl myMainInterface = new ImageMixture();
+
+ /// <summary>
+ /// Description of the Plugin's purpose
+ /// </summary>
+ public string Description
+ {
+ get { return myDescription; }
+ }
+
+ /// <summary>
+ /// Author of the plugin
+ /// </summary>
+ public string Author
+ {
+ get { return myAuthor; }
+
+ }
+
+ /// <summary>
+ /// Host of the plugin.
+ /// </summary>
+ public IPluginHost Host
+ {
+ //This part is currently not really implemented
+ /*
+ Here's the scoop though... You can make the host program
+ Implement this interface... this essentially gives you the ability
+ to allow plugins to access some functionality of the host program.
+
+ Example: an mp3 player. If you had the IPluginHost interface as like:
+
+ public interface IPluginHost
+ {
+ void Play(string FileName);
+ void Stop();
+ }
+
+ what you would do is when the plugin is loaded in the host (this would be
+ in like the PluginServices.cs file in the AddPlugin() method) you would
+ set:
+ newPlugin.Host = this;
+
+ this would give the plugin a reference to the host... now since the plugin
+ knows the host contains these methods, it can easily access them just like:
+
+ this.Host.Play("C:\MyCoolMp3.mp3");
+
+ and then they could go:
+
+ this.Host.Stop();
+
+ all this being from right inside the plugin! I hope you get the point. It
+ just means that you can indeed make your plugins able to interact with the
+ host program itself. Let's face it.. It would be no fun if you couldn't do this,
+ because otherwise all the plugin is, is just standalone functionality running
+ inside the host program.. (of course there are cases when you can still accomplish
+ many things without needing to allow the plugin to play with the host... for example
+ you could have an spam filter, and have each plugin be a different filter... that would
+ be pretty simple to make plugins for...
+
+ so anyhow, that is what the host thingy is all aboot, eh!
+
+ */
+ get { return myHost; }
+ set { myHost = value; }
+ }
+
+ public string Name
+ {
+ get { return myName; }
+ }
+
+ public System.Windows.Forms.UserControl MainInterface
+ {
+ get { return myMainInterface; }
+ }
+
+ public string Version
+ {
+ get { return myVersion; }
+ }
+
+ public void Initialize()
+ {
+ //This is the first Function called by the host...
+ //Put anything needed to start with here first
+ }
+
+ public void Dispose()
+ {
+ //Put any cleanup code in here for when the program is stopped
+ }
+
+ }
+}
+
+
Oops, something went wrong.

0 comments on commit 78335f3

Please sign in to comment.