Changeset 33279

Show
Ignore:
Timestamp:
05/13/09 16:25:59 (4 years ago)
Author:
syo68k
Message:

all @ replies廃止の仕様変更に伴い複数Replyの先頭にドットを付加するように修正

Location:
lang/vb2005/Tween/trunk/Tween
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/vb2005/Tween/trunk/Tween/Resources/ChangeLog.txt

    r33276 r33279  
    44-Outputzに送信する設定で復活の呪文に問題があるときに投稿が必ずPOST規制判定されていたバグを修正 
    55-短縮URLの展開結果がマルチバイト文字を含む場合に正常に展開できないことがあるのを修正 
     6-all @ replies廃止の仕様変更に伴い複数Replyの先頭にドットを付加するように修正 
    67***Ver 0.4.6.0(2009/5/8) 
    78-ListView右クリックあるいは操作メニューを開くとクラッシュすることがあるバグを修正 
  • lang/vb2005/Tween/trunk/Tween/Tween.vb

    r33262 r33279  
    40734073        '↑仕様変更で全部リプライ扱いでOK(先頭ドット付加しない) 
    40744074        '090403暫定でドットを付加しないようにだけ修正。単独と複数の処理は統合できると思われる。 
     4075        '090513 all @ replies 廃止の仕様変更によりドット付加に戻し(syo68k) 
    40754076 
    40764077        If _curList.SelectedIndices.Count > 0 Then 
     
    40964097                        If StatusText.Text.Contains("@" + _curPost.Name + " ") Then Exit Sub 
    40974098                        If Not StatusText.Text.StartsWith("@") Then 
    4098                             'If StatusText.Text.StartsWith(". ") Then 
    4099                             '    ' 複数リプライ 
    4100                             '    StatusText.Text = StatusText.Text.Insert(2, "@" + _curPost.Name + " ") 
    4101                             '    _reply_to_id = 0 
    4102                             '    _reply_to_name = Nothing 
    4103                             'Else 
    4104                             ' 単独リプライ 
    4105                             StatusText.Text = "@" + _curPost.Name + " " + StatusText.Text 
    4106                             _reply_to_id = _curPost.Id 
    4107                             _reply_to_name = _curPost.Name 
    4108                             'End If 
     4099                            If StatusText.Text.StartsWith(". ") Then 
     4100                                ' 複数リプライ 
     4101                                StatusText.Text = StatusText.Text.Insert(2, "@" + _curPost.Name + " ") 
     4102                                _reply_to_id = 0 
     4103                                _reply_to_name = Nothing 
     4104                            Else 
     4105                                ' 単独リプライ 
     4106                                StatusText.Text = "@" + _curPost.Name + " " + StatusText.Text 
     4107                                _reply_to_id = _curPost.Id 
     4108                                _reply_to_name = _curPost.Name 
     4109                            End If 
    41094110                        Else 
    41104111                            ' 複数リプライ 
    4111                             'StatusText.Text = ". @" + _curPost.Name + " " + StatusText.Text 
    4112                             StatusText.Text = "@" + _curPost.Name + " " + StatusText.Text 
     4112                            StatusText.Text = ". @" + _curPost.Name + " " + StatusText.Text 
     4113                            'StatusText.Text = "@" + _curPost.Name + " " + StatusText.Text 
    41134114                            _reply_to_id = 0 
    41144115                            _reply_to_name = Nothing 
     
    41164117                    Else 
    41174118                        Dim sidx As Integer = StatusText.SelectionStart 
    4118                         'If StatusText.Text.StartsWith("@") Then 
    4119                         '    '複数リプライ 
    4120                         '    StatusText.Text = ". " + StatusText.Text.Insert(sidx, " @" + _curPost.Name + " ") 
    4121                         '    sidx += 5 + _curPost.Name.Length 
    4122                         'Else 
     4119                        If StatusText.Text.StartsWith("@") Then 
     4120                            '複数リプライ 
     4121                            StatusText.Text = ". " + StatusText.Text.Insert(sidx, " @" + _curPost.Name + " ") 
     4122                            sidx += 5 + _curPost.Name.Length 
     4123                        Else 
    41234124                            ' 複数リプライ 
    41244125                            StatusText.Text = StatusText.Text.Insert(sidx, " @" + _curPost.Name + " ") 
    41254126                            sidx += 3 + _curPost.Name.Length 
    4126                         'End If 
     4127                        End If 
    41274128                        StatusText.SelectionStart = sidx 
    41284129                        StatusText.Focus() 
     
    41384139                If isAuto Then 
    41394140                    Dim sTxt As String = StatusText.Text 
    4140                     'If Not sTxt.StartsWith(". ") Then 
    4141                     '    sTxt = ". " + sTxt 
    4142                     'End If 
     4141                    If Not sTxt.StartsWith(". ") Then 
     4142                        sTxt = ". " + sTxt 
     4143                    End If 
    41434144                    For cnt As Integer = 0 To _curList.SelectedIndices.Count - 1 
    41444145                        Dim post As PostClass = _statuses.Item(_curTab.Text, _curList.SelectedIndices(cnt)) 
    41454146                        If Not sTxt.Contains("@" + post.Name + " ") Then 
    4146                             'sTxt = sTxt.Insert(2, "@" + post.Name + " ") 
    4147                             sTxt = "@" + post.Name + " " + sTxt 
     4147                            sTxt = sTxt.Insert(2, "@" + post.Name + " ") 
     4148                            'sTxt = "@" + post.Name + " " + sTxt 
    41484149                        End If 
    41494150                    Next 
     
    41684169                    Next 
    41694170                    If ids.Length = 0 Then Exit Sub 
    4170                     'If Not StatusText.Text.StartsWith(". ") Then 
    4171                     '    StatusText.Text = ". " + StatusText.Text 
    4172                     '    sidx += 2 
    4173                     'End If 
     4171                    If Not StatusText.Text.StartsWith(". ") Then 
     4172                        StatusText.Text = ". " + StatusText.Text 
     4173                        sidx += 2 
     4174                    End If 
    41744175                    If sidx > 0 Then 
    41754176                        If StatusText.Text.Substring(sidx - 1, 1) <> " " Then 
     
    41774178                        End If 
    41784179                    End If 
    4179                     'If StatusText.Text.StartsWith("@") Then 
    4180                     '    StatusText.Text = ". " + StatusText.Text.Insert(sidx, ids) 
    4181                     '    sidx += 2 + ids.Length 
    4182                     'Else 
    4183                     StatusText.Text = StatusText.Text.Insert(sidx, ids) 
    4184                     sidx += 1 + ids.Length 
    4185                     'End If 
     4180                    If StatusText.Text.StartsWith("@") Then 
     4181                        StatusText.Text = ". " + StatusText.Text.Insert(sidx, ids) 
     4182                        sidx += 2 + ids.Length 
     4183                    Else 
     4184                        StatusText.Text = StatusText.Text.Insert(sidx, ids) 
     4185                        sidx += 1 + ids.Length 
     4186                    End If 
    41864187                    StatusText.SelectionStart = sidx 
    41874188                    StatusText.Focus() 
     
    41894190                End If 
    41904191            End If 
    4191         StatusText.SelectionStart = StatusText.Text.Length 
    4192         StatusText.Focus() 
     4192            StatusText.SelectionStart = StatusText.Text.Length 
     4193            StatusText.Focus() 
    41934194        End If 
    41944195    End Sub