Fixing indentation whitespace.
This commit is contained in:
parent
33df6d8148
commit
b69bfee3fe
2 changed files with 176 additions and 176 deletions
|
@ -20,7 +20,7 @@
|
||||||
// ********
|
// ********
|
||||||
// * LSLEditor, a External editor for the LSL Language.
|
// * LSLEditor, a External editor for the LSL Language.
|
||||||
// * Copyright (C) 2010 The LSLEditor Group.
|
// * Copyright (C) 2010 The LSLEditor Group.
|
||||||
//
|
//
|
||||||
// * This program is free software; you can redistribute it and/or
|
// * This program is free software; you can redistribute it and/or
|
||||||
// * modify it under the terms of the GNU General Public License
|
// * modify it under the terms of the GNU General Public License
|
||||||
// * as published by the Free Software Foundation; either version 2
|
// * as published by the Free Software Foundation; either version 2
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
// * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
// * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||||
// ********
|
// ********
|
||||||
// *
|
// *
|
||||||
// * The above copyright notice and this permission notice shall be included in all
|
// * The above copyright notice and this permission notice shall be included in all
|
||||||
// * copies or substantial portions of the Software.
|
// * copies or substantial portions of the Software.
|
||||||
// *
|
// *
|
||||||
// ********
|
// ********
|
||||||
|
@ -72,8 +72,8 @@ namespace LSLEditor.Helpers
|
||||||
// print document
|
// print document
|
||||||
PrintDocument docToPrint = null;
|
PrintDocument docToPrint = null;
|
||||||
|
|
||||||
// print dialogue
|
// print dialogue
|
||||||
PrintDialog pd = null;
|
PrintDialog pd = null;
|
||||||
|
|
||||||
// print status items
|
// print status items
|
||||||
int fromPage = 0;
|
int fromPage = 0;
|
||||||
|
@ -130,8 +130,8 @@ namespace LSLEditor.Helpers
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allow the user to override the title string alignment. Default value is
|
/// Allow the user to override the title string alignment. Default value is
|
||||||
/// Alignment - Near;
|
/// Alignment - Near;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private StringAlignment titlealignment;
|
private StringAlignment titlealignment;
|
||||||
public StringAlignment TitleAlignment
|
public StringAlignment TitleAlignment
|
||||||
|
@ -186,8 +186,8 @@ namespace LSLEditor.Helpers
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allow the user to override the subtitle string alignment. Default value is
|
/// Allow the user to override the subtitle string alignment. Default value is
|
||||||
/// Alignment - Near;
|
/// Alignment - Near;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private StringAlignment subtitlealignment;
|
private StringAlignment subtitlealignment;
|
||||||
public StringAlignment SubTitleAlignment
|
public StringAlignment SubTitleAlignment
|
||||||
|
@ -242,8 +242,8 @@ namespace LSLEditor.Helpers
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allow the user to override the footer string alignment. Default value is
|
/// Allow the user to override the footer string alignment. Default value is
|
||||||
/// Alignment - Center;
|
/// Alignment - Center;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private StringAlignment footeralignment;
|
private StringAlignment footeralignment;
|
||||||
public StringAlignment FooterAlignment
|
public StringAlignment FooterAlignment
|
||||||
|
@ -305,8 +305,8 @@ namespace LSLEditor.Helpers
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Allow the user to override the page number string alignment. Default value is
|
/// Allow the user to override the page number string alignment. Default value is
|
||||||
/// Alignment - Near;
|
/// Alignment - Near;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private StringAlignment pagenumberalignment;
|
private StringAlignment pagenumberalignment;
|
||||||
public StringAlignment PaageNumberAlignment
|
public StringAlignment PaageNumberAlignment
|
||||||
|
@ -418,8 +418,8 @@ namespace LSLEditor.Helpers
|
||||||
/// NOTE: Any changes to this method also need to be done in PrintPreviewEditForm
|
/// NOTE: Any changes to this method also need to be done in PrintPreviewEditForm
|
||||||
public void PrintEditForm(EditForm editForm)
|
public void PrintEditForm(EditForm editForm)
|
||||||
{
|
{
|
||||||
saveFormData(editForm);
|
saveFormData(editForm);
|
||||||
setupPrintDialogue();
|
setupPrintDialogue();
|
||||||
|
|
||||||
// show print dialog
|
// show print dialog
|
||||||
if (pd.ShowDialog() == DialogResult.OK)
|
if (pd.ShowDialog() == DialogResult.OK)
|
||||||
|
@ -427,7 +427,7 @@ namespace LSLEditor.Helpers
|
||||||
SetupPrint(pd);
|
SetupPrint(pd);
|
||||||
docToPrint.Print();
|
docToPrint.Print();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -437,17 +437,17 @@ namespace LSLEditor.Helpers
|
||||||
/// NOTE: Any changes to this method also need to be done in PrintDataGridView
|
/// NOTE: Any changes to this method also need to be done in PrintDataGridView
|
||||||
public void PrintPreviewEditForm(EditForm editForm)
|
public void PrintPreviewEditForm(EditForm editForm)
|
||||||
{
|
{
|
||||||
saveFormData(editForm);
|
saveFormData(editForm);
|
||||||
setupPrintDialogue();
|
setupPrintDialogue();
|
||||||
|
|
||||||
// show print dialog
|
// show print dialog
|
||||||
if (pd.ShowDialog() == DialogResult.OK)
|
if (pd.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
SetupPrint(pd);
|
SetupPrint(pd);
|
||||||
PrintPreviewDialog ppdialog = new PrintPreviewDialog();
|
PrintPreviewDialog ppdialog = new PrintPreviewDialog();
|
||||||
ppdialog.Document = docToPrint;
|
ppdialog.Document = docToPrint;
|
||||||
ppdialog.ShowDialog();
|
ppdialog.ShowDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -462,7 +462,7 @@ namespace LSLEditor.Helpers
|
||||||
// save data from print dialog and document
|
// save data from print dialog and document
|
||||||
//-----------------------------------------------------------------
|
//-----------------------------------------------------------------
|
||||||
|
|
||||||
// check to see if we're doing landscape printing
|
// check to see if we're doing landscape printing
|
||||||
if (docToPrint.DefaultPageSettings.Landscape)
|
if (docToPrint.DefaultPageSettings.Landscape)
|
||||||
{
|
{
|
||||||
// landscape: switch width and height
|
// landscape: switch width and height
|
||||||
|
@ -480,7 +480,7 @@ namespace LSLEditor.Helpers
|
||||||
printmargins = docToPrint.DefaultPageSettings.Margins;
|
printmargins = docToPrint.DefaultPageSettings.Margins;
|
||||||
printWidth = pageWidth - printmargins.Left - printmargins.Right;
|
printWidth = pageWidth - printmargins.Left - printmargins.Right;
|
||||||
|
|
||||||
// save print range
|
// save print range
|
||||||
printRange = pd.PrinterSettings.PrintRange;
|
printRange = pd.PrinterSettings.PrintRange;
|
||||||
|
|
||||||
// pages to print handles "some pages" option
|
// pages to print handles "some pages" option
|
||||||
|
@ -681,26 +681,26 @@ namespace LSLEditor.Helpers
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void saveFormData(EditForm editForm)
|
private void saveFormData(EditForm editForm)
|
||||||
{
|
{
|
||||||
// save the datagridview we're printing
|
// save the datagridview we're printing
|
||||||
this.editForm = editForm;
|
this.editForm = editForm;
|
||||||
this.intCharFrom = 0;
|
this.intCharFrom = 0;
|
||||||
this.intCharPrint = 0;
|
this.intCharPrint = 0;
|
||||||
this.intCharTo = editForm.TextBox.Text.Length;
|
this.intCharTo = editForm.TextBox.Text.Length;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupPrintDialogue()
|
private void setupPrintDialogue()
|
||||||
{
|
{
|
||||||
// create new print dialog
|
// create new print dialog
|
||||||
pd = new PrintDialog();
|
pd = new PrintDialog();
|
||||||
|
|
||||||
pd.Document = docToPrint;
|
pd.Document = docToPrint;
|
||||||
pd.AllowSelection = true;
|
pd.AllowSelection = true;
|
||||||
pd.AllowSomePages = false;
|
pd.AllowSomePages = false;
|
||||||
pd.AllowCurrentPage = false;
|
pd.AllowCurrentPage = false;
|
||||||
pd.AllowPrintToFile = false;
|
pd.AllowPrintToFile = false;
|
||||||
pd.UseEXDialog = true;
|
pd.UseEXDialog = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -80,9 +80,9 @@ using LSLEditor.Docking;
|
||||||
|
|
||||||
namespace LSLEditor
|
namespace LSLEditor
|
||||||
{
|
{
|
||||||
public partial class LSLEditorForm : Form
|
public partial class LSLEditorForm : Form
|
||||||
{
|
{
|
||||||
public XmlDocument ConfLSL;
|
public XmlDocument ConfLSL;
|
||||||
public XmlDocument ConfCSharp;
|
public XmlDocument ConfCSharp;
|
||||||
|
|
||||||
private Browser browser;
|
private Browser browser;
|
||||||
|
@ -91,7 +91,7 @@ namespace LSLEditor
|
||||||
|
|
||||||
public bool CancelClosing = false;
|
public bool CancelClosing = false;
|
||||||
|
|
||||||
public Solution.SolutionExplorer m_SolutionExplorer;
|
public Solution.SolutionExplorer m_SolutionExplorer;
|
||||||
|
|
||||||
public GListBoxWindow GListBoxWindow;
|
public GListBoxWindow GListBoxWindow;
|
||||||
public TooltipWindow TooltipMouse;
|
public TooltipWindow TooltipMouse;
|
||||||
|
@ -102,11 +102,11 @@ namespace LSLEditor
|
||||||
public GotoWindow GotoWindow;
|
public GotoWindow GotoWindow;
|
||||||
|
|
||||||
public List<llDialogForm> llDialogForms;
|
public List<llDialogForm> llDialogForms;
|
||||||
public List<llTextBoxForm> llTextBoxForms;
|
public List<llTextBoxForm> llTextBoxForms;
|
||||||
public List<PermissionsForm> PermissionForms;
|
public List<PermissionsForm> PermissionForms;
|
||||||
|
|
||||||
private UpdateApplicationForm updateApplicationForm;
|
private UpdateApplicationForm updateApplicationForm;
|
||||||
private Helpers.PrinterHelper printer;
|
private Helpers.PrinterHelper printer;
|
||||||
|
|
||||||
public SyntaxError SyntaxErrors;
|
public SyntaxError SyntaxErrors;
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ namespace LSLEditor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return this.m_SolutionExplorer;
|
return this.m_SolutionExplorer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,8 +176,8 @@ namespace LSLEditor
|
||||||
|
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
m_SolutionExplorer = new LSLEditor.Solution.SolutionExplorer();
|
m_SolutionExplorer = new LSLEditor.Solution.SolutionExplorer();
|
||||||
m_SolutionExplorer.parent = this;
|
m_SolutionExplorer.parent = this;
|
||||||
|
|
||||||
InitRecentFileList();
|
InitRecentFileList();
|
||||||
InitRecentProjectList();
|
InitRecentProjectList();
|
||||||
|
@ -204,7 +204,7 @@ namespace LSLEditor
|
||||||
|
|
||||||
List<Form> children = new List<Form>();
|
List<Form> children = new List<Form>();
|
||||||
//TODO: Find Child forms
|
//TODO: Find Child forms
|
||||||
//foreach (TabPage tabPage in this.tabControlExtended1.TabPages)
|
//foreach (TabPage tabPage in this.tabControlExtended1.TabPages)
|
||||||
// children.Add(tabPage.Tag as Form);
|
// children.Add(tabPage.Tag as Form);
|
||||||
return children.ToArray();
|
return children.ToArray();
|
||||||
}
|
}
|
||||||
|
@ -218,9 +218,9 @@ namespace LSLEditor
|
||||||
return this.ActiveMdiChild;
|
return this.ActiveMdiChild;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//TODO: Get Active Mdi Form
|
//TODO: Get Active Mdi Form
|
||||||
return null;
|
return null;
|
||||||
//dockPanel.ActiveContent
|
//dockPanel.ActiveContent
|
||||||
// if (this.tabControlExtended1.SelectedTab == null)
|
// if (this.tabControlExtended1.SelectedTab == null)
|
||||||
// return null;
|
// return null;
|
||||||
// return this.tabControlExtended1.SelectedTab.Tag as Form;
|
// return this.tabControlExtended1.SelectedTab.Tag as Form;
|
||||||
|
@ -236,7 +236,7 @@ namespace LSLEditor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//TODO: Activate the right Mdi Form
|
//TODO: Activate the right Mdi Form
|
||||||
/*for (int intI = 0; intI < this.tabControlExtended1.TabCount; intI++)
|
/*for (int intI = 0; intI < this.tabControlExtended1.TabCount; intI++)
|
||||||
{
|
{
|
||||||
TabPage tabPage = this.tabControlExtended1.TabPages[intI];
|
TabPage tabPage = this.tabControlExtended1.TabPages[intI];
|
||||||
|
@ -260,8 +260,8 @@ namespace LSLEditor
|
||||||
//form.Show();
|
//form.Show();
|
||||||
//ActivateMdiChild(form);
|
//ActivateMdiChild(form);
|
||||||
|
|
||||||
//TODO: add form in the right way
|
//TODO: add form in the right way
|
||||||
form.Show(dockPanel);
|
form.Show(dockPanel);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -279,7 +279,7 @@ namespace LSLEditor
|
||||||
// Was already commented out //tabPage.Controls.Add(form.Controls[0]);
|
// Was already commented out //tabPage.Controls.Add(form.Controls[0]);
|
||||||
|
|
||||||
|
|
||||||
//this.tabControlExtended1.TabPages.Add(tabPage);
|
//this.tabControlExtended1.TabPages.Add(tabPage);
|
||||||
//this.tabControlExtended1.SelectedTab = tabPage;
|
//this.tabControlExtended1.SelectedTab = tabPage;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -297,32 +297,32 @@ namespace LSLEditor
|
||||||
|
|
||||||
private void Start(string[] args)
|
private void Start(string[] args)
|
||||||
{
|
{
|
||||||
string fileFilterNotes = "Notecard files (*.txt)|*.txt|All files (*.*)|*.*";
|
string fileFilterNotes = "Notecard files (*.txt)|*.txt|All files (*.*)|*.*";
|
||||||
string fileFilterScripts = "Secondlife script files (*.lsl)|*.lsl|All files (*.*)|*.*";
|
string fileFilterScripts = "Secondlife script files (*.lsl)|*.lsl|All files (*.*)|*.*";
|
||||||
string fileFilterSolutions = "LSLEditor Solution File (*.sol)|*.sol|All Files (*.*)|*.*";
|
string fileFilterSolutions = "LSLEditor Solution File (*.sol)|*.sol|All Files (*.*)|*.*";
|
||||||
|
|
||||||
this.ConfLSL = GetXmlFromResource(Properties.Settings.Default.ConfLSL);
|
this.ConfLSL = GetXmlFromResource(Properties.Settings.Default.ConfLSL);
|
||||||
this.ConfCSharp = GetXmlFromResource(Properties.Settings.Default.ConfCSharp);
|
this.ConfCSharp = GetXmlFromResource(Properties.Settings.Default.ConfCSharp);
|
||||||
|
|
||||||
this.openNoteFilesDialog.FileName = "";
|
this.openNoteFilesDialog.FileName = "";
|
||||||
this.openNoteFilesDialog.Filter = fileFilterNotes;
|
this.openNoteFilesDialog.Filter = fileFilterNotes;
|
||||||
this.openNoteFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
this.openNoteFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
||||||
|
|
||||||
this.saveNoteFilesDialog.FileName = "";
|
this.saveNoteFilesDialog.FileName = "";
|
||||||
this.saveNoteFilesDialog.Filter = fileFilterNotes;
|
this.saveNoteFilesDialog.Filter = fileFilterNotes;
|
||||||
this.saveNoteFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
this.saveNoteFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
||||||
|
|
||||||
|
|
||||||
this.openScriptFilesDialog.FileName = "";
|
this.openScriptFilesDialog.FileName = "";
|
||||||
this.openScriptFilesDialog.Filter = fileFilterScripts;
|
this.openScriptFilesDialog.Filter = fileFilterScripts;
|
||||||
this.openScriptFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
this.openScriptFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
||||||
|
|
||||||
this.saveScriptFilesDialog.FileName = "";
|
this.saveScriptFilesDialog.FileName = "";
|
||||||
this.saveScriptFilesDialog.Filter = fileFilterScripts;
|
this.saveScriptFilesDialog.Filter = fileFilterScripts;
|
||||||
this.saveScriptFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
this.saveScriptFilesDialog.InitialDirectory = Properties.Settings.Default.WorkingDirectory;
|
||||||
|
|
||||||
this.openSolutionFilesDialog.FileName = "";
|
this.openSolutionFilesDialog.FileName = "";
|
||||||
this.openSolutionFilesDialog.Filter = fileFilterSolutions;
|
this.openSolutionFilesDialog.Filter = fileFilterSolutions;
|
||||||
this.openSolutionFilesDialog.InitialDirectory = Properties.Settings.Default.ProjectLocation;
|
this.openSolutionFilesDialog.InitialDirectory = Properties.Settings.Default.ProjectLocation;
|
||||||
this.openSolutionFilesDialog.Multiselect = false;
|
this.openSolutionFilesDialog.Multiselect = false;
|
||||||
|
|
||||||
|
@ -340,7 +340,7 @@ namespace LSLEditor
|
||||||
this.Text += " (BETA)";
|
this.Text += " (BETA)";
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: Fix close buttons on tabs
|
//TODO: Fix close buttons on tabs
|
||||||
// enables close buttons on tab
|
// enables close buttons on tab
|
||||||
//this.tabControlExtended1.SetDrawMode();
|
//this.tabControlExtended1.SetDrawMode();
|
||||||
//this.tabControlExtended1.OnTabClose += new EventHandler(tabControl1_OnTabClose);
|
//this.tabControlExtended1.OnTabClose += new EventHandler(tabControl1_OnTabClose);
|
||||||
|
@ -372,8 +372,8 @@ namespace LSLEditor
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
EditForm editForm = new EditForm(this);
|
EditForm editForm = new EditForm(this);
|
||||||
editForm.LoadFile(strFileName);
|
editForm.LoadFile(strFileName);
|
||||||
editForm.TextBox.OnCursorPositionChanged += new SyntaxRichTextBox.CursorPositionChangedHandler(TextBox_OnCursorPositionChanged);
|
editForm.TextBox.OnCursorPositionChanged += new SyntaxRichTextBox.CursorPositionChangedHandler(TextBox_OnCursorPositionChanged);
|
||||||
AddForm(editForm);
|
AddForm(editForm);
|
||||||
}
|
}
|
||||||
if (blnRun)
|
if (blnRun)
|
||||||
|
@ -619,20 +619,20 @@ namespace LSLEditor
|
||||||
browser.ShowWebBrowser("Import Examples", Properties.Settings.Default.Examples);
|
browser.ShowWebBrowser("Import Examples", Properties.Settings.Default.Examples);
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Return value indicate whether file was saved or not.
|
* Return value indicate whether file was saved or not.
|
||||||
*/
|
*/
|
||||||
public bool SaveFile(EditForm editForm, bool blnSaveAs)
|
public bool SaveFile(EditForm editForm, bool blnSaveAs)
|
||||||
{
|
{
|
||||||
DialogResult dialogresult = DialogResult.OK;
|
DialogResult dialogresult = DialogResult.OK;
|
||||||
if (editForm.FullPathName == Properties.Settings.Default.ExampleName || blnSaveAs)
|
if (editForm.FullPathName == Properties.Settings.Default.ExampleName || blnSaveAs)
|
||||||
{
|
{
|
||||||
SaveFileDialog saveDialog = editForm.IsScript ? this.saveScriptFilesDialog : this.saveNoteFilesDialog;
|
SaveFileDialog saveDialog = editForm.IsScript ? this.saveScriptFilesDialog : this.saveNoteFilesDialog;
|
||||||
saveDialog.FileName = editForm.FullPathName;
|
saveDialog.FileName = editForm.FullPathName;
|
||||||
string strExtension = Path.GetExtension(editForm.FullPathName);
|
string strExtension = Path.GetExtension(editForm.FullPathName);
|
||||||
dialogresult = saveDialog.ShowDialog();
|
dialogresult = saveDialog.ShowDialog();
|
||||||
if (dialogresult == DialogResult.OK)
|
if (dialogresult == DialogResult.OK)
|
||||||
editForm.FullPathName = saveDialog.FileName;
|
editForm.FullPathName = saveDialog.FileName;
|
||||||
}
|
}
|
||||||
if (dialogresult == DialogResult.OK)
|
if (dialogresult == DialogResult.OK)
|
||||||
{
|
{
|
||||||
|
@ -650,9 +650,9 @@ namespace LSLEditor
|
||||||
if (editForm == null)
|
if (editForm == null)
|
||||||
return false;
|
return false;
|
||||||
// save as!!
|
// save as!!
|
||||||
// TODO: Refactor saveDialog to be a property of the form
|
// TODO: Refactor saveDialog to be a property of the form
|
||||||
SaveFileDialog saveDialog = editForm.IsScript ? this.saveScriptFilesDialog : this.saveNoteFilesDialog;
|
SaveFileDialog saveDialog = editForm.IsScript ? this.saveScriptFilesDialog : this.saveNoteFilesDialog;
|
||||||
return SaveFile(editForm, true);
|
return SaveFile(editForm, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -703,7 +703,7 @@ namespace LSLEditor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//TODO: find browser in childs
|
//TODO: find browser in childs
|
||||||
/*for (int intI = 0; intI < this.tabControlExtended1.TabCount; intI++)
|
/*for (int intI = 0; intI < this.tabControlExtended1.TabCount; intI++)
|
||||||
{
|
{
|
||||||
TabPage tabPage = this.tabControlExtended1.TabPages[intI];
|
TabPage tabPage = this.tabControlExtended1.TabPages[intI];
|
||||||
|
@ -757,30 +757,30 @@ namespace LSLEditor
|
||||||
private void printPreviewtoolStripMenuItem_Click(object sender, EventArgs e)
|
private void printPreviewtoolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
EditForm editForm = this.ActiveMdiForm as EditForm;
|
EditForm editForm = this.ActiveMdiForm as EditForm;
|
||||||
if (editForm != null)
|
if (editForm != null)
|
||||||
{
|
{
|
||||||
printerHelp(editForm);
|
printerHelp(editForm);
|
||||||
printer.PrintPreviewEditForm(editForm);
|
printer.PrintPreviewEditForm(editForm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printToolStripMenuItem_Click(object sender, EventArgs e)
|
private void printToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
EditForm editForm = this.ActiveMdiForm as EditForm;
|
EditForm editForm = this.ActiveMdiForm as EditForm;
|
||||||
if (editForm != null)
|
if (editForm != null)
|
||||||
{
|
{
|
||||||
printerHelp(editForm);
|
printerHelp(editForm);
|
||||||
printer.PrintEditForm(editForm);
|
printer.PrintEditForm(editForm);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printerHelp(EditForm editForm)
|
private void printerHelp(EditForm editForm)
|
||||||
{
|
{
|
||||||
printer = new Helpers.PrinterHelper(pageSetupDialog1);
|
printer = new Helpers.PrinterHelper(pageSetupDialog1);
|
||||||
printer.Title = editForm.FullPathName;
|
printer.Title = editForm.FullPathName;
|
||||||
printer.SubTitle = DateTime.Now.ToString("s");
|
printer.SubTitle = DateTime.Now.ToString("s");
|
||||||
printer.Footer = this.Text;
|
printer.Footer = this.Text;
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
private void copyToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
|
private void copyToClipboardToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -947,14 +947,14 @@ namespace LSLEditor
|
||||||
|
|
||||||
SetFontsOnWindows();
|
SetFontsOnWindows();
|
||||||
|
|
||||||
//TODO: Fix new file drop down
|
//TODO: Fix new file drop down
|
||||||
//this.solutionExplorer1.parent = this;
|
//this.solutionExplorer1.parent = this;
|
||||||
//this.solutionExplorer1.CreateNewFileDrowDownMenu(this.addNewFileToolStripMenuItem);
|
//this.solutionExplorer1.CreateNewFileDrowDownMenu(this.addNewFileToolStripMenuItem);
|
||||||
this.solutionExplorerToolStripMenuItem.Checked = Properties.Settings.Default.ShowSolutionExplorer;
|
this.solutionExplorerToolStripMenuItem.Checked = Properties.Settings.Default.ShowSolutionExplorer;
|
||||||
ShowSolutionExplorer(this.solutionExplorerToolStripMenuItem.Checked);
|
ShowSolutionExplorer(this.solutionExplorerToolStripMenuItem.Checked);
|
||||||
|
|
||||||
this.llDialogForms = new List<llDialogForm>();
|
this.llDialogForms = new List<llDialogForm>();
|
||||||
this.llTextBoxForms = new List<llTextBoxForm>();
|
this.llTextBoxForms = new List<llTextBoxForm>();
|
||||||
this.PermissionForms = new List<PermissionsForm>();
|
this.PermissionForms = new List<PermissionsForm>();
|
||||||
|
|
||||||
this.TooltipMouse.Tag = "";
|
this.TooltipMouse.Tag = "";
|
||||||
|
@ -963,7 +963,7 @@ namespace LSLEditor
|
||||||
this.TooltipListBox.XOffset = 200; // TODO, afhankelijk van toegepaste font
|
this.TooltipListBox.XOffset = 200; // TODO, afhankelijk van toegepaste font
|
||||||
this.GListBoxWindow.Tag = "";
|
this.GListBoxWindow.Tag = "";
|
||||||
|
|
||||||
// This order equals with the KeyWordTypeEnum in KeyWords.cs
|
// This order equals with the KeyWordTypeEnum in KeyWords.cs
|
||||||
ImageList imageList = new ImageList();
|
ImageList imageList = new ImageList();
|
||||||
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Unknown.gif"));
|
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Unknown.gif"));
|
||||||
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Functions.gif"));
|
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Functions.gif"));
|
||||||
|
@ -972,10 +972,10 @@ namespace LSLEditor
|
||||||
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Class.gif"));
|
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Class.gif"));
|
||||||
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Vars.gif"));
|
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Vars.gif"));
|
||||||
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Properties.gif"));
|
imageList.Images.Add(new Bitmap(this.GetType(), "Images.Properties.gif"));
|
||||||
imageList.Images.Add(new Bitmap(this.GetType(), "Images.States.gif"));
|
imageList.Images.Add(new Bitmap(this.GetType(), "Images.States.gif"));
|
||||||
|
|
||||||
this.GListBoxWindow.GListBox.ImageList = imageList;
|
this.GListBoxWindow.GListBox.ImageList = imageList;
|
||||||
// this.tvOutline.ImageList = imageList;
|
// this.tvOutline.ImageList = imageList;
|
||||||
|
|
||||||
this.Move += new EventHandler(LSLEditorForm_SetPosition);
|
this.Move += new EventHandler(LSLEditorForm_SetPosition);
|
||||||
this.Resize += new EventHandler(LSLEditorForm_SetPosition);
|
this.Resize += new EventHandler(LSLEditorForm_SetPosition);
|
||||||
|
@ -1011,11 +1011,11 @@ namespace LSLEditor
|
||||||
df.Top = this.Top + 30;
|
df.Top = this.Top + 30;
|
||||||
df.Left = this.Right - df.Width - 5;
|
df.Left = this.Right - df.Width - 5;
|
||||||
}
|
}
|
||||||
foreach(llTextBoxForm tbf in this.llTextBoxForms)
|
foreach(llTextBoxForm tbf in this.llTextBoxForms)
|
||||||
{
|
{
|
||||||
tbf.Left = this.Left + this.Width / 2 - tbf.Width / 2;
|
tbf.Left = this.Left + this.Width / 2 - tbf.Width / 2;
|
||||||
tbf.Top = this.Top + this.Height / 2 - tbf.Height / 2;
|
tbf.Top = this.Top + this.Height / 2 - tbf.Height / 2;
|
||||||
}
|
}
|
||||||
EditForm editForm = this.ActiveMdiForm as EditForm;
|
EditForm editForm = this.ActiveMdiForm as EditForm;
|
||||||
if (editForm != null)
|
if (editForm != null)
|
||||||
editForm.TextBox.SetPosition(Screen.PrimaryScreen.WorkingArea);
|
editForm.TextBox.SetPosition(Screen.PrimaryScreen.WorkingArea);
|
||||||
|
@ -1025,7 +1025,7 @@ namespace LSLEditor
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
//TODO: hmmm?
|
//TODO: hmmm?
|
||||||
//this.tabControlExtended1.Visible = false;
|
//this.tabControlExtended1.Visible = false;
|
||||||
|
|
||||||
// this.panel1.Visible = false; // Simulator
|
// this.panel1.Visible = false; // Simulator
|
||||||
|
@ -1075,8 +1075,8 @@ namespace LSLEditor
|
||||||
}
|
}
|
||||||
if (dialogResult == DialogResult.Yes)
|
if (dialogResult == DialogResult.Yes)
|
||||||
{
|
{
|
||||||
// TODO: Refactor saveDialog to be a property of the form
|
// TODO: Refactor saveDialog to be a property of the form
|
||||||
SaveFileDialog saveDialog = editForm.IsScript ? this.saveScriptFilesDialog : this.saveNoteFilesDialog;
|
SaveFileDialog saveDialog = editForm.IsScript ? this.saveScriptFilesDialog : this.saveNoteFilesDialog;
|
||||||
if(!SaveFile(editForm, false))
|
if(!SaveFile(editForm, false))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1227,9 +1227,9 @@ namespace LSLEditor
|
||||||
|
|
||||||
this.SimulatorConsole = new SimulatorConsole(this.SolutionExplorer, this.Children);
|
this.SimulatorConsole = new SimulatorConsole(this.SolutionExplorer, this.Children);
|
||||||
|
|
||||||
this.SimulatorConsole.Show(dockPanel);
|
this.SimulatorConsole.Show(dockPanel);
|
||||||
//TODO: Show Simulator Console somewhere
|
//TODO: Show Simulator Console somewhere
|
||||||
//this.panel1.Controls.Clear();
|
//this.panel1.Controls.Clear();
|
||||||
//this.panel1.Controls.Add(this.SimulatorConsole);
|
//this.panel1.Controls.Add(this.SimulatorConsole);
|
||||||
//this.panel1.Visible = true;
|
//this.panel1.Visible = true;
|
||||||
//this.splitter1.SplitPosition = Properties.Settings.Default.SimulatorSize.Height;
|
//this.splitter1.SplitPosition = Properties.Settings.Default.SimulatorSize.Height;
|
||||||
|
@ -1237,7 +1237,7 @@ namespace LSLEditor
|
||||||
|
|
||||||
public void StopSimulator()
|
public void StopSimulator()
|
||||||
{
|
{
|
||||||
//TODO: Hide simulator? Or we could keep it like the debug output in VS
|
//TODO: Hide simulator? Or we could keep it like the debug output in VS
|
||||||
//this.panel1.Visible = false;
|
//this.panel1.Visible = false;
|
||||||
if (this.SimulatorConsole != null)
|
if (this.SimulatorConsole != null)
|
||||||
{
|
{
|
||||||
|
@ -1250,7 +1250,7 @@ namespace LSLEditor
|
||||||
|
|
||||||
private bool SyntaxCheck(bool Silent)
|
private bool SyntaxCheck(bool Silent)
|
||||||
{
|
{
|
||||||
//TODO: What do we hide on SyntaxCheck?
|
//TODO: What do we hide on SyntaxCheck?
|
||||||
//this.panel1.Visible = false;
|
//this.panel1.Visible = false;
|
||||||
InitSyntaxError();
|
InitSyntaxError();
|
||||||
|
|
||||||
|
@ -1269,8 +1269,8 @@ namespace LSLEditor
|
||||||
|
|
||||||
if (this.SyntaxErrors.HasErrors)
|
if (this.SyntaxErrors.HasErrors)
|
||||||
{
|
{
|
||||||
this.SyntaxErrors.Show(dockPanel);
|
this.SyntaxErrors.Show(dockPanel);
|
||||||
//TODO: Show errors somewhere in an output
|
//TODO: Show errors somewhere in an output
|
||||||
//this.panel1.Controls.Clear();
|
//this.panel1.Controls.Clear();
|
||||||
//this.panel1.Controls.Add(this.SyntaxErrors);
|
//this.panel1.Controls.Add(this.SyntaxErrors);
|
||||||
//this.panel1.Visible = true;
|
//this.panel1.Visible = true;
|
||||||
|
@ -1305,7 +1305,7 @@ namespace LSLEditor
|
||||||
|
|
||||||
private void splitter1_SplitterMoved(object sender, SplitterEventArgs e)
|
private void splitter1_SplitterMoved(object sender, SplitterEventArgs e)
|
||||||
{
|
{
|
||||||
//TODO: Splitter moved? I Think this is depricated
|
//TODO: Splitter moved? I Think this is depricated
|
||||||
//if( this.splitter1.SplitPosition>50)
|
//if( this.splitter1.SplitPosition>50)
|
||||||
// Properties.Settings.Default.SimulatorSize = new Size(this.splitter1.Width, this.splitter1.SplitPosition);
|
// Properties.Settings.Default.SimulatorSize = new Size(this.splitter1.Width, this.splitter1.SplitPosition);
|
||||||
}
|
}
|
||||||
|
@ -1350,19 +1350,19 @@ namespace LSLEditor
|
||||||
|
|
||||||
private void CloseTab(int intTabToDelete)
|
private void CloseTab(int intTabToDelete)
|
||||||
{
|
{
|
||||||
//TODO: Find a new way for closing tabs
|
//TODO: Find a new way for closing tabs
|
||||||
/*
|
/*
|
||||||
// reset toolstrip information
|
// reset toolstrip information
|
||||||
this.toolStripStatusLabel1.Text = "";
|
this.toolStripStatusLabel1.Text = "";
|
||||||
|
|
||||||
//int intTabToDelete = (int)this.contextMenuStrip1.Tag;
|
//int intTabToDelete = (int)this.contextMenuStrip1.Tag;
|
||||||
|
|
||||||
if (intTabToDelete >= this.tabControlExtended1.TabCount)
|
if (intTabToDelete >= this.tabControlExtended1.TabCount)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TabPage tabPage = this.tabControlExtended1.TabPages[intTabToDelete];
|
TabPage tabPage = this.tabControlExtended1.TabPages[intTabToDelete];
|
||||||
|
|
||||||
if (tabPage.Text.Contains("Browser"))
|
if (tabPage.Text.Contains("Browser"))
|
||||||
{
|
{
|
||||||
this.browser.Dispose();
|
this.browser.Dispose();
|
||||||
this.browser = null;
|
this.browser = null;
|
||||||
|
@ -1396,7 +1396,7 @@ namespace LSLEditor
|
||||||
editForm = null;
|
editForm = null;
|
||||||
}
|
}
|
||||||
this.tabControlExtended1.TabPages[intTabToDelete].Dispose();
|
this.tabControlExtended1.TabPages[intTabToDelete].Dispose();
|
||||||
*/
|
*/
|
||||||
GC.Collect();
|
GC.Collect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1440,14 +1440,14 @@ namespace LSLEditor
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//TODO: Find a new way
|
//TODO: Find a new way
|
||||||
/*
|
/*
|
||||||
int intTabToClose = this.tabControlExtended1.SelectedIndex;
|
int intTabToClose = this.tabControlExtended1.SelectedIndex;
|
||||||
if (intTabToClose >= 0)
|
if (intTabToClose >= 0)
|
||||||
CloseTab(intTabToClose);
|
CloseTab(intTabToClose);
|
||||||
|
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closeActiveWindowToolStripMenuItem_Click(object sender, EventArgs e)
|
private void closeActiveWindowToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
@ -1538,16 +1538,16 @@ namespace LSLEditor
|
||||||
|
|
||||||
public void ShowSolutionExplorer(bool blnVisible)
|
public void ShowSolutionExplorer(bool blnVisible)
|
||||||
{
|
{
|
||||||
//TODO: We need another way to activate the Solution Explorer
|
//TODO: We need another way to activate the Solution Explorer
|
||||||
//this.panel2.Visible = blnVisible;
|
//this.panel2.Visible = blnVisible;
|
||||||
if (blnVisible)
|
if (blnVisible)
|
||||||
{
|
{
|
||||||
m_SolutionExplorer.Show(dockPanel);
|
m_SolutionExplorer.Show(dockPanel);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
m_SolutionExplorer.Hide();
|
m_SolutionExplorer.Hide();
|
||||||
}
|
}
|
||||||
this.solutionExplorerToolStripMenuItem.Checked = blnVisible;
|
this.solutionExplorerToolStripMenuItem.Checked = blnVisible;
|
||||||
//this.tabControlExtended1.Refresh();
|
//this.tabControlExtended1.Refresh();
|
||||||
}
|
}
|
||||||
|
@ -1574,15 +1574,15 @@ namespace LSLEditor
|
||||||
this.newProjectToolStripMenuItem.Enabled = !blnVisible;
|
this.newProjectToolStripMenuItem.Enabled = !blnVisible;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openNoteFilesToolStripMenuItem_Click(object sender, EventArgs e)
|
private void openNoteFilesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ReadNoteFiles();
|
ReadNoteFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void openScriptFilesToolStripMenuItem_Click(object sender, EventArgs e)
|
private void openScriptFilesToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ReadScriptFiles();
|
ReadScriptFiles();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void closeFileToolStripMenuItem_Click(object sender, EventArgs e)
|
private void closeFileToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -1787,7 +1787,7 @@ namespace LSLEditor
|
||||||
|
|
||||||
private void PluginsHandler(object sender, EventArgs e)
|
private void PluginsHandler(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//TODO: What do we hide here?
|
//TODO: What do we hide here?
|
||||||
//this.panel1.Visible = false;
|
//this.panel1.Visible = false;
|
||||||
|
|
||||||
ToolStripMenuItem tsmi = sender as ToolStripMenuItem;
|
ToolStripMenuItem tsmi = sender as ToolStripMenuItem;
|
||||||
|
@ -1888,36 +1888,36 @@ namespace LSLEditor
|
||||||
NativeHelper.SendMyKeys.ClipBoardToApp("SecondLife", null);
|
NativeHelper.SendMyKeys.ClipBoardToApp("SecondLife", null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void outlineToolStripMenuItem_Click(object sender, EventArgs e)
|
private void outlineToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
//old
|
//old
|
||||||
}
|
}
|
||||||
|
|
||||||
private void outlineToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
|
private void outlineToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
foreach (Form k in this.Children)
|
foreach (Form k in this.Children)
|
||||||
{
|
{
|
||||||
EditForm editForm = k as EditForm;
|
EditForm editForm = k as EditForm;
|
||||||
if (editForm == null)
|
if (editForm == null)
|
||||||
return;
|
return;
|
||||||
if (outlineToolStripMenuItem.Checked)
|
if (outlineToolStripMenuItem.Checked)
|
||||||
{
|
{
|
||||||
editForm.splitContainer1.Panel2Collapsed = false;
|
editForm.splitContainer1.Panel2Collapsed = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
editForm.splitContainer1.Panel2Collapsed = true;
|
editForm.splitContainer1.Panel2Collapsed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void toolStripMenuItem9_Click_1(object sender, EventArgs e)
|
private void toolStripMenuItem9_Click_1(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
Browser browser = GetBrowser();
|
Browser browser = GetBrowser();
|
||||||
browser.ShowWebBrowser("LSLEditor QA", Properties.Settings.Default.qasite);
|
browser.ShowWebBrowser("LSLEditor QA", Properties.Settings.Default.qasite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue