Skip to content

Commit

Permalink
🚚🚒🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
indiff committed May 4, 2021
1 parent 22cb631 commit 4d024ee
Show file tree
Hide file tree
Showing 34 changed files with 1,318 additions and 1,142 deletions.
5 changes: 1 addition & 4 deletions BandObjectLib/BandObjectLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>BandObjectLib.ruleset</CodeAnalysisRuleSet>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
Expand Down Expand Up @@ -152,9 +152,6 @@
<Isolated>False</Isolated>
</COMReference>
</ItemGroup>
<ItemGroup>
<None Include="BandObjectLib.ruleset" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>
Expand Down
14 changes: 7 additions & 7 deletions BandObjectLib/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
//
[assembly: AssemblyTitle("BandObjectLib")]
[assembly: AssemblyDescription("C# BandObject library")]
[assembly: AssemblyTitle("BandObjectLib")]
[assembly: AssemblyDescription("C# BandObject¿â")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("indiff")]
[assembly: AssemblyProduct("QTTabBar")]
[assembly: AssemblyCopyright("Copyright (C) 2007-2021")]
[assembly: AssemblyTrademark("indiff")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyFileVersion("1.5.4.0")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyFileVersion("1.5.5.0")]
//
// Version information for an assembly consists of the following four values:
//
Expand All @@ -40,9 +40,9 @@
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.5.4.0")]
// by using the '*' as shown below:

[assembly: AssemblyVersion("1.5.5.0")]

//
// In order to sign your assembly you must specify a key to use. Refer to the
Expand Down
13 changes: 7 additions & 6 deletions Installer/Installer.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@

<?define SkuName = "QTTabBar"?>
<?define RTMProductVersion="1.5.0" ?>
<?define ProductVersion="1.5.4" ?> <!-- Change the last number to the svn revision before release -->
<?define VersionString="1.5.4(2021)" ?> <!-- Change to correct version before release, eg, 2019 1.5.0.0 Beta 1 -->
<?define ProductVersion="1.5.5" ?> <!-- Change the last number to the svn revision before release -->
<?define VersionString="1.5.5(2021)" ?> <!-- Change to correct version before release, eg, 2019 1.5.0.0 Beta 1 -->
<?define UpgradeCode="{ec9baff7-58fb-40cb-9f67-1c438a7524a5}"?> <!-- NEVER CHANGE THIS, EVER!! -->
<!-- Quizo and Paul Accisano -->
<?define Manufacturer="indiff"?>
<?define ProductCode="*"?>
<?define StrongName="QTTabBar, Version=1.0.0.0, Culture=neutral, PublicKeyToken=973461f1cd23d8eb"?>
<?define StrongName="QTTabBar, Version=1.5.5.0, Culture=neutral, PublicKeyToken=973461f1cd23d8eb"?>
<?define MyLanguage="1033"?>
<!-- Language code page 1252 1033
语言 语言-国家 Language Codepage
Expand All @@ -52,7 +52,6 @@ Language="1033"

<WixVariable Id="WixUILicenseRtf" Value="!(loc.GPL_FILE)" />


<Upgrade Id="$(var.UpgradeCode)">
<UpgradeVersion Minimum="$(var.ProductVersion)" IncludeMinimum="no" OnlyDetect="yes" Property="NEWPRODUCTFOUND" />
<UpgradeVersion Minimum="$(var.RTMProductVersion)" IncludeMinimum="yes" OnlyDetect="no" Maximum="$(var.ProductVersion)" IncludeMaximum="no" Property="UPGRADEFOUND" />
Expand Down Expand Up @@ -187,7 +186,9 @@ Language="1033"
</RegistryKey>
</Component>

<!-- COM Objects -->
<!-- COM Objects 计算机\HKEY_CLASSES_ROOT\CLSID\{D2BF470E-ED1C-487F-A777-2BD8835EB6CE}
计算机\HKEY_CURRENT_USER\Software\QTTabBar
-->
<?foreach compName in QTTabBarClass;QTButtonBar;QTCoTaskBarClass;AutoLoader ?>
<?if $(var.compName) = QTTabBarClass?>
<?define compGUID = {D2BF470E-ED1C-487F-A333-2BD8835EB6CE}?>
Expand Down Expand Up @@ -227,7 +228,7 @@ Language="1033"
<RegistryValue Name="Class" Value="QTTabBarLib.$(var.compName)" Type="string" Action="write" />
<RegistryValue Name="Assembly" Value="$(var.StrongName)" Type="string" Action="write" />
<RegistryValue Name="RuntimeVersion" Value="[RUNTIMEVERSION]" Type="string" Action="write" />
<RegistryKey Key="1.0.0.0" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryKey Key="$(var.ProductVersion)" ForceCreateOnInstall="yes" ForceDeleteOnUninstall="yes">
<RegistryValue Name="Class" Value="QTTabBarLib.$(var.compName)" Type="string" Action="write" />
<RegistryValue Name="Assembly" Value="$(var.StrongName)" Type="string" Action="write" />
<RegistryValue Name="RuntimeVersion" Value="[RUNTIMEVERSION]" Type="string" Action="write" />
Expand Down
168 changes: 84 additions & 84 deletions Plugins/ActivateByMouseHover/ActivateByMouseHover.cs
Original file line number Diff line number Diff line change
@@ -1,96 +1,96 @@
// This file is part of QTTabBar, a shell extension for Microsoft
// Windows Explorer.
// Copyright (C) 2010 Quizo, Paul Accisano
//
// QTTabBar is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// QTTabBar is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with QTTabBar. If not, see <http://www.gnu.org/licenses/>.

