/// <summary>
        /// Creates layout items and setups layout.
        /// </summary>
        public override void OnCreateLayout()
        {
            base.OnCreateLayout();

            System.SetCaption();

            global::System.Windows.Media.Imaging.BitmapImage logoImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");

            UI.SetLogo(logoImage);


            Layout.ConstOptionsByEnum  = REXUI.SetupOptions.List | REXUI.SetupOptions.TabDialog;
            Layout.ConstOptionsByEnum |= REXUI.SetupOptions.HSplitFixed | REXUI.SetupOptions.VSplitFixed;

            Layout.ConstOptionsByEnum |= REXUI.SetupOptions.FormFixed;



            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Layout", "", "Layout", (long)0, SubControlRef, null, null));


            // insert code here.

            if (ExtensionRef != null)
            {
                ExtensionRef.OnCreateLayout();
            }
        }
Exemple #2
0
        /// <summary>
        /// Creates layout items and setups layout.
        /// </summary>
        public override void OnCreateLayout()
        {
            base.OnCreateLayout();

            System.SetCaption();

            global::System.Windows.Media.Imaging.BitmapImage logoImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");

            // UI.SetLogo(logoImage);

            Layout.ConstOptions = (long)REXUI.SetupOptions.HSplitFixed
                                  | (long)REXUI.SetupOptions.VSplitFixed
                                  | (long)REXUI.SetupOptions.TabDialog
                                  | (long)REXUI.SetupOptions.List
                                  | (long)REXUI.SetupOptions.FormFixed;

            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Element", "", "Element", (long)0, SelectedElementControlRef, null, logoImage));
            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Recognition", "", "Recognition", (long)0, CGReadControlRef, null, logoImage));
            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Creation", "", "Creation", (long)0, CGCreateControlRef, null, logoImage));

            // insert code here.

            if (ExtensionRef != null)
            {
                ExtensionRef.OnCreateLayout();
            }

            SelectedElementControlRef.SetDialog();
            CGReadControlRef.SetDialog();
            CGCreateControlRef.SetDialog();
        }
Exemple #3
0
        /// <summary>
        /// Initializes the dialog with current settings.
        /// </summary>
        public void SetDialog()
        {
            //combo box
            comboParametricTypes.Items.Add(new REX.Controls.WPF.REXImageComboBoxItem()
            {
                Image  = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/bmp_I.png")
                , Text = "I"
            });
            comboParametricTypes.Items.Add(new REX.Controls.WPF.REXImageComboBoxItem()
            {
                Image  = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/bmp_L.png")
                , Text = "Angle"
            });
            comboParametricTypes.Items.Add(new REX.Controls.WPF.REXImageComboBoxItem()
            {
                Image  = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/bmp_RECT.png")
                , Text = "Rectangle"
            });

            //edit boxes
            editBoxB.UnitEngine  = ThisExtension.System.Units.UnitsBase;
            editBoxH.UnitEngine  = ThisExtension.System.Units.UnitsBase;
            editBoxTF.UnitEngine = ThisExtension.System.Units.UnitsBase;
            editBoxTW.UnitEngine = ThisExtension.System.Units.UnitsBase;
            editBoxA.UnitEngine  = ThisExtension.System.Units.UnitsBase;
            editBoxIy.UnitEngine = ThisExtension.System.Units.UnitsBase;
            editBoxIz.UnitEngine = ThisExtension.System.Units.UnitsBase;

            editBoxB.RangeMinCheck = true;
            editBoxB.SetBaseMinValue(0.001);//1mm

            editBoxH.RangeMinCheck = true;
            editBoxH.SetBaseMinValue(0.001);//1mm

            editBoxTF.RangeMinCheck = true;
            editBoxTF.SetBaseMinValue(0.001);//1mm

            editBoxTW.RangeMinCheck = true;
            editBoxTW.SetBaseMinValue(0.001);//1mm

            UpdateParamControls();
            UpdateParamViewer();

            SetDBBrowser();
        }
Exemple #4
0
        /// <summary>
        /// Creates layout items and setups layout.
        /// </summary>
        public override void OnCreateLayout()
        {
            base.OnCreateLayout();

            System.SetCaption();

            global::System.Windows.Media.Imaging.BitmapImage logoImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");

            UI.SetLogo(logoImage);

            $REXSrcExtension.Layouts.Options$
            $REXSrcExtension.Layouts.AdditionalOptions$

            $REXSrcExtension.Layouts$

            // insert code here.

            if (ExtensionRef != null)
            {
                ExtensionRef.OnCreateLayout();
            }
        }
Exemple #5
0
        /// <summary>
        /// Creates layout items and setups layout.
        /// </summary>
        public override void OnCreateLayout()
        {
            //Step 4.4.: Extension class - 4
            base.OnCreateLayout();

            System.SetCaption();

            global::System.Windows.Media.Imaging.BitmapImage logoImage       = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");
            global::System.Windows.Media.Imaging.BitmapImage parametersImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/ICON_Parameters.png");
            global::System.Windows.Media.Imaging.BitmapImage noteImage       = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/ICON_Note.png");

            UI.SetLogo(logoImage);

            Layout.ConstOptions = (long)REXUI.SetupOptions.HSplitFixed
                                  | (long)REXUI.SetupOptions.VSplitFixed
                                  | (long)REXUI.SetupOptions.TabDialog
                                  | (long)REXUI.SetupOptions.List
                                  | (long)REXUI.SetupOptions.FormFixed;
            //Step 5.2.: Serialize
            Layout.ConstOptions |= (long)REXUI.SetupOptions.ToolMenu;

            Layout.CommandsOptions = (long)REXUI.CommandOptions.ToolMenuFile
                                     | (long)REXUI.CommandOptions.ToolMenuFileOpen
                                     | (long)REXUI.CommandOptions.ToolMenuFileSave
                                     | (long)REXUI.CommandOptions.ToolMenuFileSaveAs
                                     | (long)REXUI.CommandOptions.ToolMenuHelp
                                     | (long)REXUI.CommandOptions.ToolMenuHelpAbout
                                     | (long)REXUI.CommandOptions.ToolMenuHelpRun;

            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Parameters", "", "Parameters", (long)0, ParameterControlRef, null, parametersImage));
            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Report", "", "Report", (long)0, NoteControlRef, null, noteImage));

            if (ExtensionRef != null)
            {
                ExtensionRef.OnCreateLayout();
            }
        }
Exemple #6
0
        /// <summary>
        /// Creates layout items and setups layout.
        /// </summary>
        public override void OnCreateLayout()
        {
            base.OnCreateLayout();

            System.SetCaption();

            global::System.Windows.Media.Imaging.BitmapImage logoImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");

            UI.SetLogo(logoImage);

            Layout.ConstOptions  = (long)REXUI.SetupOptions.HSplitFixed | (long)REXUI.SetupOptions.VSplitFixed;
            Layout.ConstOptions |= (long)REXUI.SetupOptions.DialogBottom | (long)REXUI.SetupOptions.TabView;

            Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Layout", "", "Report", (long)0, HtmlSettingsControlRef, HTMLControlRef, logoImage));

            HTMLControlRef.SetDialog();
            HtmlSettingsControlRef.SetDialog();
            // insert code here.

            if (ExtensionRef != null)
            {
                ExtensionRef.OnCreateLayout();
            }
        }