• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mAgicAnime 俺用改造版


Commit MetaInfo

Revisiond2ee911960f560acc41c22624588de6b18068186 (tree)
Zeit2016-10-30 07:13:26
Autoryoshy <yoshy@user...>
Commiteryoshy

Log Message

[ADD] 放送プランデータ異常時に警告アイコンを表示する機能を追加
[ADD] 通常回・特番回末尾のデータが未定・異常時に削除する機能を追加
[ADD] 選択した番組のみデータ更新する機能を追加

Ändern Zusammenfassung

Diff

--- a/Properties/AssemblyInfo.cs
+++ b/Properties/AssemblyInfo.cs
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
55 // アセンブリに関する一般情報は以下の属性セットをとおして制御されます。
66 // アセンブリに関連付けられている情報を変更するには、
77 // これらの属性値を変更してください。
8-[assembly: AssemblyTitle("mAgicAnime fix. yossiepon_20151025")]
8+[assembly: AssemblyTitle("mAgicAnime fix. yossiepon_20160925")]
99 [assembly: AssemblyDescription("")]
1010 [assembly: AssemblyConfiguration("")]
1111 [assembly: AssemblyCompany("")]
12-[assembly: AssemblyProduct("mAgicAnime.NET (fix. yossiepon_20151025)")]
12+[assembly: AssemblyProduct("mAgicAnime.NET (fix. yossiepon_20160925)")]
1313 [assembly: AssemblyCopyright("Copyright (C) 2006-2010 mAgicAnime Project")]
1414 [assembly: AssemblyTrademark("")]
1515 [assembly: AssemblyCulture("")]
@@ -30,4 +30,4 @@ using System.Runtime.InteropServices;
3030 // Revision
3131 //
3232 [assembly: AssemblyVersion("2.0.0.0")]
33-[assembly: AssemblyFileVersion("2.0.14.20151025")]
33+[assembly: AssemblyFileVersion("2.0.14.20160925")]
--- a/RecordingManager/ReserveManager.cs
+++ b/RecordingManager/ReserveManager.cs
@@ -302,7 +302,7 @@ namespace magicAnime
302302
303303 if ( sched == null ) return ChangeResult.Dontcare;
304304
305- // mod. yossiepon_20150815 begin
305+ // add yossiepon 20150815 begin
306306
307307 // ファイル名によって録画ファイルを特定?
308308 if ( Settings.Default.specifiedFile == IdentifyFileMethod.ByFileNameWithID )
@@ -313,7 +313,7 @@ namespace magicAnime
313313 title ); // IDを含んだ録画タイトルにする
314314 }
315315
316- // mod. yossiepon_20150815 end
316+ // add yossiepon 20150815 end
317317
318318 Logger.Output("(予約)時間変更操作 " + start.ToString() + "(" + title + ")" );
319319
@@ -358,7 +358,7 @@ namespace magicAnime
358358 //-----------------------
359359 try
360360 {
361- // mod. yossiepon_20150815 begin
361+ // del yossiepon 20150815 begin
362362
363363 //// ファイル名によって録画ファイルを特定?
364364 //if ( Settings.Default.specifiedFile == IdentifyFileMethod.ByFileNameWithID )
@@ -369,7 +369,7 @@ namespace magicAnime
369369 // title ); // IDを含んだ録画タイトルにする
370370 //}
371371
372- // mod. yossiepon_20150815 end
372+ // del yossiepon 20150815 end
373373
374374 sched.MakeReservation(
375375 title ,
--- a/UserInterface/MainForm.Designer.cs
+++ b/UserInterface/MainForm.Designer.cs
@@ -98,6 +98,9 @@
9898 this.encodeGroupSeparator = new System.Windows.Forms.ToolStripSeparator();
9999 this.encodeMenu = new System.Windows.Forms.ToolStripMenuItem();
100100 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();
101104 this.toolStripMenuItem6 = new System.Windows.Forms.ToolStripSeparator();
102105 this.renameFileMenu = new System.Windows.Forms.ToolStripMenuItem();
103106 this.unreadMenu = new System.Windows.Forms.ToolStripMenuItem();
@@ -745,12 +748,15 @@
745748 this.encodeGroupSeparator,
746749 this.encodeMenu,
747750 this.storeMenu,
751+ this.toolStripSeparator9,
752+ this.updateProgramPlanMenu,
753+ this.deleteInvalidEpisode,
748754 this.toolStripMenuItem6,
749755 this.renameFileMenu,
750756 this.unreadMenu,
751757 this.RecordPropertyMenu});
752758 this.contextMenuStrip.Name = "contextMenuStrip";
753- this.contextMenuStrip.Size = new System.Drawing.Size(219, 220);
759+ this.contextMenuStrip.Size = new System.Drawing.Size(219, 292);
754760 //
755761 // playMovieMenu
756762 //
@@ -812,6 +818,25 @@
812818 this.storeMenu.Text = "最終保存先へ転送(&M)";
813819 this.storeMenu.Click += new System.EventHandler(this.storeMenu_Click);
814820 //
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+ //
815840 // toolStripMenuItem6
816841 //
817842 this.toolStripMenuItem6.Name = "toolStripMenuItem6";
@@ -1173,7 +1198,7 @@
11731198 this.MainMenuStrip = this.menuStrip;
11741199 this.Name = "MainForm";
11751200 this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
1176- this.Text = "mAgicAnime.NET fix. yossiepon_20151025";
1201+ this.Text = "mAgicAnime.NET fix. yossiepon_20160925";
11771202 this.Load += new System.EventHandler(this.MainForm_Load);
11781203 this.Shown += new System.EventHandler(this.MainForm_Shown);
11791204 this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainForm_FormClosed);
@@ -1297,6 +1322,9 @@
12971322 private System.Windows.Forms.PictureBox datePictureBox;
12981323 private System.Windows.Forms.ToolStripMenuItem debugForceEmptyMenu;
12991324 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;
13001328 }
13011329 }
13021330
--- a/UserInterface/MainForm.cs
+++ b/UserInterface/MainForm.cs
@@ -805,6 +805,9 @@ namespace magicAnime
805805 AnimeEpisode episode = null;
806806 int storyNumber = 0;
807807 Icon icon = null;
808+ // add yossiepon 20160924 begin
809+ Icon icon2 = null;
810+ // add yossiepon 20160924 end
808811 string text;
809812 int cellX, cellY;
810813 bool border = false;
@@ -1044,6 +1047,19 @@ namespace magicAnime
10441047 g.DrawIcon( icon, new Rectangle( newRect.X + 24, newRect.Y + 12, 16, 16 ) );
10451048 }
10461049
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
10471063 }
10481064
10491065 //----------------------
@@ -1654,6 +1670,10 @@ namespace magicAnime
16541670 bool enableCancel = true;
16551671 bool enableUnread = true;
16561672 bool enableProp = true;
1673+ // add yossiepon 20160924 begin
1674+ bool enableUpdateProg = true;
1675+ bool enableDeleteInv = false;
1676+ // add yossiepon 20160924 end
16571677
16581678 foreach(AnimeEpisode ep in episodes)
16591679 {
@@ -1676,6 +1696,27 @@ namespace magicAnime
16761696 enableProp &= !isMulti;
16771697 }
16781698
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+
16791720 //--------------------------------
16801721 // 拡張ツール項目
16811722 //--------------------------------
@@ -1727,6 +1768,10 @@ namespace magicAnime
17271768 cancelReserveMenu.Enabled = enableCancel;
17281769 unreadMenu.Enabled = enableUnread;
17291770 RecordPropertyMenu.Enabled = enableProp;
1771+ // add yossiepon 20160924 begin
1772+ updateProgramPlanMenu.Enabled = enableUpdateProg;
1773+ deleteInvalidEpisode.Enabled = enableDeleteInv;
1774+ // add yossiepon 20160924 end
17301775
17311776 unreadMenu.Checked = !isMulti && episodes[0].Unread;
17321777 unreadMenu.Visible = !Settings.Default.disableUnread;
@@ -2973,6 +3018,56 @@ namespace magicAnime
29733018 }
29743019 }
29753020
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
29763071 }
29773072
29783073 }
--- a/UserInterface/TrayIcon.cs
+++ b/UserInterface/TrayIcon.cs
@@ -64,7 +64,7 @@ namespace magicAnime.UserInterface
6464 mNotifyIcon.DoubleClick += notifyIcon_DoubleClick;
6565 mNotifyIcon.BalloonTipIcon = ToolTipIcon.Info;
6666 mNotifyIcon.BalloonTipTitle = "mAgicAnime";
67- mNotifyIcon.Text = "mAgicAnime fix. yossiepon_20151025";
67+ mNotifyIcon.Text = "mAgicAnime fix. yossiepon_20160925";
6868 // trayIcon.Icon = ((System.Drawing.Icon)(resources.GetObject( "notifyIcon.Icon" )));
6969
7070 //---------------------------