Beispiel #1
0
        public ExportUserControl()
        {
            //this.picPreview.Visible = false;

            InitializeComponent();

            pbExport.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.combined_shape, pbExport.Size);
            if (frmStudioMain.SceneControl != null)
            {
                this.Size = frmStudioMain.SceneControl.Size;
            }

            CirclularProgressBar                    = new CirclularProgressBar();
            CirclularProgressBar.TagLine            = "Generating print job…";
            CirclularProgressBar.Value              = 0;
            CirclularProgressBar.OuterRingWidth     = 8;
            CirclularProgressBar.BackColor          = this.BackColor;
            CirclularProgressBar.ForeColor          = Color.FromArgb(255, 24, 0);
            CirclularProgressBar.OuterRingBaseColor = Color.FromArgb(40, 46, 51);
            CirclularProgressBar.Anchor             = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right | System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Bottom)));
            CirclularProgressBar.MinimumSize        = new Size(200, 200);

            CirclularProgressBar.MaximumSize = new Size(480, 480);

            CalculateCircularProgressBarSize();
            CirclularProgressBar.BringToFront();
            plExportControl.Controls.Add(CirclularProgressBar);
            plExportControl.Dock = DockStyle.Fill;

            lblExportClick.Font = FontManager.Montserrat18Bold;

            this.mTracker.ValueChanged += MTracker_ValueChanged;
        }
        private void btnUniformScaleLink_Click(object sender, EventArgs e)
        {
            if (_scaleLinkType == ScaleLinkType.Linked)
            {
                _scaleLinkType = ScaleLinkType.Unlinked;
                this.btnUniformScaleLink.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.link_broken_black, new Size(18, 18));
                this.txtUniformScaleFactor.ReadOnly      = true;
                this.plUniformScaleFactor.BackColor      = Color.LightGray;
                this.txtUniformScaleFactor.BackColor     = Color.LightGray;

                this.btnUniformScaleLink.Tag = false;
            }
            else
            {
                _scaleLinkType = ScaleLinkType.Linked;
                this.btnUniformScaleLink.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.link_black, new Size(18, 18));
                this.txtUniformScaleFactor.ReadOnly      = false;
                this.plUniformScaleFactor.BackColor      = Color.White;
                this.txtUniformScaleFactor.BackColor     = Color.White;

                this.btnUniformScaleLink.Tag = true;
            }

            UpdateLinkedLines();
            menuItemToolStripMenuItem_Click(null, null);
        }
Beispiel #3
0
        public DuplicateModelControl(ModelFootprint footprint)
        {
            InitializeComponent();

            this.btnDuplicatesMinus.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.minus_black, new Size(24, 24));
            this.btnDuplicatesPlus.Image  = SVGParser.GetBitmapFromSVG(Resources.SVGImages.plus_black, new Size(24, 24));

            ModelFootprint = footprint;
            MaxClones      = footprint.CloneCount;
            string modelName = Path.GetFileNameWithoutExtension(footprint.Model.FileName);

            var font = FontManager.Montserrat14Regular;

            this.txtDuplicatesCount.Font = font;
            this.lblModelName.Font       = font;

            var textSize = TextRenderer.MeasureText("1", font);

            this.txtDuplicatesCount.Top += (this.txtDuplicatesCount.Height - textSize.Height) / 2;

            lblModelName.Text = modelName;

            if (footprint.Model.LinkedClones.Count > 0)
            {
                this.txtDuplicatesCount.Text = (footprint.Model.LinkedClones.Count).ToString();
            }
            else
            {
                this.txtDuplicatesCount.Text = (footprint.Model.LinkedClones.Count + 1).ToString();
            }

            TotalAmount    = int.Parse(this.txtDuplicatesCount.Text);
            this.BackColor = BackgroundColor;
            this.plDuplicateModelControl.BackColor = BackgroundColor;
        }
