File size: 15,258 Bytes
c336648
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
namespace PNGMetadataViewer
{
    partial class PNGMetadataViewerForm
    {
        /// <summary>
        ///  Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        ///  Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        ///  Required method for Designer support - do not modify
        ///  the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new System.ComponentModel.Container();
            pictureBox = new PictureBox();
            promptMenuStrip = new ContextMenuStrip(components);
            copyPromptMenuItem = new ToolStripMenuItem();
            statusStrip = new StatusStrip();
            toolStripStatusLabel = new ToolStripStatusLabel();
            formTableLayoutPanel = new TableLayoutPanel();
            clearButton = new Button();
            promptsTableLayoutPanel = new TableLayoutPanel();
            promptGroupBox = new GroupBox();
            promptBox = new TextBox();
            negativeGroupBox = new GroupBox();
            negativePromptBox = new TextBox();
            modelMetadataGroupBox = new GroupBox();
            modelMetadataGridView = new DataGridView();
            imageMetadataGroupBox = new GroupBox();
            imageMetadataGridView = new DataGridView();
            ((System.ComponentModel.ISupportInitialize)pictureBox).BeginInit();
            promptMenuStrip.SuspendLayout();
            statusStrip.SuspendLayout();
            formTableLayoutPanel.SuspendLayout();
            promptsTableLayoutPanel.SuspendLayout();
            promptGroupBox.SuspendLayout();
            negativeGroupBox.SuspendLayout();
            modelMetadataGroupBox.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)modelMetadataGridView).BeginInit();
            imageMetadataGroupBox.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)imageMetadataGridView).BeginInit();
            SuspendLayout();
            // 
            // pictureBox
            // 
            pictureBox.BackColor = Color.FromArgb(46, 62, 80);
            pictureBox.BackgroundImage = Properties.Resources.DropImageHere;
            pictureBox.BackgroundImageLayout = ImageLayout.Center;
            pictureBox.BorderStyle = BorderStyle.FixedSingle;
            pictureBox.Cursor = Cursors.Hand;
            pictureBox.Dock = DockStyle.Fill;
            pictureBox.InitialImage = null;
            pictureBox.Location = new Point(3, 3);
            pictureBox.Name = "pictureBox";
            pictureBox.Size = new Size(784, 874);
            pictureBox.SizeMode = PictureBoxSizeMode.CenterImage;
            pictureBox.TabIndex = 0;
            pictureBox.TabStop = false;
            // 
            // promptMenuStrip
            // 
            promptMenuStrip.ImageScalingSize = new Size(20, 20);
            promptMenuStrip.Items.AddRange(new ToolStripItem[] { copyPromptMenuItem });
            promptMenuStrip.Name = "contextMenuStrip1";
            promptMenuStrip.Size = new Size(170, 30);
            // 
            // copyPromptMenuItem
            // 
            copyPromptMenuItem.Image = Properties.Resources.favicon;
            copyPromptMenuItem.Name = "copyPromptMenuItem";
            copyPromptMenuItem.Size = new Size(169, 26);
            copyPromptMenuItem.Text = "Copy Prompt";
            copyPromptMenuItem.Click += copyPromptMenuItem_Click;
            // 
            // statusStrip
            // 
            statusStrip.ImageScalingSize = new Size(20, 20);
            statusStrip.Items.AddRange(new ToolStripItem[] { toolStripStatusLabel });
            statusStrip.Location = new Point(0, 990);
            statusStrip.Name = "statusStrip";
            statusStrip.Size = new Size(1581, 26);
            statusStrip.TabIndex = 1;
            statusStrip.Text = "statusStrip1";
            // 
            // toolStripStatusLabel
            // 
            toolStripStatusLabel.Name = "toolStripStatusLabel";
            toolStripStatusLabel.Size = new Size(133, 20);
            toolStripStatusLabel.Text = "Waiting for input....";
            // 
            // formTableLayoutPanel
            // 
            formTableLayoutPanel.AllowDrop = true;
            formTableLayoutPanel.ColumnCount = 2;
            formTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
            formTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
            formTableLayoutPanel.Controls.Add(clearButton, 0, 1);
            formTableLayoutPanel.Controls.Add(promptsTableLayoutPanel, 1, 0);
            formTableLayoutPanel.Controls.Add(pictureBox, 0, 0);
            formTableLayoutPanel.Dock = DockStyle.Fill;
            formTableLayoutPanel.Location = new Point(0, 0);
            formTableLayoutPanel.Name = "formTableLayoutPanel";
            formTableLayoutPanel.RowCount = 2;
            formTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 88.8888855F));
            formTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 11.1111107F));
            formTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
            formTableLayoutPanel.Size = new Size(1581, 990);
            formTableLayoutPanel.TabIndex = 2;
            formTableLayoutPanel.DragDrop += formTableLayoutPanel_DragDrop;
            formTableLayoutPanel.DragEnter += formTableLayoutPanel_DragEnter;
            // 
            // clearButton
            // 
            clearButton.Dock = DockStyle.Fill;
            clearButton.FlatAppearance.BorderColor = SystemColors.WindowText;
            clearButton.Font = new Font("Segoe UI", 25.8000011F, FontStyle.Regular, GraphicsUnit.Point, 0);
            clearButton.Location = new Point(3, 883);
            clearButton.Name = "clearButton";
            clearButton.Size = new Size(784, 104);
            clearButton.TabIndex = 7;
            clearButton.Text = "Clear";
            clearButton.UseVisualStyleBackColor = true;
            clearButton.Click += clearButton_Click;
            // 
            // promptsTableLayoutPanel
            // 
            promptsTableLayoutPanel.AutoSize = true;
            promptsTableLayoutPanel.ColumnCount = 1;
            promptsTableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
            promptsTableLayoutPanel.Controls.Add(promptGroupBox, 0, 0);
            promptsTableLayoutPanel.Controls.Add(negativeGroupBox, 0, 1);
            promptsTableLayoutPanel.Controls.Add(modelMetadataGroupBox, 0, 2);
            promptsTableLayoutPanel.Controls.Add(imageMetadataGroupBox, 0, 3);
            promptsTableLayoutPanel.Dock = DockStyle.Fill;
            promptsTableLayoutPanel.Location = new Point(793, 3);
            promptsTableLayoutPanel.Name = "promptsTableLayoutPanel";
            promptsTableLayoutPanel.RowCount = 4;
            formTableLayoutPanel.SetRowSpan(promptsTableLayoutPanel, 2);
            promptsTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 20F));
            promptsTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 20F));
            promptsTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 30F));
            promptsTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 30F));
            promptsTableLayoutPanel.Size = new Size(785, 984);
            promptsTableLayoutPanel.TabIndex = 6;
            // 
            // promptGroupBox
            // 
            promptGroupBox.Controls.Add(promptBox);
            promptGroupBox.Dock = DockStyle.Fill;
            promptGroupBox.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
            promptGroupBox.Location = new Point(3, 3);
            promptGroupBox.Name = "promptGroupBox";
            promptGroupBox.Size = new Size(779, 190);
            promptGroupBox.TabIndex = 4;
            promptGroupBox.TabStop = false;
            promptGroupBox.Text = "Prompt";
            // 
            // promptBox
            // 
            promptBox.ContextMenuStrip = promptMenuStrip;
            promptBox.Dock = DockStyle.Fill;
            promptBox.Font = new Font("Segoe UI", 9F);
            promptBox.Location = new Point(3, 23);
            promptBox.Multiline = true;
            promptBox.Name = "promptBox";
            promptBox.Size = new Size(773, 164);
            promptBox.TabIndex = 1;
            // 
            // negativeGroupBox
            // 
            negativeGroupBox.Controls.Add(negativePromptBox);
            negativeGroupBox.Dock = DockStyle.Fill;
            negativeGroupBox.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
            negativeGroupBox.Location = new Point(3, 199);
            negativeGroupBox.Name = "negativeGroupBox";
            negativeGroupBox.Size = new Size(779, 190);
            negativeGroupBox.TabIndex = 5;
            negativeGroupBox.TabStop = false;
            negativeGroupBox.Text = "Negative Prompt";
            // 
            // negativePromptBox
            // 
            negativePromptBox.ContextMenuStrip = promptMenuStrip;
            negativePromptBox.Dock = DockStyle.Fill;
            negativePromptBox.Font = new Font("Segoe UI", 9F);
            negativePromptBox.Location = new Point(3, 23);
            negativePromptBox.Multiline = true;
            negativePromptBox.Name = "negativePromptBox";
            negativePromptBox.Size = new Size(773, 164);
            negativePromptBox.TabIndex = 3;
            // 
            // modelMetadataGroupBox
            // 
            modelMetadataGroupBox.Controls.Add(modelMetadataGridView);
            modelMetadataGroupBox.Dock = DockStyle.Fill;
            modelMetadataGroupBox.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
            modelMetadataGroupBox.Location = new Point(3, 395);
            modelMetadataGroupBox.Name = "modelMetadataGroupBox";
            modelMetadataGroupBox.Size = new Size(779, 289);
            modelMetadataGroupBox.TabIndex = 6;
            modelMetadataGroupBox.TabStop = false;
            modelMetadataGroupBox.Text = "Model Metadata";
            // 
            // modelMetadataGridView
            // 
            modelMetadataGridView.AllowUserToAddRows = false;
            modelMetadataGridView.AllowUserToDeleteRows = false;
            modelMetadataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            modelMetadataGridView.BackgroundColor = Color.White;
            modelMetadataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            modelMetadataGridView.Dock = DockStyle.Fill;
            modelMetadataGridView.Location = new Point(3, 23);
            modelMetadataGridView.Name = "modelMetadataGridView";
            modelMetadataGridView.RowHeadersVisible = false;
            modelMetadataGridView.RowHeadersWidth = 51;
            modelMetadataGridView.Size = new Size(773, 263);
            modelMetadataGridView.TabIndex = 8;
            // 
            // imageMetadataGroupBox
            // 
            imageMetadataGroupBox.Controls.Add(imageMetadataGridView);
            imageMetadataGroupBox.Dock = DockStyle.Fill;
            imageMetadataGroupBox.Font = new Font("Segoe UI", 9F, FontStyle.Bold);
            imageMetadataGroupBox.Location = new Point(3, 690);
            imageMetadataGroupBox.Name = "imageMetadataGroupBox";
            imageMetadataGroupBox.Size = new Size(779, 291);
            imageMetadataGroupBox.TabIndex = 7;
            imageMetadataGroupBox.TabStop = false;
            imageMetadataGroupBox.Text = "Image Metadata";
            // 
            // imageMetadataGridView
            // 
            imageMetadataGridView.AllowUserToAddRows = false;
            imageMetadataGridView.AllowUserToDeleteRows = false;
            imageMetadataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
            imageMetadataGridView.BackgroundColor = Color.White;
            imageMetadataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            imageMetadataGridView.Dock = DockStyle.Fill;
            imageMetadataGridView.Location = new Point(3, 23);
            imageMetadataGridView.Name = "imageMetadataGridView";
            imageMetadataGridView.RowHeadersVisible = false;
            imageMetadataGridView.RowHeadersWidth = 51;
            imageMetadataGridView.Size = new Size(773, 265);
            imageMetadataGridView.TabIndex = 9;
            // 
            // PNGMetadataViewerForm
            // 
            AllowDrop = true;
            AutoScaleDimensions = new SizeF(8F, 20F);
            AutoScaleMode = AutoScaleMode.Font;
            ClientSize = new Size(1581, 1016);
            Controls.Add(formTableLayoutPanel);
            Controls.Add(statusStrip);
            FormBorderStyle = FormBorderStyle.FixedSingle;
            Name = "PNGMetadataViewerForm";
            Text = "ComfyUI PNG Metadata Viewer";
            Load += Form1_Load;
            ((System.ComponentModel.ISupportInitialize)pictureBox).EndInit();
            promptMenuStrip.ResumeLayout(false);
            statusStrip.ResumeLayout(false);
            statusStrip.PerformLayout();
            formTableLayoutPanel.ResumeLayout(false);
            formTableLayoutPanel.PerformLayout();
            promptsTableLayoutPanel.ResumeLayout(false);
            promptGroupBox.ResumeLayout(false);
            promptGroupBox.PerformLayout();
            negativeGroupBox.ResumeLayout(false);
            negativeGroupBox.PerformLayout();
            modelMetadataGroupBox.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)modelMetadataGridView).EndInit();
            imageMetadataGroupBox.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)imageMetadataGridView).EndInit();
            ResumeLayout(false);
            PerformLayout();
        }

        #endregion
        private PictureBox pictureBox;
        private ContextMenuStrip promptMenuStrip;
        private ToolStripMenuItem copyPromptMenuItem;
        private StatusStrip statusStrip;
        private ToolStripStatusLabel toolStripStatusLabel;
        private TableLayoutPanel formTableLayoutPanel;
        private Button clearButton;
        private TableLayoutPanel promptsTableLayoutPanel;
        private GroupBox promptGroupBox;
        private TextBox promptBox;
        private GroupBox negativeGroupBox;
        private TextBox negativePromptBox;
        private GroupBox modelMetadataGroupBox;
        private DataGridView modelMetadataGridView;
        private GroupBox imageMetadataGroupBox;
        private DataGridView imageMetadataGridView;
    }
}