Exemple #1
0
        // Token: 0x060002F7 RID: 759 RVA: 0x00014A6C File Offset: 0x00012C6C
        private void btnInitialize_Click(object sender, EventArgs e)
        {
            var dialogResult = MessageBox.Show("进行设置内容的初始化。", Application.ProductName, MessageBoxButtons.OKCancel, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2);

            if (dialogResult == DialogResult.OK)
            {
                _so = SetunaOption.GetDefaultOption();
                LoadSetunaOption();
            }
        }
Exemple #2
0
        // Token: 0x060002D3 RID: 723 RVA: 0x000136BA File Offset: 0x000118BA
        public OptionForm(SetunaOption opt)
        {
            InitializeComponent();
            _pageStyle     = pageStyle;
            _pageScrapMenu = pageScrapMenu;
            _so            = opt;
            LoadSetunaOption();

            linkLabel1.Text = "官方版本(地址已挂)";
            linkLabel1.Links.Add(0, linkLabel1.Text.Length, URLUtils.OriginURL);
            linkLabel1.LinkClicked += LinkLabel1_LinkClicked;
            toolTip1.SetToolTip(linkLabel1, URLUtils.OriginURL);

            linkLabel2.Text = $"优化版本 by tylearymf. Version: {System.Reflection.Assembly.GetExecutingAssembly().GetName().Version}";
            linkLabel2.Links.Add(0, linkLabel2.Text.Length, URLUtils.NewURL);
            linkLabel2.LinkClicked += LinkLabel2_LinkClicked;
            toolTip1.SetToolTip(linkLabel2, URLUtils.NewURL);
        }
Exemple #3
0
        public object Clone()
        {
            SetunaOption option = new SetunaOption
            {
                Difficult      = this.Difficult,
                hkScrap        = this.hkScrap,
                blHotKey       = this.blHotKey,
                ipParentHandle = this.ipParentHandle,
                Setuna         = this.Setuna,
                Scrap          = this.Scrap
            };

            for (int i = 0; i < this.Styles.Count; i++)
            {
                option.Styles.Add(this.Styles[i].DeepCopy());
            }
            return(option);
        }
