Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RinLit-233-shiroko/Class-Widgets-2
/ functions
Functions
254 in github.com/RinLit-233-shiroko/Class-Widgets-2
⨍
Functions
254
◇
Types & classes
54
↓ 32 callers
Method
get
(self)
src/core/utils/json_loader.py:32
↓ 6 callers
Method
load
(self)
src/core/themes/manager.py:65
↓ 5 callers
Function
generate_id
(prefix: str = "id")
src/core/utils/__init__.py:13
↓ 5 callers
Method
get_current_entry
(day: Timeline, now: Optional[datetime] = None)
src/core/schedule/service.py:49
↓ 4 callers
Function
_create_empty_schedule
()
src/core/schedule/manager.py:15
↓ 4 callers
Function
_parse_version
(v: str)
src/core/utils/__init__.py:16
↓ 4 callers
Method
setup_qml_context
为窗口设置标准的QML上下文属性 Args: window: RinUIWindow实例
src/core/central.py:139
↓ 4 callers
Method
syncCurrentPreset
同步当前 _instances 到 _presets
src/core/widgets/model.py:107
↓ 3 callers
Method
__init__
(self, parent: AppCentral)
src/core/central.py:285
↓ 3 callers
Method
_normalize_preset_entries
(self, entries: List[Union[str, dict, WidgetEntry]])
src/core/widgets/model.py:69
↓ 3 callers
Method
add
创建新的空课表
src/core/schedule/manager.py:119
↓ 3 callers
Method
getDay
获取日程信息
src/core/schedule/editor.py:138
↓ 3 callers
Method
getSubject
获取科目信息
src/core/schedule/editor.py:84
↓ 3 callers
Method
load
(self)
src/core/utils/json_loader.py:12
↓ 3 callers
Method
save
(self, data: Any)
src/core/utils/json_loader.py:35
↓ 3 callers
Method
save
(self, path: Path | None = None)
src/core/schedule/manager.py:89
↓ 3 callers
Method
scan
扫描内置和外部插件目录,收集所有插件的元数据
src/core/plugin/manager.py:65
↓ 3 callers
Method
tr
提供 QML 访问翻译的接口
src/core/utils/translator.py:53
↓ 2 callers
Method
_bind_nested_on_change
递归绑定 _on_change 给所有嵌套的 ConfigBaseModel
src/core/config/manager.py:44
↓ 2 callers
Method
_hide
隐藏窗口
src/core/automations/builtin_tasks.py:45
↓ 2 callers
Method
_is_in_week
判断某个 weeks 字段是否包含当前周 - "all" 或 WeekType.ALL → 永远 True - None → 永远 True(等于没限制) - int → 当前周 == int - list[int]
src/core/schedule/service.py:124
↓ 2 callers
Method
_load_meta
(self, plugin_dir: Path, type="external")
src/core/plugin/manager.py:77
↓ 2 callers
Method
_load_with_theme
加载QML并应用主题
src/core/widgets/core.py:38
↓ 2 callers
Method
add_task
Add a task instance
src/core/automations/manager.py:27
↓ 2 callers
Function
autostart_supported
Check if autostart is supported on this platform
src/core/utils/auto_startup.py:16
↓ 2 callers
Function
check_api_version
(plugin_api_version: str, app_version: str)
src/core/utils/__init__.py:19
↓ 2 callers
Method
cleanup
(self)
src/core/central.py:98
↓ 2 callers
Method
discover_plugins_in_dir
(self, base_dir: Path)
src/core/plugin/manager.py:57
↓ 2 callers
Method
getEntry
获取条目信息
src/core/schedule/editor.py:202
↓ 2 callers
Function
get_default_subjects
()
src/core/utils/subjects.py:27
↓ 2 callers
Method
get_next_entries
(day: Timeline, now: Optional[datetime] = None)
src/core/schedule/service.py:63
↓ 2 callers
Method
load_preset
(self, preset_name: str)
src/core/widgets/model.py:132
↓ 2 callers
Method
name
(self)
src/core/automations/base.py:16
↓ 2 callers
Method
on_unload
插件卸载时调用
src/core/plugin/api.py:91
↓ 2 callers
Method
refresh
(self, schedule: ScheduleData)
src/core/schedule/editor.py:24
↓ 2 callers
Method
run
(self)
src/core/central.py:72
↓ 2 callers
Method
start
(self)
src/core/timer/union_update.py:13
↓ 2 callers
Method
update
每秒调用,由 AutomationManager 调度
src/core/automations/base.py:11
↓ 1 callers
Method
__init__
(self, app_central)
src/core/plugin/api.py:18
↓ 1 callers
Method
_get_week_number
根据 schedule.meta.startDate 算出当前是第几周
src/core/schedule/service.py:112
↓ 1 callers
Method
_init_builtin_tasks
Instantiate and register all built-in tasks
src/core/automations/manager.py:18
↓ 1 callers
Method
_init_tray_icon
(self)
src/core/central.py:195
↓ 1 callers
Method
_initialize_cores
初始化核心
src/core/central.py:39
↓ 1 callers
Method
_initialize_schedule_components
初始化调度相关组件
src/core/central.py:57
↓ 1 callers
Method
_initialize_ui_components
初始化UI组件
src/core/central.py:66
↓ 1 callers
Method
_initialized_plugin
(self, meta: dict)
src/core/plugin/manager.py:105
↓ 1 callers
Method
_load_config
加载和验证配置
src/core/central.py:90
↓ 1 callers
Method
_load_runtime
(self)
src/core/central.py:168
↓ 1 callers
Method
_load_schedule
加载课程表
src/core/central.py:156
↓ 1 callers
Method
_load_theme_and_plugins
主题和插件
src/core/central.py:187
↓ 1 callers
Method
_load_translator
加载翻译
src/core/central.py:163
↓ 1 callers
Method
_override_applies
(self, override: Timetable, weekday: int, current_week: int)
src/core/schedule/service.py:39
↓ 1 callers
Method
_setup_logging
根据 Configs.app.no_logs 决定是否写日志到文件
src/core/central.py:199
↓ 1 callers
Method
_setup_qml_context
设置QML上下文属性
src/core/widgets/core.py:22
↓ 1 callers
Method
_setup_runtime_connections
设置runtime连接
src/core/central.py:177
↓ 1 callers
Method
_start_listening
(self)
src/core/widgets/core.py:26
↓ 1 callers
Method
_update_notify
(self)
src/core/schedule/runtime.py:184
↓ 1 callers
Method
_update_schedule
更新日程 :param schedule: :return:
src/core/schedule/runtime.py:136
↓ 1 callers
Method
_update_time
(self)
src/core/schedule/runtime.py:167
↓ 1 callers
Method
add_widget
( self, type_id: str, name: str, qml_path: str | QUrl,
src/core/widgets/model.py:159
↓ 1 callers
Function
disable_autostart
Disable autostart
src/core/utils/auto_startup.py:41
↓ 1 callers
Function
enable_autostart
Enable autostart
src/core/utils/auto_startup.py:21
↓ 1 callers
Method
get_config
(self)
src/core/plugin/api.py:70
↓ 1 callers
Method
get_current_status
(day: Timeline, now: Optional[datetime] = None)
src/core/schedule/service.py:89
↓ 1 callers
Method
get_current_subject
(day: Timeline, subjects: List[Subject], now: Optional[datetime] = None)
src/core/schedule/service.py:93
↓ 1 callers
Function
get_cycle_week
获取当前周在当前周期的第几周 :param week_number: 当前周 :param cycle: 周期 :return:
src/core/utils/calculator.py:16
↓ 1 callers
Method
get_datetime
(self)
src/core/plugin/api.py:62
↓ 1 callers
Method
get_day_entries
返回当前日期对应的 DayEntry(深拷贝,应用 override,不修改原始数据)
src/core/schedule/service.py:9
↓ 1 callers
Method
get_progress_percent
(self)
src/core/schedule/runtime.py:172
↓ 1 callers
Method
get_remaining_time
(day: Timeline, now: Optional[datetime] = None)
src/core/schedule/service.py:74
↓ 1 callers
Method
get_subject
(subject_id: str, subjects: List[Subject])
src/core/schedule/service.py:103
↓ 1 callers
Function
get_week_number
获取当前日期在开学后的第几周 :param start_date: 开始计算日期 :param current_date: datetime.now() :return:
src/core/utils/calculator.py:4
↓ 1 callers
Function
is_autostart_enabled
Check if autostart is enabled
src/core/utils/auto_startup.py:63
↓ 1 callers
Function
is_window_fullscreen
(hwnd)
src/core/automations/builtin_tasks.py:25
↓ 1 callers
Function
is_window_maximized
(hwnd)
src/core/automations/builtin_tasks.py:21
↓ 1 callers
Method
load
(self)
src/core/parser/schedule.py:28
↓ 1 callers
Method
load
加载课程表
src/core/schedule/manager.py:42
↓ 1 callers
Method
load_config
(self)
src/core/widgets/model.py:87
↓ 1 callers
Method
load_config
(self)
src/core/config/manager.py:54
↓ 1 callers
Method
load_license
(self)
src/core/utils/backend.py:75
↓ 1 callers
Method
load_plugins
加载插件实例
src/core/plugin/manager.py:93
↓ 1 callers
Method
modify
接受外部修改(如编辑器)
src/core/schedule/manager.py:83
↓ 1 callers
Method
on_load
插件加载时调用
src/core/plugin/api.py:87
↓ 1 callers
Method
push
Push a notification to the Class Widgets. :param icon: str or Path, icon name or path: "ic_fluent_symbols_20_regular" or Path("path/t
src/core/notification/notify.py:31
↓ 1 callers
Method
push_activity
(self, entry_type, subject: dict, event_title)
src/core/notification/notify.py:22
↓ 1 callers
Method
register_widget
通过AppCentral统一注册widget
src/core/plugin/api.py:34
↓ 1 callers
Method
register_widgets
(self)
src/plugins/cw_widgets/widgets.py:48
↓ 1 callers
Method
save
(self, silent=False)
src/core/config/manager.py:72
↓ 1 callers
Method
setLanguage
切换语言
src/core/utils/translator.py:31
↓ 1 callers
Method
set_enabled_plugins
(self, enabled_plugins: List[str])
src/core/plugin/manager.py:139
↓ 1 callers
Method
stop
(self)
src/core/timer/union_update.py:18
↓ 1 callers
Method
validate
(data: dict)
src/core/parser/schedule.py:19
↓ 1 callers
Function
validate_meta
校验插件 meta 字段完整性
src/core/plugin/manager.py:23
↓ 1 callers
Function
verify
(theme_ver, app_version)
src/core/themes/manager.py:22
Method
__getattr__
代理属性获取
src/core/config/manager.py:81
Method
__init__
(self)
src/core/central.py:33
Method
__init__
(self, parent: AppCentral)
src/core/central.py:272
Method
__init__
(self, parent: AppCentral)
src/core/central.py:296
Method
__init__
(self)
src/core/directories.py:35
Method
__init__
(self)
src/core/notification/notify.py:19
next →
1–100 of 254, ranked by callers