set_frontlight={category="absolutenumber",event="SetFlIntensity",min=0,max=Device:getPowerDevice().fl_max,title=_("Set frontlight brightness to %1"),screen=true,condition=Device:hasFrontlight()},
increase_frontlight={category="incrementalnumber",event="IncreaseFlIntensity",min=1,max=Device:getPowerDevice().fl_max,title=_("Increase frontlight brightness by %1"),screen=true,condition=Device:hasFrontlight()},
decrease_frontlight={category="incrementalnumber",event="DecreaseFlIntensity",min=1,max=Device:getPowerDevice().fl_max,title=_("Decrease frontlight brightness by %1"),screen=true,condition=Device:hasFrontlight()},
set_frontlight_warmth={category="absolutenumber",event="SetFlWarmth",min=0,max=100,title=_("Set frontlight warmth to %1"),screen=true,condition=Device:hasNaturalLight()},
increase_frontlight_warmth={category="incrementalnumber",event="IncreaseFlWarmth",min=1,max=Device:getPowerDevice().fl_warmth_max,title=_("Increase frontlight warmth by %1"),screen=true,condition=Device:hasNaturalLight()},
decrease_frontlight_warmth={category="incrementalnumber",event="DecreaseFlWarmth",min=1,max=Device:getPowerDevice().fl_warmth_max,title=_("Decrease frontlight warmth by %1"),screen=true,condition=Device:hasNaturalLight(),separator=true},
night_mode={category="none",event="ToggleNightMode",title=_("Toggle night mode"),screen=true},
set_night_mode={category="string",event="SetNightMode",title=_("Set night mode"),screen=true,args={true,false},toggle={_("On"),_("Off")},separator=true},
set_refresh_rate={category="absolutenumber",event="SetBothRefreshRates",min=-1,max=200,title=_("Flash every %1 pages (always)"),screen=true,condition=Device:hasEinkScreen()},
set_day_refresh_rate={category="absolutenumber",event="SetDayRefreshRate",min=-1,max=200,title=_("Flash every %1 pages (not in night mode)"),screen=true,condition=Device:hasEinkScreen()},
set_night_refresh_rate={category="absolutenumber",event="SetNightRefreshRate",min=-1,max=200,title=_("Flash every %1 pages (in night mode)"),screen=true,condition=Device:hasEinkScreen()},
set_flash_on_chapter_boundaries={category="string",event="SetFlashOnChapterBoundaries",title=_("Always flash on chapter boundaries"),screen=true,condition=Device:hasEinkScreen(),args={true,false},toggle={_("On"),_("Off")}},
toggle_flash_on_chapter_boundaries={category="none",event="ToggleFlashOnChapterBoundaries",title=_("Toggle flashing on chapter boundaries"),screen=true,condition=Device:hasEinkScreen()},
set_no_flash_on_second_chapter_page={category="string",event="SetNoFlashOnSecondChapterPage",title=_("Never flash on chapter's 2nd page"),screen=true,condition=Device:hasEinkScreen(),args={true,false},toggle={_("On"),_("Off")}},
toggle_no_flash_on_second_chapter_page={category="none",event="ToggleNoFlashOnSecondChapterPage",title=_("Toggle flashing on chapter's 2nd page"),screen=true,condition=Device:hasEinkScreen(),separator=true},
set_frontlight={category="absolutenumber",event="SetFlIntensity",min=0,max=Device:getPowerDevice().fl_max,title=_("Set frontlight brightness to %1"),device=true,condition=Device:hasFrontlight()},
increase_frontlight={category="incrementalnumber",event="IncreaseFlIntensity",min=1,max=Device:getPowerDevice().fl_max,title=_("Increase frontlight brightness by %1"),device=true,condition=Device:hasFrontlight()},
decrease_frontlight={category="incrementalnumber",event="DecreaseFlIntensity",min=1,max=Device:getPowerDevice().fl_max,title=_("Decrease frontlight brightness by %1"),device=true,condition=Device:hasFrontlight()},
set_frontlight_warmth={category="absolutenumber",event="SetFlWarmth",min=0,max=100,title=_("Set frontlight warmth to %1"),device=true,condition=Device:hasNaturalLight()},
increase_frontlight_warmth={category="incrementalnumber",event="IncreaseFlWarmth",min=1,max=Device:getPowerDevice().fl_warmth_max,title=_("Increase frontlight warmth by %1"),device=true,condition=Device:hasNaturalLight()},
decrease_frontlight_warmth={category="incrementalnumber",event="DecreaseFlWarmth",min=1,max=Device:getPowerDevice().fl_warmth_max,title=_("Decrease frontlight warmth by %1"),device=true,condition=Device:hasNaturalLight(),separator=true},
iterate_rotation={category="none",event="IterateRotation",title=_("Rotate by 90° CW"),device=true,separator=true},
set_refresh_rate={category="absolutenumber",event="SetBothRefreshRates",min=-1,max=200,title=_("Flash every %1 pages (always)"),device=true,condition=Device:hasEinkScreen()},
set_day_refresh_rate={category="absolutenumber",event="SetDayRefreshRate",min=-1,max=200,title=_("Flash every %1 pages (not in night mode)"),device=true,condition=Device:hasEinkScreen()},
set_night_refresh_rate={category="absolutenumber",event="SetNightRefreshRate",min=-1,max=200,title=_("Flash every %1 pages (in night mode)"),device=true,condition=Device:hasEinkScreen()},
set_flash_on_chapter_boundaries={category="string",event="SetFlashOnChapterBoundaries",title=_("Always flash on chapter boundaries"),device=true,condition=Device:hasEinkScreen(),args={true,false},toggle={_("On"),_("Off")}},
toggle_flash_on_chapter_boundaries={category="none",event="ToggleFlashOnChapterBoundaries",title=_("Toggle flashing on chapter boundaries"),device=true,condition=Device:hasEinkScreen()},
set_no_flash_on_second_chapter_page={category="string",event="SetNoFlashOnSecondChapterPage",title=_("Never flash on chapter's 2nd page"),device=true,condition=Device:hasEinkScreen(),args={true,false},toggle={_("On"),_("Off")}},
toggle_no_flash_on_second_chapter_page={category="none",event="ToggleNoFlashOnSecondChapterPage",title=_("Toggle flashing on chapter's 2nd page"),device=true,condition=Device:hasEinkScreen(),separator=true},
Dispatcher:registerAction("calibre_browse_tags",{category="none",event="CalibreBrowseTags",title=_("Browse all calibre tags"),device=true,})
Dispatcher:registerAction("calibre_browse_series",{category="none",event="CalibreBrowseSeries",title=_("Browse all calibre series"),device=true,separator=true,})
Dispatcher:registerAction("calibre_browse_tags",{category="none",event="CalibreBrowseTags",title=_("Browse all calibre tags"),general=true,})
Dispatcher:registerAction("calibre_browse_series",{category="none",event="CalibreBrowseSeries",title=_("Browse all calibre series"),general=true,separator=true,})
@ -105,8 +105,8 @@ local function validateUser(user, pass)
end
functionKOSync:onDispatcherRegisterActions()
Dispatcher:registerAction("kosync_push_progress",{category="none",event="KOSyncPushProgress",title=_("Push progress from this device"),rolling=true,paging=true,})
Dispatcher:registerAction("kosync_pull_progress",{category="none",event="KOSyncPullProgress",title=_("Pull progress from other devices"),rolling=true,paging=true,separator=true,})
Dispatcher:registerAction("kosync_push_progress",{category="none",event="KOSyncPushProgress",title=_("Push progress from this device"),reader=true,})
Dispatcher:registerAction("kosync_pull_progress",{category="none",event="KOSyncPullProgress",title=_("Pull progress from other devices"),reader=true,separator=true,})
@ -39,7 +39,7 @@ local TextEditor = WidgetContainer:new{
}
functionTextEditor:onDispatcherRegisterActions()
Dispatcher:registerAction("edit_last_edited_file",{category="none",event="OpenLastEditedFile",title=_("Text editor: open last file"),device =true,separator=true})
Dispatcher:registerAction("edit_last_edited_file",{category="none",event="OpenLastEditedFile",title=_("Text editor: open last file"),general=true,separator=true})