Beispiel #4
0
        public NewGUIFormBase()
        {
            InitializeComponent();

            this.plContentSplitter.BackColor = this.lblHeader.BackColor = this.plHeaderTitle.BackColor = BrandingManager.Form_Header_BackgroundColor;
            this.btnClose.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_white, this.btnClose.Size);
            this.Icon           = BrandingManager.MainForm_Icon;
        }
Beispiel #5
0
        public SceneControlActionPanelBase()
        {
            InitializeComponent();

            this.btnClose.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_black, btnClose.Size);

            this.Hide();
        }
Beispiel #6
0
        public RecentFilesControl()
        {
            InitializeComponent();

            this.pbClose.Image        = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_white, this.pbClose.Size);
            this.pbPlusSign.BackColor = BrandingManager.Button_HighlightColor;

            InitRecentFilesControl();
        }
        internal SceneControlRenderModeToolbar()
        {
            InitializeComponent();

            this.btnModelRenderMode.Image      = SVGParser.GetBitmapFromSVG(Resources.SVGImages.model_solid, btnModelRenderMode.Size);
            this.btnSupportRenderMode.Image    = SVGParser.GetBitmapFromSVG(Resources.SVGImages.support_solid, btnModelRenderMode.Size);
            this.btnGroundPaneRenderMode.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.grid_solid, btnModelRenderMode.Size);

            this.Visible = true;
        }
Beispiel #8
0
        private void newSVGToolWireframe(String selectedSvg)
        {
            string selectedSVG = selectedSvg;

            Tools.RectangleTool svgTool = new Tools.RectangleTool(164, 290, selectedSVG);
            svgTool.BackgroundImage       = SVGParser.GetBitmapFromSVG(selectedSVG);
            svgTool.Height                = 100;
            svgTool.Width                 = 100;
            svgTool.BackgroundImageLayout = ImageLayout.Zoom;
            tlp.AddTool(svgTool);
        }
Beispiel #9
0
 private void btnGuardar_Click(object sender, EventArgs e)
 {
     if (ValidarForm())
     {
         SVGParser.SizeInicio = new Size(pickImagen.Width, pickImagen.Height);
         svgDocument          = SVGParser.GetSvgDocument(selectedPath);
         nupAncho.Value       = (int)svgDocument.Width.Value;
         nupAlto.Value        = (int)svgDocument.Height.Value;
         pickImagen.Image     = SVGParser.GetBitmapFromSVG(selectedPath);
     }
 }
Beispiel #10
0
        public frmCalibrationComplete(frmCalibratePrinter frmCalibratePrinter)
        {
            FrmCalibratePrinter = frmCalibratePrinter;
            InitializeComponent();

            this.pbTickMark.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.tick, pbTickMark.Size);
            this.pbClose.Image    = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_white, pbClose.Size);

            this.lblHeader.Font = FontManager.Montserrat18Regular;
            this.Text           = this.lblHeader.Text = this.Text.Replace("{{PrinterName}}", FrmCalibratePrinter.AtumPrinter.DisplayName);
            this.Icon           = BrandingManager.MainForm_Icon;
        }
        public SceneControlActionSubPanelBase()
        {
            InitializeComponent();

            if (FontManager.Loaded)
            {
                this.lblHeader.Font = FontManager.Montserrat14Bold;
            }
            this.btnClose.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_black, btnClose.Size);

            this.Hide();
        }
        public SceneControlCameraActionsToolbar()
        {
            InitializeComponent();

            this.Visible = true;

            this.btnCameraActionPan.Image   = SVGParser.GetBitmapFromSVG(Resources.SVGImages.pan_white_unselected, this.btnCameraActionPan.Size);
            this.btnCameraActionOrbit.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.orbit_white_unselected, this.btnCameraActionOrbit.Size);
            this.btnCameraActionZoom.Image  = SVGParser.GetBitmapFromSVG(Resources.SVGImages.zoom_white_unselected, this.btnCameraActionZoom.Size);

            this.Top  = 364;
            this.Left = 16;
        }
        public UnlicensedProgramControl(SplashFrm splashFrm)
        {
            SplashForm = splashFrm;
            InitializeComponent();

            this.pbWarning.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.warning, pbWarning.Size);
            this.pbClose.Image   = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_white, pbClose.Size);

            if (FontManager.Loaded)
            {
                this.lbl30DaysTrial.Font = FontManager.Montserrat14Regular;
            }
        }
        public SceneControlModelActionsToolbar()
        {
            InitializeComponent();

            this.btnModelActionMove.Image    = SVGParser.GetBitmapFromSVG(Resources.SVGImages.move_black, new Size(40, 40));
            this.btnModelActionRotate.Image  = SVGParser.GetBitmapFromSVG(Resources.SVGImages.rotate_black, new Size(40, 40));
            this.btnModelActionScale.Image   = SVGParser.GetBitmapFromSVG(Resources.SVGImages.scalepanel_black, new Size(40, 40));
            this.btnModelActionSupport.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.support_black, new Size(40, 40));

            this.Left    = 16;
            this.Top     = 32;
            this.Visible = true;
        }
