• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

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

dev


コミットメタ情報

リビジョン26cda27512bc6921959e566f6bf7424b1df8b746 (tree)
日時2013-11-04 18:21:44
作者ANIKITI <anikiti07@gmai...>
コミッターANIKITI

ログメッセージ

イベントビューアのイベント別 TabPage を MyCommon.EVENTTYPE から持ってきて作成するよう変更

変更サマリ

差分

--- a/OpenTween/EventViewerDialog.Designer.cs
+++ b/OpenTween/EventViewerDialog.Designer.cs
@@ -29,9 +29,7 @@
2929 private void InitializeComponent()
3030 {
3131 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EventViewerDialog));
32- this.TabPageUnfav = new System.Windows.Forms.TabPage();
3332 this.SaveLogButton = new System.Windows.Forms.Button();
34- this.TabPageFollow = new System.Windows.Forms.TabPage();
3533 this.CheckBoxFilter = new System.Windows.Forms.CheckBox();
3634 this.TabPageAll = new System.Windows.Forms.TabPage();
3735 this.EventList = new System.Windows.Forms.ListView();
@@ -41,16 +39,10 @@
4139 this.ColumnHeader4 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
4240 this.CheckRegex = new System.Windows.Forms.CheckBox();
4341 this.TextBoxKeyword = new System.Windows.Forms.TextBox();
44- this.TabPageFav = new System.Windows.Forms.TabPage();
4542 this.StatusLabelCount = new System.Windows.Forms.ToolStripStatusLabel();
4643 this.OK_Button = new System.Windows.Forms.Button();
4744 this.StatusStrip1 = new System.Windows.Forms.StatusStrip();
48- this.TabPageAddLists = new System.Windows.Forms.TabPage();
4945 this.TabEventType = new System.Windows.Forms.TabControl();
50- this.TabPageRemoveLists = new System.Windows.Forms.TabPage();
51- this.TabPageListsCreated = new System.Windows.Forms.TabPage();
52- this.TabPageBlock = new System.Windows.Forms.TabPage();
53- this.TabPageUserUpdate = new System.Windows.Forms.TabPage();
5446 this.ButtonRefresh = new System.Windows.Forms.Button();
5547 this.CheckExcludeMyEvent = new System.Windows.Forms.CheckBox();
5648 this.SaveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
@@ -59,13 +51,6 @@
5951 this.TabEventType.SuspendLayout();
6052 this.SuspendLayout();
6153 //
62- // TabPageUnfav
63- //
64- resources.ApplyResources(this.TabPageUnfav, "TabPageUnfav");
65- this.TabPageUnfav.Name = "TabPageUnfav";
66- this.TabPageUnfav.Tag = "Unfavorite";
67- this.TabPageUnfav.UseVisualStyleBackColor = true;
68- //
6954 // SaveLogButton
7055 //
7156 resources.ApplyResources(this.SaveLogButton, "SaveLogButton");
@@ -73,13 +58,6 @@
7358 this.SaveLogButton.UseVisualStyleBackColor = true;
7459 this.SaveLogButton.Click += new System.EventHandler(this.SaveLogButton_Click);
7560 //
76- // TabPageFollow
77- //
78- resources.ApplyResources(this.TabPageFollow, "TabPageFollow");
79- this.TabPageFollow.Name = "TabPageFollow";
80- this.TabPageFollow.Tag = "Follow";
81- this.TabPageFollow.UseVisualStyleBackColor = true;
82- //
8361 // CheckBoxFilter
8462 //
8563 resources.ApplyResources(this.CheckBoxFilter, "CheckBoxFilter");
@@ -141,13 +119,6 @@
141119 this.TextBoxKeyword.Name = "TextBoxKeyword";
142120 this.TextBoxKeyword.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxKeyword_KeyPress);
143121 //
144- // TabPageFav
145- //
146- resources.ApplyResources(this.TabPageFav, "TabPageFav");
147- this.TabPageFav.Name = "TabPageFav";
148- this.TabPageFav.Tag = "Favorite";
149- this.TabPageFav.UseVisualStyleBackColor = true;
150- //
151122 // StatusLabelCount
152123 //
153124 this.StatusLabelCount.Name = "StatusLabelCount";
@@ -167,58 +138,15 @@
167138 resources.ApplyResources(this.StatusStrip1, "StatusStrip1");
168139 this.StatusStrip1.Name = "StatusStrip1";
169140 //
170- // TabPageAddLists
171- //
172- resources.ApplyResources(this.TabPageAddLists, "TabPageAddLists");
173- this.TabPageAddLists.Name = "TabPageAddLists";
174- this.TabPageAddLists.Tag = "ListMemberAdded";
175- this.TabPageAddLists.UseVisualStyleBackColor = true;
176- //
177141 // TabEventType
178142 //
179143 resources.ApplyResources(this.TabEventType, "TabEventType");
180144 this.TabEventType.Controls.Add(this.TabPageAll);
181- this.TabEventType.Controls.Add(this.TabPageFav);
182- this.TabEventType.Controls.Add(this.TabPageUnfav);
183- this.TabEventType.Controls.Add(this.TabPageFollow);
184- this.TabEventType.Controls.Add(this.TabPageAddLists);
185- this.TabEventType.Controls.Add(this.TabPageRemoveLists);
186- this.TabEventType.Controls.Add(this.TabPageListsCreated);
187- this.TabEventType.Controls.Add(this.TabPageBlock);
188- this.TabEventType.Controls.Add(this.TabPageUserUpdate);
189145 this.TabEventType.Name = "TabEventType";
190146 this.TabEventType.SelectedIndex = 0;
191147 this.TabEventType.SelectedIndexChanged += new System.EventHandler(this.TabEventType_SelectedIndexChanged);
192148 this.TabEventType.Selecting += new System.Windows.Forms.TabControlCancelEventHandler(this.TabEventType_Selecting);
193149 //
194- // TabPageRemoveLists
195- //
196- resources.ApplyResources(this.TabPageRemoveLists, "TabPageRemoveLists");
197- this.TabPageRemoveLists.Name = "TabPageRemoveLists";
198- this.TabPageRemoveLists.Tag = "ListMemberRemoved";
199- this.TabPageRemoveLists.UseVisualStyleBackColor = true;
200- //
201- // TabPageListsCreated
202- //
203- resources.ApplyResources(this.TabPageListsCreated, "TabPageListsCreated");
204- this.TabPageListsCreated.Name = "TabPageListsCreated";
205- this.TabPageListsCreated.Tag = "ListCreated";
206- this.TabPageListsCreated.UseVisualStyleBackColor = true;
207- //
208- // TabPageBlock
209- //
210- resources.ApplyResources(this.TabPageBlock, "TabPageBlock");
211- this.TabPageBlock.Name = "TabPageBlock";
212- this.TabPageBlock.Tag = "Block";
213- this.TabPageBlock.UseVisualStyleBackColor = true;
214- //
215- // TabPageUserUpdate
216- //
217- resources.ApplyResources(this.TabPageUserUpdate, "TabPageUserUpdate");
218- this.TabPageUserUpdate.Name = "TabPageUserUpdate";
219- this.TabPageUserUpdate.Tag = "UserUpdate";
220- this.TabPageUserUpdate.UseVisualStyleBackColor = true;
221- //
222150 // ButtonRefresh
223151 //
224152 resources.ApplyResources(this.ButtonRefresh, "ButtonRefresh");
@@ -263,9 +191,7 @@
263191
264192 #endregion
265193
266- internal System.Windows.Forms.TabPage TabPageUnfav;
267194 internal System.Windows.Forms.Button SaveLogButton;
268- internal System.Windows.Forms.TabPage TabPageFollow;
269195 internal System.Windows.Forms.CheckBox CheckBoxFilter;
270196 internal System.Windows.Forms.TabPage TabPageAll;
271197 internal System.Windows.Forms.ListView EventList;
@@ -275,16 +201,10 @@
275201 internal System.Windows.Forms.ColumnHeader ColumnHeader4;
276202 internal System.Windows.Forms.CheckBox CheckRegex;
277203 internal System.Windows.Forms.TextBox TextBoxKeyword;
278- internal System.Windows.Forms.TabPage TabPageFav;
279204 internal System.Windows.Forms.ToolStripStatusLabel StatusLabelCount;
280205 internal System.Windows.Forms.Button OK_Button;
281206 internal System.Windows.Forms.StatusStrip StatusStrip1;
282- internal System.Windows.Forms.TabPage TabPageAddLists;
283207 internal System.Windows.Forms.TabControl TabEventType;
284- internal System.Windows.Forms.TabPage TabPageRemoveLists;
285- internal System.Windows.Forms.TabPage TabPageListsCreated;
286- internal System.Windows.Forms.TabPage TabPageBlock;
287- internal System.Windows.Forms.TabPage TabPageUserUpdate;
288208 internal System.Windows.Forms.Button ButtonRefresh;
289209 internal System.Windows.Forms.CheckBox CheckExcludeMyEvent;
290210 internal System.Windows.Forms.SaveFileDialog SaveFileDialog1;
--- a/OpenTween/EventViewerDialog.cs
+++ b/OpenTween/EventViewerDialog.cs
@@ -73,6 +73,12 @@ namespace OpenTween
7373
7474 private void EventViewerDialog_Shown(object sender, EventArgs e)
7575 {
76+ // タブ初期化
77+ foreach (var tabPage in CreateTabsFromUserStreamsEvent())
78+ {
79+ TabEventType.TabPages.Add(tabPage);
80+ }
81+
7682 EventList.BeginUpdate();
7783 _curTab = TabEventType.SelectedTab;
7884 CreateFilterdEventSource();
@@ -266,5 +272,17 @@ namespace OpenTween
266272 _event.Id.ToString());
267273 }
268274 }
275+
276+ private static IEnumerable<TabPage> CreateTabsFromUserStreamsEvent()
277+ {
278+ return Enum.GetNames(typeof(MyCommon.EVENTTYPE))
279+ .Where(e => e != "None" && e != "All")
280+ .Select(e => new TabPage(e)
281+ {
282+ // Name = "TabPage" + e,
283+ Tag = e,
284+ UseVisualStyleBackColor = true
285+ });
286+ }
269287 }
270288 }
--- a/OpenTween/Twitter.cs
+++ b/OpenTween/Twitter.cs
@@ -3530,7 +3530,8 @@ namespace OpenTween
35303530 evt.Target = "";
35313531 break;
35323532 case "unfollow":
3533- return;
3533+ evt.Target = "@" + eventData.Target.ScreenName;
3534+ break;
35343535 case "favorite":
35353536 case "unfavorite":
35363537 evt.Target = "@" + eventData.TargetObject.User.ScreenName + ":" + WebUtility.HtmlDecode(eventData.TargetObject.Text);
@@ -3589,6 +3590,8 @@ namespace OpenTween
35893590 case "list_member_added":
35903591 case "list_member_removed":
35913592 case "list_updated":
3593+ case "list_user_subscribed":
3594+ case "list_user_unsubscribed":
35923595 evt.Target = eventData.TargetObject.FullName;
35933596 break;
35943597 case "block":
@@ -3605,9 +3608,6 @@ namespace OpenTween
36053608 case "list_created":
36063609 evt.Target = "";
36073610 break;
3608- case "list_user_subscribed":
3609- case "list_user_unsubscribed":
3610- return;
36113611 default:
36123612 MyCommon.TraceOut("Unknown Event:" + evt.Event + Environment.NewLine + content);
36133613 break;