forked from briandunnington/growl-for-windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.0.1 updates; Outlook plugin bug fix; added French translation
- Loading branch information
1 parent
19f66f0
commit 0719af9
Showing
123 changed files
with
7,169 additions
and
270 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
Growl Extras/Growl Display SDK/libraries/Growl.CoreLibrary.dll
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Growl Extras/Growl Display SDK/libraries/Growl.DisplayStyle.dll
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Growl.DisplayStyle; | ||
|
||
namespace Meter | ||
{ | ||
public class MeterDisplay : VisualDisplay | ||
{ | ||
public const string SETTING_DISPLAYLOCATION = "DisplayLocation"; | ||
|
||
LayoutManager tllm = new LayoutManager(LayoutManager.AutoPositionDirection.DownRight, 10, 10); | ||
LayoutManager bllm = new LayoutManager(LayoutManager.AutoPositionDirection.UpRight, 10, 10); | ||
LayoutManager trlm = new LayoutManager(LayoutManager.AutoPositionDirection.DownLeft, 10, 10); | ||
LayoutManager brlm = new LayoutManager(LayoutManager.AutoPositionDirection.UpLeft, 10, 10); | ||
|
||
public MeterDisplay() | ||
: base() | ||
{ | ||
this.SettingsPanel = new MeterSettingsPanel(); | ||
} | ||
|
||
public override string Name | ||
{ | ||
get | ||
{ | ||
return "Meter"; | ||
} | ||
} | ||
|
||
public override string Version | ||
{ | ||
get | ||
{ | ||
System.Reflection.Assembly a = System.Reflection.Assembly.GetExecutingAssembly(); | ||
System.Diagnostics.FileVersionInfo f = System.Diagnostics.FileVersionInfo.GetVersionInfo(a.Location); | ||
return f.FileVersion; | ||
} | ||
} | ||
|
||
public override string Website | ||
{ | ||
get | ||
{ | ||
return "http://www.growlforwindows.com"; | ||
} | ||
} | ||
|
||
public override string Author | ||
{ | ||
get | ||
{ | ||
return "Brian Dunnington"; | ||
} | ||
} | ||
|
||
public override string Description | ||
{ | ||
get | ||
{ | ||
return "Displays notification information in a progress-bar like form."; | ||
} | ||
} | ||
|
||
protected override void HandleNotification(Notification notification, string displayName) | ||
{ | ||
bool replace = false; | ||
if (!String.IsNullOrEmpty(notification.CoalescingGroup)) | ||
{ | ||
foreach (NotificationWindow nw in this.ActiveWindows) | ||
{ | ||
if (nw.CoalescingGroup == notification.CoalescingGroup) | ||
{ | ||
((MeterWindow)nw).Replace(notification); | ||
replace = true; | ||
break; | ||
} | ||
} | ||
} | ||
|
||
if (!replace) | ||
{ | ||
MeterWindow win = new MeterWindow(); | ||
win.SetNotification(notification); | ||
win.SetDisplayLocation(GetLocationFromSetting()); | ||
this.Show(win); | ||
} | ||
} | ||
|
||
protected override LayoutManager GetLayoutManager(NotificationWindow nw) | ||
{ | ||
MeterWindow win = (MeterWindow)nw; | ||
switch (win.DisplayLocation) | ||
{ | ||
case Location.TopLeft: | ||
return tllm; | ||
case Location.BottomLeft: | ||
return bllm; | ||
case Location.TopRight: | ||
return trlm; | ||
default: | ||
return brlm; | ||
} | ||
} | ||
|
||
private Location GetLocationFromSetting() | ||
{ | ||
Location location = Location.TopRight; | ||
if (this.SettingsCollection != null && this.SettingsCollection.ContainsKey(SETTING_DISPLAYLOCATION)) | ||
{ | ||
try | ||
{ | ||
object val = this.SettingsCollection[SETTING_DISPLAYLOCATION]; | ||
if (val != null) | ||
{ | ||
location = (Location)val; | ||
} | ||
} | ||
catch | ||
{ | ||
} | ||
} | ||
return location; | ||
} | ||
|
||
public enum Location | ||
{ | ||
TopLeft = 1, | ||
TopRight = 2, | ||
BottomLeft = 3, | ||
BottomRight = 4 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.50727</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{5A12EFF9-2871-43D6-A587-C725993CFC5A}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Meter</RootNamespace> | ||
<AssemblyName>MeterDisplay</AssemblyName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="Growl.CoreLibrary, Version=2.0.0.0, Culture=neutral, PublicKeyToken=13e59d82e007b064, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\Growl Display SDK\libraries\Growl.CoreLibrary.dll</HintPath> | ||
</Reference> | ||
<Reference Include="Growl.DisplayStyle, Version=2.0.0.0, Culture=neutral, processorArchitecture=x86"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\Growl Display SDK\libraries\Growl.DisplayStyle.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Drawing" /> | ||
<Reference Include="System.Windows.Forms" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="MeterSettingsPanel.cs"> | ||
<SubType>UserControl</SubType> | ||
</Compile> | ||
<Compile Include="MeterSettingsPanel.Designer.cs"> | ||
<DependentUpon>MeterSettingsPanel.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="MeterDisplay.cs" /> | ||
<Compile Include="MeterWindow.cs"> | ||
<SubType>Form</SubType> | ||
</Compile> | ||
<Compile Include="MeterWindow.Designer.cs"> | ||
<DependentUpon>MeterWindow.cs</DependentUpon> | ||
</Compile> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="Properties\Resources.Designer.cs"> | ||
<AutoGen>True</AutoGen> | ||
<DesignTime>True</DesignTime> | ||
<DependentUpon>Resources.resx</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<EmbeddedResource Include="MeterWindow.resx"> | ||
<SubType>Designer</SubType> | ||
<DependentUpon>MeterWindow.cs</DependentUpon> | ||
</EmbeddedResource> | ||
<EmbeddedResource Include="Properties\Resources.resx"> | ||
<SubType>Designer</SubType> | ||
<Generator>ResXFileCodeGenerator</Generator> | ||
<LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
</EmbeddedResource> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\0.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\1.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\2.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\3.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\4.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\bg.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\5.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\6.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\7.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\8.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\9.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\10.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\11.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\12.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Resources\13.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="definition.xml" /> | ||
<None Include="Resources\overlay.png" /> | ||
<None Include="Resources\my-computer.png" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
</Project> |
Oops, something went wrong.