public DeezerTrackBrowserCtl()
        {
            InitializeComponent();
            _searchType = OnlineMediaSource.Deezer;

            lvTracks.MultiSelect           = true;
            lvTracks.Resize               += OnListResize;
            lvTracks.SelectedIndexChanged += OnListSelectedIndexChanged;

            OPMContextMenuStrip cms = BuildCommonMenuStrip(true);

            OPMMenuStripSeparator sep = new OPMMenuStripSeparator();

            cms.Items.Add(sep);

            OPMToolStripMenuItem tsmi = new OPMToolStripMenuItem();

            Bitmap searchIcon = OPMedia.UI.Properties.Resources.Search16;

            searchIcon.MakeTransparent(Color.Magenta);

            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = Translator.Translate("TXT_LOOKUP_THIS_ARTIST");
            tsmi.Tag    = "LookupDeezerArtist";
            tsmi.Image  = searchIcon;
            cms.Items.Add(tsmi);

            tsmi        = new OPMToolStripMenuItem();
            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = Translator.Translate("TXT_LOOKUP_THIS_ALBUM");
            tsmi.Tag    = "LookupDeezerAlbum";
            tsmi.Image  = searchIcon;
            cms.Items.Add(tsmi);

            tsmi        = new OPMToolStripMenuItem();
            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = Translator.Translate("TXT_LOOKUP_THIS_TRACK");
            tsmi.Tag    = "LookupDeezerTrack";
            tsmi.Image  = searchIcon;
            cms.Items.Add(tsmi);

            sep = new OPMMenuStripSeparator();
            cms.Items.Add(sep);

            tsmi        = new OPMToolStripMenuItem();
            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = "www.deezer.com";
            tsmi.Tag    = "OpenDeezerPage";
            tsmi.Image  = searchIcon;
            cms.Items.Add(tsmi);

            tsmi        = new OPMToolStripMenuItem();
            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = Translator.Translate("TXT_LOOKUP_MY_PLAYLISTS");
            tsmi.Tag    = "LookupMyPlaylists";
            tsmi.Image  = searchIcon;
            cms.Items.Add(tsmi);

            lvTracks.ContextMenuStrip = cms;
        }
Пример #2
0
 public void BuildPlaylistMenu(OPMToolStripMenuItem tsmiPlaceholder, EventHandler eventHandler)
 {
     foreach (PlaylistItem plItem in pnlScreens.PlaylistScreen.GetPlaylistItems())
     {
         new MenuBuilder <OPMToolStripMenuItem>(pnlScreens.PlaylistScreen).AttachPlaylistItemMenu(plItem,
                                                                                                  new MenuWrapper <OPMToolStripMenuItem>(tsmiPlaceholder),
                                                                                                  MenuType.Playlist, eventHandler);
     }
 }
Пример #3
0
        void tsmi_Click(object sender, EventArgs e)
        {
            OPMToolStripMenuItem tsmi = sender as OPMToolStripMenuItem;

            if (tsmi != null)
            {
                _openOption = tsmi.Tag;
                OnOK(sender, e);
                return;
            }
        }
Пример #4
0
        protected OPMContextMenuStrip BuildCommonMenuStrip(bool addToFav)
        {
            OPMContextMenuStrip cms = new OPMContextMenuStrip();

            OPMToolStripMenuItem tsmi = new OPMToolStripMenuItem();

            OPMMenuStripSeparator sep = new OPMMenuStripSeparator();

            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = Translator.Translate("TXT_PLAY");
            tsmi.Tag    = MediaBrowserAction.Play;
            tsmi.Image  = ImageProcessing.Player16;
            cms.Items.Add(tsmi);

            tsmi        = new OPMToolStripMenuItem();
            tsmi.Click += new EventHandler(OnMenuClick);
            tsmi.Text   = Translator.Translate("TXT_ENQUEUE");
            tsmi.Tag    = MediaBrowserAction.Enqueue;
            tsmi.Image  = ImageProcessing.Player16;
            cms.Items.Add(tsmi);

            cms.Items.Add(sep);

            if (addToFav)
            {
                tsmi        = new OPMToolStripMenuItem();
                tsmi.Click += new EventHandler(OnMenuClick);
                tsmi.Text   = Translator.Translate("TXT_ADD_FAV_LIST");
                tsmi.Tag    = MediaBrowserAction.AddFav;
                tsmi.Image  = OPMedia.UI.Properties.Resources.Favorites16;
                cms.Items.Add(tsmi);
            }
            else
            {
                tsmi        = new OPMToolStripMenuItem();
                tsmi.Click += new EventHandler(OnMenuClick);
                tsmi.Text   = Translator.Translate("TXT_DEL_FAV_LIST");
                tsmi.Tag    = MediaBrowserAction.DelFav;
                tsmi.Image  = OPMedia.UI.Properties.Resources.Delete16;
                cms.Items.Add(tsmi);
            }



            return(cms);
        }
