mAgicAnime 俺用改造版
Revisión | d2ee911960f560acc41c22624588de6b18068186 (tree) |
---|---|
Tiempo | 2016-10-30 07:13:26 |
Autor | yoshy <yoshy@user...> |
Commiter | yoshy |
[ADD] 放送プランデータ異常時に警告アイコンを表示する機能を追加
[ADD] 通常回・特番回末尾のデータが未定・異常時に削除する機能を追加
[ADD] 選択した番組のみデータ更新する機能を追加
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices; | ||
5 | 5 | // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。 |
6 | 6 | // アセンブリに関連付けられている情報を変更するには、 |
7 | 7 | // これらの属性値を変更してください。 |
8 | -[assembly: AssemblyTitle("mAgicAnime fix. yossiepon_20151025")] | |
8 | +[assembly: AssemblyTitle("mAgicAnime fix. yossiepon_20160925")] | |
9 | 9 | [assembly: AssemblyDescription("")] |
10 | 10 | [assembly: AssemblyConfiguration("")] |
11 | 11 | [assembly: AssemblyCompany("")] |
12 | -[assembly: AssemblyProduct("mAgicAnime.NET (fix. yossiepon_20151025)")] | |
12 | +[assembly: AssemblyProduct("mAgicAnime.NET (fix. yossiepon_20160925)")] | |
13 | 13 | [assembly: AssemblyCopyright("Copyright (C) 2006-2010 mAgicAnime Project")] |
14 | 14 | [assembly: AssemblyTrademark("")] |
15 | 15 | [assembly: AssemblyCulture("")] |
@@ -30,4 +30,4 @@ using System.Runtime.InteropServices; | ||
30 | 30 | // Revision |
31 | 31 | // |
32 | 32 | [assembly: AssemblyVersion("2.0.0.0")] |
33 | -[assembly: AssemblyFileVersion("2.0.14.20151025")] | |
33 | +[assembly: AssemblyFileVersion("2.0.14.20160925")] |
@@ -302,7 +302,7 @@ namespace magicAnime | ||
302 | 302 | |
303 | 303 | if ( sched == null ) return ChangeResult.Dontcare; |
304 | 304 | |
305 | - // mod. yossiepon_20150815 begin | |
305 | + // add yossiepon 20150815 begin | |
306 | 306 | |
307 | 307 | // ファイル名によって録画ファイルを特定? |
308 | 308 | if ( Settings.Default.specifiedFile == IdentifyFileMethod.ByFileNameWithID ) |
@@ -313,7 +313,7 @@ namespace magicAnime | ||
313 | 313 | title ); // IDを含んだ録画タイトルにする |
314 | 314 | } |
315 | 315 | |
316 | - // mod. yossiepon_20150815 end | |
316 | + // add yossiepon 20150815 end | |
317 | 317 | |
318 | 318 | Logger.Output("(予約)時間変更操作 " + start.ToString() + "(" + title + ")" ); |
319 | 319 |
@@ -358,7 +358,7 @@ namespace magicAnime | ||
358 | 358 | //----------------------- |
359 | 359 | try |
360 | 360 | { |
361 | - // mod. yossiepon_20150815 begin | |
361 | + // del yossiepon 20150815 begin | |
362 | 362 | |
363 | 363 | //// ファイル名によって録画ファイルを特定? |
364 | 364 | //if ( Settings.Default.specifiedFile == IdentifyFileMethod.ByFileNameWithID ) |
@@ -369,7 +369,7 @@ namespace magicAnime | ||
369 | 369 | // title ); // IDを含んだ録画タイトルにする |
370 | 370 | //} |
371 | 371 | |
372 | - // mod. yossiepon_20150815 end | |
372 | + // del yossiepon 20150815 end | |
373 | 373 | |
374 | 374 | sched.MakeReservation( |
375 | 375 | title , |
@@ -98,6 +98,9 @@ | ||
98 | 98 | this.encodeGroupSeparator = new System.Windows.Forms.ToolStripSeparator(); |
99 | 99 | this.encodeMenu = new System.Windows.Forms.ToolStripMenuItem(); |
100 | 100 | this.storeMenu = new System.Windows.Forms.ToolStripMenuItem(); |
101 | + this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); | |
102 | + this.updateProgramPlanMenu = new System.Windows.Forms.ToolStripMenuItem(); | |
103 | + this.deleteInvalidEpisode = new System.Windows.Forms.ToolStripMenuItem(); | |
101 | 104 | this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator(); |
102 | 105 | this.renameFileMenu = new System.Windows.Forms.ToolStripMenuItem(); |
103 | 106 | this.unreadMenu = new System.Windows.Forms.ToolStripMenuItem(); |
@@ -745,12 +748,15 @@ | ||
745 | 748 | this.encodeGroupSeparator, |
746 | 749 | this.encodeMenu, |
747 | 750 | this.storeMenu, |
751 | + this.toolStripSeparator9, | |
752 | + this.updateProgramPlanMenu, | |
753 | + this.deleteInvalidEpisode, | |
748 | 754 | this.toolStripMenuItem6, |
749 | 755 | this.renameFileMenu, |
750 | 756 | this.unreadMenu, |
751 | 757 | this.RecordPropertyMenu}); |
752 | 758 | this.contextMenuStrip.Name = "contextMenuStrip"; |
753 | - this.contextMenuStrip.Size = new System.Drawing.Size(219, 220); | |
759 | + this.contextMenuStrip.Size = new System.Drawing.Size(219, 292); | |
754 | 760 | // |
755 | 761 | // playMovieMenu |
756 | 762 | // |
@@ -812,6 +818,25 @@ | ||
812 | 818 | this.storeMenu.Text = "最終保存先へ転送(&M)"; |
813 | 819 | this.storeMenu.Click += new System.EventHandler(this.storeMenu_Click); |
814 | 820 | // |
821 | + // toolStripSeparator9 | |
822 | + // | |
823 | + this.toolStripSeparator9.Name = "toolStripSeparator9"; | |
824 | + this.toolStripSeparator9.Size = new System.Drawing.Size(199, 6); | |
825 | + // | |
826 | + // updateProgramPlanMenu | |
827 | + // | |
828 | + this.updateProgramPlanMenu.Name = "updateProgramPlanMenu"; | |
829 | + this.updateProgramPlanMenu.Size = new System.Drawing.Size(202, 22); | |
830 | + this.updateProgramPlanMenu.Text = "この番組のみデータ更新(&P)"; | |
831 | + this.updateProgramPlanMenu.Click += new System.EventHandler(this.updateProgramPlanMenu_Click); | |
832 | + // | |
833 | + // deleteInvalidEpisode | |
834 | + // | |
835 | + this.deleteInvalidEpisode.Name = "deleteInvalidEpisode"; | |
836 | + this.deleteInvalidEpisode.Size = new System.Drawing.Size(202, 22); | |
837 | + this.deleteInvalidEpisode.Text = "無効な最終回を削除(&D)"; | |
838 | + this.deleteInvalidEpisode.Click += new System.EventHandler(this.deleteInvalidEpisode_Click); | |
839 | + // | |
815 | 840 | // toolStripMenuItem6 |
816 | 841 | // |
817 | 842 | this.toolStripMenuItem6.Name = "toolStripMenuItem6"; |
@@ -1173,7 +1198,7 @@ | ||
1173 | 1198 | this.MainMenuStrip = this.menuStrip; |
1174 | 1199 | this.Name = "MainForm"; |
1175 | 1200 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; |
1176 | - this.Text = "mAgicAnime.NET fix. yossiepon_20151025"; | |
1201 | + this.Text = "mAgicAnime.NET fix. yossiepon_20160925"; | |
1177 | 1202 | this.Load += new System.EventHandler(this.MainForm_Load); |
1178 | 1203 | this.Shown += new System.EventHandler(this.MainForm_Shown); |
1179 | 1204 | this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed); |
@@ -1297,6 +1322,9 @@ | ||
1297 | 1322 | private System.Windows.Forms.PictureBox datePictureBox; |
1298 | 1323 | private System.Windows.Forms.ToolStripMenuItem debugForceEmptyMenu; |
1299 | 1324 | private System.Windows.Forms.ToolStripSeparator toolStripMenuItem10; |
1325 | + private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; | |
1326 | + private System.Windows.Forms.ToolStripMenuItem updateProgramPlanMenu; | |
1327 | + private System.Windows.Forms.ToolStripMenuItem deleteInvalidEpisode; | |
1300 | 1328 | } |
1301 | 1329 | } |
1302 | 1330 |
@@ -805,6 +805,9 @@ namespace magicAnime | ||
805 | 805 | AnimeEpisode episode = null; |
806 | 806 | int storyNumber = 0; |
807 | 807 | Icon icon = null; |
808 | + // add yossiepon 20160924 begin | |
809 | + Icon icon2 = null; | |
810 | + // add yossiepon 20160924 end | |
808 | 811 | string text; |
809 | 812 | int cellX, cellY; |
810 | 813 | bool border = false; |
@@ -1044,6 +1047,19 @@ namespace magicAnime | ||
1044 | 1047 | g.DrawIcon( icon, new Rectangle( newRect.X + 24, newRect.Y + 12, 16, 16 ) ); |
1045 | 1048 | } |
1046 | 1049 | |
1050 | + // add yossiepon 20160924 begin | |
1051 | + // 放送プランデータ異常のセルに警告アイコンを表示する | |
1052 | + if (episode.PlanError) | |
1053 | + icon2 = mViewIcons.warnIcon; | |
1054 | + | |
1055 | + if (icon2 != null) | |
1056 | + { | |
1057 | + if (thumbnailModeButton.Checked) | |
1058 | + g.DrawIcon(icon2, new Rectangle(newRect.X + 18, newRect.Y + 4, 12, 12)); | |
1059 | + else | |
1060 | + g.DrawIcon(icon2, new Rectangle(newRect.X + 6, newRect.Y + 12, 16, 16)); | |
1061 | + } | |
1062 | + // add yossiepon 20160924 end | |
1047 | 1063 | } |
1048 | 1064 | |
1049 | 1065 | //---------------------- |
@@ -1654,6 +1670,10 @@ namespace magicAnime | ||
1654 | 1670 | bool enableCancel = true; |
1655 | 1671 | bool enableUnread = true; |
1656 | 1672 | bool enableProp = true; |
1673 | + // add yossiepon 20160924 begin | |
1674 | + bool enableUpdateProg = true; | |
1675 | + bool enableDeleteInv = false; | |
1676 | + // add yossiepon 20160924 end | |
1657 | 1677 | |
1658 | 1678 | foreach(AnimeEpisode ep in episodes) |
1659 | 1679 | { |
@@ -1676,6 +1696,27 @@ namespace magicAnime | ||
1676 | 1696 | enableProp &= !isMulti; |
1677 | 1697 | } |
1678 | 1698 | |
1699 | + // add yossiepon 20160925 begin | |
1700 | + // 無効データ削除判定1:選択セルが1つ | |
1701 | + if (!isMulti) | |
1702 | + { | |
1703 | + AnimeEpisode ep = episodes[0]; | |
1704 | + AnimeEpisode lastEp; | |
1705 | + | |
1706 | + AnimeProgram prog = ep.Parent; | |
1707 | + | |
1708 | + // 通常回の最後を取得 | |
1709 | + lastEp = prog.Episodes[prog.Episodes.Count - 1]; | |
1710 | + | |
1711 | + // 無効データ削除判定2:選択中のセルが放送プランデータ異常またはプランなし、かつ未予約、かつファイルなし、かつ最終回か? | |
1712 | + if ( (ep.PlanError || !ep.HasPlan) && !ep.IsReserved && !ep.HasFile && (ep == lastEp) ) | |
1713 | + { | |
1714 | + // メニュー有効 | |
1715 | + enableDeleteInv = true; | |
1716 | + } | |
1717 | + } | |
1718 | + // add yossiepon 20160925 end | |
1719 | + | |
1679 | 1720 | //-------------------------------- |
1680 | 1721 | // 拡張ツール項目 |
1681 | 1722 | //-------------------------------- |
@@ -1727,6 +1768,10 @@ namespace magicAnime | ||
1727 | 1768 | cancelReserveMenu.Enabled = enableCancel; |
1728 | 1769 | unreadMenu.Enabled = enableUnread; |
1729 | 1770 | RecordPropertyMenu.Enabled = enableProp; |
1771 | + // add yossiepon 20160924 begin | |
1772 | + updateProgramPlanMenu.Enabled = enableUpdateProg; | |
1773 | + deleteInvalidEpisode.Enabled = enableDeleteInv; | |
1774 | + // add yossiepon 20160924 end | |
1730 | 1775 | |
1731 | 1776 | unreadMenu.Checked = !isMulti && episodes[0].Unread; |
1732 | 1777 | unreadMenu.Visible = !Settings.Default.disableUnread; |
@@ -2973,6 +3018,56 @@ namespace magicAnime | ||
2973 | 3018 | } |
2974 | 3019 | } |
2975 | 3020 | |
3021 | + // add yossiepon 20160924 begin | |
3022 | + //========================================================================= | |
3023 | + /// <summary> | |
3024 | + /// 番組データ更新メニュー項目のクリック処理 | |
3025 | + /// </summary> | |
3026 | + /// <remarks> | |
3027 | + /// </remarks> | |
3028 | + /// <history>2006/XX/XX 新規作成</history> | |
3029 | + //======================================================================== | |
3030 | + private void updateProgramPlanMenu_Click(object sender, EventArgs e) | |
3031 | + { | |
3032 | + var episodes = GridSelectEpisodes; | |
3033 | + | |
3034 | + if (1 != episodes.Count) | |
3035 | + return; | |
3036 | + | |
3037 | + AnimeEpisode ep = episodes[0]; | |
3038 | + AnimeProgram prog = ep.Parent; | |
3039 | + List<AnimeProgram> animes = new List<AnimeProgram>(); | |
3040 | + animes.Add(prog); | |
3041 | + | |
3042 | + AnimeServer.GetInstance().BeginUpdate(updateOption.Force, animes); | |
3043 | + RefreshContent(); | |
3044 | + } | |
3045 | + | |
3046 | + //========================================================================= | |
3047 | + /// <summary> | |
3048 | + /// 無効最終回削除メニュー項目のクリック処理 | |
3049 | + /// </summary> | |
3050 | + /// <remarks> | |
3051 | + /// </remarks> | |
3052 | + /// <history>2006/XX/XX 新規作成</history> | |
3053 | + //======================================================================== | |
3054 | + private void deleteInvalidEpisode_Click(object sender, EventArgs e) | |
3055 | + { | |
3056 | + var episodes = GridSelectEpisodes; | |
3057 | + | |
3058 | + if (1 != episodes.Count) | |
3059 | + return; | |
3060 | + | |
3061 | + AnimeEpisode ep = episodes[0]; | |
3062 | + AnimeProgram prog = ep.Parent; | |
3063 | + | |
3064 | + // 通常回の最後を削除 | |
3065 | + if (prog.StoryCount > 0) | |
3066 | + { | |
3067 | + prog.StoryCount = prog.StoryCount - 1; | |
3068 | + } | |
3069 | + } | |
3070 | + // add yossiepon 20160924 end | |
2976 | 3071 | } |
2977 | 3072 | |
2978 | 3073 | } |
@@ -64,7 +64,7 @@ namespace magicAnime.UserInterface | ||
64 | 64 | mNotifyIcon.DoubleClick += notifyIcon_DoubleClick; |
65 | 65 | mNotifyIcon.BalloonTipIcon = ToolTipIcon.Info; |
66 | 66 | mNotifyIcon.BalloonTipTitle = "mAgicAnime"; |
67 | - mNotifyIcon.Text = "mAgicAnime fix. yossiepon_20151025"; | |
67 | + mNotifyIcon.Text = "mAgicAnime fix. yossiepon_20160925"; | |
68 | 68 | // trayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject( "notifyIcon.Icon" ))); |
69 | 69 | |
70 | 70 | //--------------------------- |