-
Notifications
You must be signed in to change notification settings - Fork 4
/
Forge.Designer.cs
285 lines (274 loc) · 14.9 KB
/
Forge.Designer.cs
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
using System.Globalization;
namespace TextForge
{
partial class Forge : Microsoft.Office.Tools.Ribbon.RibbonBase
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
public Forge()
: base(Globals.Factory.GetRibbonFactory())
{
InitializeComponent();
Localize();
}
private void Localize()
{
CultureLocalizationHelper helper = new CultureLocalizationHelper("TextForge.Forge", typeof(Forge).Assembly);
this.AboutButton.Label = helper.GetLocalizedString("this.AboutButton.Label");
this.AboutButton.ScreenTip = helper.GetLocalizedString("this.AboutButton.ScreenTip");
this.CancelButton.Label = helper.GetLocalizedString("this.CancelButton.Label");
this.CancelButton.ScreenTip = helper.GetLocalizedString("this.CancelButton.ScreenTip");
this.DefaultCheckBox.Label = helper.GetLocalizedString("this.DefaultCheckBox.Label");
this.DefaultCheckBox.SuperTip = helper.GetLocalizedString("this.DefaultCheckBox.SuperTip");
this.ForgeTab.Label = helper.GetLocalizedString("this.ForgeTab.Label");
this.GenerateButton.Label = helper.GetLocalizedString("this.GenerateButton.Label");
this.GenerateButton.SuperTip = helper.GetLocalizedString("this.GenerateButton.SuperTip");
this.InfoGroup.Label = helper.GetLocalizedString("this.InfoGroup.Label");
this.ModelListDropDown.Label = helper.GetLocalizedString("this.ModelListDropDown.Label");
this.ModelListDropDown.SuperTip = helper.GetLocalizedString("this.ModelListDropDown.SuperTip");
this.OptionsGroup.Label = helper.GetLocalizedString("this.OptionsGroup.Label");
this.ProofreadButton.Label = helper.GetLocalizedString("this.ProofreadButton.Label");
this.ProofreadButton.SuperTip = helper.GetLocalizedString("this.ProofreadButton.SuperTip");
this.RAGControlButton.Label = helper.GetLocalizedString("this.RAGControlButton.Label");
this.RAGControlButton.SuperTip = helper.GetLocalizedString("this.RAGControlButton.SuperTip");
this.ReviewButton.Label = helper.GetLocalizedString("this.ReviewButton.Label");
this.ReviewButton.SuperTip = helper.GetLocalizedString("this.ReviewButton.SuperTip");
this.RewriteButton.Label = helper.GetLocalizedString("this.RewriteButton.Label");
this.RewriteButton.SuperTip = helper.GetLocalizedString("this.RewriteButton.SuperTip");
this.SettingsGroup.Label = helper.GetLocalizedString("this.SettingsGroup.Label");
this.ToolsGroup.Label = helper.GetLocalizedString("this.ToolsGroup.Label");
this.WritingToolsGallery.Label = helper.GetLocalizedString("this.WritingToolsGallery.Label");
this.WritingToolsGallery.SuperTip = helper.GetLocalizedString("this.WritingToolsGallery.SuperTip");
}
/// <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 Component 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()
{
this.ForgeTab = this.Factory.CreateRibbonTab();
this.ToolsGroup = this.Factory.CreateRibbonGroup();
this.GenerateButton = this.Factory.CreateRibbonButton();
this.separator3 = this.Factory.CreateRibbonSeparator();
this.WritingToolsGallery = this.Factory.CreateRibbonGallery();
this.ReviewButton = this.Factory.CreateRibbonButton();
this.ProofreadButton = this.Factory.CreateRibbonButton();
this.RewriteButton = this.Factory.CreateRibbonButton();
this.SettingsGroup = this.Factory.CreateRibbonGroup();
this.RAGControlButton = this.Factory.CreateRibbonButton();
this.separator2 = this.Factory.CreateRibbonSeparator();
this.ModelListDropDown = this.Factory.CreateRibbonDropDown();
this.DefaultCheckBox = this.Factory.CreateRibbonCheckBox();
this.InfoGroup = this.Factory.CreateRibbonGroup();
this.AboutButton = this.Factory.CreateRibbonButton();
this.OptionsGroup = this.Factory.CreateRibbonGroup();
this.CancelButton = this.Factory.CreateRibbonButton();
this.ForgeTab.SuspendLayout();
this.ToolsGroup.SuspendLayout();
this.SettingsGroup.SuspendLayout();
this.InfoGroup.SuspendLayout();
this.OptionsGroup.SuspendLayout();
this.SuspendLayout();
//
// ForgeTab
//
this.ForgeTab.ControlId.ControlIdType = Microsoft.Office.Tools.Ribbon.RibbonControlIdType.Office;
this.ForgeTab.Groups.Add(this.ToolsGroup);
this.ForgeTab.Groups.Add(this.SettingsGroup);
this.ForgeTab.Groups.Add(this.InfoGroup);
this.ForgeTab.Groups.Add(this.OptionsGroup);
this.ForgeTab.Label = "Craft";
this.ForgeTab.Name = "ForgeTab";
//
// ToolsGroup
//
this.ToolsGroup.Items.Add(this.GenerateButton);
this.ToolsGroup.Items.Add(this.separator3);
this.ToolsGroup.Items.Add(this.WritingToolsGallery);
this.ToolsGroup.Label = "Tools";
this.ToolsGroup.Name = "ToolsGroup";
//
// GenerateButton
//
this.GenerateButton.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
this.GenerateButton.Image = global::TextForge.Properties.Resources.pen_high_contrast;
this.GenerateButton.Label = "Generate";
this.GenerateButton.Name = "GenerateButton";
this.GenerateButton.ShowImage = true;
this.GenerateButton.SuperTip = "Creates tailored responses using the user\'s prompt and the current document\'s con" +
"tent.";
this.GenerateButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.GenerateButton_Click);
//
// separator3
//
this.separator3.Name = "separator3";
//
// WritingToolsGallery
//
this.WritingToolsGallery.Buttons.Add(this.ReviewButton);
this.WritingToolsGallery.Buttons.Add(this.ProofreadButton);
this.WritingToolsGallery.Buttons.Add(this.RewriteButton);
this.WritingToolsGallery.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
this.WritingToolsGallery.Image = global::TextForge.Properties.Resources.memo_high_contrast;
this.WritingToolsGallery.Label = "Writing Tools";
this.WritingToolsGallery.Name = "WritingToolsGallery";
this.WritingToolsGallery.ShowImage = true;
this.WritingToolsGallery.SuperTip = "Enhance your writing with AI-powered tools for grammar, style, and clarity.";
this.WritingToolsGallery.ButtonClick += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.WritingToolsGallery_ButtonClick);
//
// ReviewButton
//
this.ReviewButton.Image = global::TextForge.Properties.Resources.clipboard_high_contrast;
this.ReviewButton.Label = "Review";
this.ReviewButton.Name = "ReviewButton";
this.ReviewButton.ShowImage = true;
this.ReviewButton.SuperTip = "Enhance your document with AI-driven comments and suggestions.";
//
// ProofreadButton
//
this.ProofreadButton.Image = global::TextForge.Properties.Resources.face_with_monocle_high_contrast;
this.ProofreadButton.Label = "Proofread";
this.ProofreadButton.Name = "ProofreadButton";
this.ProofreadButton.ShowImage = true;
this.ProofreadButton.SuperTip = "Check for spelling, grammar, and style errors to polish your document.";
//
// RewriteButton
//
this.RewriteButton.Image = global::TextForge.Properties.Resources.counterclockwise_arrows_button_high_contrast;
this.RewriteButton.Label = "Rewrite";
this.RewriteButton.Name = "RewriteButton";
this.RewriteButton.ShowImage = true;
this.RewriteButton.SuperTip = "Revise and enhance your text with AI-powered suggestions.";
//
// SettingsGroup
//
this.SettingsGroup.Items.Add(this.RAGControlButton);
this.SettingsGroup.Items.Add(this.separator2);
this.SettingsGroup.Items.Add(this.ModelListDropDown);
this.SettingsGroup.Items.Add(this.DefaultCheckBox);
this.SettingsGroup.Label = "Settings";
this.SettingsGroup.Name = "SettingsGroup";
//
// RAGControlButton
//
this.RAGControlButton.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
this.RAGControlButton.Image = global::TextForge.Properties.Resources.gear_high_contrast;
this.RAGControlButton.Label = "RAG Control";
this.RAGControlButton.Name = "RAGControlButton";
this.RAGControlButton.ShowImage = true;
this.RAGControlButton.SuperTip = "Manage files within the Retrieval Augmentation Generation (RAG) system.";
this.RAGControlButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.RAGControlButton_Click);
//
// separator2
//
this.separator2.Name = "separator2";
//
// ModelListDropDown
//
this.ModelListDropDown.Label = "Model List";
this.ModelListDropDown.Name = "ModelListDropDown";
this.ModelListDropDown.ShowLabel = false;
this.ModelListDropDown.SizeString = "XXXXXXXXXXXXXXXXXXXXXXXXX";
this.ModelListDropDown.SuperTip = "Select a language model for use in TextCraft.";
this.ModelListDropDown.SelectionChanged += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.ModelListDropDown_SelectionChanged);
//
// DefaultCheckBox
//
this.DefaultCheckBox.Label = "Default";
this.DefaultCheckBox.Name = "DefaultCheckBox";
this.DefaultCheckBox.SuperTip = "Set the default language model for TextCraft.";
this.DefaultCheckBox.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.DefaultCheckBox_Click);
//
// InfoGroup
//
this.InfoGroup.Items.Add(this.AboutButton);
this.InfoGroup.Label = "Info";
this.InfoGroup.Name = "InfoGroup";
//
// AboutButton
//
this.AboutButton.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
this.AboutButton.Image = global::TextForge.Properties.Resources.information_high_contrast;
this.AboutButton.Label = "About";
this.AboutButton.Name = "AboutButton";
this.AboutButton.ScreenTip = "Provides details about this application.";
this.AboutButton.ShowImage = true;
this.AboutButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.AboutButton_Click);
//
// OptionsGroup
//
this.OptionsGroup.Items.Add(this.CancelButton);
this.OptionsGroup.Label = "Options";
this.OptionsGroup.Name = "OptionsGroup";
this.OptionsGroup.Visible = false;
//
// CancelButton
//
this.CancelButton.ControlSize = Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge;
this.CancelButton.Image = global::TextForge.Properties.Resources.stop_sign_flat;
this.CancelButton.Label = "Cancel";
this.CancelButton.Name = "CancelButton";
this.CancelButton.ScreenTip = "Halts the text generation process.";
this.CancelButton.ShowImage = true;
this.CancelButton.Click += new Microsoft.Office.Tools.Ribbon.RibbonControlEventHandler(this.CancelButton_Click);
//
// Forge
//
this.Name = "Forge";
this.RibbonType = "Microsoft.Word.Document";
this.Tabs.Add(this.ForgeTab);
this.Load += new Microsoft.Office.Tools.Ribbon.RibbonUIEventHandler(this.Forge_Load);
this.ForgeTab.ResumeLayout(false);
this.ForgeTab.PerformLayout();
this.ToolsGroup.ResumeLayout(false);
this.ToolsGroup.PerformLayout();
this.SettingsGroup.ResumeLayout(false);
this.SettingsGroup.PerformLayout();
this.InfoGroup.ResumeLayout(false);
this.InfoGroup.PerformLayout();
this.OptionsGroup.ResumeLayout(false);
this.OptionsGroup.PerformLayout();
this.ResumeLayout(false);
}
#endregion
internal Microsoft.Office.Tools.Ribbon.RibbonTab ForgeTab;
internal Microsoft.Office.Tools.Ribbon.RibbonButton GenerateButton;
internal Microsoft.Office.Tools.Ribbon.RibbonGroup SettingsGroup;
internal Microsoft.Office.Tools.Ribbon.RibbonDropDown ModelListDropDown;
internal Microsoft.Office.Tools.Ribbon.RibbonCheckBox DefaultCheckBox;
internal Microsoft.Office.Tools.Ribbon.RibbonButton RAGControlButton;
internal Microsoft.Office.Tools.Ribbon.RibbonGroup InfoGroup;
internal Microsoft.Office.Tools.Ribbon.RibbonButton AboutButton;
internal Microsoft.Office.Tools.Ribbon.RibbonGroup ToolsGroup;
internal Microsoft.Office.Tools.Ribbon.RibbonSeparator separator2;
internal Microsoft.Office.Tools.Ribbon.RibbonButton CancelButton;
internal Microsoft.Office.Tools.Ribbon.RibbonGroup OptionsGroup;
internal Microsoft.Office.Tools.Ribbon.RibbonGallery WritingToolsGallery;
private Microsoft.Office.Tools.Ribbon.RibbonButton ReviewButton;
private Microsoft.Office.Tools.Ribbon.RibbonButton ProofreadButton;
private Microsoft.Office.Tools.Ribbon.RibbonButton RewriteButton;
internal Microsoft.Office.Tools.Ribbon.RibbonSeparator separator3;
}
partial class ThisRibbonCollection
{
internal Forge Forge
{
get { return this.GetRibbon<Forge>(); }
}
}
}