Пример #5
0
        private void OnPrepareRecentFileList(object sender, EventArgs e)
        {
            tsbOpen.DropDownItems.Clear();

            if (_recentFiles != null && _recentFiles.Count > 0)
            {
                foreach (string file in _recentFiles)
                {
                    OPMToolStripMenuItem tsmi = new OPMToolStripMenuItem(file);
                    tsbOpen.DropDownItems.Add(tsmi);
                }
            }
            else
            {
                HandleToolAction(tsbOpen);
            }
        }
Пример #6
0
        private void AttachFileMenuItems(PlaylistItem playlistItem, MenuWrapper <T> menu, EventHandler clickHandler)
        {
            if (EnableSubtitleEntry(playlistItem))
            {
                if (menu.MenuItemsCount > 0)
                {
                    menu.AddSingleEntry(new OPMMenuStripSeparator());
                }

                string str = Translator.Translate("TXT_SEARCH_SUBTITLES");
                OPMToolStripMenuItem tsmi = new OPMToolStripMenuItem(str);
                tsmi.Click += clickHandler;
                tsmi.Tag    = OPMShortcut.CmdSearchSubtitles;
                tsmi.ShortcutKeyDisplayString = ShortcutMapper.GetShortcutString(OPMShortcut.CmdSearchSubtitles);

                menu.AddSingleEntry(tsmi);
            }
        }
Пример #7
0
        void btnOK_OnDropDownClicked(object sender, EventArgs e)
        {
            _cmsDynamic.Items.Clear();
            foreach (OpenOption opt in _openDropDownOptions)
            {
                OPMToolStripMenuItem tsmi = new OPMToolStripMenuItem(opt.OptionTitle);
                tsmi.Tag = opt.OptionTag;

                tsmi.Click -= new EventHandler(tsmi_Click);
                tsmi.Click += new EventHandler(tsmi_Click);

                _cmsDynamic.Items.Add(tsmi);
            }

            _cmsDynamic.Opened -= new EventHandler(_cmsDynamic_Opened);
            _cmsDynamic.Opened += new EventHandler(_cmsDynamic_Opened);

            Point p = new Point(0, btnOK.Height);

            _cmsDynamic.Show(btnOK, p, ToolStripDropDownDirection.Default);
        }
Пример #8
0
        protected void OnMenuClick(object sender, EventArgs e)
        {
            OPMToolStripMenuItem tsmi = sender as OPMToolStripMenuItem;

            if (tsmi != null)
            {
                string act = tsmi.Tag as string;
                if (string.IsNullOrEmpty(act) == false)
                {
                    var selItems = this.SelectedItems;
                    if (selItems != null && selItems.Count > 0)
                    {
                        switch (act)
                        {
                        case MediaBrowserAction.Play:
                            EventDispatch.DispatchEvent(LocalEventNames.LoadOnlineContent, selItems, false);
                            return;

                        case MediaBrowserAction.Enqueue:
                            EventDispatch.DispatchEvent(LocalEventNames.LoadOnlineContent, selItems, true);
                            return;

                        case MediaBrowserAction.AddFav:
                            EventDispatch.DispatchEvent(LocalEventNames.ManageOnlineContent, selItems, true);
                            return;

                        case MediaBrowserAction.DelFav:
                            EventDispatch.DispatchEvent(LocalEventNames.ManageOnlineContent, selItems, false);
                            return;
                        }
                    }

                    HandleAction(act);
                }
            }
        }
