예제 #1
0
 /// <summary>
 /// Handles loading the code from files into nodes.
 /// </summary>
 /// <param name="path">Source folder path</param>
 /// <param name="root">Root node of the source tree</param>
 /// <param name="sourceInfo">Source code discovery tree</param>
 /// <param name="defines">Defined constants</param>
 /// <param name="engine">Task engine for process display</param>
 public Parser(string path, MemberNode root, TreeView sourceInfo, string defines, TaskEngine engine = null)
 {
     this.path       = path;
     this.root       = root;
     this.sourceInfo = sourceInfo;
     italic          = new Font(sourceInfo.Font, FontStyle.Italic);
     underline       = new Font(sourceInfo.Font, FontStyle.Underline);
     bold            = new Font(sourceInfo.Font, FontStyle.Bold);
     this.defines    = defines;
     this.engine     = engine;
 }
예제 #2
0
 /// <summary>
 /// Load settings and set up the window accordingly.
 /// </summary>
 public DocSharp()
 {
     InitializeComponent();
     task = new TaskEngine();
     task.SetProgressReporting(progressBar, progressLabel);
     LoadRecents();
     expandEnums.Checked      = Properties.Settings.Default.ExpandEnums;
     expandStructs.Checked    = Properties.Settings.Default.ExpandStructs;
     exportAttributes.Checked = Properties.Settings.Default.ExportAttributes;
     extension.Text           = Properties.Settings.Default.FileExtension;
     defines.Text             = Properties.Settings.Default.DefineConstants;
     phpFillers.Checked       = Properties.Settings.Default.PhpFillers;
     exportInternal.Checked   = Properties.Settings.Default.VisibilityInternal;
     exportPrivate.Checked    = Properties.Settings.Default.VisibilityPrivate;
     exportProtected.Checked  = Properties.Settings.Default.VisibilityProtected;
     exportPublic.Checked     = Properties.Settings.Default.VisibilityPublic;
 }
예제 #3
0
 /// <summary>
 /// Makes a bridge between the export process and the GUI.
 /// </summary>
 /// <param name="engine">Task guard and GUI updater</param>
 public Exporter(TaskEngine engine) => this.engine = engine;