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); }
// Token: 0x060000D9 RID: 217 RVA: 0x0000684F File Offset: 0x00004A4F public CopyStyleItemPanel(CCopyStyleItem item) : base(item) { }