Beispiel #15
0
        public LicensedProgramControl()
        {
            InitializeComponent();

            this.pbTick.Image  = SVGParser.GetBitmapFromSVG(Resources.SVGImages.tick, pbTick.Size);
            this.pbClose.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_white, pbClose.Size);

            if (FontManager.Loaded)
            {
                this.label1.Font = FontManager.Montserrat14Regular;
            }

            this.pbPlusSign.BackColor = BrandingManager.Button_HighlightColor;
        }
        private void UpdateControl()
        {
            //
            if (this._dataSource.ScaleFactorX == this._dataSource.ScaleFactorY && this._dataSource.ScaleFactorY == this._dataSource.ScaleFactorZ)
            {
                this.btnUniformScaleLink.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.link_black, new Size(18, 18));
                this.txtUniformScaleFactor.Value         = this._dataSource.ScaleFactorX;
            }
            else
            {
                this.btnUniformScaleLink.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.link_broken_black, new Size(18, 18));
            }

            this.UpdateLinkedLines();
        }
Beispiel #17
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            DialogResult selectResult = filePicker.ShowDialog();

            if (selectResult == System.Windows.Forms.DialogResult.OK)
            {
                SVGParser.SizeInicio = new Size(pickImagen.Width, pickImagen.Height);
                selectedPath         = filePicker.FileName;
                txtBuscar.Text       = selectedPath;
                svgDocument          = SVGParser.GetSvgDocument(selectedPath);
                nupAncho.Value       = (int)svgDocument.Width.Value;
                nupAlto.Value        = (int)svgDocument.Height.Value;
                pickImagen.Image     = SVGParser.GetBitmapFromSVG(selectedPath);
                Guardar.FileName     = filePicker.FileName;
            }
        }
        private void btnGroundPaneRenderMode_Click(object sender, EventArgs e)
        {
            switch (SceneView.GroundPaneRenderMode)
            {
            case SceneView.SceneViewRenderModeType.Solid:
                SceneView.GroundPaneRenderMode     = SceneView.SceneViewRenderModeType.Hidden;
                this.btnGroundPaneRenderMode.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.grid_hide, btnGroundPaneRenderMode.Size);
                break;

            case SceneView.SceneViewRenderModeType.Hidden:
                SceneView.GroundPaneRenderMode     = SceneView.SceneViewRenderModeType.Solid;
                this.btnGroundPaneRenderMode.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.grid_solid, btnGroundPaneRenderMode.Size);
                break;
            }

            frmStudioMain.SceneControl.Render();
        }
