Example #1
0
 public QMenuItem(string title, QTTabBarLib.MenuItemArguments mia)
     : base(title) {
     if(mia != null) {
         this.path = mia.Path;
         this.mia = mia;
         this.menuTarget = mia.Target;
         this.menuGenre = mia.Genre;
     }
 }
Example #2
0
 public static extern int DrawThemeTextEx(IntPtr hTheme, IntPtr hdc, int iPartId, int iStateId, string text, int iCharCount, TextFormatFlags dwFlags, ref QTTabBarLib.Interop.RECT pRect, ref DTTOPTS pOptions);
Example #3
0
 public static extern int DrawTextExW(IntPtr hdc, IntPtr lpchText, int cchText, ref QTTabBarLib.Interop.RECT lprc, int dwDTFormat, IntPtr lpDTParams);
Example #4
0
 public static extern IntPtr CreateIconIndirect(ref QTTabBarLib.Interop.ICONINFO piconinfo);
Example #5
0
 public static extern IntPtr CreateFontIndirect(ref QTTabBarLib.Interop.LOGFONT lplf);
Example #6
0
 public static extern IntPtr CreateDIBSection(IntPtr hDC, ref QTTabBarLib.Interop.BITMAPINFO pbmi, uint iUsage, out IntPtr ppvBits, IntPtr hSection, uint dwOffset);
Example #7
0
 public static extern bool TrackMouseEvent(ref QTTabBarLib.Interop.TRACKMOUSEEVENT lpEventTrack);
Example #8
0
 public Plugin(IPluginClient pluginClient, QTTabBarLib.PluginInformation pluginInfo) {
     this.pluginClient = pluginClient;
     this.pluginInfo = pluginInfo;
     this.fBackgroundButtonIsSupported = ((pluginInfo.PluginType == PluginType.Background) && ((pluginClient is IBarButton) || (pluginClient is IBarCustomItem))) || ((pluginInfo.PluginType == PluginType.BackgroundMultiple) && (pluginClient is IBarMultipleCustomItems));
 }
Example #9
0
 public static extern IntPtr SetWindowsHookEx(int idHook, QTTabBarLib.Interop.HookProc lpfn, IntPtr hInstance, int dwThreadId);
Example #10
0
 public static extern bool PtInRect(ref QTTabBarLib.Interop.RECT lprc, BandObjectLib.POINT pt);
Example #11
0
 public static extern int MapWindowPoints(IntPtr hWndFrom, IntPtr hWndTo, ref QTTabBarLib.Interop.RECT lpPoints, int cPoints);
Example #12
0
 public static extern bool GetWindowRect(IntPtr hWnd, out QTTabBarLib.Interop.RECT pRect);
Example #13
0
 public static extern int GetObject(IntPtr hgdiobj, int cbBuffer, out QTTabBarLib.Interop.LOGFONT lpvObject);
Example #14
0
 public static extern int DwmExtendFrameIntoClientArea(IntPtr hWnd, ref QTTabBarLib.Interop.MARGINS pMarInset);
Example #15
0
 public static extern int SHCreateShellItem(IntPtr pidlParent, IShellFolder psfParent, IntPtr pidl, out QTTabBarLib.Interop.IShellItem ppsi);
Example #16
0
 private static bool CheckDisplayName(QTTabBarLib.Interop.IShellFolder shellFolder, IntPtr pIDLLast, Regex re) {
     if(pIDLLast != IntPtr.Zero) {
         QTTabBarLib.Interop.STRRET strret;
         uint uFlags = 0;
         StringBuilder pszBuf = new StringBuilder(260);
         if(shellFolder.GetDisplayNameOf(pIDLLast, uFlags, out strret) == 0) {
             QTTabBarLib.Interop.PInvoke.StrRetToBuf(ref strret, pIDLLast, pszBuf, pszBuf.Capacity);
         }
         if(pszBuf.Length > 0) {
             return re.IsMatch(pszBuf.ToString());
         }
     }
     return false;
 }
 public PluginOptionEventArgs(QTTabBarLib.PluginViewItem pvi) {
     this.pvi = pvi;
 }