Changeset 18254

Show
Ignore:
Timestamp:
08/26/08 19:04:56 (5 years ago)
Author:
kiri_feather
Message:

発言間の行間調整。発言削除できないバグ修正。既読に出来ないバグ修正。

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

Legend:

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

    r18226 r18254  
    11更新履歴 
    22 
     3***Ver0.0.9.4(Unreleased) 
     4-48サイズアイコンの発言間を微調整 
     5-発言を削除できない場合がある問題を修正 
     6-自分宛@がrecentタブで未読状態で表示されたままになる問題を修正 
    37***Ver0.0.9.3(2008/8/26) 
    48-48サイズアイコンのとき、Ver0091までの複数列表示も選べるようにした。 
  • lang/vb2005/Tween/Tween/Tween.vb

    r18226 r18254  
    814814                If hit Then 
    815815                    ts.allCount += 1 
     816                    Dim lvItem2 As ListViewItem = lvItem.Clone 
    816817                    If _readed = False And ts.unreadManage Then 
    817                         lvItem.Font = _fntUnread 
    818                         lvItem.ForeColor = _clUnread 
    819                         lvItem.SubItems(8).Text = "False" 
     818                        lvItem2.Font = _fntUnread 
     819                        lvItem2.ForeColor = _clUnread 
     820                        lvItem2.SubItems(8).Text = "False" 
    820821                        'ts.tabPage.ImageIndex = 0 
    821822                        ts.unreadCount += 1 
    822823                    Else 
    823                         lvItem.Font = _fntReaded 
    824                         lvItem.ForeColor = _clReaded 
    825                         lvItem.SubItems(8).Text = "True" 
     824                        lvItem2.Font = _fntReaded 
     825                        lvItem2.ForeColor = _clReaded 
     826                        lvItem2.SubItems(8).Text = "True" 
    826827                        'ts.tabPage.ImageIndex = -1 
    827828                    End If 
    828829                    If _onewaylove And SettingDialog.OneWayLove = True Then 
    829                         lvItem.ForeColor = _clOWL 
     830                        lvItem2.ForeColor = _clOWL 
    830831                    End If 
    831832                    If _fav Then 
    832                         lvItem.ForeColor = _clFav 
    833                     End If 
    834  
    835                     Dim lvItem2 As ListViewItem = lvItem.Clone 
     833                        lvItem2.ForeColor = _clFav 
     834                    End If 
     835 
    836836                    If lvItem2.SubItems(8).Text = "False" Then 
    837837                        If ts.oldestUnreadItem IsNot Nothing Then 
     
    846846                End If 
    847847            Next 
     848 
     849            If lItem.Reply Or Regex.IsMatch(lItem.Data, "@" + _username + "([^a-zA-Z0-9_]|$)", RegexOptions.IgnoreCase) Then 
     850                Dim lvItem2 As ListViewItem = lvItem.Clone 
     851                _tabs(1).allCount += 1 
     852                If _readed = False And _tabs(1).unreadManage Then 
     853                    lvItem2.Font = _fntUnread 
     854                    lvItem2.ForeColor = _clUnread 
     855                    lvItem2.SubItems(8).Text = "False" 
     856                    'ListTab.TabPages(1).ImageIndex = 0 
     857                    _tabs(1).unreadCount += 1 
     858                Else 
     859                    lvItem2.Font = _fntReaded 
     860                    lvItem2.ForeColor = _clReaded 
     861                    lvItem2.SubItems(8).Text = "True" 
     862                    'ListTab.TabPages(1).ImageIndex = -1 
     863                End If 
     864                If _onewaylove And SettingDialog.OneWayLove = True Then 
     865                    lvItem2.ForeColor = _clOWL 
     866                End If 
     867                If _fav Then 
     868                    lvItem2.ForeColor = _clFav 
     869                End If 
     870                If lvItem2.SubItems(8).Text = "False" Then 
     871                    If _tabs(1).oldestUnreadItem IsNot Nothing Then 
     872                        If lvItem2.SubItems(5).Text < _tabs(1).oldestUnreadItem.SubItems(5).Text Then _tabs(1).oldestUnreadItem = lvItem2 
     873                    Else 
     874                        _tabs(1).oldestUnreadItem = lvItem2 
     875                    End If 
     876                End If 
     877                Reply.Items.Add(lvItem2) 
     878                If _tabs(1).notify Then nf = True 
     879                If _tabs(1).soundFile <> "" Then snd = _tabs(1).soundFile '優先度高 
     880                '_reply = True 
     881                RepCnt += 1 
     882            End If 
     883 
    848884            If mv = False Then 
    849885                _tabs(0).allCount += 1 
     
    877913            End If 
    878914 
    879             If lItem.Reply Or Regex.IsMatch(lItem.Data, "@" + _username + "([^a-zA-Z0-9_]|$)", RegexOptions.IgnoreCase) Then 
    880                 _tabs(1).allCount += 1 
    881                 If _readed = False And _tabs(1).unreadManage Then 
    882                     lvItem.Font = _fntUnread 
    883                     lvItem.ForeColor = _clUnread 
    884                     lvItem.SubItems(8).Text = "False" 
    885                     'ListTab.TabPages(1).ImageIndex = 0 
    886                     _tabs(1).unreadCount += 1 
    887                 Else 
    888                     lvItem.Font = _fntReaded 
    889                     lvItem.ForeColor = _clReaded 
    890                     lvItem.SubItems(8).Text = "True" 
    891                     'ListTab.TabPages(1).ImageIndex = -1 
    892                 End If 
    893                 If _onewaylove And SettingDialog.OneWayLove = True Then 
    894                     lvItem.ForeColor = _clOWL 
    895                 End If 
    896                 If _fav Then 
    897                     lvItem.ForeColor = _clFav 
    898                 End If 
    899                 Dim lvItem2 As ListViewItem = lvItem.Clone 
    900                 If lvItem2.SubItems(8).Text = "False" Then 
    901                     If _tabs(1).oldestUnreadItem IsNot Nothing Then 
    902                         If lvItem2.SubItems(5).Text < _tabs(1).oldestUnreadItem.SubItems(5).Text Then _tabs(1).oldestUnreadItem = lvItem2 
    903                     Else 
    904                         _tabs(1).oldestUnreadItem = lvItem2 
    905                     End If 
    906                 End If 
    907                 Reply.Items.Add(lvItem2) 
    908                 If _tabs(1).notify Then nf = True 
    909                 If _tabs(1).soundFile <> "" Then snd = _tabs(1).soundFile '優先度高 
    910                 '_reply = True 
    911                 RepCnt += 1 
    912             End If 
    913915 
    914916            nm = "" 
     
    24282430                                For Each itm As ListViewItem In ts.listCustom.Items 
    24292431                                    If MyList.SelectedItems(cnt2).SubItems(5).Text = itm.SubItems(5).Text Then 
    2430                                         If ts.oldestUnreadItem.Equals(itm) Then ts.oldestUnreadItem = Nothing 
     2432                                        If ts.oldestUnreadItem IsNot Nothing AndAlso ts.oldestUnreadItem.Equals(itm) Then ts.oldestUnreadItem = Nothing 
    24312433                                        If itm.SubItems(8).Text = "False" Then ts.unreadCount -= 1 
    24322434                                        ts.allCount -= 1 
     
    24392441                        For Each ts As TabStructure In _tabs 
    24402442                            If ts.listCustom.Equals(MyList) Then 
    2441                                 If ts.oldestUnreadItem.Equals(MyList.SelectedItems(cnt2)) Then ts.oldestUnreadItem = Nothing 
     2443                                If ts.oldestUnreadItem IsNot Nothing AndAlso ts.oldestUnreadItem.Equals(MyList.SelectedItems(cnt2)) Then ts.oldestUnreadItem = Nothing 
    24422444                                If MyList.SelectedItems(cnt2).SubItems(8).Text = "False" Then ts.unreadCount -= 1 
    24432445                                ts.allCount -= 1 
     
    24782480                    For Each ts As TabStructure In _tabs 
    24792481                        If ts.listCustom.Equals(MyList) Then 
    2480                             If ts.oldestUnreadItem.Equals(MyList.SelectedItems(cnt2)) Then ts.oldestUnreadItem = Nothing 
     2482                            If ts.oldestUnreadItem IsNot Nothing AndAlso ts.oldestUnreadItem.Equals(MyList.SelectedItems(cnt2)) Then ts.oldestUnreadItem = Nothing 
    24812483                            If MyList.SelectedItems(cnt2).SubItems(8).Text = "False" Then ts.unreadCount -= 1 
    24822484                            ts.allCount -= 1 
     
    36423644                        If i = 0 Then 
    36433645                            If wd2 - MyList.SmallImageList.ImageSize.Width > 0 Then 
    3644                                 Dim sRct As New Rectangle(x + 1 + MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Y + 1, wd2 - MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Height - 2) 
     3646                                Dim sRct As New Rectangle(x + 1 + MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Y, wd2 - MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Height - 3) 
    36453647                                e.Graphics.DrawString(e.Item.SubItems(i).Text, e.Item.Font, brs, sRct, sf) 
    36463648                            End If 
    36473649                        Else 
    3648                             Dim sRct As New Rectangle(e.Item.SubItems(i).Bounds.X + 1, e.Item.SubItems(i).Bounds.Y + 1, e.Item.SubItems(i).Bounds.Width - 2, e.Item.SubItems(i).Bounds.Height - 2) 
     3650                            Dim sRct As New Rectangle(e.Item.SubItems(i).Bounds.X + 1, e.Item.SubItems(i).Bounds.Y, e.Item.SubItems(i).Bounds.Width - 2, e.Item.SubItems(i).Bounds.Height - 3) 
    36493651                            e.Graphics.DrawString(e.Item.SubItems(i).Text, e.Item.Font, brs, sRct, sf) 
    36503652                        End If 
     
    36643666                        If i = 0 Then 
    36653667                            If wd2 - MyList.SmallImageList.ImageSize.Width > 0 Then 
    3666                                 Dim sRct As New Rectangle(x + 1 + MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Y + 1, wd2 - MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Height - 2) 
     3668                                Dim sRct As New Rectangle(x + 1 + MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Y, wd2 - MyList.SmallImageList.ImageSize.Width, e.Item.SubItems(i).Bounds.Height - 3) 
    36673669                                e.Graphics.DrawString(e.Item.SubItems(i).Text, e.Item.Font, brs, sRct, sf) 
    36683670                            End If 
    36693671                        Else 
    3670                             Dim sRct As New Rectangle(e.Item.SubItems(i).Bounds.X + 1, e.Item.SubItems(i).Bounds.Y + 1, e.Item.SubItems(i).Bounds.Width - 2, e.Item.SubItems(i).Bounds.Height - 2) 
     3672                            Dim sRct As New Rectangle(e.Item.SubItems(i).Bounds.X + 1, e.Item.SubItems(i).Bounds.Y, e.Item.SubItems(i).Bounds.Width - 2, e.Item.SubItems(i).Bounds.Height - 3) 
    36713673                            e.Graphics.DrawString(e.Item.SubItems(i).Text, e.Item.Font, brs, sRct, sf) 
    36723674                        End If 
     
    36993701 
    37003702                    If wd2 - _iconSz - 5 > 0 Then 
    3701                         Dim sRct As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y + 1, wd2 - _iconSz - 5, e.Item.Font.Height) 
    3702                         Dim sRct2 As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y + 1 + e.Item.Font.Height, wd2 - _iconSz - 5, _iconSz - 2 - e.Item.Font.Height) 
     3703                        Dim sRct As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y, wd2 - _iconSz - 5, e.Item.Font.Height) 
     3704                        Dim sRct2 As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y + e.Item.Font.Height, wd2 - _iconSz - 5, _iconSz - e.Item.Font.Height) 
    37033705                        Dim fnt As New Font(e.Item.Font, FontStyle.Bold) 
    37043706                        e.Graphics.DrawString(e.Item.SubItems(1).Text + "(" + e.Item.SubItems(4).Text + ") " + e.Item.SubItems(0).Text + " " + e.Item.SubItems(3).Text, fnt, brs, sRct, sf) 
     
    37143716                    brs = New SolidBrush(e.Item.ForeColor) 
    37153717                    If wd2 - _iconSz - 5 > 0 Then 
    3716                         Dim sRct As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y + 1, wd2 - _iconSz - 5, e.Item.Font.Height) 
    3717                         Dim sRct2 As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y + 1 + e.Item.Font.Height, wd2 - _iconSz - 5, _iconSz - 2 - e.Item.Font.Height) 
     3718                        Dim sRct As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y, wd2 - _iconSz - 5, e.Item.Font.Height) 
     3719                        Dim sRct2 As New Rectangle(x + 5 + _iconSz, e.Item.Bounds.Y + e.Item.Font.Height, wd2 - _iconSz - 5, _iconSz - e.Item.Font.Height) 
    37183720                        Dim fnt As New Font(e.Item.Font, FontStyle.Bold) 
    37193721                        e.Graphics.DrawString(e.Item.SubItems(1).Text + "(" + e.Item.SubItems(4).Text + ") " + e.Item.SubItems(0).Text + " " + e.Item.SubItems(3).Text, fnt, brs, sRct, sf)