Example #1
0
        public PropBuildEventBuildChain(ProjectElement Element, StudioCore Core, BuildChain BuildChain, string CurrentBuildConfig)
        {
            this.Element            = Element;
            this.Core               = Core;
            this.BuildChain         = BuildChain;
            this.CurrentBuildConfig = CurrentBuildConfig;
            TopLevel = false;

            InitializeComponent();

            // Build Chains
            if (Core.Navigating.Solution != null)
            {
                foreach (var project in Core.Navigating.Solution.Projects)
                {
                    comboBuildChainProject.Items.Add(project.Settings.Name);
                }
                if (comboBuildChainProject.Items.Count > 0)
                {
                    comboBuildChainProject.SelectedIndex = 0;
                }

                foreach (var entry in BuildChain.Entries)
                {
                    var item = new ArrangedItemEntry();

                    item.Text = entry.ProjectName + " - " + entry.Config;
                    item.Tag  = entry;

                    listBuildChainProjects.Items.Add(item);
                }
            }

            checkBuildChainActive.Checked = BuildChain.Active;
        }
Example #2
0
            public ExecutingReadOutput(StreamReader Reader, ManualResetEvent Complete, StudioCore Core)
            {
                _Core     = Core;
                _Reader   = Reader;
                _Complete = Complete;

                new Thread(ReadAll).Start();
            }
        public PropGeneral(ProjectElement Element, StudioCore Core)
        {
            this.Element = Element;
            this.Core    = Core;
            TopLevel     = false;
            Text         = "General";
            InitializeComponent();

            labelFilename.Text = Element.Filename;
            labelFilePath.Text = Element.DocumentInfo.Project.FullPath(Element.Filename);
        }
        public PropCompileTarget(ProjectElement Element, StudioCore Core)
        {
            this.Element = Element;
            this.Core    = Core;
            TopLevel     = false;
            Text         = "Compile Target";
            InitializeComponent();

            comboTargetType.Items.Add("None");
            comboTargetType.Items.Add("Plain");
            comboTargetType.Items.Add("PRG (cbm)");
            comboTargetType.Items.Add("T64");
            comboTargetType.Items.Add("8 KB Cartridge (bin)");
            comboTargetType.Items.Add("8 KB Cartridge (crt)");
            comboTargetType.Items.Add("16 KB Cartridge (bin)");
            comboTargetType.Items.Add("16 KB Cartridge (crt)");
            comboTargetType.Items.Add("D64");
            comboTargetType.Items.Add("Magic Desk 64 KB Cartridge (bin)");
            comboTargetType.Items.Add("Magic Desk 64 KB Cartridge (crt)");
            comboTargetType.Items.Add("TAP");
            comboTargetType.Items.Add("Easyflash Cartridge (bin)");
            comboTargetType.Items.Add("Easyflash Cartridge (crt)");
            comboTargetType.Items.Add("RGCD 64 KB Cartridge (bin)");
            comboTargetType.Items.Add("RGCD 64 KB Cartridge (crt)");
            comboTargetType.Items.Add("GMOD2 Cartridge (bin)");
            comboTargetType.Items.Add("GMOD2 Cartridge (crt)");
            comboTargetType.Items.Add("D81");

            comboTargetType.SelectedIndex = (int)Element.TargetType;

            editTargetFilename.Text = Element.TargetFilename;

            // own project first
            foreach (ProjectElement element in Element.DocumentInfo.Project.Elements)
            {
                VerifyElement(element);
            }
            foreach (var project in Core.Navigating.Solution.Projects)
            {
                if (project != Element.DocumentInfo.Project)
                {
                    foreach (ProjectElement element in project.Elements)
                    {
                        VerifyElement(element);
                    }
                }
            }

            foreach (var entry in Element.ExternalDependencies.DependentOnFile)
            {
                listExternalDependencies.Items.Add(entry.Filename);
            }
        }
Example #5
0
        public StudioCore()
        {
            Compiling   = new Compiling(this);
            Searching   = new Searching(this);
            Navigating  = new Navigating(this);
            TaskManager = new Tasks.TaskManager(this);
            Debugging   = new Debugging(this);
            Executing   = new Executing(this);
            Imaging     = new Imaging(this);
            Theming     = new StudioTheme(this);

            StaticCore = this;
        }
