Skip to content

Commit

Permalink
v2.0.1 updates; Outlook plugin bug fix; added French translation
Browse files Browse the repository at this point in the history
  • Loading branch information
briandunnington committed Jan 4, 2010
1 parent 19f66f0 commit 0719af9
Show file tree
Hide file tree
Showing 123 changed files with 7,169 additions and 270 deletions.
Binary file modified Growl Connectors/NET/libraries/Growl.Connector.dll
Binary file not shown.
Binary file modified Growl Connectors/NET/libraries/Growl.CoreLibrary.dll
Binary file not shown.
37 changes: 37 additions & 0 deletions Growl Connectors/VB/Growl.COM/Connector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@

namespace Growl.COM
{
/// <summary>
/// Provides a COM-visible interface for using the standard Growl.Connector .NET library.
///
/// After creating a new instanceof the Connector() class, you *must* call either
/// .ConfigureLocal() or .ConfigureRemote to initialize the connection details.
///
/// If you are calling this component from VBScript or another language that does not
/// have strongly-typed variables, you must use the .Register2() method instead of
/// the normal .Register()
/// </summary>
[ClassInterface(ClassInterfaceType.AutoDual)]
[ComSourceInterfaces(typeof(IResponseHandler))]
public class Connector
Expand Down Expand Up @@ -124,6 +134,33 @@ public Cryptography.SymmetricAlgorithmType EncryptionAlgorithm
}
}

/// <summary>
/// This method should only be used by VBScript or other languages that do not
/// have strongly-typed variables. The objects passed in the <paramref name="items"/>
/// array should be NotificationType objects.
/// </summary>
/// <param name="application"></param>
/// <param name="items"></param>
public void Register2(Application application, object[] items)
{
List<NotificationType> list = new List<NotificationType>();

for (int i = 0; i < items.Length; i++)
{
NotificationType nt = items[i] as NotificationType;
if (nt != null)
{
list.Add(nt);
}
}
NotificationType[] types = list.ToArray();
Register(application, ref types);
}

/// <summary>
/// NOTE: If you are calling this method from VBScript or another language that
/// does not have strongly-typed variables, use Register2() instead.
/// </summary>
public void Register(Application application, ref NotificationType[] notificationTypes)
{
if (application == null)
Expand Down
Binary file modified Growl Extras/Growl Display SDK/libraries/Growl.CoreLibrary.dll
Binary file not shown.
Binary file modified Growl Extras/Growl Display SDK/libraries/Growl.DisplayStyle.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ namespace GrowlExtras.OutlookAddIn
public partial class ThisApplication
{
private const string APP_NAME = "Outlook";
private const string MENU_BEFORE = "Help";

private Object _helpMenuIndex;
private Office.CommandBar _menuBar;
Expand Down Expand Up @@ -279,7 +278,7 @@ void _settingsMenu_Click(Microsoft.Office.Core.CommandBarButton Ctrl, ref bool C
private void BuildMenu()
{
_menuBar = this.ActiveExplorer().CommandBars.ActiveMenuBar;
_helpMenuIndex = _menuBar.Controls[MENU_BEFORE].Index;
_helpMenuIndex = _menuBar.Controls.Count;

_topMenu = (Office.CommandBarPopup)(_menuBar.Controls.Add(Office.MsoControlType.msoControlPopup, Type.Missing, Type.Missing, _helpMenuIndex, true));
_topMenu.Caption = "Add-in Tasks";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,14 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Growl Outlook Add-In"
"ProductCode" = "8:{E13C155F-65F1-4224-8504-742CD5055E96}"
"PackageCode" = "8:{2769BA2A-82FC-43B3-8A4D-BD33E4B96471}"
"ProductCode" = "8:{A759CC3A-AA8E-4B10-9431-36B3ECB7816D}"
"PackageCode" = "8:{BB599851-35F8-4062-B2C7-CBED819F387C}"
"UpgradeCode" = "8:{49A7FB61-9235-4718-B57C-A8C2DB8C84C8}"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:FALSE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.6"
"ProductVersion" = "8:1.0.7"
"Manufacturer" = "8:Growl Extras"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down
134 changes: 134 additions & 0 deletions Growl Extras/MeterDisplay/MeterDisplay.cs
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
}
}
}
135 changes: 135 additions & 0 deletions Growl Extras/MeterDisplay/MeterDisplay.csproj
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>
Loading

0 comments on commit 0719af9

Please sign in to comment.