using System;
using System.Runtime.InteropServices;
using System.Text;
using QTPlugin;
// This file is part of QTTabBar, a shell extension for Microsoft
// Windows Explorer.
// Copyright (C) 2010 Quizo, Paul Accisano
//
// QTTabBar is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// QTTabBar is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with QTTabBar. If not, see <http://www.gnu.org/licenses/>.

using System;
using System.Runtime.InteropServices;
using System.Text;
using QTPlugin;
using QTPlugin.Interop;
using System.Windows.Forms;
using System.Globalization;
using Microsoft.Win32;

namespace QuizoPlugins {
using Microsoft.Win32;

namespace QuizoPlugins {
// [Plugin(PluginType.Background, Author = "Quizo", Name = "Show StatusBar", Version = "0.9.0.0", Description = "ShowStatusBar")]
[Plugin(PluginType.Background, Author = "indiff", Name = "鼠标悬浮激活标签", Version = "1.0.0.0", Description = "鼠标悬浮激活标签")]
public class ActivateByMouseHover : IPluginClient
{
private IPluginServer pluginServer;
{
private IPluginServer pluginServer;
private IShellBrowser shellBrowser;

private System.Windows.Forms.Timer timer;

private ITab previousTab;
private static int mouseHoverTime = 700;

private const string REGNAME = "ActivateByMouseHover";
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern bool PostMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, StringBuilder lpszClass, string lpszWindow);

private static bool fVista = IsVista();
private const int WM_COMMAND = 0x0111;

private static bool IsVista() {
return Environment.OSVersion.Version.Major > 5;
}

private const string REGNAME = "ActivateByMouseHover";
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern bool PostMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);

[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, StringBuilder lpszClass, string lpszWindow);

private static bool fVista = IsVista();
private const int WM_COMMAND = 0x0111;

private static bool IsVista() {
return Environment.OSVersion.Version.Major > 5;
}

static ActivateByMouseHover()
{
ReadSetting();
}


#region IPluginClient members

public void Open(IPluginServer pluginServer, IShellBrowser shellBrowser) {
this.pluginServer = pluginServer;
}


#region IPluginClient members

public void Open(IPluginServer pluginServer, IShellBrowser shellBrowser) {
this.pluginServer = pluginServer;
this.shellBrowser = shellBrowser;
this.pluginServer.PointedTabChanged += new PluginEventHandler(pluginServer_PointedTabChanged);

}

this.pluginServer.PointedTabChanged += new PluginEventHandler(pluginServer_PointedTabChanged);

}

public bool QueryShortcutKeys(out string[] actions) {
actions = null;
return false;
}

return false;
}

public void Close(EndCode endCode) {
if (this.timer != null)
{
this.timer.Dispose();
this.timer = null;
}
}

public bool HasOption {
get {
return false;
}
}

public void OnMenuItemClick(MenuType menuType, string menuText, ITab tab) {
}

}
}

public bool HasOption {
get {
return true;
}
}

public void OnMenuItemClick(MenuType menuType, string menuText, ITab tab) {
}

public void OnOption() {
using (var sf = new SettingForm(mouseHoverTime))
{
Expand All @@ -103,13 +103,13 @@ public void OnOption() {
this.timer.Interval = mouseHoverTime;
}
}
}
}

public void OnShortcutKeyPressed(int index) {

}

}
}

public void OnShortcutKeyPressed(int index) {

}


private void pluginServer_PointedTabChanged( object sender, PluginEventArgs e )
{
Expand Down Expand Up @@ -168,7 +168,7 @@ private static void ReadSetting()

private static void SaveSetting()
{
using( var rkPlugin = Registry.CurrentUser.CreateSubKey( CONSTANTS.REGISTRY_PLUGINSETTINGS + @"\Quizo\" + REGNAME ) )
using( var rkPlugin = Registry.CurrentUser.CreateSubKey( CONSTANTS.REGISTRY_PLUGINSETTINGS + @"\" + REGNAME ) )
{
if( rkPlugin != null )
{
Expand Down Expand Up @@ -237,10 +237,10 @@ public override string SupportURL
public override void SetKey( int iKey )
{
}



#endregion

}
}



#endregion

}
}
3 changes: 2 additions & 1 deletion Plugins/ActivateByMouseHover/ActivateByMouseHover.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
<TargetFrameworkProfile>
</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand Down
Loading

0 comments on commit 4d024ee

Please sign in to comment.