OpenTweenのfork
修订版 | 2cda1637fb7e5e7ae5d07c840066d98b4c198ddd (tree) |
---|---|
时间 | 2012-02-18 23:11:16 |
作者 | kiri_feather <kiri_feather@user...> |
Commiter | Kimura Youichi |
0882。API情報取得をAPI使用に戻し。
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@133 e39ad16e-3079-482e-bb30-4b4d378143b6
@@ -55,5 +55,5 @@ Imports System.Runtime.InteropServices | ||
55 | 55 | ' <Assembly: AssemblyVersion("1.0.*")> |
56 | 56 | |
57 | 57 | <Assembly: AssemblyVersion("0.1.0.0")> |
58 | -<Assembly: AssemblyFileVersion("0.8.8.1")> | |
58 | +<Assembly: AssemblyFileVersion("0.8.8.2")> | |
59 | 59 |
@@ -1,5 +1,16 @@ | ||
1 | 1 | 更新履歴 |
2 | 2 | |
3 | +==== Ver 0.8.8.2(2010/03/12) | |
4 | + * 認証エラーが返ってくると、以後更新しなくなってしまうバグ修正 | |
5 | + * API情報取得が正常に動作しないバグ修正 | |
6 | + * 検索タブの遡りで、キャッシュが効いてしまう現象への対処 | |
7 | + * BASIC認証も選べるように(各APIの接続先は共通なので、API制限は共通となります) | |
8 | + * ProxyAPI対応として、APIの接続先URLの一部を置き換えできるように設定追加 | |
9 | + * 1秒以内の同種のAPIリクエストをキャンセルするように | |
10 | + * home_timeline,mentions,DirectMessageを遡れるように(Shift-F5,Shift-r)(DMはTwitterが仕様と違う動きをするため取得出来ません) | |
11 | + * 公式RTに対するQT返信時に、in_reply_toがつかないバグ修正 | |
12 | + * 最小化状態で起動するとレイアウトが崩れる問題に対応(Tweenへのショートカットのプロパティで設定すると最小化状態で起動できます) | |
13 | + * 投稿時に自動URL短縮される際に、最後のURLしか短縮されない場合があるバグ修正 | |
3 | 14 | ==== Ver 0.8.8.1(2010/03/3) |
4 | 15 | * Webモード廃止 |
5 | 16 | * OAuth(xAuth)対応(API上限が350へ) |
@@ -28,6 +28,7 @@ Partial Class TweenMain | ||
28 | 28 | Me.ToolStripContainer1 = New System.Windows.Forms.ToolStripContainer |
29 | 29 | Me.StatusStrip1 = New System.Windows.Forms.StatusStrip |
30 | 30 | Me.StatusLabelUrl = New System.Windows.Forms.ToolStripStatusLabel |
31 | + Me.StatusLabel = New Tween.TweenCustomControl.ToolStripLabelHistory | |
31 | 32 | Me.HashStripSplitButton = New System.Windows.Forms.ToolStripSplitButton |
32 | 33 | Me.ContextMenuStripPostMode = New System.Windows.Forms.ContextMenuStrip(Me.components) |
33 | 34 | Me.ToolStripMenuItemUrlMultibyteSplit = New System.Windows.Forms.ToolStripMenuItem |
@@ -62,6 +63,7 @@ Partial Class TweenMain | ||
62 | 63 | Me.ToolStripMenuItem1 = New System.Windows.Forms.ToolStripSeparator |
63 | 64 | Me.SaveIconPictureToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem |
64 | 65 | Me.NameLabel = New System.Windows.Forms.Label |
66 | + Me.PostBrowser = New System.Windows.Forms.WebBrowser | |
65 | 67 | Me.ContextMenuStrip4 = New System.Windows.Forms.ContextMenuStrip(Me.components) |
66 | 68 | Me.ToolStripMenuItem2 = New System.Windows.Forms.ToolStripMenuItem |
67 | 69 | Me.SearchItem2ToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem |
@@ -229,8 +231,6 @@ Partial Class TweenMain | ||
229 | 231 | Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog |
230 | 232 | Me.TimerRefreshIcon = New System.Windows.Forms.Timer(Me.components) |
231 | 233 | Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog |
232 | - Me.PostBrowser = New System.Windows.Forms.WebBrowser | |
233 | - Me.StatusLabel = New Tween.TweenCustomControl.ToolStripLabelHistory | |
234 | 234 | Me.ToolStripContainer1.BottomToolStripPanel.SuspendLayout() |
235 | 235 | Me.ToolStripContainer1.ContentPanel.SuspendLayout() |
236 | 236 | Me.ToolStripContainer1.TopToolStripPanel.SuspendLayout() |
@@ -289,6 +289,14 @@ Partial Class TweenMain | ||
289 | 289 | resources.ApplyResources(Me.StatusLabelUrl, "StatusLabelUrl") |
290 | 290 | Me.StatusLabelUrl.Spring = True |
291 | 291 | ' |
292 | + 'StatusLabel | |
293 | + ' | |
294 | + Me.StatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right | |
295 | + Me.StatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text | |
296 | + Me.StatusLabel.DoubleClickEnabled = True | |
297 | + Me.StatusLabel.Name = "StatusLabel" | |
298 | + resources.ApplyResources(Me.StatusLabel, "StatusLabel") | |
299 | + ' | |
292 | 300 | 'HashStripSplitButton |
293 | 301 | ' |
294 | 302 | Me.HashStripSplitButton.AutoToolTip = False |
@@ -523,6 +531,18 @@ Partial Class TweenMain | ||
523 | 531 | Me.NameLabel.Name = "NameLabel" |
524 | 532 | Me.NameLabel.UseMnemonic = False |
525 | 533 | ' |
534 | + 'PostBrowser | |
535 | + ' | |
536 | + Me.PostBrowser.AllowWebBrowserDrop = False | |
537 | + Me.TableLayoutPanel1.SetColumnSpan(Me.PostBrowser, 2) | |
538 | + Me.PostBrowser.ContextMenuStrip = Me.ContextMenuStrip4 | |
539 | + resources.ApplyResources(Me.PostBrowser, "PostBrowser") | |
540 | + Me.PostBrowser.IsWebBrowserContextMenuEnabled = False | |
541 | + Me.PostBrowser.Name = "PostBrowser" | |
542 | + Me.PostBrowser.ScriptErrorsSuppressed = True | |
543 | + Me.PostBrowser.TabStop = False | |
544 | + Me.PostBrowser.Url = New System.Uri("", System.UriKind.Relative) | |
545 | + ' | |
526 | 546 | 'ContextMenuStrip4 |
527 | 547 | ' |
528 | 548 | Me.ContextMenuStrip4.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItem2, Me.ToolStripSeparator13, Me.ToolStripMenuItem3, Me.ToolStripMenuItem4, Me.ToolStripMenuItem5, Me.ToolStripSeparator5, Me.FollowContextMenuItem, Me.RemoveContextMenuItem, Me.FriendshipContextMenuItem, Me.ToolStripSeparator32, Me.IdFilterAddMenuItem, Me.ToolStripSeparator33, Me.UseHashtagMenuItem}) |
@@ -1387,26 +1407,6 @@ Partial Class TweenMain | ||
1387 | 1407 | ' |
1388 | 1408 | Me.OpenFileDialog1.FileName = "OpenFileDialog1" |
1389 | 1409 | ' |
1390 | - 'PostBrowser | |
1391 | - ' | |
1392 | - Me.PostBrowser.AllowWebBrowserDrop = False | |
1393 | - Me.TableLayoutPanel1.SetColumnSpan(Me.PostBrowser, 2) | |
1394 | - Me.PostBrowser.ContextMenuStrip = Me.ContextMenuStrip4 | |
1395 | - resources.ApplyResources(Me.PostBrowser, "PostBrowser") | |
1396 | - Me.PostBrowser.IsWebBrowserContextMenuEnabled = False | |
1397 | - Me.PostBrowser.Name = "PostBrowser" | |
1398 | - Me.PostBrowser.ScriptErrorsSuppressed = True | |
1399 | - Me.PostBrowser.TabStop = False | |
1400 | - Me.PostBrowser.Url = New System.Uri("", System.UriKind.Relative) | |
1401 | - ' | |
1402 | - 'StatusLabel | |
1403 | - ' | |
1404 | - Me.StatusLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right | |
1405 | - Me.StatusLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text | |
1406 | - Me.StatusLabel.DoubleClickEnabled = True | |
1407 | - Me.StatusLabel.Name = "StatusLabel" | |
1408 | - resources.ApplyResources(Me.StatusLabel, "StatusLabel") | |
1409 | - ' | |
1410 | 1410 | 'TweenMain |
1411 | 1411 | ' |
1412 | 1412 | Me.AllowDrop = True |
@@ -1887,6 +1887,12 @@ | ||
1887 | 1887 | <data name=">>StatusLabelUrl.Type" xml:space="preserve"> |
1888 | 1888 | <value>System.Windows.Forms.ToolStripStatusLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
1889 | 1889 | </data> |
1890 | + <data name=">>StatusLabel.Name" xml:space="preserve"> | |
1891 | + <value>StatusLabel</value> | |
1892 | + </data> | |
1893 | + <data name=">>StatusLabel.Type" xml:space="preserve"> | |
1894 | + <value>Tween.TweenCustomControl.ToolStripLabelHistory, Tween, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value> | |
1895 | + </data> | |
1890 | 1896 | <data name=">>HashStripSplitButton.Name" xml:space="preserve"> |
1891 | 1897 | <value>HashStripSplitButton</value> |
1892 | 1898 | </data> |
@@ -2991,12 +2997,6 @@ | ||
2991 | 2997 | <data name=">>OpenFileDialog1.Type" xml:space="preserve"> |
2992 | 2998 | <value>System.Windows.Forms.OpenFileDialog, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> |
2993 | 2999 | </data> |
2994 | - <data name=">>StatusLabel.Name" xml:space="preserve"> | |
2995 | - <value>StatusLabel</value> | |
2996 | - </data> | |
2997 | - <data name=">>StatusLabel.Type" xml:space="preserve"> | |
2998 | - <value>Tween.TweenCustomControl.ToolStripLabelHistory, Tween, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null</value> | |
2999 | - </data> | |
3000 | 3000 | <data name=">>$this.Name" xml:space="preserve"> |
3001 | 3001 | <value>TweenMain</value> |
3002 | 3002 | </data> |
@@ -3984,31 +3984,31 @@ Public Class Twitter | ||
3984 | 3984 | |
3985 | 3985 | If _endingFlag Then Return True |
3986 | 3986 | |
3987 | - info.MaxCount = twCon.UpperCountApi | |
3988 | - info.RemainCount = twCon.RemainCountApi | |
3989 | - info.ResetTime = twCon.ResetTimeApi | |
3990 | - Return True | |
3991 | - 'Dim res As HttpStatusCode | |
3992 | - 'Dim content As String = "" | |
3993 | - 'Try | |
3994 | - ' res = twCon.RateLimitStatus(content) | |
3995 | - 'Catch ex As Exception | |
3996 | - ' Return False | |
3997 | - 'End Try | |
3998 | - | |
3999 | - 'If res <> HttpStatusCode.OK Then Return False | |
4000 | - | |
4001 | - 'Dim xdoc As New XmlDocument | |
4002 | - 'Try | |
4003 | - ' xdoc.LoadXml(content) | |
4004 | - ' info.MaxCount = Integer.Parse(xdoc.SelectSingleNode("/hash/hourly-limit").InnerText) | |
4005 | - ' info.RemainCount = Integer.Parse(xdoc.SelectSingleNode("/hash/remaining-hits").InnerText) | |
4006 | - ' info.ResetTime = DateTime.Parse(xdoc.SelectSingleNode("/hash/reset-time").InnerText) | |
4007 | - ' info.ResetTimeInSeconds = Integer.Parse(xdoc.SelectSingleNode("/hash/reset-time-in-seconds").InnerText) | |
4008 | - ' Return True | |
4009 | - 'Catch ex As Exception | |
4010 | - ' Return False | |
4011 | - 'End Try | |
3987 | + 'info.MaxCount = twCon.UpperCountApi | |
3988 | + 'info.RemainCount = twCon.RemainCountApi | |
3989 | + 'info.ResetTime = twCon.ResetTimeApi | |
3990 | + 'Return True | |
3991 | + Dim res As HttpStatusCode | |
3992 | + Dim content As String = "" | |
3993 | + Try | |
3994 | + res = twCon.RateLimitStatus(content) | |
3995 | + Catch ex As Exception | |
3996 | + Return False | |
3997 | + End Try | |
3998 | + | |
3999 | + If res <> HttpStatusCode.OK Then Return False | |
4000 | + | |
4001 | + Dim xdoc As New XmlDocument | |
4002 | + Try | |
4003 | + xdoc.LoadXml(content) | |
4004 | + info.MaxCount = Integer.Parse(xdoc.SelectSingleNode("/hash/hourly-limit").InnerText) | |
4005 | + info.RemainCount = Integer.Parse(xdoc.SelectSingleNode("/hash/remaining-hits").InnerText) | |
4006 | + info.ResetTime = DateTime.Parse(xdoc.SelectSingleNode("/hash/reset-time").InnerText) | |
4007 | + 'info.ResetTimeInSeconds = Integer.Parse(xdoc.SelectSingleNode("/hash/reset-time-in-seconds").InnerText) | |
4008 | + Return True | |
4009 | + Catch ex As Exception | |
4010 | + Return False | |
4011 | + End Try | |
4012 | 4012 | End Function |
4013 | 4013 | |
4014 | 4014 | Public Function GetHashList() As String() |