private void InitLanguage() { Text = LangMan.Get("about"); updatesBtn.Text = " " + LangMan.Get("check-for-app-updates"); descTextBox.Text = LangMan.Get("app-description"); makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void InitLanguage() { Text = LangMan.Get("edit-selection"); widthLabel.Text = LangMan.Get("width") + ":"; heightLabel.Text = LangMan.Get("height") + ":"; okButton.Text = NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDOK); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void InitLanguage() { infoTooltip.SetToolTip(autoZoomBtn, LangMan.Get("auto-zoom") + " | Ctrl+A"); infoTooltip.SetToolTip(opacityBtn, LangMan.Get("change-window-opacity") + " | Ctrl+O"); zoomLabel.Text = LangMan.Get("zoom") + ": " + LangMan.Get("auto"); checkboardBtn.Text = LangMan.Get("checkboard-background"); newWindowBtn.Text = LangMan.Get("new-window"); quitPipBtn.Text = LangMan.Get("exit-picture-in-picture"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void InitLanguage() { Text = owner.resMan.GetString("picture-in-picture"); infoTooltip.SetToolTip(autoZoomBtn, owner.resMan.GetString("auto-zoom") + " | Ctrl+A"); infoTooltip.SetToolTip(resizeBtn, owner.resMan.GetString("drag-here-to-resize")); zoomLabel.Text = owner.resMan.GetString("zoom") + ": " + owner.resMan.GetString("auto"); checkboardBtn.Text = owner.resMan.GetString("checkboard-background"); newWindowBtn.Text = owner.resMan.GetString("new-window"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
public static bool ShowFileProperties(string Filename) { NativeMan.SHELLEXECUTEINFO info = new NativeMan.SHELLEXECUTEINFO(); info.cbSize = System.Runtime.InteropServices.Marshal.SizeOf(info); info.lpVerb = "properties"; info.lpFile = Filename; info.nShow = NativeMan.SW_SHOW; info.fMask = NativeMan.SEE_MASK_INVOKEIDLIST; return(NativeMan.ShellExecuteEx(ref info)); }
private void InitLanguage() { Text = "SVG " + LangMan.Get("type-options"); presetsLabel.Text = LangMan.Get("presets") + ":"; widthLabel.Text = LangMan.Get("width") + ":"; heightLabel.Text = LangMan.Get("height") + ":"; defaultSizeButton.Text = LangMan.Get("original-size"); autoSizeBtn.Text = LangMan.Get("auto-size"); okButton.Text = " " + LangMan.Get("resize-svg"); aspectRatioCheckbox.Text = LangMan.Get("maintain-aspect-ratio"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void BlurRegionForm_Load(object sender, EventArgs e) { if (DarkMode) { resetBtn.BackColor = ThemeMan.DarkSecondColor; applyBtn.BackColor = ThemeMan.DarkSecondColor; } closeBtn.DarkMode = DarkMode; previewCheckbox.DarkMode = DarkMode; typeComboBox.DarkMode = DarkMode; infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void InitLanguage() { Text = LangMan.Get("set-as-desktop-background"); fitLabel.Text = LangMan.Get("choose-fit") + ":"; okButton.Text = " " + LangMan.Get("set-background"); fitComboBox.Items.Add(LangMan.Get("fill")); fitComboBox.Items.Add(LangMan.Get("fit")); fitComboBox.Items.Add(LangMan.Get("stretch")); fitComboBox.Items.Add(LangMan.Get("tile")); fitComboBox.Items.Add(LangMan.Get("center")); fitComboBox.Items.Add(LangMan.Get("span")); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
static void Main(string[] args) { if (Environment.OSVersion.Version.Major >= 6) { NativeMan.SetProcessDPIAware(); } Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string param; if (args.Length > 0) { param = args[0] == "-1" ? string.Empty : args[0]; } else { param = string.Empty; } if (Properties.Settings.Default.CallUpgrade) { Properties.Settings.Default.Upgrade(); Properties.Settings.Default.CallUpgrade = false; Properties.Settings.Default.Save(); } bool darkMode; int theme = Properties.Settings.Default.Theme; if (theme == 0) { darkMode = ThemeMan.isDarkTheme(); } else if (theme == 1) { darkMode = false; } else { darkMode = true; } if (darkMode) { ThemeMan.allowDarkModeForApp(true); } Application.Run(new MainForm(param, darkMode)); }
private void InitLanguage() { Text = LangMan.Get("plugin-manager"); listView1.Columns[0].Text = LangMan.Get("plugin"); listView1.Columns[1].Text = LangMan.Get("desc"); listView1.Columns[2].Text = LangMan.Get("created-by"); listView1.Columns[3].Text = LangMan.Get("version"); addPluginBtn.Text = " " + LangMan.Get("browse-for-plugins"); deleteBtn.Text = LangMan.Get("delete-plugin"); openFileDialog1.Title = LangMan.Get("browse-for-plugins"); morePluginsBtn.Text = " " + LangMan.Get("more-plugins"); pluginWebsiteBtn.Text = LangMan.Get("plugin-website"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void InitLanguage() { Text = LangMan.Get("print-conf"); setMarginsButton.Text = LangMan.Get("set-margins-btn"); okButton.Text = LangMan.Get("print"); leftLabel.Text = LangMan.Get("left") + ":"; rightLabel.Text = LangMan.Get("right") + ":"; topLabel.Text = LangMan.Get("top") + ":"; bottomLabel.Text = LangMan.Get("bottom") + ":"; documentLabel.Text = LangMan.Get("title") + ":"; centerCheckbox.Text = LangMan.Get("center-image"); horizontalCheckBox.Text = LangMan.Get("landscape-orientation"); marginsLabel.Text = LangMan.Get("margins") + ":"; marginsCheckBox.Text = LangMan.Get("margin-bounds"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void picturePanel_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Cursor.Current = Cursors.SizeAll; if (autoZoom) { NativeMan.DragWindow(Handle); } else { panelMouseDownLocation = new Point( PointToClient(Cursor.Position).X + picturePanel.HorizontalScroll.Value, PointToClient(Cursor.Position).Y + picturePanel.VerticalScroll.Value ); } } }
public static void UpdatePictureBoxLocation(Panel picturePanel, PictureBox pictureBox) { int x, y; if (pictureBox.Width < picturePanel.Width) { x = (int)((double)(picturePanel.Width - pictureBox.Width) / (double)2); } else { x = -picturePanel.HorizontalScroll.Value; } if (pictureBox.Height < picturePanel.Height) { y = (int)((double)(picturePanel.Height - pictureBox.Height) / (double)2); } else { y = -picturePanel.VerticalScroll.Value; } pictureBox.Location = new Point(x, y); if (picturePanel != null && pictureBox != null) { if (pictureBox.Width > picturePanel.Width && pictureBox.Height > picturePanel.Height) { NativeMan.ShowScrollBar(picturePanel.Handle, NativeMan.ScrollBarDirection.SB_BOTH, true); } else if (pictureBox.Width > picturePanel.Width) { NativeMan.ShowScrollBar(picturePanel.Handle, NativeMan.ScrollBarDirection.SB_HORZ, true); } else if (pictureBox.Height > picturePanel.Height) { NativeMan.ShowScrollBar(picturePanel.Handle, NativeMan.ScrollBarDirection.SB_VERT, true); } else { NativeMan.ShowScrollBar(picturePanel.Handle, NativeMan.ScrollBarDirection.SB_BOTH, false); } } }
private void InitLanguage() { Text = LangMan.Get("settings"); langPage.Text = LangMan.Get("localization"); startupPage.Text = LangMan.Get("startup"); restartLabel1.Text = "* " + LangMan.Get("restart-required"); restartLabel2.Text = "* " + LangMan.Get("restart-required"); systemThemeRadio.Text = LangMan.Get("use-system-setting"); lightThemeRadio.Text = LangMan.Get("light"); darkThemeRadio.Text = LangMan.Get("dark"); themePage.Text = LangMan.Get("theme"); startupLabel.Text = LangMan.Get("app-startup-actions") + ":"; startupPasteCheckBox.Text = LangMan.Get("paste-from-clipboard"); startupBoundsCheckBox.Text = LangMan.Get("restore-last-window-bounds"); updatesCheckBox.Text = LangMan.Get("check-for-app-updates"); favExtLabel.Text = LangMan.Get("fav-external-app") + ":"; browseBtn.Text = " " + LangMan.Get("browse"); slideshowPage.Text = LangMan.Get("slideshow"); slideshowTimeLabel.Text = LangMan.Get("switching-time") + ":"; mousePage.Text = LangMan.Get("input"); slideshowSecondsLabel.Text = LangMan.Get("seconds"); slideshowCounterCheckBox.Text = LangMan.Get("show-slideshow-counter"); fullscrCursorCheckBox.Text = LangMan.Get("fullscreen-cursor"); langLabel.Text = LangMan.Get("ui-lang") + ":"; translatedByLabel.Text = LangMan.Get("translated-by") + ": "; escToExitCheckBox.Text = string.Format(LangMan.Get("esc-to-exit"), "Esc"); mouseWheelActionLabel.Text = LangMan.Get("mouse-wheel-action") + ":"; mouseWheelActionRadio1.Text = LangMan.Get("scroll-up-down"); mouseWheelActionRadio2.Text = LangMan.Get("zoom-in-out"); mouseWheelActionRadio3.Text = LangMan.Get("next-prev-image"); themeRestart.Text = LangMan.Get("restart"); localizationRestart.Text = LangMan.Get("restart"); contextMenuLabel.Text = LangMan.Get("context-menu") + ":"; makeDefaultBtn.Text = LangMan.Get("set-as-default-image-viewer"); navBarPage.Text = LangMan.Get("navigation-bar"); navBarCheckBox.Text = LangMan.Get("enable-navigation-bar"); navBarFullscreenCheckBox.Text = LangMan.Get("nav-bar-fullscreen"); openWithCheckBox.Text = LangMan.Get("open-with-qpv"); browseWithCheckBox.Text = LangMan.Get("browse-folder-with-qpv"); helpTranslateBtn.Text = LangMan.Get("help-us-translate-app"); infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }
private void InitLanguage() { this.Text = owner.resMan.GetString("image-info"); fileNameLabel.Text = owner.resMan.GetString("file") + ":"; folderLabel.Text = owner.resMan.GetString("folder") + ":"; fullPathLabel.Text = owner.resMan.GetString("full-path") + ":"; diskSizeLabel.Text = owner.resMan.GetString("disk-size") + ":"; ratioLabel.Text = owner.resMan.GetString("aspect-ratio") + ":"; resolutionLabel.Text = owner.resMan.GetString("resolution") + ":"; createdLabel.Text = owner.resMan.GetString("created") + ":"; modifiedLabel.Text = owner.resMan.GetString("modified") + ":"; infoTooltip.SetToolTip(copyNameButton, owner.resMan.GetString("copy")); infoTooltip.SetToolTip(copyFolderButton, owner.resMan.GetString("copy")); infoTooltip.SetToolTip(copyPathButton, owner.resMan.GetString("copy")); extensionLabel.Text = owner.resMan.GetString("extension") + ":"; compressionLabel.Text = owner.resMan.GetString("compression") + ":"; propertiesButton.Text = " " + owner.resMan.GetString("file-properties"); sizeLabel.Text = owner.resMan.GetString("size") + " (px):"; megapixelsLabel.Text = owner.resMan.GetString("size") + " (mp):"; inchesLabel.Text = owner.resMan.GetString("print-size") + " (in):"; cmLabel.Text = owner.resMan.GetString("print-size") + " (cm):"; infoTooltip.SetToolTip(closeBtn, NativeMan.GetMessageBoxText(NativeMan.DialogBoxCommandID.IDCLOSE) + " | Alt+F4"); }