Exemple #4
0
        // Token: 0x06000241 RID: 577 RVA: 0x0000BC18 File Offset: 0x00009E18
        public static SetunaOption GetDefaultOption()
        {
            var setunaOption = new SetunaOption();
            var num          = 1;

            setunaOption.Setuna.AppType               = SetunaOption.SetunaOptionData.ApplicationType.ApplicationMode;
            setunaOption.Setuna.ShowMainWindow        = true;
            setunaOption.Setuna.DupType               = SetunaOption.SetunaOptionData.OpeningType.Normal;
            setunaOption.Setuna.DustBoxCapacity       = 5;
            setunaOption.Setuna.DustBoxEnable         = true;
            setunaOption.Setuna.SelectAreaTransparent = 80;
            setunaOption.Setuna.SelectBackColorR      = Color.DarkBlue.R;
            setunaOption.Setuna.SelectBackColorG      = Color.DarkBlue.G;
            setunaOption.Setuna.SelectBackColorB      = Color.DarkBlue.B;
            setunaOption.Setuna.SelectLineColorR      = Color.Blue.R;
            setunaOption.Setuna.SelectLineColorG      = Color.Blue.G;
            setunaOption.Setuna.SelectLineColorB      = Color.Blue.B;
            setunaOption.Setuna.ShowSplashWindow      = true;
            setunaOption.Setuna.SelectLineSolid       = false;
            setunaOption.ScrapHotKeyDatas             = new Keys[(int)HotKeyID.__Count__] {
                Keys.Control | Keys.D1, Keys.Control | Keys.D2
            };
            setunaOption.ScrapHotKeyEnable          = true;
            setunaOption.Scrap.InactiveAlphaChange  = true;
            setunaOption.Scrap.InactiveAlphaValue   = 10;
            setunaOption.Scrap.MouseOverAlphaChange = true;
            setunaOption.Scrap.MouseOverAlphaValue  = 90;


            setunaOption.Setuna.TopMostEnabled               = false;
            setunaOption.Setuna.CursorEnabled                = false;
            setunaOption.Setuna.FullscreenCursor             = false;
            setunaOption.Setuna.MagnifierEnabled             = false;
            setunaOption.Setuna.FullscreenCursorSolid        = true;
            setunaOption.Setuna.FullscreenCursorColorR       = Color.Orange.R;
            setunaOption.Setuna.FullscreenCursorColorG       = Color.Orange.G;
            setunaOption.Setuna.FullscreenCursorColorB       = Color.Orange.B;
            setunaOption.Setuna.BackgroundTransparentEnabled = false;


            var cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "复制"
            };

            cstyle.AddStyle(new CCopyStyleItem
            {
                CopyFromSource = true
            });
            cstyle.AddKeyItem((Keys)131139);
            var styleID = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "复制(有边框)"
            };
            cstyle.AddStyle(new CCopyStyleItem
            {
                CopyFromSource = false
            });
            cstyle.AddKeyItem((Keys)196675);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "剪切"
            };
            cstyle.AddStyle(new CCopyStyleItem
            {
                CopyFromSource = true
            });
            cstyle.AddStyle(new CCloseStyleItem());
            cstyle.AddKeyItem((Keys)131160);
            var styleID2 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "剪切(有边框)"
            };
            cstyle.AddStyle(new CCopyStyleItem
            {
                CopyFromSource = false
            });
            cstyle.AddStyle(new CCloseStyleItem());
            cstyle.AddKeyItem((Keys)196696);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "粘贴"
            };
            var newCi = new CPasteStyleItem();

            cstyle.AddStyle(newCi);
            cstyle.AddKeyItem((Keys)131158);
            var styleID3 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "保存"
            };
            cstyle.AddStyle(new CImagePngStyleItem
            {
                Quality      = 100,
                ShowPreview  = true,
                FileNameType = CImageStyleItem.EnumFileName.SaveAs,
                HaveMargin   = false
            });
            cstyle.AddKeyItem((Keys)131155);
            var styleID4 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "保存(有边框)"
            };
            cstyle.AddStyle(new CImagePngStyleItem
            {
                Quality      = 100,
                ShowPreview  = true,
                FileNameType = CImageStyleItem.EnumFileName.SaveAs,
                HaveMargin   = true
            });
            cstyle.AddKeyItem((Keys)196691);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "旋转90度"
            };
            cstyle.AddStyle(new CRotateStyleItem
            {
                Rotate = 90
            });
            cstyle.AddKeyItem(Keys.R);
            var styleID5 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "垂直翻转"
            };
            cstyle.AddStyle(new CRotateStyleItem
            {
                VerticalReflection = true
            });
            cstyle.AddKeyItem((Keys)262230);
            var styleID6 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "水平翻转"
            };
            cstyle.AddStyle(new CRotateStyleItem
            {
                HorizonReflection = true
            });
            cstyle.AddKeyItem((Keys)262216);
            var styleID7 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "扩大"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                Value   = 10,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            });
            cstyle.AddKeyItem(Keys.RButton | Keys.MButton | Keys.Space | Keys.Alt);
            var styleID8 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "扩大(微调)"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                Value   = 1,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            });
            cstyle.AddKeyItem(Keys.RButton | Keys.MButton | Keys.Space | Keys.Shift | Keys.Alt);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩小"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                Value   = -10,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            });
            cstyle.AddKeyItem(Keys.Back | Keys.Space | Keys.Alt);
            var styleID9 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩小(微调)"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                Value   = -1,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            });
            cstyle.AddKeyItem(Keys.Back | Keys.Space | Keys.Shift | Keys.Alt);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "增加透明度"
            };
            cstyle.AddStyle(new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = 10
            });
            cstyle.AddKeyItem(Keys.LButton | Keys.MButton | Keys.Space | Keys.Alt);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "增加透明度(微调)"
            };
            cstyle.AddStyle(new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = 1
            });
            cstyle.AddKeyItem(Keys.LButton | Keys.MButton | Keys.Space | Keys.Shift | Keys.Alt);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "降低透明度"
            };
            cstyle.AddStyle(new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = -10
            });
            cstyle.AddKeyItem(Keys.LButton | Keys.RButton | Keys.MButton | Keys.Space | Keys.Alt);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "降低透明度(微调)"
            };
            cstyle.AddStyle(new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = -1
            });
            cstyle.AddKeyItem(Keys.LButton | Keys.RButton | Keys.MButton | Keys.Space | Keys.Shift | Keys.Alt);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向上移动"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Top = -50
            });
            cstyle.AddKeyItem(Keys.RButton | Keys.MButton | Keys.Space | Keys.Shift);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向上移动(微调)"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Top = -1
            });
            cstyle.AddKeyItem(Keys.Up);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向下移动"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Top = 50
            });
            cstyle.AddKeyItem(Keys.Back | Keys.Space | Keys.Shift);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向下移动(微调)"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Top = 1
            });
            cstyle.AddKeyItem(Keys.Down);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向左移动"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Left = -50
            });
            cstyle.AddKeyItem(Keys.LButton | Keys.MButton | Keys.Space | Keys.Shift);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向左移动(微调)"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Left = -1
            });
            cstyle.AddKeyItem(Keys.Left);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向右移动"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Left = 50
            });
            cstyle.AddKeyItem(Keys.LButton | Keys.RButton | Keys.MButton | Keys.Space | Keys.Shift);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "向右移动(微调)"
            };
            cstyle.AddStyle(new CMoveStyleItem
            {
                Left = 1
            });
            cstyle.AddKeyItem(Keys.Right);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为50%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 50
            });
            cstyle.AddKeyItem(Keys.D5);
            var styleID10 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为60%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 60
            });
            cstyle.AddKeyItem(Keys.D6);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为70%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 70
            });
            cstyle.AddKeyItem(Keys.D7);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为80%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 80
            });
            cstyle.AddKeyItem(Keys.D8);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为90%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 90
            });
            cstyle.AddKeyItem(Keys.D9);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为100%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 100
            });
            cstyle.AddKeyItem(Keys.D0);
            var styleID11 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为150%"
            };
            cstyle.AddStyle(new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 150
            });
            var styleID12 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "立体边框"
            };
            cstyle.AddStyle(new CMarginStyleItem
            {
                BorderStyle = 0
            });
            cstyle.AddKeyItem(Keys.D1);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "单色边框"
            };
            cstyle.AddStyle(new CMarginStyleItem
            {
                BorderStyle      = 1,
                MarginColorRed   = byte.MaxValue,
                MarginColorGreen = 128,
                MarginColorBlue  = 64,
                MarginSize       = 1
            });
            cstyle.AddKeyItem(Keys.D2);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "窗口化"
            };
            cstyle.AddStyle(new CMarginStyleItem
            {
                BorderStyle = 2
            });
            cstyle.AddKeyItem(Keys.D3);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "无边框"
            };
            cstyle.AddStyle(new CMarginStyleItem
            {
                BorderStyle = 1,
                MarginSize  = 0
            });
            cstyle.AddKeyItem(Keys.L);
            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "关闭"
            };
            var newCi2 = new CCloseStyleItem();

            cstyle.AddStyle(newCi2);
            cstyle.AddKeyItem(Keys.Q);
            var styleID13 = cstyle.StyleID;

            setunaOption.Styles.Add(cstyle);
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "基本自动操作"
            };
            cstyle.AddStyle(new CMarginStyleItem
            {
                BorderStyle = 0
            });
            cstyle.AddStyle(new COpacityStyleItem
            {
                Absolute = true,
                Opacity  = 95
            });
            setunaOption.Styles.Add(cstyle);
            setunaOption.Scrap.CreateStyleID = cstyle.StyleID;
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "收缩"
            };
            cstyle.AddStyle(new CCompactStyleItem
            {
                Opacity   = 80,
                SoldLine  = false,
                LineColor = Color.Blue.ToArgb()
            });
            setunaOption.Styles.Add(cstyle);
            setunaOption.Scrap.WClickStyleID = cstyle.StyleID;
            cstyle = new CStyle
            {
                StyleID   = num++,
                StyleName = "修剪"
            };
            var newCi3 = new CTrimStyleItem();

            cstyle.AddStyle(newCi3);
            cstyle.AddKeyItem(Keys.T);
            setunaOption.Styles.Add(cstyle);
            setunaOption.Scrap.SubMenuStyles.Add(styleID13);
            setunaOption.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(new CScrapListStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(new CDustBoxStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(new CDustEraseStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(new COptionStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(new CShowVersionStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(styleID);
            setunaOption.Scrap.SubMenuStyles.Add(styleID2);
            setunaOption.Scrap.SubMenuStyles.Add(styleID3);
            setunaOption.Scrap.SubMenuStyles.Add(styleID4);
            setunaOption.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(styleID10);
            setunaOption.Scrap.SubMenuStyles.Add(styleID11);
            setunaOption.Scrap.SubMenuStyles.Add(styleID12);
            setunaOption.Scrap.SubMenuStyles.Add(styleID9);
            setunaOption.Scrap.SubMenuStyles.Add(styleID8);
            setunaOption.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            setunaOption.Scrap.SubMenuStyles.Add(styleID5);
            setunaOption.Scrap.SubMenuStyles.Add(styleID6);
            setunaOption.Scrap.SubMenuStyles.Add(styleID7);
            return(setunaOption);
        }
Exemple #5
0
        public static SetunaOption GetDefaultOption()
        {
            SetunaOption option = new SetunaOption();
            int          num    = 1;

            option.Setuna.AppType               = SetunaOptionData.ApplicationType.ApplicationMode;
            option.Setuna.ShowMainWindow        = true;
            option.Setuna.DupType               = SetunaOptionData.OpeningType.Normal;
            option.Setuna.DustBoxCapacity       = 5;
            option.Setuna.DustBoxEnable         = true;
            option.Setuna.SelectAreaTransparent = 80;
            option.Setuna.SelectBackColorR      = 0;
            option.Setuna.SelectBackColorG      = 0;
            option.Setuna.SelectBackColorB      = 0x8b;
            option.Setuna.SelectLineColorR      = 0;
            option.Setuna.SelectLineColorG      = 0;
            option.Setuna.SelectLineColorB      = 0;
            option.Setuna.ShowSplashWindow      = true;
            option.Setuna.SelectLineSolid       = false;
            option.ScrapHotKeyData              = Keys.Control | Keys.Alt | Keys.A;
            option.ScrapHotKeyEnable            = true;
            option.Scrap.InactiveAlphaChange    = true;
            option.Scrap.InactiveAlphaValue     = 10;
            option.Scrap.MouseOverAlphaChange   = true;
            option.Scrap.MouseOverAlphaValue    = 90;

            option.mDpi1          = DPIUtils.defaultDpi1;
            option.mDpi2          = 1.0F;
            option.mDpi3          = 1.0F;
            option.mDpi4          = 1.0F;
            option.mAlwaysTopmost = false;

            CStyle style = new CStyle
            {
                StyleID   = num++,
                StyleName = "复制"
            };
            CCopyStyleItem newCi = new CCopyStyleItem
            {
                CopyFromSource = true
            };

            style.AddStyle(newCi);
            style.AddKeyItem(Keys.Control | Keys.C);
            int styleID = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "复制(有边框)"
            };
            CCopyStyleItem item2 = new CCopyStyleItem
            {
                CopyFromSource = false
            };

            style.AddStyle(item2);
            style.AddKeyItem(Keys.Control | Keys.Shift | Keys.C);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "剪切"
            };
            CCopyStyleItem item3 = new CCopyStyleItem
            {
                CopyFromSource = true
            };

            style.AddStyle(item3);
            style.AddStyle(new CCloseStyleItem());
            style.AddKeyItem(Keys.Control | Keys.X);
            int item = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "剪切(有边框)"
            };
            CCopyStyleItem item4 = new CCopyStyleItem
            {
                CopyFromSource = false
            };

            style.AddStyle(item4);
            style.AddStyle(new CCloseStyleItem());
            style.AddKeyItem(Keys.Control | Keys.Shift | Keys.X);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "粘贴"
            };
            CPasteStyleItem item5 = new CPasteStyleItem();

            style.AddStyle(item5);
            style.AddKeyItem(Keys.Control | Keys.V);
            int num5 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "保存"
            };
            CImageJpegStyleItem item6 = new CImageJpegStyleItem
            {
                Quality      = 100,
                ShowPreview  = true,
                FileNameType = CImageStyleItem.EnumFileName.SaveAs,
                HaveMargin   = false
            };

            style.AddStyle(item6);
            style.AddKeyItem(Keys.Control | Keys.S);
            int num6 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "保存(有边框)"
            };
            CImageJpegStyleItem item7 = new CImageJpegStyleItem
            {
                Quality      = 100,
                ShowPreview  = true,
                FileNameType = CImageStyleItem.EnumFileName.SaveAs,
                HaveMargin   = true
            };

            style.AddStyle(item7);
            style.AddKeyItem(Keys.Control | Keys.Shift | Keys.S);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "旋转90度"
            };
            CRotateStyleItem item8 = new CRotateStyleItem
            {
                Rotate = 90
            };

            style.AddStyle(item8);
            style.AddKeyItem(Keys.R);
            int num12 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "垂直翻转"
            };
            CRotateStyleItem item9 = new CRotateStyleItem
            {
                VerticalReflection = true
            };

            style.AddStyle(item9);
            style.AddKeyItem(Keys.Alt | Keys.V);
            int num13 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "水平翻转"
            };
            CRotateStyleItem item10 = new CRotateStyleItem
            {
                HorizonReflection = true
            };

            style.AddStyle(item10);
            style.AddKeyItem(Keys.Alt | Keys.H);
            int num14 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "扩大"
            };
            CScaleStyleItem item11 = new CScaleStyleItem
            {
                Value   = 10,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            };

            style.AddStyle(item11);
            style.AddKeyItem(Keys.Alt | Keys.Up);
            int num11 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "扩大(微调)"
            };
            CScaleStyleItem item12 = new CScaleStyleItem
            {
                Value   = 1,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            };

            style.AddStyle(item12);
            style.AddKeyItem(Keys.Alt | Keys.Shift | Keys.Up);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩小"
            };
            CScaleStyleItem item13 = new CScaleStyleItem
            {
                Value   = -10,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            };

            style.AddStyle(item13);
            style.AddKeyItem(Keys.Alt | Keys.Down);
            int num10 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩小(微调)"
            };
            CScaleStyleItem item14 = new CScaleStyleItem
            {
                Value   = -1,
                SetType = CScaleStyleItem.ScaleSetType.Increment
            };

            style.AddStyle(item14);
            style.AddKeyItem(Keys.Alt | Keys.Shift | Keys.Down);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "增加透明度"
            };
            COpacityStyleItem item15 = new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = 10
            };

            style.AddStyle(item15);
            style.AddKeyItem(Keys.Alt | Keys.Left);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "增加透明度(微调)"
            };
            COpacityStyleItem item16 = new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = 1
            };

            style.AddStyle(item16);
            style.AddKeyItem(Keys.Alt | Keys.Shift | Keys.Left);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "降低透明度"
            };
            COpacityStyleItem item17 = new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = -10
            };

            style.AddStyle(item17);
            style.AddKeyItem(Keys.Alt | Keys.Right);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "降低透明度(微调)"
            };
            COpacityStyleItem item18 = new COpacityStyleItem
            {
                Absolute = false,
                Opacity  = -1
            };

            style.AddStyle(item18);
            style.AddKeyItem(Keys.Alt | Keys.Shift | Keys.Right);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向上移动"
            };
            CMoveStyleItem item19 = new CMoveStyleItem
            {
                Top = -50
            };

            style.AddStyle(item19);
            style.AddKeyItem(Keys.Shift | Keys.Up);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向上移动(微调)"
            };
            CMoveStyleItem item20 = new CMoveStyleItem
            {
                Top = -1
            };

            style.AddStyle(item20);
            style.AddKeyItem(Keys.Up);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向下移动"
            };
            CMoveStyleItem item21 = new CMoveStyleItem
            {
                Top = 50
            };

            style.AddStyle(item21);
            style.AddKeyItem(Keys.Shift | Keys.Down);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向下移动(微调)"
            };
            CMoveStyleItem item22 = new CMoveStyleItem
            {
                Top = 1
            };

            style.AddStyle(item22);
            style.AddKeyItem(Keys.Down);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向左移动"
            };
            CMoveStyleItem item23 = new CMoveStyleItem
            {
                Left = -50
            };

            style.AddStyle(item23);
            style.AddKeyItem(Keys.Shift | Keys.Left);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向左移动(微调)"
            };
            CMoveStyleItem item24 = new CMoveStyleItem
            {
                Left = -1
            };

            style.AddStyle(item24);
            style.AddKeyItem(Keys.Left);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向右移动"
            };
            CMoveStyleItem item25 = new CMoveStyleItem
            {
                Left = 50
            };

            style.AddStyle(item25);
            style.AddKeyItem(Keys.Shift | Keys.Right);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "向右移动(微调)"
            };
            CMoveStyleItem item26 = new CMoveStyleItem
            {
                Left = 1
            };

            style.AddStyle(item26);
            style.AddKeyItem(Keys.Right);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为50%"
            };
            CScaleStyleItem item27 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 50
            };

            style.AddStyle(item27);
            style.AddKeyItem(Keys.D5);
            int num8 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为60%"
            };
            CScaleStyleItem item28 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 60
            };

            style.AddStyle(item28);
            style.AddKeyItem(Keys.D6);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为70%"
            };
            CScaleStyleItem item29 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 70
            };

            style.AddStyle(item29);
            style.AddKeyItem(Keys.D7);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为80%"
            };
            CScaleStyleItem item30 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 80
            };

            style.AddStyle(item30);
            style.AddKeyItem(Keys.D8);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为90%"
            };
            CScaleStyleItem item31 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 90
            };

            style.AddStyle(item31);
            style.AddKeyItem(Keys.D9);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为100%"
            };
            CScaleStyleItem item32 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 100
            };

            style.AddStyle(item32);
            style.AddKeyItem(Keys.D0);
            int num7 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "缩放为150%"
            };
            CScaleStyleItem item33 = new CScaleStyleItem
            {
                SetType = CScaleStyleItem.ScaleSetType.Fixed,
                Value   = 150
            };

            style.AddStyle(item33);
            int num9 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "立体边框"
            };
            CMarginStyleItem item34 = new CMarginStyleItem
            {
                BorderStyle = 0
            };

            style.AddStyle(item34);
            style.AddKeyItem(Keys.D1);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "单色边框"
            };
            CMarginStyleItem item35 = new CMarginStyleItem
            {
                BorderStyle      = 1,
                MarginColorRed   = 0xff,
                MarginColorGreen = 0x80,
                MarginColorBlue  = 0x40,
                MarginSize       = 1
            };

            style.AddStyle(item35);
            style.AddKeyItem(Keys.D2);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "窗口化"
            };
            CMarginStyleItem item36 = new CMarginStyleItem
            {
                BorderStyle = 2
            };

            style.AddStyle(item36);
            style.AddKeyItem(Keys.D3);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "无边框"
            };
            CMarginStyleItem item37 = new CMarginStyleItem
            {
                BorderStyle = 1,
                MarginSize  = 0
            };

            style.AddStyle(item37);
            style.AddKeyItem(Keys.L);
            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "关闭"
            };
            CCloseStyleItem item38 = new CCloseStyleItem();

            style.AddStyle(item38);
            style.AddKeyItem(Keys.Q);
            int num2 = style.StyleID;

            option.Styles.Add(style);
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "基本自动操作"
            };
            CMarginStyleItem item39 = new CMarginStyleItem
            {
                BorderStyle = 0
            };

            style.AddStyle(item39);
            COpacityStyleItem item40 = new COpacityStyleItem
            {
                Absolute = true,
                Opacity  = 95
            };

            style.AddStyle(item40);
            option.Styles.Add(style);
            option.Scrap.CreateStyleID = style.StyleID;
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "收缩"
            };
            CCompactStyleItem item41 = new CCompactStyleItem
            {
                Opacity   = 80,
                SoldLine  = false,
                LineColor = Color.Blue.ToArgb()
            };

            style.AddStyle(item41);
            option.Styles.Add(style);
            option.Scrap.WClickStyleID = style.StyleID;
            style = new CStyle
            {
                StyleID   = num++,
                StyleName = "修剪"
            };
            CTrimStyleItem item42 = new CTrimStyleItem();

            style.AddStyle(item42);
            style.AddKeyItem(Keys.T);
            option.Styles.Add(style);
            option.Scrap.SubMenuStyles.Add(num2);
            option.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(new CScrapListStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(new CDustBoxStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(new CDustEraseStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(new COptionStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(new CShowVersionStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(styleID);
            option.Scrap.SubMenuStyles.Add(item);
            option.Scrap.SubMenuStyles.Add(num5);
            option.Scrap.SubMenuStyles.Add(num6);
            option.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(num8);
            option.Scrap.SubMenuStyles.Add(num7);
            option.Scrap.SubMenuStyles.Add(num9);
            option.Scrap.SubMenuStyles.Add(num10);
            option.Scrap.SubMenuStyles.Add(num11);
            option.Scrap.SubMenuStyles.Add(new CSeparatorStyle().StyleID);
            option.Scrap.SubMenuStyles.Add(num12);
            option.Scrap.SubMenuStyles.Add(num13);
            option.Scrap.SubMenuStyles.Add(num14);
            return(option);
        }