示例#1
0
        + "(required for handling documents being opened twice)",
        doc="data required for restoring the view state of a single tab"),
    Field("TabIndex", Int, 1, "index of the currently selected tab (1-based)"),
    Field("WindowState", Int, 0, "same as FileState -> WindowState"),
    CompactStruct("WindowPos",
                  WindowPos,
                  "default position (can be on any monitor)",
                  structName="RectI"),
    Field("SidebarDx", Int, 0,
          "width of favorites/bookmarks sidebar (if shown)"),
]

GlobalPrefs = [
    Comment(
        "For documentation, see http://www.sumatrapdfreader.org/settings%s.html"
        % util.get_sumatrapdf_version()),
    EmptyLine(),
    Field("ThemeName", Utf8String, "light", "the name of the theme to use"),
    Field("EscToExit",
          Bool,
          False,
          "if true, Esc key closes SumatraPDF",
          expert=True),
    Field("ReuseInstance",
          Bool,
          False,
          "if true, we'll always open files using existing SumatraPDF process",
          expert=True),
    Field(
        "RestoreSession",
        Bool,
SessionData = [
	Array("TabStates", TabState,
		"a subset of FileState required for restoring the state of a single tab " +
		"(required for handling documents being opened twice)",
		doc="data required for restoring the view state of a single tab"),
	Field("TabIndex", Int, 1, "index of the currently selected tab (1-based)"),
	Field("WindowState", Int, 0,
		"same as FileState -> WindowState"),
	CompactStruct("WindowPos", WindowPos,
		"default position (can be on any monitor)", structName="RectI"),
	Field("SidebarDx", Int, 0,
		"width of favorites/bookmarks sidebar (if shown)"),
]

GlobalPrefs = [
	Comment("For documentation, see https://www.sumatrapdfreader.org/settings%s.html" % util.get_sumatrapdf_version()),
	EmptyLine(),

	Field("MainWindowBackground", Color, RGB(0xFF, 0xF2, 0x00, a=0x80),
		"background color of the non-document windows, traditionally yellow",
		expert=True),

	# Field("ThemeName", Utf8String, "light",
	#	"the name of the theme to use"),

	Field("EscToExit", Bool, False,
		"if true, Esc key closes SumatraPDF",
		expert=True),
	Field("ReuseInstance", Bool, False,
		"if true, we'll always open files using existing SumatraPDF process",
		expert=True),
示例#3
0
#!/usr/bin/env python

import cgi
import os
import util
import gen_settingsstructs
import trans_langs
"""
TODO:
 * for gen_langs_html, show languages that don't have enough translations
   in a separate table
"""

g_version = util.get_sumatrapdf_version()

html_tmpl = """\
<!doctype html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Customizing SumatraPDF %VER%</title>
<style type="text/css">
body {
    font-size: 90%;
    background-color: #f5f5f5;
}

.desc {
    padding: 0px 10px 0px 10px;
}
示例#4
0
SessionData = [
	Array("TabStates", TabState,
		"a subset of FileState required for restoring the state of a single tab " +
		"(required for handling documents being opened twice)",
		doc="data required for restoring the view state of a single tab"),
	Field("TabIndex", Int, 1, "index of the currently selected tab (1-based)"),
	Field("WindowState", Int, 0,
		"same as FileState -> WindowState"),
	CompactStruct("WindowPos", WindowPos,
		"default position (can be on any monitor)", structName="RectI"),
	Field("SidebarDx", Int, 0,
		"width of favorites/bookmarks sidebar (if shown)"),
]

GlobalPrefs = [
	Comment("For documentation, see https://www.sumatrapdfreader.org/settings%s.html" % util.get_sumatrapdf_version()),
	EmptyLine(),

	Field("MainWindowBackground", Color, RGB(0xFF, 0xF2, 0x00, a=0x80),
		"background color of the non-document windows, traditionally yellow",
		expert=True),

	# Field("ThemeName", Utf8String, "light",
	#	"the name of the theme to use"),

	Field("EscToExit", Bool, False,
		"if true, Esc key closes SumatraPDF",
		expert=True),
	Field("ReuseInstance", Bool, False,
		"if true, we'll always open files using existing SumatraPDF process",
		expert=True),
#!/usr/bin/env python

import cgi
import os
import util
import gen_settingsstructs
import trans_langs

"""
TODO:
 * for gen_langs_html, show languages that don't have enough translations
   in a separate table
"""

g_version = util.get_sumatrapdf_version()

html_tmpl = """\
<!doctype html>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Customizing SumatraPDF %VER%</title>
<style type="text/css">
body {
    font-size: 90%;
    background-color: #f5f5f5;
}

.desc {
    padding: 0px 10px 0px 10px;