Пример #9
0
        public void AttachPlaylistItemMenu(PlaylistItem plItem, MenuWrapper <T> menu, MenuType menuType, EventHandler clickHandler)
        {
            if (menuType != MenuType.Playlist)
            {
                AttachCommonPlaylistToolsMenu(menu, menuType, clickHandler, plItem);
            }

            MenuWrapper <T> menuToAlter = menu;

            if (menuType == MenuType.Playlist)
            {
                OPMToolStripMenuItem item = new OPMToolStripMenuItem(plItem.DisplayName);
                item.Tag     = plItem;
                item.Click  += clickHandler;
                item.Checked = _pnlPlaylist.IsActiveItem(plItem);
                menu.AddSingleEntry(item);

                menuToAlter = new MenuWrapper <OPMToolStripMenuItem>(item) as MenuWrapper <T>;
            }

            if (plItem != null && menuType != MenuType.MultipleItems)
            {
                // It may have subitems:
                // * a DVD item will have titles, chapters, etc ...
                // * other media files may have bookmarks ...
                Dictionary <PlaylistSubItem, List <PlaylistSubItem> > submenu = plItem.GetSubmenu();

                if (submenu != null && submenu.Count >= 1)
                {
                    if (menuType == MenuType.SingleItem)
                    {
                        menuToAlter.AddSingleEntry(new OPMMenuStripSeparator());
                    }

                    foreach (KeyValuePair <PlaylistSubItem, List <PlaylistSubItem> > subitems in submenu)
                    {
                        OPMToolStripMenuItem subItem = new OPMToolStripMenuItem(subitems.Key.Name);
                        subItem.Click += clickHandler;
                        subItem.Tag    = subitems.Key;

                        if (subitems.Value != null)
                        {
                            foreach (PlaylistSubItem ssitem in subitems.Value)
                            {
                                OPMToolStripMenuItem subSubItem = null;

                                if (ssitem is DvdSubItem)
                                {
                                    subSubItem        = new OPMToolStripMenuItem(ssitem.Name);
                                    subSubItem.Click += clickHandler;
                                    subSubItem.Tag    = ssitem;

                                    DvdSubItem            si   = ssitem as DvdSubItem;
                                    DvdRenderingStartHint hint = (si != null) ?
                                                                 si.StartHint as DvdRenderingStartHint : null;

                                    if (hint != null && hint.IsSubtitleHint)
                                    {
                                        subSubItem.Checked = (hint.SID == MediaRenderer.DefaultInstance.SubtitleStream);
                                    }
                                }
                                else if (ssitem is BookmarkSubItem)
                                {
                                    BookmarkSubItem   bsi  = (ssitem as BookmarkSubItem);
                                    BookmarkStartHint hint = (bsi != null) ?
                                                             bsi.StartHint as BookmarkStartHint : new BookmarkStartHint(Bookmark.Empty);

                                    string name = string.Format("{0} - '{1}'", hint.Bookmark.PlaybackTime, bsi.Name);
                                    subSubItem        = new OPMToolStripMenuItem(name);
                                    subSubItem.Click += clickHandler;
                                    subSubItem.Tag    = ssitem;
                                }

                                if (subSubItem != null)
                                {
                                    subItem.DropDownItems.Add(subSubItem);
                                }
                            }
                        }

                        menuToAlter.AddSingleEntry(subItem);
                    }
                }

                if (menuType == MenuType.SingleItem)
                {
                    if (plItem is DvdPlaylistItem)
                    {
                        AttachDvdMenuItems(plItem as DvdPlaylistItem, menuToAlter, clickHandler);
                    }
                    else
                    {
                        AttachFileMenuItems(plItem as PlaylistItem, menuToAlter, clickHandler);
                    }
                }
            }
        }
Пример #10
0
        private void BuildMenuEntry(OPMShortcut cmd, MenuWrapper <T> menu, EventHandler clickHandler, int index = -1, bool enabled = true)
        {
            if (cmd == OPMShortcut.CmdOpenDisk)
            {
                if (VideoDVDHelpers.IsOSSupported == false)
                {
                    return;
                }
            }

            string shortcuts = ShortcutMapper.GetShortcutString(cmd);
            string menuName  = cmd.ToString().ToUpperInvariant().Replace("CMD", "MNU");
            string imageName = "btn" + cmd.ToString().Replace("Cmd", "");

            string desc = Translator.Translate("TXT_" + menuName);

            OPMToolStripMenuItem tsmi = new OPMToolStripMenuItem(desc);

            tsmi.Click += clickHandler;
            tsmi.Tag    = cmd;
            tsmi.ShortcutKeyDisplayString = shortcuts;

            switch (cmd)
            {
            case OPMShortcut.CmdMoveUp:
                tsmi.Image = OPMedia.UI.Properties.Resources.Up16;
                break;

            case OPMShortcut.CmdMoveDown:
                tsmi.Image = OPMedia.UI.Properties.Resources.Down16;
                break;

            case OPMShortcut.CmdDelete:
                tsmi.Image = OPMedia.UI.Properties.Resources.Delete16;
                break;

            case OPMShortcut.CmdLoadPlaylist:
                tsmi.Image = OPMedia.UI.Properties.Resources.Open16;
                break;

            case OPMShortcut.CmdSavePlaylist:
                tsmi.Image = OPMedia.UI.Properties.Resources.Save16;
                break;

            case OPMShortcut.CmdOpenDisk:
                tsmi.Image = ImageProcessing.DVD;
                break;

            case OPMShortcut.CmdOpenURL:
                tsmi.Image = OPMedia.Core.Properties.Resources.Internet;
                break;

            case OPMShortcut.CmdPlayPause:
            {
                Bitmap img = null;

                switch (MediaRenderer.DefaultInstance.FilterState)
                {
                case Runtime.ProTONE.Rendering.DS.BaseClasses.FilterState.Paused:
                    img = Resources.btnPlay;
                    break;

                case Runtime.ProTONE.Rendering.DS.BaseClasses.FilterState.Running:
                    img = Resources.btnPause;
                    break;

                default:
                    img = Resources.btnPlay;
                    break;
                }

                img.MakeTransparent(ThemeManager.TransparentColor);
                tsmi.Image = img;
            }
            break;

            case OPMShortcut.CmdCfgAudio:
                tsmi.Image = ImageProcessing.AudioFile16;
                break;

            case OPMShortcut.CmdCfgVideo:
                tsmi.Image = ImageProcessing.VideoFile16;
                break;

            case OPMShortcut.CmdCfgSubtitles:
                tsmi.Image = ImageProcessing.Subtitle16;
                break;

            case OPMShortcut.CmdOpenSettings:
                tsmi.Image = OPMedia.UI.Properties.Resources.Settings16;
                break;

            case OPMShortcut.CmdCfgTimer:
                tsmi.Image = Resources.IconTime;
                break;

            default:
                tsmi.Image = Resources.ResourceManager.GetImage(imageName);
                break;
            }

            tsmi.Enabled = enabled;

            if (index >= 0)
            {
                menu.InsertSingleEntry(index, tsmi);
            }
            else
            {
                menu.AddSingleEntry(tsmi);
            }
        }
Пример #11
0
        public void HandlePlaylistItemMenuClick(object sender, EventArgs e)
        {
            OPMToolStripMenuItem senderMenu = (sender as OPMToolStripMenuItem);

            if (senderMenu != null)
            {
                try
                {
                    senderMenu.Enabled = false;

                    if (senderMenu.Tag != null)
                    {
                        if (senderMenu.Tag is PlaylistSubItem)
                        {
                            if (senderMenu.Tag is DvdSubItem)
                            {
                                DvdSubItem            si   = senderMenu.Tag as DvdSubItem;
                                DvdRenderingStartHint hint =
                                    (si != null) ?
                                    si.StartHint as DvdRenderingStartHint : null;

                                if (hint != null && hint.IsSubtitleHint)
                                {
                                    MediaRenderer.DefaultInstance.SubtitleStream = hint.SID;
                                    return;
                                }
                            }

                            if (senderMenu.Tag is AudioCdSubItem)
                            {
                                CDAFileInfo cdfi = (senderMenu.Tag as AudioCdSubItem).Parent.MediaFileInfo as CDAFileInfo;
                                if (cdfi != null)
                                {
                                    cdfi.RefreshDisk();
                                    EventDispatch.DispatchEvent(LocalEventNames.UpdatePlaylistNames, true);
                                }
                            }
                            else
                            {
                                PlaylistSubItem psi = senderMenu.Tag as PlaylistSubItem;
                                if (psi != null && psi.StartHint != null)
                                {
                                    JumpToPlaylistSubItem(senderMenu.Tag as PlaylistSubItem);
                                }
                            }
                        }
                        else if (senderMenu.Tag is PlaylistItem)
                        {
                            JumpToPlaylistItem(senderMenu.Tag as PlaylistItem);
                        }
                        else
                        {
                            ShortcutMapper.DispatchCommand((OPMShortcut)senderMenu.Tag);
                        }
                    }
                }
                finally
                {
                    senderMenu.Enabled = true;
                }
            }
        }
Пример #12
0
 private void InitializeComponent()
 {
     this.components           = new System.ComponentModel.Container();
     this.opmTableLayoutPanel1 = new OPMedia.UI.Controls.OPMTableLayoutPanel();
     this.toolStripMain        = new OPMedia.UI.Controls.OPMToolStrip();
     this.tsbNew              = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbOpen             = new OPMedia.UI.Controls.OPMToolStripSplitButton();
     this.tsbSave             = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbSaveAs           = new OPMedia.UI.Controls.OPMToolStripButton();
     this.toolStripSeparator1 = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsbBack             = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbForward          = new OPMedia.UI.Controls.OPMToolStripButton();
     this.toolStripSeparator7 = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsbSearch           = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbReload           = new OPMedia.UI.Controls.OPMToolStripButton();
     this.toolStripSeparator2 = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsbCopy             = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbCut              = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbPaste            = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tssCopyPaste        = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsbRename           = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tsbDelete           = new OPMedia.UI.Controls.OPMToolStripButton();
     this.tssMergeCatalogs    = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.lvSubtitles         = new SubtitleEditor.extension.Navigation.SubtitleListView();
     this.contextMenuStrip    = new System.Windows.Forms.ContextMenuStrip(this.components);
     this.tsmiBack            = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiFwd             = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiSep1            = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsmiSearch          = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiReload          = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiSep2            = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsmiCopy            = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiCut             = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiPaste           = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiCopyPaste       = new OPMedia.UI.Controls.OPMToolStripSeparator();
     this.tsmiRename          = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.tsmiDelete          = new OPMedia.UI.Controls.OPMToolStripMenuItem();
     this.opmTableLayoutPanel1.SuspendLayout();
     this.toolStripMain.SuspendLayout();
     this.contextMenuStrip.SuspendLayout();
     this.SuspendLayout();
     //
     // opmTableLayoutPanel1
     //
     this.opmTableLayoutPanel1.ColumnCount = 1;
     this.opmTableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.opmTableLayoutPanel1.Controls.Add(this.toolStripMain, 0, 0);
     this.opmTableLayoutPanel1.Controls.Add(this.lvSubtitles, 0, 1);
     this.opmTableLayoutPanel1.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.opmTableLayoutPanel1.Location          = new System.Drawing.Point(0, 0);
     this.opmTableLayoutPanel1.Name              = "opmTableLayoutPanel1";
     this.opmTableLayoutPanel1.OverrideBackColor = System.Drawing.Color.Empty;
     this.opmTableLayoutPanel1.RowCount          = 2;
     this.opmTableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle());
     this.opmTableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
     this.opmTableLayoutPanel1.Size     = new System.Drawing.Size(1123, 613);
     this.opmTableLayoutPanel1.TabIndex = 1;
     //
     // toolStripMain
     //
     this.toolStripMain.AllowMerge       = false;
     this.toolStripMain.AutoSize         = false;
     this.toolStripMain.BackColor        = System.Drawing.Color.FromArgb(((int)(((byte)(120)))), ((int)(((byte)(120)))), ((int)(((byte)(120)))));
     this.toolStripMain.CanOverflow      = false;
     this.toolStripMain.Dock             = System.Windows.Forms.DockStyle.Fill;
     this.toolStripMain.ForeColor        = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
     this.toolStripMain.GripStyle        = System.Windows.Forms.ToolStripGripStyle.Hidden;
     this.toolStripMain.ImageScalingSize = new System.Drawing.Size(25, 25);
     this.toolStripMain.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tsbNew,
         this.tsbOpen,
         this.tsbSave,
         this.tsbSaveAs,
         this.toolStripSeparator1,
         this.tsbBack,
         this.tsbForward,
         this.toolStripSeparator7,
         this.tsbSearch,
         this.tsbReload,
         this.toolStripSeparator2,
         this.tsbCopy,
         this.tsbCut,
         this.tsbPaste,
         this.tssCopyPaste,
         this.tsbRename,
         this.tsbDelete,
         this.tssMergeCatalogs
     });
     this.toolStripMain.LayoutStyle      = System.Windows.Forms.ToolStripLayoutStyle.HorizontalStackWithOverflow;
     this.toolStripMain.Location         = new System.Drawing.Point(0, 0);
     this.toolStripMain.Name             = "toolStripMain";
     this.toolStripMain.Padding          = new System.Windows.Forms.Padding(0);
     this.toolStripMain.ShowBorder       = true;
     this.toolStripMain.Size             = new System.Drawing.Size(1123, 48);
     this.toolStripMain.TabIndex         = 1;
     this.toolStripMain.VerticalGradient = true;
     //
     // tsbNew
     //
     this.tsbNew.Image                 = global::SubtitleEditor.extension.Properties.Resources.New;
     this.tsbNew.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbNew.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbNew.Name              = "tsbNew";
     this.tsbNew.Size              = new System.Drawing.Size(60, 45);
     this.tsbNew.Tag               = "ToolActionNew";
     this.tsbNew.Text              = "TXT_NEW";
     this.tsbNew.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbNew.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbNew.ToolTipText       = "Create new catalog";
     this.tsbNew.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbOpen
     //
     this.tsbOpen.Image                 = global::SubtitleEditor.extension.Properties.Resources.Open;
     this.tsbOpen.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbOpen.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbOpen.Name              = "tsbOpen";
     this.tsbOpen.Overflow          = System.Windows.Forms.ToolStripItemOverflow.Never;
     this.tsbOpen.Size              = new System.Drawing.Size(76, 45);
     this.tsbOpen.Tag               = "ToolActionOpen";
     this.tsbOpen.Text              = "TXT_OPEN";
     this.tsbOpen.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbOpen.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbOpen.ToolTipText       = "Open catalog";
     this.tsbOpen.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbSave
     //
     this.tsbSave.Enabled = false;
     this.tsbSave.Image   = global::SubtitleEditor.extension.Properties.Resources.Save;
     this.tsbSave.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbSave.Name = "tsbSave";
     this.tsbSave.Size = new System.Drawing.Size(61, 45);
     this.tsbSave.Tag  = "ToolActionSave";
     this.tsbSave.Text = "TXT_SAVE";
     this.tsbSave.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbSave.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbSaveAs
     //
     this.tsbSaveAs.Enabled = false;
     this.tsbSaveAs.Image   = global::SubtitleEditor.extension.Properties.Resources.SaveAs;
     this.tsbSaveAs.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbSaveAs.Name = "tsbSaveAs";
     this.tsbSaveAs.Size = new System.Drawing.Size(78, 45);
     this.tsbSaveAs.Tag  = "ToolActionSaveAs";
     this.tsbSaveAs.Text = "TXT_SAVE_AS";
     this.tsbSaveAs.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbSaveAs.Click            += new System.EventHandler(this.OnToolAction);
     //
     // toolStripSeparator1
     //
     this.toolStripSeparator1.Name = "toolStripSeparator1";
     this.toolStripSeparator1.Size = new System.Drawing.Size(6, 48);
     //
     // tsbBack
     //
     this.tsbBack.Enabled               = false;
     this.tsbBack.Image                 = global::SubtitleEditor.extension.Properties.Resources.Back;
     this.tsbBack.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbBack.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbBack.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbBack.Name              = "tsbBack";
     this.tsbBack.Size              = new System.Drawing.Size(62, 45);
     this.tsbBack.Tag               = "ToolActionBack";
     this.tsbBack.Text              = "TXT_BACK";
     this.tsbBack.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbBack.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbBack.ToolTipText       = "Back to ";
     this.tsbBack.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbForward
     //
     this.tsbForward.Enabled               = false;
     this.tsbForward.Image                 = global::SubtitleEditor.extension.Properties.Resources.Forward;
     this.tsbForward.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbForward.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbForward.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbForward.Name              = "tsbForward";
     this.tsbForward.Size              = new System.Drawing.Size(86, 45);
     this.tsbForward.Tag               = "ToolActionFwd";
     this.tsbForward.Text              = "TXT_FORWARD";
     this.tsbForward.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbForward.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbForward.ToolTipText       = "Forward to";
     this.tsbForward.Click            += new System.EventHandler(this.OnToolAction);
     //
     // toolStripSeparator7
     //
     this.toolStripSeparator7.Name = "toolStripSeparator7";
     this.toolStripSeparator7.Size = new System.Drawing.Size(6, 48);
     //
     // tsbSearch
     //
     this.tsbSearch.Enabled               = false;
     this.tsbSearch.Image                 = global::SubtitleEditor.extension.Properties.Resources.Search;
     this.tsbSearch.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbSearch.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbSearch.Name              = "tsbSearch";
     this.tsbSearch.Size              = new System.Drawing.Size(74, 45);
     this.tsbSearch.Tag               = "ToolActionSearch";
     this.tsbSearch.Text              = "TXT_SEARCH";
     this.tsbSearch.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbSearch.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbSearch.ToolTipText       = "Search ...";
     this.tsbSearch.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbReload
     //
     this.tsbReload.Enabled               = false;
     this.tsbReload.Image                 = global::SubtitleEditor.extension.Properties.Resources.Reload;
     this.tsbReload.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbReload.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbReload.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbReload.Name              = "tsbReload";
     this.tsbReload.Size              = new System.Drawing.Size(79, 45);
     this.tsbReload.Tag               = "ToolActionReload";
     this.tsbReload.Text              = "TXT_REFRESH";
     this.tsbReload.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbReload.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbReload.ToolTipText       = "Reload";
     this.tsbReload.Click            += new System.EventHandler(this.OnToolAction);
     //
     // toolStripSeparator2
     //
     this.toolStripSeparator2.Name = "toolStripSeparator2";
     this.toolStripSeparator2.Size = new System.Drawing.Size(6, 48);
     //
     // tsbCopy
     //
     this.tsbCopy.Enabled               = false;
     this.tsbCopy.Image                 = global::SubtitleEditor.extension.Properties.Resources.Copy;
     this.tsbCopy.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbCopy.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbCopy.Name              = "tsbCopy";
     this.tsbCopy.Size              = new System.Drawing.Size(65, 45);
     this.tsbCopy.Tag               = "ToolActionCopy";
     this.tsbCopy.Text              = "TXT_COPY";
     this.tsbCopy.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbCopy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbCopy.ToolTipText       = "Copy selection";
     this.tsbCopy.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbCut
     //
     this.tsbCut.Enabled               = false;
     this.tsbCut.Image                 = global::SubtitleEditor.extension.Properties.Resources.Cut;
     this.tsbCut.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbCut.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbCut.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbCut.Name              = "tsbCut";
     this.tsbCut.Size              = new System.Drawing.Size(57, 45);
     this.tsbCut.Tag               = "ToolActionCut";
     this.tsbCut.Text              = "TXT_CUT";
     this.tsbCut.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbCut.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbCut.ToolTipText       = "Cut selection";
     this.tsbCut.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbPaste
     //
     this.tsbPaste.Enabled               = false;
     this.tsbPaste.Image                 = global::SubtitleEditor.extension.Properties.Resources.Paste;
     this.tsbPaste.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbPaste.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbPaste.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbPaste.Name              = "tsbPaste";
     this.tsbPaste.Size              = new System.Drawing.Size(66, 45);
     this.tsbPaste.Tag               = "ToolActionPaste";
     this.tsbPaste.Text              = "TXT_PASTE";
     this.tsbPaste.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbPaste.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbPaste.ToolTipText       = "Paste selection";
     this.tsbPaste.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tssCopyPaste
     //
     this.tssCopyPaste.Name = "tssCopyPaste";
     this.tssCopyPaste.Size = new System.Drawing.Size(6, 48);
     this.tssCopyPaste.Tag  = "";
     //
     // tsbRename
     //
     this.tsbRename.Enabled               = false;
     this.tsbRename.Image                 = global::SubtitleEditor.extension.Properties.Resources.Rename;
     this.tsbRename.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbRename.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbRename.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbRename.Name              = "tsbRename";
     this.tsbRename.Size              = new System.Drawing.Size(76, 45);
     this.tsbRename.Tag               = "ToolActionRename";
     this.tsbRename.Text              = "TXT_RENAME";
     this.tsbRename.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbRename.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbRename.ToolTipText       = "Rename Selection";
     this.tsbRename.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tsbDelete
     //
     this.tsbDelete.Enabled               = false;
     this.tsbDelete.Image                 = global::SubtitleEditor.extension.Properties.Resources.Delete;
     this.tsbDelete.ImageAlign            = System.Drawing.ContentAlignment.TopCenter;
     this.tsbDelete.ImageScaling          = System.Windows.Forms.ToolStripItemImageScaling.None;
     this.tsbDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsbDelete.Name              = "tsbDelete";
     this.tsbDelete.Size              = new System.Drawing.Size(74, 45);
     this.tsbDelete.Tag               = "ToolActionDelete";
     this.tsbDelete.Text              = "TXT_DELETE";
     this.tsbDelete.TextAlign         = System.Drawing.ContentAlignment.BottomCenter;
     this.tsbDelete.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
     this.tsbDelete.ToolTipText       = "Delete ";
     this.tsbDelete.Click            += new System.EventHandler(this.OnToolAction);
     //
     // tssMergeCatalogs
     //
     this.tssMergeCatalogs.Name = "tssMergeCatalogs";
     this.tssMergeCatalogs.Size = new System.Drawing.Size(6, 48);
     //
     // lvSubtitles
     //
     this.lvSubtitles.Dock              = System.Windows.Forms.DockStyle.Fill;
     this.lvSubtitles.Location          = new System.Drawing.Point(3, 51);
     this.lvSubtitles.MultiSelect       = false;
     this.lvSubtitles.Name              = "lvSubtitles";
     this.lvSubtitles.OverrideBackColor = System.Drawing.Color.Empty;
     this.lvSubtitles.Size              = new System.Drawing.Size(1117, 559);
     this.lvSubtitles.Subtitle          = null;
     this.lvSubtitles.TabIndex          = 2;
     this.lvSubtitles.UseCompatibleStateImageBehavior = false;
     this.lvSubtitles.View      = System.Windows.Forms.View.Details;
     this.lvSubtitles.GridLines = true;
     //
     // contextMenuStrip
     //
     this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
         this.tsmiBack,
         this.tsmiFwd,
         this.tsmiSep1,
         this.tsmiSearch,
         this.tsmiReload,
         this.tsmiSep2,
         this.tsmiCopy,
         this.tsmiCut,
         this.tsmiPaste,
         this.tsmiCopyPaste,
         this.tsmiRename,
         this.tsmiDelete
     });
     this.contextMenuStrip.Name = "contextMenuStrip";
     this.contextMenuStrip.Size = new System.Drawing.Size(153, 242);
     //
     // tsmiBack
     //
     this.tsmiBack.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiBack.Image                 = global::SubtitleEditor.extension.Properties.Resources.Back16;
     this.tsmiBack.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiBack.Name   = "tsmiBack";
     this.tsmiBack.Size   = new System.Drawing.Size(152, 22);
     this.tsmiBack.Tag    = "ToolActionBack";
     this.tsmiBack.Text   = "TXT_BACK";
     this.tsmiBack.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiFwd
     //
     this.tsmiFwd.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiFwd.Image                 = global::SubtitleEditor.extension.Properties.Resources.Forward16;
     this.tsmiFwd.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiFwd.Name   = "tsmiFwd";
     this.tsmiFwd.Size   = new System.Drawing.Size(152, 22);
     this.tsmiFwd.Tag    = "ToolActionFwd";
     this.tsmiFwd.Text   = "TXT_FORWARD";
     this.tsmiFwd.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiSep1
     //
     this.tsmiSep1.Name = "tsmiSep1";
     this.tsmiSep1.Size = new System.Drawing.Size(149, 6);
     //
     // tsmiSearch
     //
     this.tsmiSearch.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiSearch.Image                 = global::SubtitleEditor.extension.Properties.Resources.Search16;
     this.tsmiSearch.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiSearch.Name   = "tsmiSearch";
     this.tsmiSearch.Size   = new System.Drawing.Size(152, 22);
     this.tsmiSearch.Tag    = "ToolActionSearch";
     this.tsmiSearch.Text   = "TXT_SEARCH";
     this.tsmiSearch.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiReload
     //
     this.tsmiReload.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiReload.Image                 = global::SubtitleEditor.extension.Properties.Resources.Reload16;
     this.tsmiReload.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiReload.Name   = "tsmiReload";
     this.tsmiReload.Size   = new System.Drawing.Size(152, 22);
     this.tsmiReload.Tag    = "ToolActionReload";
     this.tsmiReload.Text   = "TXT_REFRESH";
     this.tsmiReload.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiSep2
     //
     this.tsmiSep2.Name = "tsmiSep2";
     this.tsmiSep2.Size = new System.Drawing.Size(149, 6);
     //
     // tsmiCopy
     //
     this.tsmiCopy.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiCopy.Image                 = global::SubtitleEditor.extension.Properties.Resources.Copy16;
     this.tsmiCopy.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiCopy.Name   = "tsmiCopy";
     this.tsmiCopy.Size   = new System.Drawing.Size(152, 22);
     this.tsmiCopy.Tag    = "ToolActionCopy";
     this.tsmiCopy.Text   = "TXT_COPY";
     this.tsmiCopy.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiCut
     //
     this.tsmiCut.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiCut.Image                 = global::SubtitleEditor.extension.Properties.Resources.Cut16;
     this.tsmiCut.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiCut.Name   = "tsmiCut";
     this.tsmiCut.Size   = new System.Drawing.Size(152, 22);
     this.tsmiCut.Tag    = "ToolActionCut";
     this.tsmiCut.Text   = "TXT_CUT";
     this.tsmiCut.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiPaste
     //
     this.tsmiPaste.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiPaste.Image                 = global::SubtitleEditor.extension.Properties.Resources.Paste16;
     this.tsmiPaste.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiPaste.Name   = "tsmiPaste";
     this.tsmiPaste.Size   = new System.Drawing.Size(152, 22);
     this.tsmiPaste.Tag    = "ToolActionPaste";
     this.tsmiPaste.Text   = "TXT_PASTE";
     this.tsmiPaste.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiCopyPaste
     //
     this.tsmiCopyPaste.Name = "tsmiCopyPaste";
     this.tsmiCopyPaste.Size = new System.Drawing.Size(149, 6);
     this.tsmiCopyPaste.Tag  = "";
     //
     // tsmiRename
     //
     this.tsmiRename.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiRename.Image                 = global::SubtitleEditor.extension.Properties.Resources.Rename16;
     this.tsmiRename.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiRename.Name   = "tsmiRename";
     this.tsmiRename.Size   = new System.Drawing.Size(152, 22);
     this.tsmiRename.Tag    = "ToolActionRename";
     this.tsmiRename.Text   = "TXT_RENAME";
     this.tsmiRename.Click += new System.EventHandler(this.OnToolAction);
     //
     // tsmiDelete
     //
     this.tsmiDelete.ForeColor             = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(63)))), ((int)(((byte)(70)))));
     this.tsmiDelete.Image                 = global::SubtitleEditor.extension.Properties.Resources.Delete16;
     this.tsmiDelete.ImageTransparentColor = System.Drawing.Color.Magenta;
     this.tsmiDelete.Name   = "tsmiDelete";
     this.tsmiDelete.Size   = new System.Drawing.Size(152, 22);
     this.tsmiDelete.Tag    = "ToolActionDelete";
     this.tsmiDelete.Text   = "TXT_DELETE";
     this.tsmiDelete.Click += new System.EventHandler(this.OnToolAction);
     //
     // AddonPanel
     //
     this.Controls.Add(this.opmTableLayoutPanel1);
     this.Name = "AddonPanel";
     this.Size = new System.Drawing.Size(1123, 613);
     this.opmTableLayoutPanel1.ResumeLayout(false);
     this.toolStripMain.ResumeLayout(false);
     this.toolStripMain.PerformLayout();
     this.contextMenuStrip.ResumeLayout(false);
     this.ResumeLayout(false);
 }