Skip to content

Commit

Permalink
added FD debugger support (bad solution), autorun option in dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
makc committed Jun 17, 2013
1 parent db23b98 commit 31bb2b4
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 9 deletions.
Binary file added ColtPlugin.fdz
Binary file not shown.
25 changes: 21 additions & 4 deletions ColtPlugin/Forms/FirstTimeDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion ColtPlugin/Forms/FirstTimeDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ namespace ColtPlugin.Forms
{
public partial class FirstTimeDialog : Form
{
public Boolean AutoRun = true;
public Boolean InterceptBuilds = false;
public String ShortCode = null;

Expand All @@ -18,14 +19,16 @@ public FirstTimeDialog()
InitializeComponent();
}

public FirstTimeDialog(Boolean interceptBuilds)
public FirstTimeDialog(Boolean interceptBuilds, Boolean autorun)
{
InitializeComponent();
InterceptBuilds = checkBox1.Checked = interceptBuilds;
AutoRun = checkBox2.Checked = autorun;
}

private void button1_Click(object sender, EventArgs e)
{
AutoRun = checkBox2.Checked;
InterceptBuilds = checkBox1.Checked;
ShortCode = textBox1.Text;

Expand Down
7 changes: 4 additions & 3 deletions ColtPlugin/PluginMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,11 @@ private void GetSecurityToken(Boolean param)
client.Invoke("requestShortCode", new Object[] { LocaleHelper.GetString("Info.Description").TrimEnd(new Char[] { '.' }) });

// if still here, user needs to enter the code
Forms.FirstTimeDialog dialog = new Forms.FirstTimeDialog(settingObject.InterceptBuilds);
Forms.FirstTimeDialog dialog = new Forms.FirstTimeDialog(settingObject.InterceptBuilds, settingObject.AutoRun);
dialog.ShowDialog();

// regardless of the code, set InterceptBuilds option
// regardless of the code, set boolean options
settingObject.AutoRun = dialog.AutoRun;
settingObject.InterceptBuilds = dialog.InterceptBuilds;

if ((dialog.ShortCode != null) && (dialog.ShortCode.Length == 4))
Expand Down Expand Up @@ -775,7 +776,7 @@ private COLTRemoteProject ExportCOLTProject()
additionalOptions += option + " ";
}

result.compilerOptions = additionalOptions.Trim();
result.compilerOptions = additionalOptions.Trim() + (project.TraceEnabled ? " -debug" : "");

return result;
}
Expand Down
1 change: 0 additions & 1 deletion ColtPlugin/Rpc/AppStarter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Timers;

public delegate void AppStarterDelegate(Boolean param);
Expand Down
Binary file removed ColtPlugin/obj/Debug/ColtPlugin.dll
Binary file not shown.

0 comments on commit 31bb2b4

Please # to comment.