From 334747ad54c276e887725d7668ae0154c3f915e1 Mon Sep 17 00:00:00 2001 From: Kimura Youichi Date: Sun, 22 Jan 2023 16:24:22 +0900 Subject: [PATCH] =?utf8?q?AuthTypeSelectDialog=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- OpenTween/AuthTypeSelectDialog.Designer.cs | 139 +++++++++++++++++++++++++++++ OpenTween/AuthTypeSelectDialog.cs | 41 +++++++++ OpenTween/AuthTypeSelectDialog.en.resx | 16 ++++ OpenTween/AuthTypeSelectDialog.resx | 104 +++++++++++++++++++++ 4 files changed, 300 insertions(+) create mode 100644 OpenTween/AuthTypeSelectDialog.Designer.cs create mode 100644 OpenTween/AuthTypeSelectDialog.cs create mode 100644 OpenTween/AuthTypeSelectDialog.en.resx create mode 100644 OpenTween/AuthTypeSelectDialog.resx diff --git a/OpenTween/AuthTypeSelectDialog.Designer.cs b/OpenTween/AuthTypeSelectDialog.Designer.cs new file mode 100644 index 00000000..8481b144 --- /dev/null +++ b/OpenTween/AuthTypeSelectDialog.Designer.cs @@ -0,0 +1,139 @@ +namespace OpenTween +{ + partial class AuthTypeSelectDialog + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AuthTypeSelectDialog)); + this.label1 = new System.Windows.Forms.Label(); + this.AuthByOAuth2RadioButton = new System.Windows.Forms.RadioButton(); + this.AuthByOAuth1RadioButton = new System.Windows.Forms.RadioButton(); + this.OAuth1ConsumerKeyTextBox = new System.Windows.Forms.TextBox(); + this.label2 = new System.Windows.Forms.Label(); + this.label3 = new System.Windows.Forms.Label(); + this.OAuth1ConsumerSecretTextBox = new System.Windows.Forms.TextBox(); + this.UseTwitterComCookieRadioButton = new System.Windows.Forms.RadioButton(); + this.TwitterComCookieTextBox = new System.Windows.Forms.TextBox(); + this.OKButton = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // label1 + // + resources.ApplyResources(this.label1, "label1"); + this.label1.Name = "label1"; + // + // AuthByOAuth2RadioButton + // + resources.ApplyResources(this.AuthByOAuth2RadioButton, "AuthByOAuth2RadioButton"); + this.AuthByOAuth2RadioButton.Name = "AuthByOAuth2RadioButton"; + this.AuthByOAuth2RadioButton.TabStop = true; + this.AuthByOAuth2RadioButton.UseVisualStyleBackColor = true; + // + // AuthByOAuth1RadioButton + // + resources.ApplyResources(this.AuthByOAuth1RadioButton, "AuthByOAuth1RadioButton"); + this.AuthByOAuth1RadioButton.Name = "AuthByOAuth1RadioButton"; + this.AuthByOAuth1RadioButton.TabStop = true; + this.AuthByOAuth1RadioButton.UseVisualStyleBackColor = true; + // + // OAuth1ConsumerKeyTextBox + // + resources.ApplyResources(this.OAuth1ConsumerKeyTextBox, "OAuth1ConsumerKeyTextBox"); + this.OAuth1ConsumerKeyTextBox.Name = "OAuth1ConsumerKeyTextBox"; + // + // label2 + // + resources.ApplyResources(this.label2, "label2"); + this.label2.Name = "label2"; + // + // label3 + // + resources.ApplyResources(this.label3, "label3"); + this.label3.Name = "label3"; + // + // OAuth1ConsumerSecretTextBox + // + resources.ApplyResources(this.OAuth1ConsumerSecretTextBox, "OAuth1ConsumerSecretTextBox"); + this.OAuth1ConsumerSecretTextBox.Name = "OAuth1ConsumerSecretTextBox"; + // + // UseTwitterComCookieRadioButton + // + resources.ApplyResources(this.UseTwitterComCookieRadioButton, "UseTwitterComCookieRadioButton"); + this.UseTwitterComCookieRadioButton.Name = "UseTwitterComCookieRadioButton"; + this.UseTwitterComCookieRadioButton.TabStop = true; + this.UseTwitterComCookieRadioButton.UseVisualStyleBackColor = true; + // + // TwitterComCookieTextBox + // + resources.ApplyResources(this.TwitterComCookieTextBox, "TwitterComCookieTextBox"); + this.TwitterComCookieTextBox.Name = "TwitterComCookieTextBox"; + // + // OKButton + // + resources.ApplyResources(this.OKButton, "OKButton"); + this.OKButton.Name = "OKButton"; + this.OKButton.UseVisualStyleBackColor = true; + // + // AuthTypeSelectDialog + // + this.AcceptButton = this.OKButton; + resources.ApplyResources(this, "$this"); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; + this.Controls.Add(this.OKButton); + this.Controls.Add(this.TwitterComCookieTextBox); + this.Controls.Add(this.UseTwitterComCookieRadioButton); + this.Controls.Add(this.OAuth1ConsumerSecretTextBox); + this.Controls.Add(this.label3); + this.Controls.Add(this.label2); + this.Controls.Add(this.OAuth1ConsumerKeyTextBox); + this.Controls.Add(this.AuthByOAuth1RadioButton); + this.Controls.Add(this.AuthByOAuth2RadioButton); + this.Controls.Add(this.label1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; + this.MaximizeBox = false; + this.Name = "AuthTypeSelectDialog"; + this.ShowIcon = false; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Label label1; + private System.Windows.Forms.RadioButton AuthByOAuth2RadioButton; + private System.Windows.Forms.RadioButton AuthByOAuth1RadioButton; + private System.Windows.Forms.TextBox OAuth1ConsumerKeyTextBox; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Label label3; + private System.Windows.Forms.TextBox OAuth1ConsumerSecretTextBox; + private System.Windows.Forms.RadioButton UseTwitterComCookieRadioButton; + private System.Windows.Forms.TextBox TwitterComCookieTextBox; + private System.Windows.Forms.Button OKButton; + } +} \ No newline at end of file diff --git a/OpenTween/AuthTypeSelectDialog.cs b/OpenTween/AuthTypeSelectDialog.cs new file mode 100644 index 00000000..bee2be08 --- /dev/null +++ b/OpenTween/AuthTypeSelectDialog.cs @@ -0,0 +1,41 @@ +// OpenTween - Client of Twitter +// Copyright (c) 2023 kim_upsilon (@kim_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 , or write to +// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor, +// Boston, MA 02110-1301, USA. + +#nullable enable + +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace OpenTween +{ + public partial class AuthTypeSelectDialog : OTBaseForm + { + public AuthTypeSelectDialog() + => this.InitializeComponent(); + } +} diff --git a/OpenTween/AuthTypeSelectDialog.en.resx b/OpenTween/AuthTypeSelectDialog.en.resx new file mode 100644 index 00000000..94140fa8 --- /dev/null +++ b/OpenTween/AuthTypeSelectDialog.en.resx @@ -0,0 +1,16 @@ + + text/microsoft-resx + 2.0 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 103, 16 + Use OAuth 1.0a + 215, 16 + Use OAuth 2.0 (Not implemented yet) + 185, 12 + Choose how to access Twitter API: + 232, 16 + Use cookie of twitter.com (Experimental) + diff --git a/OpenTween/AuthTypeSelectDialog.resx b/OpenTween/AuthTypeSelectDialog.resx new file mode 100644 index 00000000..7dcea393 --- /dev/null +++ b/OpenTween/AuthTypeSelectDialog.resx @@ -0,0 +1,104 @@ + + text/microsoft-resx + 2.0 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + + 96, 96 + 455, 291 + True + AuthTypeSelectDialog + OpenTween.OTBaseForm, OpenTween, Version=3.2.0.1, Culture=neutral, PublicKeyToken=null + AuthByOAuth1RadioButton + $this + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 7 + AuthByOAuth2RadioButton + $this + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 8 + label1 + $this + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 9 + label2 + $this + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 5 + label3 + $this + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 4 + OAuth1ConsumerKeyTextBox + $this + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 6 + OAuth1ConsumerSecretTextBox + $this + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 3 + OKButton + $this + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 0 + TwitterComCookieTextBox + $this + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 1 + UseTwitterComCookieRadioButton + $this + System.Windows.Forms.RadioButton, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + 2 + True + 15, 61 + 135, 16 + 2 + OAuth 1.0a を使用する + True + False + 15, 38 + 177, 16 + 1 + OAuth 2.0 を使用する(未実装) + True + 13, 13 + 3, 0, 3, 10 + 238, 12 + 0 + Twitter API にアクセスする方法を選択して下さい: + True + 29, 83 + 20, 3, 3, 3 + 132, 12 + 4 + Consumer Key (API Key) + True + 29, 126 + 3, 3, 3, 3 + 160, 12 + 5 + Consumer Secret (API Secret) + 31, 101 + 400, 19 + 3 + 31, 144 + 400, 19 + 6 + Bottom, Right + 368, 256 + 75, 23 + 9 + OK + 31, 193 + True + 400, 50 + 8 + True + 15, 170 + 236, 16 + 7 + twitter.com の Cookie を使用する(実験的) + -- 2.11.0