diff --git a/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs b/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs index 014080b2..24fedbf7 100644 --- a/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs +++ b/PCK-Studio/Forms/Editor/LOCEditor.Designer.cs @@ -40,7 +40,7 @@ this.menuStrip = new System.Windows.Forms.MenuStrip(); this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); - this.locSort = new PckStudio.Forms.MyTablePanel(); + this.locSort = new System.Windows.Forms.TableLayoutPanel(); this.buttonReplaceAll = new System.Windows.Forms.Button(); this.dataGridViewLocEntryData = new System.Windows.Forms.DataGridView(); this.textBoxReplaceAll = new System.Windows.Forms.TextBox(); @@ -202,7 +202,7 @@ private System.Windows.Forms.ToolStripMenuItem addDisplayIDToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem deleteDisplayIDToolStripMenuItem; private System.Windows.Forms.TextBox textBoxReplaceAll; - private PckStudio.Forms.MyTablePanel locSort; + private System.Windows.Forms.TableLayoutPanel locSort; private System.Windows.Forms.Button buttonReplaceAll; private MetroFramework.Controls.MetroContextMenu GridContextMenu; private System.Windows.Forms.ToolStripMenuItem addLanguageToolStripMenuItem; diff --git a/PCK-Studio/Forms/Skins-And-Textures/generateModel.Designer.cs b/PCK-Studio/Forms/Skins-And-Textures/generateModel.Designer.cs index 06ab612b..d4ce7f7c 100644 --- a/PCK-Studio/Forms/Skins-And-Textures/generateModel.Designer.cs +++ b/PCK-Studio/Forms/Skins-And-Textures/generateModel.Designer.cs @@ -43,7 +43,7 @@ this.tabBody = new System.Windows.Forms.TabControl(); this.tabArmor = new System.Windows.Forms.TabPage(); this.tabPage1 = new System.Windows.Forms.TabPage(); - this.myTablePanel2 = new PckStudio.Forms.MyTablePanel(); + this.myTablePanel2 = new System.Windows.Forms.TableLayoutPanel(); this.offsetArms = new System.Windows.Forms.TextBox(); this.label14 = new System.Windows.Forms.Label(); this.offsetBody = new System.Windows.Forms.TextBox(); @@ -637,7 +637,7 @@ private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.TabControl tabBody; private System.Windows.Forms.TabPage tabPage1; - private Forms.MyTablePanel myTablePanel2; + private System.Windows.Forms.TableLayoutPanel myTablePanel2; private System.Windows.Forms.TextBox offsetArms; private System.Windows.Forms.Label label14; private System.Windows.Forms.TextBox offsetBody; diff --git a/PCK-Studio/Forms/Utilities/installPS3.Designer.cs b/PCK-Studio/Forms/Utilities/installPS3.Designer.cs index 6b004408..88b5cb3a 100644 --- a/PCK-Studio/Forms/Utilities/installPS3.Designer.cs +++ b/PCK-Studio/Forms/Utilities/installPS3.Designer.cs @@ -30,7 +30,7 @@ { this.components = new System.ComponentModel.Container(); this.metroTabPageMain = new MetroFramework.Controls.MetroTabPage(); - this.myTablePanel1 = new PckStudio.Forms.MyTablePanel(); + this.myTablePanel1 = new System.Windows.Forms.TableLayoutPanel(); this.EurDig = new System.Windows.Forms.RadioButton(); this.USDig = new System.Windows.Forms.RadioButton(); this.buttonServerToggle = new System.Windows.Forms.Button(); @@ -339,7 +339,7 @@ #endregion private MetroFramework.Controls.MetroTabPage metroTabPageMain; - private MyTablePanel myTablePanel1; + private System.Windows.Forms.TableLayoutPanel myTablePanel1; private System.Windows.Forms.RadioButton USDisc; private System.Windows.Forms.RadioButton JPDig; private System.Windows.Forms.RadioButton EurDisc; diff --git a/PCK-Studio/Forms/Utilities/installVita.Designer.cs b/PCK-Studio/Forms/Utilities/installVita.Designer.cs index bde4b600..152822a8 100644 --- a/PCK-Studio/Forms/Utilities/installVita.Designer.cs +++ b/PCK-Studio/Forms/Utilities/installVita.Designer.cs @@ -32,7 +32,7 @@ namespace PckStudio.Forms { this.components = new System.ComponentModel.Container(); this.metroTabPageMain = new MetroFramework.Controls.MetroTabPage(); - this.myTablePanel1 = new PckStudio.Forms.MyTablePanel(); + this.myTablePanel1 = new System.Windows.Forms.TableLayoutPanel(); this.EurDig = new System.Windows.Forms.RadioButton(); this.USDig = new System.Windows.Forms.RadioButton(); this.buttonServerToggle = new System.Windows.Forms.Button(); @@ -341,7 +341,7 @@ namespace PckStudio.Forms #endregion private MetroFramework.Controls.MetroTabPage metroTabPageMain; - private MyTablePanel myTablePanel1; + private System.Windows.Forms.TableLayoutPanel myTablePanel1; private System.Windows.Forms.RadioButton USDisc; private System.Windows.Forms.RadioButton JPDig; private System.Windows.Forms.RadioButton EurDisc; diff --git a/PCK-Studio/Forms/Utilities/installWiiU.Designer.cs b/PCK-Studio/Forms/Utilities/installWiiU.Designer.cs index 6f14cfbc..03e5ad9d 100644 --- a/PCK-Studio/Forms/Utilities/installWiiU.Designer.cs +++ b/PCK-Studio/Forms/Utilities/installWiiU.Designer.cs @@ -31,7 +31,7 @@ this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(installWiiU)); this.metroTabPageMain = new MetroFramework.Controls.MetroTabPage(); - this.myTablePanel1 = new PckStudio.Forms.MyTablePanel(); + this.myTablePanel1 = new System.Windows.Forms.TableLayoutPanel(); this.buttonServerToggle = new System.Windows.Forms.Button(); this.panel1 = new System.Windows.Forms.Panel(); this.radioButtonSystem = new System.Windows.Forms.RadioButton(); @@ -330,7 +330,7 @@ #endregion private MetroFramework.Controls.MetroTabPage metroTabPageMain; - private MyTablePanel myTablePanel1; + private System.Windows.Forms.TableLayoutPanel myTablePanel1; private System.Windows.Forms.RadioButton radioButtonJap; private System.Windows.Forms.RadioButton radioButtonEur; private System.Windows.Forms.RadioButton radioButtonUs; diff --git a/PCK-Studio/Forms/Utilities/pckCenter.Designer.cs b/PCK-Studio/Forms/Utilities/pckCenter.Designer.cs index b812b988..7ca24092 100644 --- a/PCK-Studio/Forms/Utilities/pckCenter.Designer.cs +++ b/PCK-Studio/Forms/Utilities/pckCenter.Designer.cs @@ -1,4 +1,4 @@ -namespace PckStudio.Forms +namespace PckStudio.Forms.Utilities { partial class pckCenter { diff --git a/PCK-Studio/Forms/Utilities/pckCenter.cs b/PCK-Studio/Forms/Utilities/pckCenter.cs index 27379337..89e50d14 100644 --- a/PCK-Studio/Forms/Utilities/pckCenter.cs +++ b/PCK-Studio/Forms/Utilities/pckCenter.cs @@ -11,7 +11,7 @@ using PckStudio.Classes.Misc; using PckStudio.API.PCKCenter.model; using PckStudio.API.PCKCenter; -namespace PckStudio.Forms +namespace PckStudio.Forms.Utilities { public partial class pckCenter : MetroFramework.Forms.MetroForm { @@ -174,10 +174,6 @@ namespace PckStudio.Forms EInfo.Description = desc; PJSON.Data.Add((++x).ToString(), EInfo); File.Copy(cacheDir + mod + ".png", cacheDir + "images/" + ++x + ".png"); - - - PckPreview pckPreview = new PckPreview(pckName, author, desc, direct, ad, bmp, 0, mod, null, IsVita, Packname); - pckLayout.Controls.Add(pckPreview); } } catch (Exception err) { Console.WriteLine(err.Message); } @@ -287,9 +283,6 @@ namespace PckStudio.Forms { bmp = (Bitmap)Image.FromStream(memStream); } - - PckPreview pckPreview = new PckPreview(pckName, author, desc, direct, ad, bmp, 1, mod, loadCollectdion, PSVitaPCKCheckbox.Checked, ""); - pckLayout.Controls.Add(pckPreview); } pckLayout.Enabled = true; } @@ -400,143 +393,4 @@ namespace PckStudio.Forms else { MessageBox.Show("No Packs Avaliable!"); } } } - - public class PckPreview : UserControl - { - string name; - string author; - string desc; - string direct; - string ad; - int mode; - string mod; - bool IsVita; - string Pack; - - Bitmap icon; - - PictureBox iconBox = new PictureBox(); - public MyNameLabel nameLabel = new MyNameLabel(); - MyTablePanel layout = new MyTablePanel(); - MethodInvoker reloader; - - public PckPreview(string name, string author, string desc, string direct, string ad, Bitmap icon, int mode, string mod, MethodInvoker Reloader, bool vita, string packName) : base() - { - reloader = Reloader; - nameLabel.parentPreview = this; - layout.parentPreview = this; - this.name = name; - this.author = author; - this.desc = desc; - this.direct = direct; - this.ad = ad; - this.mode = mode; - this.mod = mod; - this.icon = icon; - IsVita = vita; - Pack = packName; - layout.BackColor = Color.White; - Size = new Size(250, 280); - nameLabel.Dock = DockStyle.Fill; - nameLabel.Location = new Point(0,0); - nameLabel.Size = new Size(230, 30); - iconBox.Image = icon; - //iconBox.Dock = DockStyle.Fill; - iconBox.Anchor = AnchorStyles.None; - nameLabel.Text = name; - iconBox.SizeMode = PictureBoxSizeMode.StretchImage; - iconBox.Size = new Size(230, 230); - layout.Margin = new Padding(0, 0, 0, 0); - Margin = new Padding(20, 15, 20, 15); - nameLabel.ForeColor = Color.Black; - nameLabel.TextAlign = ContentAlignment.MiddleCenter; - nameLabel.Font = new Font(nameLabel.Font.FontFamily, 14); - layout.Controls.Add(iconBox, 0, 1); - layout.Controls.Add(nameLabel, 0, 0); - layout.Parent = this; - layout.Dock = DockStyle.Fill; - iconBox.Enabled = false; - - } - - public void setHover(bool hover) - { - layout.BackColor = hover ? Color.LightGray : Color.White; - layout.Refresh(); - } - public void onClick() - { - - layout.BackColor = Color.Gray; - layout.Refresh(); - pckCenterOpen openPck = new pckCenterOpen(name, author, desc, direct, ad, icon, mode, mod, reloader, IsVita, Pack); - openPck.ShowDialog(); - } - - public void onDoubleClick() - { - - } - } - - public class MyTablePanel : TableLayoutPanel - { - public PckPreview parentPreview; - - protected override void OnMouseEnter(EventArgs e) - { - if (parentPreview != null) - { - parentPreview.setHover(true); - base.OnMouseLeave(e); - } - } - protected override void OnMouseLeave(EventArgs e) - { - if(parentPreview != null) - { - parentPreview.setHover(false); - base.OnMouseLeave(e); - } - } - protected override void OnMouseClick(MouseEventArgs e) - { - if (parentPreview != null) - { - parentPreview.onClick(); - base.OnMouseClick(e); - } - } - protected override void OnMouseDoubleClick(MouseEventArgs e) - { - if (parentPreview != null) - { - parentPreview.onDoubleClick(); - base.OnMouseDoubleClick(e); - } - } - } - - public class MyNameLabel : Label - { - public PckPreview parentPreview; - - protected override void OnMouseEnter(EventArgs e) - { - parentPreview.setHover(true); - base.OnMouseEnter(e); - } - protected override void OnMouseLeave(EventArgs e) - { - parentPreview.setHover(false); - base.OnMouseLeave(e); - } - protected override void OnMouseClick(MouseEventArgs e) - { - parentPreview.onClick(); - base.OnMouseClick(e); - } - } -} - - +} \ No newline at end of file diff --git a/PCK-Studio/Forms/Utilities/pckCenterOpen.Designer.cs b/PCK-Studio/Forms/Utilities/pckCenterOpen.Designer.cs index 25bce92a..aa8f0aeb 100644 --- a/PCK-Studio/Forms/Utilities/pckCenterOpen.Designer.cs +++ b/PCK-Studio/Forms/Utilities/pckCenterOpen.Designer.cs @@ -44,9 +44,9 @@ // // buttonDirect // - resources.ApplyResources(this.buttonDirect, "buttonDirect"); this.buttonDirect.BackColor = System.Drawing.Color.Purple; this.buttonDirect.FlatAppearance.BorderSize = 0; + resources.ApplyResources(this.buttonDirect, "buttonDirect"); this.buttonDirect.ForeColor = System.Drawing.Color.White; this.buttonDirect.Name = "buttonDirect"; this.buttonDirect.UseVisualStyleBackColor = false; @@ -66,9 +66,9 @@ // // buttonDelete // - resources.ApplyResources(this.buttonDelete, "buttonDelete"); this.buttonDelete.BackColor = System.Drawing.Color.Red; this.buttonDelete.FlatAppearance.BorderSize = 0; + resources.ApplyResources(this.buttonDelete, "buttonDelete"); this.buttonDelete.ForeColor = System.Drawing.Color.White; this.buttonDelete.Name = "buttonDelete"; this.buttonDelete.UseVisualStyleBackColor = false; @@ -76,9 +76,9 @@ // // buttonExport // - resources.ApplyResources(this.buttonExport, "buttonExport"); this.buttonExport.BackColor = System.Drawing.Color.SlateGray; this.buttonExport.FlatAppearance.BorderSize = 0; + resources.ApplyResources(this.buttonExport, "buttonExport"); this.buttonExport.ForeColor = System.Drawing.Color.White; this.buttonExport.Name = "buttonExport"; this.buttonExport.UseVisualStyleBackColor = false; @@ -86,9 +86,9 @@ // // buttonInstallPs3 // - resources.ApplyResources(this.buttonInstallPs3, "buttonInstallPs3"); this.buttonInstallPs3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(192))))); this.buttonInstallPs3.BackgroundImage = global::PckStudio.Properties.Resources.ps3; + resources.ApplyResources(this.buttonInstallPs3, "buttonInstallPs3"); this.buttonInstallPs3.FlatAppearance.BorderSize = 0; this.buttonInstallPs3.ForeColor = System.Drawing.Color.White; this.buttonInstallPs3.Name = "buttonInstallPs3"; @@ -97,9 +97,9 @@ // // buttonInstallXbox // - resources.ApplyResources(this.buttonInstallXbox, "buttonInstallXbox"); this.buttonInstallXbox.BackColor = System.Drawing.Color.Lime; this.buttonInstallXbox.BackgroundImage = global::PckStudio.Properties.Resources.xbox; + resources.ApplyResources(this.buttonInstallXbox, "buttonInstallXbox"); this.buttonInstallXbox.FlatAppearance.BorderSize = 0; this.buttonInstallXbox.ForeColor = System.Drawing.Color.White; this.buttonInstallXbox.Name = "buttonInstallXbox"; @@ -108,9 +108,9 @@ // // buttonInstallWiiU // - resources.ApplyResources(this.buttonInstallWiiU, "buttonInstallWiiU"); this.buttonInstallWiiU.BackColor = System.Drawing.Color.DeepSkyBlue; this.buttonInstallWiiU.BackgroundImage = global::PckStudio.Properties.Resources.wiiu; + resources.ApplyResources(this.buttonInstallWiiU, "buttonInstallWiiU"); this.buttonInstallWiiU.FlatAppearance.BorderSize = 0; this.buttonInstallWiiU.ForeColor = System.Drawing.Color.White; this.buttonInstallWiiU.Name = "buttonInstallWiiU"; @@ -125,9 +125,9 @@ // // buttonBedrock // - resources.ApplyResources(this.buttonBedrock, "buttonBedrock"); this.buttonBedrock.BackColor = System.Drawing.Color.Green; this.buttonBedrock.FlatAppearance.BorderSize = 0; + resources.ApplyResources(this.buttonBedrock, "buttonBedrock"); this.buttonBedrock.ForeColor = System.Drawing.Color.White; this.buttonBedrock.Name = "buttonBedrock"; this.buttonBedrock.UseVisualStyleBackColor = false; @@ -138,6 +138,7 @@ resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BorderStyle = MetroFramework.Forms.MetroFormBorderStyle.FixedSingle; + this.Controls.Add(this.buttonDirect); this.Controls.Add(this.buttonBedrock); this.Controls.Add(this.buttonInstallPs3); this.Controls.Add(this.buttonInstallXbox); @@ -146,7 +147,6 @@ this.Controls.Add(this.buttonDelete); this.Controls.Add(this.labelDesc); this.Controls.Add(this.labelName); - this.Controls.Add(this.buttonDirect); this.Controls.Add(this.pictureBoxDisplay); this.MaximizeBox = false; this.Name = "pckCenterOpen"; diff --git a/PCK-Studio/Forms/Utilities/pckCenterOpen.resx b/PCK-Studio/Forms/Utilities/pckCenterOpen.resx index 0b294506..b65f8347 100644 --- a/PCK-Studio/Forms/Utilities/pckCenterOpen.resx +++ b/PCK-Studio/Forms/Utilities/pckCenterOpen.resx @@ -117,155 +117,236 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 9 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Flat - - 30, 30 + + 568, 338 + + + 169, 67 - - 7 + + 2 - - 585, 338 + + DOWNLOAD TO COLLECTION - - Delete - - - pictureBoxDisplay - - - - Stretch - - - 621, 338 - - - System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - 7 + + False buttonDirect - - pckCenterOpen + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 0 - - - 11 - - - Convert to Bedrock - - - buttonInstallWiiU - - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 8 - - - 169, 43 - - - labelDesc - - - 12 - - + $this - - Flat - - - 341, 341 - - - 384, 64 - - - Stretch - - - buttonBedrock - - - CenterParent - - - 8 - - - 6 - - - 152, 30 - - - labelName - - - Stretch - - - Flat + + 0 True - - $this + + Microsoft Sans Serif, 20.25pt - - 30, 30 + + 24, 24 - - buttonInstallXbox - - - buttonDelete - - - Flat - - - 1 + + 135, 31 5 + + Skin Pack + + + labelName + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 8 + + + Microsoft Sans Serif, 12pt + + + 384, 64 + + + 353, 222 + + + 6 + + + labelDesc + + + labelDesc + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 7 + Flat - - 692, 338 - - + Segoe UI, 12pt + + 384, 338 + + + 178, 66 + + + 7 + + + Delete + + + buttonDelete + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 6 + + + Flat + + + Segoe UI, 12pt + + + 495, 256 + + + 45, 30 + + + 8 + + + Get + + + buttonExport + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 5 + + + Stretch + + + Flat + + + Segoe UI, 12pt + + + 460, 256 + 30, 30 - - 568, 362 + + 11 + + + buttonInstallPs3 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 2 + + + Stretch + + + Flat + + + Segoe UI, 12pt + + + 424, 256 + + + 30, 30 + + + 10 + + + buttonInstallXbox + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + $this + + + 3 + + + Stretch + + + Flat + + + Segoe UI, 12pt + + + 388, 256 + + + 30, 30 + + + 9 + + + buttonInstallWiiU System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @@ -273,160 +354,82 @@ $this + + 4 + 24, 64 - - False + + 341, 341 StretchImage - - Segoe UI, 12pt + + 0 - - buttonInstallPs3 + + pictureBoxDisplay - - System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Segoe UI, 12pt - - - 585, 375 - - - 135, 31 - - - Skin Pack - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - DOWNLOAD TO COLLECTION - - - Segoe UI, 12pt - - - 5 - - - 4 - - - 2 - - - Flat - - - 353, 286 - - - Segoe UI, 12pt - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - $this - - - $this - - - 45, 30 + + System.Windows.Forms.PictureBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 $this - - Microsoft Sans Serif, 12pt - - - 178, 66 - - - $this - - - 6, 13 - - - Flat - - - 3 - - - 384, 338 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 24, 24 - - - System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - 10 - - - Microsoft Sans Serif, 20.25pt - - - 6 - - - Segoe UI, 12pt + + 9 Flat - - $this + + Segoe UI, 12pt - - 657, 338 + + 388, 293 - - Get + + 152, 30 - - 760, 418 + + 12 - - MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a + + Convert to Bedrock - - 9 + + buttonBedrock - - labelDesc - - - 2 - - + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - buttonExport + + $this - - 0 + + 1 True + + 6, 13 + + + 760, 418 + + + NoControl + + + CenterParent + + + pckCenterOpen + + + MetroFramework.Forms.MetroForm, MetroFramework, Version=1.4.0.0, Culture=neutral, PublicKeyToken=5f91a84759bf584a + \ No newline at end of file