Beispiel #19
0
        public frmCalibratePrinter(AtumPrinter atumPrinter)
        {
            InitializeComponent();

            this.AtumPrinter = atumPrinter;

            this.btnClose.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.cross_white, btnClose.Size);
            this.pbHelp.Image   = SVGParser.GetBitmapFromSVG(Resources.SVGImages.help_white, pbHelp.Size);

            this.btnExport.BorderColor = this.btnExport.ForeColor = this.btnCheck.BackColor = BrandingManager.Button_BackgroundColor_Dark;
            this.plPrinterCalibrationOverview.BackgroundImage = BrandingManager.Printer_Calibration_Image;

            CalcCalibrationDefaults();

            if (this.AtumPrinter.TrapeziumCorrectionRawInputA == 0)
            {
                this.AtumPrinter.TrapeziumCorrectionRawInputA = _calibrationModelSideY;
            }
            if (this.AtumPrinter.TrapeziumCorrectionRawInputB == 0)
            {
                this.AtumPrinter.TrapeziumCorrectionRawInputB = _calibrationModelSideX;
            }
            if (this.AtumPrinter.TrapeziumCorrectionRawInputC == 0)
            {
                this.AtumPrinter.TrapeziumCorrectionRawInputC = _calibrationModelSideY;
            }
            if (this.AtumPrinter.TrapeziumCorrectionRawInputD == 0)
            {
                this.AtumPrinter.TrapeziumCorrectionRawInputD = _calibrationModelSideX;
            }

            if (this.AtumPrinter.TrapeziumCorrectionRawInputE == 0)
            {
                this.AtumPrinter.TrapeziumCorrectionRawInputE = this.AtumPrinter.TrapeziumCorrectionRawInputF = CalcDiagonals(_calibrationModelSideY, _calibrationModelSideX, _calibrationModelSideY, _calibrationModelSideX);
            }

            BindMaterials();
            BindTrapeziumValues();
            ValidateCorrectionInput(false);

            this.trapezoidSizeA.TextValueChanged += TrapezoidSize_TextValueChanged;
            this.trapezoidSizeB.TextValueChanged += TrapezoidSize_TextValueChanged;
            this.trapezoidSizeC.TextValueChanged += TrapezoidSize_TextValueChanged;
            this.trapezoidSizeD.TextValueChanged += TrapezoidSize_TextValueChanged;
        }
