Esempio n. 1
0
 public CMakeFileFormat(FilePath file, CMakeProject project, CMakeFileFormat parent)
 {
     this.file    = file;
     this.project = project;
     this.parent  = parent;
     Parse();
 }
Esempio n. 2
0
        public void LoadFrom(FilePath file)
        {
            this.file = file;
            CMakeFileFormat fileFormat = new CMakeFileFormat(file, this);

            name            = fileFormat.ProjectName;
            this.fileFormat = fileFormat;
        }
Esempio n. 3
0
 public CMakeCommand(string name, Match command, CMakeFileFormat parent)
 {
     this.name    = name;
     this.command = command;
     this.parent  = parent;
     if (command != null)
     {
         ParseArguments();
     }
 }
Esempio n. 4
0
        public CMakeTarget(CMakeCommand command, CMakeFileFormat parent)
        {
            Initialize(this);
            this.command = command;
            this.parent  = parent;
            if (command.Name.ToLower() == "add_executable")
            {
                type = Types.Binary;
            }

            PopulateFiles();
        }
        public TargetPickerDialog(string title, CMakeFileFormat parent)
        {
            this.Build();

            this.parent              = parent;
            Title                    = title;
            treeview1.Model          = store;
            treeview1.HeadersVisible = false;

            var textColumn = new TreeViewColumn();

            textColumn.Title = "Targets";

            var toggle = new CellRendererToggle();

            toggle.Toggled += ToggleEventHandler;
            textColumn.PackStart(toggle, false);
            textColumn.AddAttribute(toggle, "active", 0);


            var boolColumn = new TreeViewColumn();

            textColumn.Title = "Targets";

            var text = new CellRendererText();

            textColumn.PackStart(text, false);
            textColumn.AddAttribute(text, "text", 1);

            treeview1.AppendColumn(textColumn);

            PopulateTargets();

            buttonOk.Clicked  += ButtonOkClicked;
            select.Clicked    += SelectClicked;
            deselect.Clicked  += DeselectClicked;
            newTarget.Clicked += NewTargetClicked;
        }
 public CMakeVariableManager(CMakeFileFormat file)
 {
     parent = file;
     PopulateVariables();
 }