mirror of
https://github.com/gen2brain/cbconvert
synced 2026-06-30 09:11:54 +02:00
Organize Input tab, add more tooltips
This commit is contained in:
@@ -836,7 +836,8 @@ func preview() iup.Ihandle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func tabs() iup.Ihandle {
|
func tabs() iup.Ihandle {
|
||||||
vboxInput := iup.Vbox(
|
vboxInput := iup.Hbox(
|
||||||
|
iup.Vbox(
|
||||||
iup.Toggle(" Recurse SubDirectories").SetHandle("Recursive").
|
iup.Toggle(" Recurse SubDirectories").SetHandle("Recursive").
|
||||||
SetAttributes(`TIP="Process subdirectories recursively"`),
|
SetAttributes(`TIP="Process subdirectories recursively"`),
|
||||||
iup.Toggle(" Only Grayscale Images").SetHandle("NoRGB").
|
iup.Toggle(" Only Grayscale Images").SetHandle("NoRGB").
|
||||||
@@ -852,6 +853,9 @@ func tabs() iup.Ihandle {
|
|||||||
|
|
||||||
return iup.DEFAULT
|
return iup.DEFAULT
|
||||||
})),
|
})),
|
||||||
|
).SetAttributes("NGAP=10"),
|
||||||
|
iup.Space().SetAttribute("SIZE", "15"),
|
||||||
|
iup.Vbox(
|
||||||
iup.Vbox(
|
iup.Vbox(
|
||||||
iup.Label("Minimum Size (MiB):"),
|
iup.Label("Minimum Size (MiB):"),
|
||||||
iup.Text().SetAttributes(`SPIN=YES, SPINMAX=2048, VISIBLECOLUMNS=4, MASK="/d*"`).SetHandle("Size").
|
iup.Text().SetAttributes(`SPIN=YES, SPINMAX=2048, VISIBLECOLUMNS=4, MASK="/d*"`).SetHandle("Size").
|
||||||
@@ -872,14 +876,15 @@ func tabs() iup.Ihandle {
|
|||||||
}).SetHandle("DPI").
|
}).SetHandle("DPI").
|
||||||
SetAttribute("TIP", "Resolution for rendering documents (PDF, EPUB, etc.); Default is 300"),
|
SetAttribute("TIP", "Resolution for rendering documents (PDF, EPUB, etc.); Default is 300"),
|
||||||
),
|
),
|
||||||
iup.Space().SetAttributes("EXPAND=HORIZONTAL"),
|
).SetAttributes("NGAP=10"),
|
||||||
).SetHandle("VboxInput").SetAttributes("NGAP=10")
|
).SetHandle("VboxInput")
|
||||||
|
|
||||||
vboxOutput := iup.Hbox(
|
vboxOutput := iup.Hbox(
|
||||||
iup.Vbox(
|
iup.Vbox(
|
||||||
iup.Vbox(
|
iup.Vbox(
|
||||||
iup.Label("Output Directory:"),
|
iup.Label("Output Directory:"),
|
||||||
iup.Text().SetAttributes("VISIBLECOLUMNS=16, MINSIZE=100x").SetHandle("OutDir").
|
iup.Text().SetAttributes("VISIBLECOLUMNS=16, MINSIZE=100x").SetHandle("OutDir").
|
||||||
|
SetAttribute("TIP", "Directory where converted files are written (required)").
|
||||||
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
||||||
setActive()
|
setActive()
|
||||||
|
|
||||||
@@ -902,6 +907,7 @@ func tabs() iup.Ihandle {
|
|||||||
"1": "ZIP",
|
"1": "ZIP",
|
||||||
"2": "TAR",
|
"2": "TAR",
|
||||||
}).SetHandle("Archive").
|
}).SetHandle("Archive").
|
||||||
|
SetAttribute("TIP", "Output container: ZIP (.cbz) or uncompressed TAR (.cbt)").
|
||||||
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
||||||
setActive()
|
setActive()
|
||||||
|
|
||||||
@@ -965,6 +971,7 @@ func tabs() iup.Ihandle {
|
|||||||
"6": "AVIF",
|
"6": "AVIF",
|
||||||
"7": "JXL",
|
"7": "JXL",
|
||||||
}).SetHandle("Format").
|
}).SetHandle("Format").
|
||||||
|
SetAttribute("TIP", "Output image format for the converted pages").
|
||||||
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
||||||
setEffort(strings.ToLower(ih.GetAttribute("VALUESTRING")))
|
setEffort(strings.ToLower(ih.GetAttribute("VALUESTRING")))
|
||||||
setActive()
|
setActive()
|
||||||
@@ -1157,6 +1164,7 @@ func tabs() iup.Ihandle {
|
|||||||
"3": "180",
|
"3": "180",
|
||||||
"4": "270",
|
"4": "270",
|
||||||
}).SetHandle("Rotate").
|
}).SetHandle("Rotate").
|
||||||
|
SetAttribute("TIP", "Rotate every page clockwise by the given angle in degrees").
|
||||||
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
SetCallback("VALUECHANGED_CB", iup.ValueChangedFunc(func(ih iup.Ihandle) int {
|
||||||
previewPost()
|
previewPost()
|
||||||
|
|
||||||
@@ -1213,12 +1221,12 @@ func buttons() iup.Ihandle {
|
|||||||
remove,
|
remove,
|
||||||
removeAll,
|
removeAll,
|
||||||
).SetAttribute("NGAP", "2"),
|
).SetAttribute("NGAP", "2"),
|
||||||
iup.Space().SetAttribute("SIZE", "x8"),
|
iup.Space().SetAttribute("SIZE", "x5"),
|
||||||
iup.Vbox(
|
iup.Vbox(
|
||||||
thumbnail,
|
thumbnail,
|
||||||
cover,
|
cover,
|
||||||
).SetAttribute("NGAP", "2"),
|
).SetAttribute("NGAP", "2"),
|
||||||
iup.Space().SetAttribute("SIZE", "x8"),
|
iup.Space().SetAttribute("SIZE", "x5"),
|
||||||
iup.Vbox(
|
iup.Vbox(
|
||||||
convert,
|
convert,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user