Example #6
0
        public PropAssemblerType(ProjectElement Element, StudioCore Core)
        {
            this.Element = Element;
            this.Core    = Core;
            TopLevel     = false;
            Text         = "Assembler";
            InitializeComponent();

            comboAssemblerType.Items.Add(new GR.Generic.Tupel <string, Types.AssemblerType>("Auto", RetroDevStudio.Types.AssemblerType.AUTO));
            comboAssemblerType.Items.Add(new GR.Generic.Tupel <string, Types.AssemblerType>("C64Studio/ACME", RetroDevStudio.Types.AssemblerType.C64_STUDIO));
            comboAssemblerType.Items.Add(new GR.Generic.Tupel <string, Types.AssemblerType>("PDS", RetroDevStudio.Types.AssemblerType.PDS));
            comboAssemblerType.Items.Add(new GR.Generic.Tupel <string, Types.AssemblerType>("DASM", RetroDevStudio.Types.AssemblerType.DASM));
            comboAssemblerType.Items.Add(new GR.Generic.Tupel <string, Types.AssemblerType>("C64ASM", RetroDevStudio.Types.AssemblerType.C64ASM));
            comboAssemblerType.Items.Add(new GR.Generic.Tupel <string, Types.AssemblerType>("CBMPRGSTUDIO", RetroDevStudio.Types.AssemblerType.CBMPRGSTUDIO));

            SetType(Element.AssemblerType);
        }
        public PropDebugging(ProjectElement Element, StudioCore Core)
        {
            this.Element = Element;
            this.Core    = Core;
            TopLevel     = false;
            Text         = "Debug";
            InitializeComponent();

            AddType(CompileTargetType.NONE);
            AddType(CompileTargetType.PLAIN);
            AddType(CompileTargetType.PRG);
            AddType(CompileTargetType.T64);
            AddType(CompileTargetType.TAP);
            AddType(CompileTargetType.D64);
            AddType(CompileTargetType.D81);

            if (Element.DocumentInfo.Type == ProjectElement.ElementType.ASM_SOURCE)
            {
                AddType(CompileTargetType.CARTRIDGE_8K_BIN);
                AddType(CompileTargetType.CARTRIDGE_8K_CRT);
                AddType(CompileTargetType.CARTRIDGE_16K_BIN);
                AddType(CompileTargetType.CARTRIDGE_16K_CRT);
                AddType(CompileTargetType.CARTRIDGE_MAGICDESK_BIN);
                AddType(CompileTargetType.CARTRIDGE_MAGICDESK_CRT);
                AddType(CompileTargetType.CARTRIDGE_EASYFLASH_BIN);
                AddType(CompileTargetType.CARTRIDGE_EASYFLASH_CRT);
                AddType(CompileTargetType.CARTRIDGE_RGCD_BIN);
                AddType(CompileTargetType.CARTRIDGE_RGCD_CRT);
            }

            foreach (var configName in Element.DocumentInfo.Project.Settings.GetConfigurationNames())
            {
                comboConfig.Items.Add(configName);
            }
            comboConfig.SelectedItem = Element.DocumentInfo.Project.Settings.CurrentConfig.Name;

            ProjectElement.PerConfigSettings configSettings = Element.Settings[Element.DocumentInfo.Project.Settings.CurrentConfig.Name];

            SelectDebugType(configSettings.DebugFileType);
            editDebugCommand.Text = configSettings.DebugFile;
        }
        public PropBuildEvents(ProjectElement Element, StudioCore Core)
        {
            this.Element = Element;
            this.Core    = Core;
            TopLevel     = false;
            Text         = "Build Events";
            InitializeComponent();

            comboBuildEvents.Items.Add(new GR.Generic.Tupel <string, RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent>("Pre Build", RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent.PRE));
            comboBuildEvents.Items.Add(new GR.Generic.Tupel <string, RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent>("Pre Build Chain", RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent.PRE_BUILD_CHAIN));
            comboBuildEvents.Items.Add(new GR.Generic.Tupel <string, RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent>("Custom Build", RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent.CUSTOM));
            comboBuildEvents.Items.Add(new GR.Generic.Tupel <string, RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent>("Post Build Chain", RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent.POST_BUILD_CHAIN));
            comboBuildEvents.Items.Add(new GR.Generic.Tupel <string, RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent>("Post Build", RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent.POST));
            comboBuildEvents.SelectedIndex = 4;

            foreach (var configName in Element.DocumentInfo.Project.Settings.GetConfigurationNames())
            {
                comboConfig.Items.Add(configName);
            }
            comboConfig.SelectedItem = Element.DocumentInfo.Project.Settings.CurrentConfig.Name;
        }
Example #9
0
        public PropBuildEventScript(ProjectElement Element, StudioCore Core, RetroDevStudio.ProjectElement.PerConfigSettings Settings, RetroDevStudio.ProjectElement.PerConfigSettings.BuildEvent Event)
        {
            this.Element  = Element;
            this.Core     = Core;
            this.Settings = Settings;
            this.Event    = Event;
            TopLevel      = false;
            InitializeComponent();

            switch (Event)
            {
            case ProjectElement.PerConfigSettings.BuildEvent.PRE:
                editBuildCommand.Text = Settings.PreBuild;
                break;

            case ProjectElement.PerConfigSettings.BuildEvent.CUSTOM:
                editBuildCommand.Text = Settings.CustomBuild;
                break;

            case ProjectElement.PerConfigSettings.BuildEvent.POST:
                editBuildCommand.Text = Settings.PostBuild;
                break;
            }
        }
 public PerspectiveDetails(StudioCore Core)
 {
     this.Core = Core;
 }
Example #11
0
 public Navigating(StudioCore Core)
 {
     this.Core = Core;
 }
Example #12
0
 public Debugging(StudioCore Core)
 {
     this.Core    = Core;
     ActiveMemory = MemoryCPU;
 }
Example #13
0
 public Compiling(StudioCore Core)
 {
     this.Core = Core;
 }
Example #14
0
 public Imaging(StudioCore Core)
 {
     this.Core = Core;
 }
Example #15
0
 public Searching(StudioCore Core)
 {
     this.Core = Core;
 }
Example #16
0
 public Executing(StudioCore Core)
 {
     this.Core = Core;
 }
Example #17
0
 public Tiny64Debugger(StudioCore Core)
 {
     this.Core = Core;
 }