Beispiel #20
0
        public SplashControl(SplashFrm splashFrm)
        {
            _splashFrm = splashFrm;
            InitializeComponent();

            this.pbContact.Image    = SVGParser.GetBitmapFromSVG(Resources.SVGImages.contact_white, this.pbContact.Size);
            lblOperatorStation.Text = string.Format(BrandingManager.MainForm_Title, string.Empty, string.Empty, string.Empty).Replace(".", string.Empty);

            if (FontManager.Loaded)
            {
                this.lblOperatorStation.Font = new Font(FontManager.MontserratRegular, 24, FontStyle.Regular, GraphicsUnit.Pixel);

                this.lblDaysTrailLeft.Top    = (this.plTrail.Height / 2) - (this.lblDaysTrailLeft.Height / 2);
                this.lblDaysTrailLeft.Font   = this.plDaysLeft.Font = this.lblLinkAuthorize.Font = this.lblDaysTrailRight.Font = FontManager.Montserrat14Regular;
                this.lblDaysTrailLeft.Width  = TextRenderer.MeasureText(this.lblDaysTrailLeft.Text, this.lblDaysTrailLeft.Font).Width + 2;
                this.plDaysLeft.Left         = this.lblDaysTrailLeft.Width + this.lblDaysTrailLeft.Left;
                this.lblDaysTrailRight.Top   = (this.plTrail.Height / 2) - (this.lblDaysTrailRight.Height / 2);
                this.lblDaysTrailRight.Left  = this.plDaysLeft.Left + this.plDaysLeft.Width + 2;
                this.lblDaysTrailRight.Width = TextRenderer.MeasureText(this.lblDaysTrailRight.Text, this.lblDaysTrailRight.Font).Width + 2;
                this.lblLinkAuthorize.Left   = this.lblDaysTrailRight.Width + this.lblDaysTrailRight.Left;
                this.lblLinkAuthorize.Top    = (this.plTrail.Height / 2) - (this.lblLinkAuthorize.Height / 2);
            }

            this.plDaysLeft.BackColor   = BrandingManager.Button_HighlightColor;
            this.pbLogo.BackColor       = Color.White;
            this.pbLogo.BackgroundImage = BrandingManager.Splash_Logo;

#if LOCTITE
            this.pbLogo.Left  -= 10;
            this.pbLogo.Top   -= 20;
            this.pbLogo.Width  = this.pbLogo.Width;
            this.pbLogo.Height = this.pbLogo.Height;
#else
            this.pbLogo.Left  -= 10;
            this.pbLogo.Top   -= 7;
            this.pbLogo.Width  = this.pbLogo.Width;
            this.pbLogo.Height = this.pbLogo.Height;
#endif

            SetDaysLeft();
        }
        private void btnSupportRenderMode_Click(object sender, EventArgs e)
        {
            switch (SceneView.SupportRenderMode)
            {
            case SceneView.SceneViewRenderModeType.Solid:
                SceneView.SupportRenderMode     = SceneView.SceneViewRenderModeType.Wireframe;
                this.btnSupportRenderMode.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.support_wireframes, btnSupportRenderMode.Size);
                break;

            case SceneView.SceneViewRenderModeType.Wireframe:
                SceneView.SupportRenderMode     = SceneView.SceneViewRenderModeType.Hidden;
                this.btnSupportRenderMode.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.support_hide, btnSupportRenderMode.Size);
                break;

            case SceneView.SceneViewRenderModeType.Hidden:
                SceneView.SupportRenderMode     = SceneView.SceneViewRenderModeType.Solid;
                this.btnSupportRenderMode.Image = SVGParser.GetBitmapFromSVG(Resources.SVGImages.support_solid, btnSupportRenderMode.Size);
                break;
            }

            frmStudioMain.SceneControl.Render();
        }
        public SceneControlModelScale()
        {
            InitializeComponent();

            this.HeaderText         = "Scale Model";
            this.btnApply.BackColor = BrandingManager.Button_BackgroundColor_Dark;

            this.txtUniformScaleFactor.AllowNegativeValue  = false;
            this.txtUniformScaleFactor.DefaultValue        = 1f;
            this.txtUniformScaleFactor.HorizontalAlignment = HorizontalAlignment.Center;

            this.txtXValue.AllowNegativeValue  = false;
            this.txtXValue.DefaultValue        = 1f;
            this.txtXValue.HorizontalAlignment = HorizontalAlignment.Center;
            this.txtXValue.ValueChanged       += TxtXValue_ValueChanged;
            this.txtXValue.EnableTextChangeTrigger();

            this.txtYValue.AllowNegativeValue  = false;
            this.txtYValue.DefaultValue        = 1f;
            this.txtYValue.HorizontalAlignment = HorizontalAlignment.Center;
            this.txtYValue.ValueChanged       += TxtYValue_ValueChanged;
            this.txtYValue.EnableTextChangeTrigger();

            this.txtZValue.AllowNegativeValue  = false;
            this.txtZValue.DefaultValue        = 1f;
            this.txtZValue.HorizontalAlignment = HorizontalAlignment.Center;
            this.txtZValue.ValueChanged       += TxtZValue_ValueChanged;
            this.txtZValue.EnableTextChangeTrigger();

            this.btnXTypeDropdown.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.arrow_black, new Size(18, 18));
            this.btnYTypeDropdown.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.arrow_black, new Size(18, 18));
            this.btnZTypeDropdown.BackgroundImage = SVGParser.GetBitmapFromSVG(SVGImages.arrow_black, new Size(18, 18));

            if (FontManager.Loaded)
            {
                //this.dropdownListItems1.Font = FontManager.Montserrat14Regular;
            }
        }