public TiledComputeShaderBase(string name, Image image, string subMenuName, PaintDotNet.Effects.EffectFlags flags)
     : base(name, image, subMenuName, flags)
 {
     MaximumRegionWidth = 2048;
     MaximumRegionHeight = 512;
     CustomRegionHandling = true;
 }
Ejemplo n.º 2
0
 public FilePropertyControl(PaintDotNet.IndirectUI.PropertyControlInfo property) : base(property)
 {
     _label.Text = (string)(property.Property.Value ?? property.Property.DefaultValue ?? "");
     _container.Controls.Add(_label);
     _container.Controls.Add(_button);
     Controls.Add(_container);
     _button.Click += (s, e) => OpenFile();
 }
Ejemplo n.º 3
0
        protected PropertyControl(PaintDotNet.IndirectUI.PropertyControlInfo property) : base(property)
        {
            AutoSize = true;

            Controls.Add(_header);
            _header.Dock = DockStyle.Top;
            _header.Text = DisplayName;

            Controls.Add(_footer);
            _footer.Dock = DockStyle.Bottom;
            _footer.Text = Description;
        }
Ejemplo n.º 4
0
 private void LayerControl_DoubleClickedOnLayer(object sender, PaintDotNet.LayerEventArgs ce)
 {
     OnPropertiesButtonClick();
     this.OnRelinquishFocus();
 }
Ejemplo n.º 5
0
 private void LayerControl_ClickOnLayer(object sender, PaintDotNet.LayerEventArgs ce)
 {
     // TODO: whoa there, enough nesting?
     int index = layerControl.AppWorkspace.ActiveDocumentWorkspace.Document.Layers.IndexOf(ce.Layer);
     DetermineButtonEnableStates(index);
 }
Ejemplo n.º 6
0
        private void PrepMsi(string msiPath, string dstDir, PaintDotNet.SystemLayer.ProcessorArchitecture platform, Hashtable msiProperties)
        {
            string dstMsiExt = "." + platform.ToString().ToLower() + ".msi";
            string dstMsiName = Path.ChangeExtension(msiPath, dstMsiExt);

            if (!Directory.Exists(dstDir))
            {
                Directory.CreateDirectory(dstDir);
            }

            string dstMsiPath = Path.Combine(dstDir, dstMsiName);

            this.statusText.Text = dstMsiName;
            WizardHost.Update();

            File.Copy(msiPath, dstMsiPath, true);
            ++this.progressBar.Value;

            Msi.SetMsiTargetPlatform(dstMsiPath, platform);
            ++this.progressBar.Value;

            foreach (string key in msiProperties.Keys)
            {
                string value = (string)msiProperties[key];
                Msi.SetMsiProperties(dstMsiPath, Msi.PropertyTable, new string[1] { key }, new string[1] { value });
                ++this.progressBar.Value;
            }

            ++this.progressBar.Value;
        }
 protected ComputeShaderBase(string name, Image image, string subMenuName, PaintDotNet.Effects.EffectFlags flags)
     : base(name, image, subMenuName, flags)
 {
     MaxTextureSize = 8216;
     CustomRegionHandling = false;
 }
Ejemplo n.º 8
0
        private void LayerControl_ClickedOnLayer(object sender, PaintDotNet.LayerEventArgs ce)
        {
            if (ActiveDocumentWorkspace != null)
            {
                if (ce.Layer != ActiveDocumentWorkspace.ActiveLayer)
                {
                    ActiveDocumentWorkspace.ActiveLayer = ce.Layer;
                }
            }

            this.RelinquishFocusHandler(sender, EventArgs.Empty);
        }
 protected DualPassComputeShaderBase(string name, Image image, string subMenuName, PaintDotNet.Effects.EffectFlags flags)
     : base(name, image, subMenuName, flags)
 {
     Passes = 2;
 }
 public ImageComputeShaderBase(string name, Image image, string subMenuName, PaintDotNet.Effects.EffectFlags flags)
     : base(name, image, subMenuName, flags)
 {
     DimensionX = 64;
     DimensionY = 1;
 }