-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ユーザー・Listタブのヘッダー部分をGeneralTimelineHeaderPanelに分離
- Loading branch information
Showing
6 changed files
with
189 additions
and
26 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
OpenTween.Tests/Controls/GeneralTimelineHeaderPanelTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// OpenTween - Client of Twitter | ||
// Copyright (c) 2024 kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/> | ||
// All rights reserved. | ||
// | ||
// This file is part of OpenTween. | ||
// | ||
// This program is free software; you can redistribute it and/or modify it | ||
// under the terms of the GNU General public License as published by the Free | ||
// Software Foundation; either version 3 of the License, or (at your option) | ||
// any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, but | ||
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public License | ||
// for more details. | ||
// | ||
// You should have received a copy of the GNU General public License along | ||
// with this program. If not, see <http://www.gnu.org/licenses/>, or write to | ||
// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, | ||
// Boston, MA 02110-1301, USA. | ||
|
||
using Xunit; | ||
|
||
namespace OpenTween.Controls | ||
{ | ||
public class GeneralTimelineHeaderPanelTest | ||
{ | ||
[WinFormsFact] | ||
public void Initialize_Test() | ||
{ | ||
using var panel = new GeneralTimelineHeaderPanel(); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// OpenTween - Client of Twitter | ||
// Copyright (c) 2007-2011 kiri_feather (@kiri_feather) <[email protected]> | ||
// (c) 2008-2011 Moz (@syo68k) | ||
// (c) 2008-2011 takeshik (@takeshik) <http://www.takeshik.org/> | ||
// (c) 2010-2011 anis774 (@anis774) <http://d.hatena.ne.jp/anis774/> | ||
// (c) 2010-2011 fantasticswallow (@f_swallow) <http://twitter.com/f_swallow> | ||
// (c) 2011 kim_upsilon (@kim_upsilon) <https://upsilo.net/~upsilon/> | ||
// All rights reserved. | ||
// | ||
// This file is part of OpenTween. | ||
// | ||
// This program is free software; you can redistribute it and/or modify it | ||
// under the terms of the GNU General public License as published by the Free | ||
// Software Foundation; either version 3 of the License, or (at your option) | ||
// any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, but | ||
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ||
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General public License | ||
// for more details. | ||
// | ||
// You should have received a copy of the GNU General public License along | ||
// with this program. If not, see <http://www.gnu.org/licenses/>, or write to | ||
// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, | ||
// Boston, MA 02110-1301, USA. | ||
|
||
#nullable enable | ||
|
||
using System.Windows.Forms; | ||
|
||
namespace OpenTween.Controls | ||
{ | ||
public partial class GeneralTimelineHeaderPanel : UserControl | ||
{ | ||
public string HeaderText | ||
{ | ||
get => this.headerText; | ||
set | ||
{ | ||
this.headerText = value; | ||
this.UpdateLabelUser(); | ||
} | ||
} | ||
|
||
private string headerText = ""; | ||
|
||
public GeneralTimelineHeaderPanel() | ||
=> this.InitializeComponent(); | ||
|
||
private void UpdateLabelUser() | ||
=> this.labelHeader.Text = this.headerText; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="utf-8"?><root xml:space="preserve"> | ||
<resheader name="resmimetype"><value>text/microsoft-resx</value></resheader> | ||
<resheader name="version"><value>2.0</value></resheader> | ||
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader> | ||
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader> | ||
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> | ||
<assembly alias="mscorlib" name="mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> | ||
|
||
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing"><value>96, 96</value></data> | ||
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"><value>True</value></metadata> | ||
<data name="$this.Size" type="System.Drawing.Size, System.Drawing"><value>400, 22</value></data> | ||
<data name=">>$this.Name"><value>GeneralTimelineHeaderPanel</value></data> | ||
<data name=">>$this.Type"><value>System.Windows.Forms.UserControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></data> | ||
<data name=">>labelHeader.Name"><value>labelHeader</value></data> | ||
<data name=">>labelHeader.Parent"><value>$this</value></data> | ||
<data name=">>labelHeader.Type"><value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></data> | ||
<data name=">>labelHeader.ZOrder"><value>0</value></data> | ||
<data name="labelHeader.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms"><value>Fill</value></data> | ||
<data name="labelHeader.Location" type="System.Drawing.Point, System.Drawing"><value>0, 0</value></data> | ||
<data name="labelHeader.Size" type="System.Drawing.Size, System.Drawing"><value>400, 22</value></data> | ||
<data name="labelHeader.TabIndex" type="System.Int32, mscorlib"><value>0</value></data> | ||
<data name="labelHeader.Text"><value>labelHeader</value></data> | ||
<data name="labelHeader.TextAlign" type="System.Drawing.ContentAlignment, System.Drawing"><value>MiddleLeft</value></data> | ||
</root> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters