├── VERSION
├── src
├── qt
│ ├── resources
│ │ ├── assfonts-gui.rc
│ │ ├── icon.ico
│ │ ├── icon.png
│ │ ├── icon.icns
│ │ ├── style.qss
│ │ ├── assfonts-gui.qrc
│ │ ├── assfonts-gui.desktop
│ │ ├── assfonts-gui.manifest
│ │ ├── AppRun
│ │ └── assfonts-gui.plist
│ ├── get_app_support_dir.h
│ ├── checkable_button.cc
│ ├── log_highlighter.h
│ ├── get_app_support_dir.mm
│ ├── checkable_button.h
│ ├── drop_lineedit.h
│ ├── drop_lineedit.cc
│ ├── check_window.h
│ ├── main.cc
│ └── task_runner.h
├── CMakeLists.txt
└── cli
│ ├── CMakeLists.txt
│ ├── get_app_support_dir.h
│ └── get_app_support_dir.mm
├── 3rdparty
├── fcitx5-qt
│ ├── po
│ │ ├── CMakeLists.txt
│ │ └── LINGUAS
│ ├── Messages.sh
│ ├── qt5
│ │ ├── quickphrase-editor
│ │ │ ├── quickphrase-editor.json
│ │ │ ├── main.cpp
│ │ │ ├── batchdialog.h
│ │ │ ├── main.h
│ │ │ ├── batchdialog.cpp
│ │ │ ├── editordialog.cpp
│ │ │ ├── editordialog.h
│ │ │ ├── CMakeLists.txt
│ │ │ ├── filelistmodel.h
│ │ │ ├── editor.h
│ │ │ ├── model.h
│ │ │ └── filelistmodel.cpp
│ │ ├── platforminputcontext
│ │ │ ├── fcitx5.json.in
│ │ │ ├── font.h
│ │ │ ├── qtkey.h
│ │ │ ├── main.cpp
│ │ │ ├── main.h
│ │ │ ├── fcitx4inputmethodproxy.cpp
│ │ │ ├── fcitx4inputcontextproxyimpl.cpp
│ │ │ └── fcitx4watcher.h
│ │ ├── dbusaddons
│ │ │ ├── Fcitx5Qt5DBusAddonsConfig.cmake.in
│ │ │ ├── gen_dbus.sh
│ │ │ ├── interfaces
│ │ │ │ └── org.fcitx.Fcitx.InputMethod1.xml
│ │ │ ├── fcitxqtwatcher_p.h
│ │ │ ├── fcitxqtcontrollerproxy.cpp
│ │ │ ├── fcitxqtinputmethodproxy.cpp
│ │ │ ├── fcitxqtinputcontextproxyimpl.cpp
│ │ │ └── fcitxqtwatcher.h
│ │ ├── immodule-probing
│ │ │ ├── CMakeLists.txt
│ │ │ └── main.cpp
│ │ ├── guiwrapper
│ │ │ ├── org.fcitx.fcitx5-qt5-gui-wrapper.desktop.in.in
│ │ │ ├── main.cpp
│ │ │ ├── mainwindow.ui
│ │ │ ├── wrapperapp.h
│ │ │ ├── CMakeLists.txt
│ │ │ └── mainwindow.h
│ │ ├── widgetsaddons
│ │ │ ├── fcitxqtconfiguiplugin.cpp
│ │ │ ├── fcitxqtconfiguiwidget.cpp
│ │ │ ├── Fcitx5Qt5WidgetsAddonsConfig.cmake.in
│ │ │ ├── fcitxqti18nhelper.h
│ │ │ ├── fcitxqtconfiguifactory_p.h
│ │ │ ├── qtkeytrans.h
│ │ │ ├── fcitxqtconfiguiplugin.h
│ │ │ ├── fcitxqtconfiguifactory.h
│ │ │ └── fcitxqtconfiguiwidget.h
│ │ └── CMakeLists.txt
│ ├── qt6
│ │ ├── quickphrase-editor
│ │ │ ├── quickphrase-editor.json
│ │ │ ├── main.cpp
│ │ │ ├── batchdialog.h
│ │ │ ├── main.h
│ │ │ ├── batchdialog.cpp
│ │ │ ├── editordialog.cpp
│ │ │ ├── CMakeLists.txt
│ │ │ ├── editordialog.h
│ │ │ ├── filelistmodel.h
│ │ │ ├── editor.h
│ │ │ ├── model.h
│ │ │ └── filelistmodel.cpp
│ │ ├── platforminputcontext
│ │ │ ├── fcitx5.json.in
│ │ │ ├── font.h
│ │ │ ├── qtkey.h
│ │ │ ├── main.cpp
│ │ │ ├── main.h
│ │ │ ├── fcitx4inputmethodproxy.cpp
│ │ │ ├── fcitx4inputcontextproxyimpl.cpp
│ │ │ └── fcitx4watcher.h
│ │ ├── dbusaddons
│ │ │ ├── Fcitx5Qt6DBusAddonsConfig.cmake.in
│ │ │ ├── gen_dbus.sh
│ │ │ ├── fcitxqtwatcher_p.h
│ │ │ ├── fcitxqtcontrollerproxy.cpp
│ │ │ ├── fcitxqtinputmethodproxy.cpp
│ │ │ ├── fcitxqtinputcontextproxyimpl.cpp
│ │ │ └── fcitxqtwatcher.h
│ │ ├── immodule-probing
│ │ │ ├── CMakeLists.txt
│ │ │ └── main.cpp
│ │ ├── guiwrapper
│ │ │ ├── org.fcitx.fcitx5-qt6-gui-wrapper.desktop.in.in
│ │ │ ├── main.cpp
│ │ │ ├── mainwindow.ui
│ │ │ ├── wrapperapp.h
│ │ │ ├── CMakeLists.txt
│ │ │ └── mainwindow.h
│ │ ├── widgetsaddons
│ │ │ ├── fcitxqtconfiguiplugin.cpp
│ │ │ ├── fcitxqtconfiguiwidget.cpp
│ │ │ ├── Fcitx5Qt6WidgetsAddonsConfig.cmake.in
│ │ │ ├── fcitxqti18nhelper.h
│ │ │ ├── fcitxqtconfiguifactory_p.h
│ │ │ ├── fcitxqtconfiguiplugin.h
│ │ │ ├── fcitxqtconfiguifactory.h
│ │ │ └── fcitxqtconfiguiwidget.h
│ │ └── CMakeLists.txt
│ ├── qt4
│ │ ├── CMakeLists.txt
│ │ ├── dbusaddons
│ │ │ ├── Fcitx5Qt4DBusAddonsConfig.cmake.in
│ │ │ ├── gen_dbus.sh
│ │ │ ├── interfaces
│ │ │ │ └── org.fcitx.Fcitx.InputMethod1.xml
│ │ │ ├── fcitxqtwatcher_p.h
│ │ │ ├── fcitxqtinputmethodproxy.cpp
│ │ │ ├── fcitxqtinputcontextproxyimpl.cpp
│ │ │ └── fcitxqtwatcher.h
│ │ ├── immodule-probing
│ │ │ ├── CMakeLists.txt
│ │ │ └── main.cpp
│ │ └── inputcontext
│ │ │ ├── qtkey.h
│ │ │ ├── main.h
│ │ │ ├── CMakeLists.txt
│ │ │ └── main.cpp
│ ├── test
│ │ ├── CMakeLists.txt
│ │ └── testkeytrans.cpp
│ ├── README.md
│ ├── cmake
│ │ ├── CompilerSettings.cmake
│ │ └── FindXKBCommon.cmake
│ └── LICENSES
│ │ └── BSD-3-Clause.txt
├── rang
│ ├── cmake
│ │ ├── rang-config.cmake.in
│ │ ├── rang.pc.in
│ │ └── CMakeUtilities.cmake
│ ├── test_package
│ │ ├── meson.build
│ │ ├── visualTest.cpp
│ │ └── conanfile.py
│ ├── .editorconfig
│ ├── .gitignore
│ ├── test
│ │ ├── meson.build
│ │ ├── envTermMissing.cpp
│ │ └── CMakeLists.txt
│ ├── meson.build
│ ├── conanfile.py
│ ├── LICENSE
│ └── .clang-format
├── asshdr
│ ├── 3rdparty
│ │ ├── CMakeLists.txt
│ │ └── nowide
│ │ │ ├── config
│ │ │ ├── check_attribute_init_priority.cpp
│ │ │ ├── check_movable_fstreams.cpp
│ │ │ └── check_lfs_support.cpp
│ │ │ ├── test
│ │ │ ├── cmake_test
│ │ │ │ ├── CMakeLists.txt
│ │ │ │ └── main.cpp
│ │ │ ├── test_iostream_passthrough.cmake
│ │ │ ├── file_test_helpers.hpp
│ │ │ ├── test_env.cpp
│ │ │ └── test_fs.cpp
│ │ │ ├── include
│ │ │ └── nowide
│ │ │ │ ├── detail
│ │ │ │ ├── utf.hpp
│ │ │ │ ├── convert.hpp
│ │ │ │ └── is_path.hpp
│ │ │ │ ├── replacement.hpp
│ │ │ │ ├── filesystem.hpp
│ │ │ │ ├── windows.hpp
│ │ │ │ ├── cstdio.hpp
│ │ │ │ └── cstdlib.hpp
│ │ │ ├── LICENSE
│ │ │ ├── src
│ │ │ └── stat.cpp
│ │ │ └── cmake
│ │ │ └── NowideAddWarnings.cmake
│ ├── NEWS
│ ├── lib
│ │ └── CMakeLists.txt
│ ├── CMakeLists.txt
│ ├── src
│ │ ├── CMakeLists.txt
│ │ ├── ver.h
│ │ └── ver.h.in
│ ├── include
│ │ └── asshdr
│ │ │ └── ass_recolorize.h
│ └── README.md
├── CMakeLists.txt
└── compact_enc_det
│ ├── util
│ ├── logging.h
│ ├── commandlineflags.h
│ ├── encodings
│ │ └── encodings_unittest.cc
│ ├── port.h
│ ├── varsetter.h
│ └── string_util.h
│ ├── README.md
│ ├── compact_enc_det
│ ├── compact_enc_det_hint_code.h
│ └── compact_enc_det_fuzz_test.cc
│ └── autogen.sh
├── .gitmodules
├── lib
├── get_home_dir_macos.h
├── get_home_dir_macos.mm
├── CMakeLists.txt
└── ass_string.h
├── CMakeLists.txt
├── vcpkg.json
├── include
└── assfonts.h.in
└── .github
└── linux
├── AppImageBuilder_x86.yml
├── AppImageBuilder_arm64.yml
└── AppImageBuilder_x64.yml
/VERSION:
--------------------------------------------------------------------------------
1 | 0.7.3
2 |
--------------------------------------------------------------------------------
/src/qt/resources/assfonts-gui.rc:
--------------------------------------------------------------------------------
1 | icon_resource ICON "icon.ico"
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/po/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | fcitx5_install_translation(fcitx5-qt)
2 |
3 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/Messages.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash#!/bin/bash
2 | gen_pot cxx:desktop:ui fcitx5-qt po .
3 |
--------------------------------------------------------------------------------
/src/qt/resources/icon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wyzdwdz/assfonts/HEAD/src/qt/resources/icon.ico
--------------------------------------------------------------------------------
/src/qt/resources/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wyzdwdz/assfonts/HEAD/src/qt/resources/icon.png
--------------------------------------------------------------------------------
/src/qt/resources/icon.icns:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/wyzdwdz/assfonts/HEAD/src/qt/resources/icon.icns
--------------------------------------------------------------------------------
/src/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | add_subdirectory(cli)
4 | add_subdirectory(qt)
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
1 | [submodule "vcpkg"]
2 | path = vcpkg
3 | url = http://github.com/wyzdwdz/vcpkg.git
4 | branch = vcpkg-assfonts
5 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/po/LINGUAS:
--------------------------------------------------------------------------------
1 |
2 | ca
3 | da
4 | de
5 | es
6 | fr
7 | he
8 | ja
9 | ko
10 | ru
11 | zh_CN
12 | zh_TW
13 |
--------------------------------------------------------------------------------
/src/qt/resources/style.qss:
--------------------------------------------------------------------------------
1 | * {
2 | font-size: 14px;
3 | }
4 |
5 | QCheckBox::indicator {
6 | width: 18px;
7 | height: 18px;
8 | }
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/quickphrase-editor.json:
--------------------------------------------------------------------------------
1 | {
2 | "addon": "quickphrase",
3 | "files": ["editor"]
4 | }
5 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/quickphrase-editor.json:
--------------------------------------------------------------------------------
1 | {
2 | "addon": "quickphrase",
3 | "files": ["editor"]
4 | }
5 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/platforminputcontext/fcitx5.json.in:
--------------------------------------------------------------------------------
1 | {
2 | "Keys": [
3 | @FCITX5_QT_EXTRA_PLUGIN_NAME@
4 | "fcitx5"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/platforminputcontext/fcitx5.json.in:
--------------------------------------------------------------------------------
1 | {
2 | "Keys": [
3 | @FCITX5_QT_EXTRA_PLUGIN_NAME@
4 | "fcitx5"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/3rdparty/rang/cmake/rang-config.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | include(${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake)
4 | check_required_components(rang)
--------------------------------------------------------------------------------
/src/qt/resources/assfonts-gui.qrc:
--------------------------------------------------------------------------------
1 |
2 |
3 | style.qss
4 | icon.png
5 |
6 |
--------------------------------------------------------------------------------
/src/qt/resources/assfonts-gui.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Categories=Utility;
3 | Exec=assfonts-gui
4 | GenericName=assfonts-gui
5 | Icon=assfonts-gui
6 | Name=assfonts-gui
7 | Terminal=false
8 | Type=Application
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | set(NOWIDE_INSTALL OFF)
4 | set(NOWIDE_WERROR OFF)
5 | set(BUILD_TESTING OFF)
6 |
7 | add_subdirectory(${PROJECT_SOURCE_DIR}/3rdparty/nowide)
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | find_package(Qt4 ${REQUIRED_QT4_VERSION} REQUIRED)
2 |
3 | add_subdirectory(dbusaddons)
4 | add_subdirectory(inputcontext)
5 |
6 | if(NOT BUILD_ONLY_PLUGIN)
7 | add_subdirectory(immodule-probing)
8 | endif()
9 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/test/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | if (TARGET Fcitx5Qt5::WidgetsAddons)
2 |
3 | add_executable(testkeytrans testkeytrans.cpp)
4 | target_link_libraries(testkeytrans Fcitx5Qt5::WidgetsAddons)
5 | add_test(testkeytrans testkeytrans)
6 |
7 | endif()
8 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/dbusaddons/Fcitx5Qt4DBusAddonsConfig.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | include(CMakeFindDependencyMacro)
4 |
5 | find_dependency(Qt4 @REQUIRED_QT4_VERSION@)
6 |
7 | include("${CMAKE_CURRENT_LIST_DIR}/Fcitx5Qt4DBusAddonsTargets.cmake")
8 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/immodule-probing/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_executable(fcitx5-qt4-immodule-probing main.cpp)
2 | target_link_libraries(fcitx5-qt4-immodule-probing Qt4::QtGui)
3 |
4 | install(TARGETS fcitx5-qt4-immodule-probing DESTINATION "${CMAKE_INSTALL_BINDIR}")
--------------------------------------------------------------------------------
/3rdparty/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | add_subdirectory(compact_enc_det EXCLUDE_FROM_ALL)
4 | add_subdirectory(asshdr EXCLUDE_FROM_ALL)
5 | add_subdirectory(rang EXCLUDE_FROM_ALL)
6 |
7 | if(LINUX)
8 | add_subdirectory(fcitx5-qt EXCLUDE_FROM_ALL)
9 | endif()
--------------------------------------------------------------------------------
/3rdparty/rang/cmake/rang.pc.in:
--------------------------------------------------------------------------------
1 | prefix=@CMAKE_INSTALL_PREFIX@
2 | exec_prefix=@CMAKE_INSTALL_PREFIX@
3 | includedir=@includedir_for_pc_file@
4 |
5 | Name: rang
6 | Description: A Minimal, Header only Modern c++ library for terminal goodies
7 | Version: @PROJECT_VERSION@
8 | Cflags: -I${includedir}
9 |
--------------------------------------------------------------------------------
/3rdparty/rang/test_package/meson.build:
--------------------------------------------------------------------------------
1 | project('rang', 'cpp', version : '3.2.0',
2 | default_options : ['cpp_std=c++11'])
3 |
4 | inc = include_directories('include')
5 |
6 | visualTest = executable('visualTest', 'visualTest.cpp', include_directories : inc)
7 | test('visualTest', visualTest)
8 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/dbusaddons/Fcitx5Qt5DBusAddonsConfig.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | include(CMakeFindDependencyMacro)
4 |
5 | find_dependency(Qt5Core @REQUIRED_QT5_VERSION@)
6 | find_dependency(Qt5DBus @REQUIRED_QT5_VERSION@)
7 |
8 | include("${CMAKE_CURRENT_LIST_DIR}/Fcitx5Qt5DBusAddonsTargets.cmake")
9 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/dbusaddons/Fcitx5Qt6DBusAddonsConfig.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | include(CMakeFindDependencyMacro)
4 |
5 | find_dependency(Qt6Core @REQUIRED_QT6_VERSION@)
6 | find_dependency(Qt6DBus @REQUIRED_QT6_VERSION@)
7 |
8 | include("${CMAKE_CURRENT_LIST_DIR}/Fcitx5Qt6DBusAddonsTargets.cmake")
9 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/immodule-probing/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_executable(fcitx5-qt5-immodule-probing main.cpp)
2 | target_include_directories(fcitx5-qt5-immodule-probing PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
3 | target_link_libraries(fcitx5-qt5-immodule-probing Qt5::Gui)
4 |
5 | install(TARGETS fcitx5-qt5-immodule-probing DESTINATION "${CMAKE_INSTALL_BINDIR}")
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/immodule-probing/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | add_executable(fcitx5-qt6-immodule-probing main.cpp)
2 | target_include_directories(fcitx5-qt6-immodule-probing PRIVATE ${Qt6Gui_PRIVATE_INCLUDE_DIRS})
3 | target_link_libraries(fcitx5-qt6-immodule-probing Qt6::Gui)
4 |
5 | install(TARGETS fcitx5-qt6-immodule-probing DESTINATION "${CMAKE_INSTALL_BINDIR}")
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/config/check_attribute_init_priority.cpp:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2021 Alexander Grund
2 | //
3 | // Distributed under the Boost Software License, Version 1.0.
4 | // https://www.boost.org/LICENSE_1_0.txt
5 |
6 | class Foo
7 | {};
8 |
9 | Foo foo __attribute__((init_priority(101)));
10 |
11 | int main()
12 | {
13 | return 0;
14 | }
15 |
--------------------------------------------------------------------------------
/3rdparty/rang/test_package/visualTest.cpp:
--------------------------------------------------------------------------------
1 | #include "rang.hpp"
2 | #include
3 |
4 | using namespace std;
5 | using namespace rang;
6 |
7 | int main()
8 | {
9 | cout << endl
10 | << style::reset << bg::green << fg::gray << style::bold
11 | << " Rang works! " << bg::reset << fg::reset << style::reset << '\n'
12 | << endl;
13 | }
14 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/guiwrapper/org.fcitx.fcitx5-qt5-gui-wrapper.desktop.in.in:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Fcitx 5 Qt5 Gui Wrapper
3 | GenericName=Input Method Configuration helper
4 | Comment=Load configuration plugin for Fcitx Addon
5 | Icon=fcitx
6 | Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/fcitx5-qt5-gui-wrapper
7 | Type=Application
8 | Categories=Settings;
9 | NoDisplay=true
10 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/guiwrapper/org.fcitx.fcitx5-qt6-gui-wrapper.desktop.in.in:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Fcitx 5 Qt6 Gui Wrapper
3 | GenericName=Input Method Configuration helper
4 | Comment=Load configuration plugin for Fcitx Addon
5 | Icon=fcitx
6 | Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/fcitx5-qt6-gui-wrapper
7 | Type=Application
8 | Categories=Settings;
9 | NoDisplay=true
10 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/dbusaddons/gen_dbus.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | qdbusxml2cpp-qt4 -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt4dbusaddons_export.h
4 | qdbusxml2cpp-qt4 -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt4dbusaddons_export.h
5 |
--------------------------------------------------------------------------------
/3rdparty/rang/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_style = space
6 | indent_size = 4
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.{html,ejs,css,sass,scss,js,yml}]
13 | indent_size = 2
14 |
15 | [*.md]
16 | trim_trailing_whitespace = false
17 |
18 | [{package.json,.travis.yml}]
19 | indent_size = 2
20 |
--------------------------------------------------------------------------------
/3rdparty/rang/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files
2 | *.slo
3 | *.lo
4 | *.o
5 | *.obj
6 |
7 | # Precompiled Headers
8 | *.gch
9 | *.pch
10 |
11 | # Compiled Dynamic libraries
12 | *.so
13 | *.dylib
14 | *.dll
15 |
16 | # Fortran module files
17 | *.mod
18 |
19 | # Compiled Static libraries
20 | *.lai
21 | *.la
22 | *.a
23 | *.lib
24 |
25 | # Executables
26 | *.exe
27 | *.out
28 | *.app
29 |
30 | build/
31 | .vscode/
32 |
--------------------------------------------------------------------------------
/3rdparty/rang/test/meson.build:
--------------------------------------------------------------------------------
1 | mainTest = executable('mainTest', 'test.cpp', include_directories : inc,
2 | dependencies : doctest)
3 | test('mainTest', mainTest)
4 |
5 | colorTest = executable('colorTest', 'colorTest.cpp', include_directories : inc)
6 | test('colorTest', colorTest)
7 |
8 | envTermMissing = executable('envTermMissing', 'envTermMissing.cpp', include_directories : inc)
9 | test('envTermMissing', envTermMissing)
10 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/inputcontext/qtkey.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef _PLATFORMINPUTCONTEXT_QTKEY_H_
9 | #define _PLATFORMINPUTCONTEXT_QTKEY_H_
10 |
11 | #include
12 | #include
13 |
14 | int keysymToQtKey(uint32_t keysym, const QString &text);
15 |
16 | #endif // _PLATFORMINPUTCONTEXT_QTKEY_H_
17 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/platforminputcontext/font.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2020~2020 CSSlayer
3 | *
4 | * SPDX-License-Identifier: GPL-2.0-or-later
5 | *
6 | */
7 | #ifndef _CONFIGLIB_FONT_H_
8 | #define _CONFIGLIB_FONT_H_
9 |
10 | #include
11 | #include
12 |
13 | namespace fcitx {
14 |
15 | QFont parseFont(const QString &str);
16 |
17 | } // namespace fcitx
18 |
19 | #endif // _CONFIGLIB_FONT_H_
20 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/platforminputcontext/qtkey.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef _PLATFORMINPUTCONTEXT_QTKEY_H_
9 | #define _PLATFORMINPUTCONTEXT_QTKEY_H_
10 |
11 | #include
12 | #include
13 |
14 | int keysymToQtKey(uint32_t keysym, const QString &text);
15 |
16 | #endif // _PLATFORMINPUTCONTEXT_QTKEY_H_
17 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/platforminputcontext/font.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2020~2020 CSSlayer
3 | *
4 | * SPDX-License-Identifier: GPL-2.0-or-later
5 | *
6 | */
7 | #ifndef _CONFIGLIB_FONT_H_
8 | #define _CONFIGLIB_FONT_H_
9 |
10 | #include
11 | #include
12 |
13 | namespace fcitx {
14 |
15 | QFont parseFont(const QString &str);
16 |
17 | } // namespace fcitx
18 |
19 | #endif // _CONFIGLIB_FONT_H_
20 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/platforminputcontext/qtkey.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef _PLATFORMINPUTCONTEXT_QTKEY_H_
9 | #define _PLATFORMINPUTCONTEXT_QTKEY_H_
10 |
11 | #include
12 | #include
13 |
14 | int keysymToQtKey(uint32_t keysym, const QString &text);
15 |
16 | #endif // _PLATFORMINPUTCONTEXT_QTKEY_H_
17 |
--------------------------------------------------------------------------------
/3rdparty/rang/test_package/conanfile.py:
--------------------------------------------------------------------------------
1 | from conans import ConanFile, Meson
2 | import os
3 |
4 | class RangConan(ConanFile):
5 | generators = "pkg_config"
6 | exports_sources = "*"
7 |
8 | def build(self):
9 | meson = Meson(self)
10 | meson.configure()
11 | meson.build()
12 |
13 | def imports(self):
14 | self.copy("*.hpp")
15 |
16 | def test(self):
17 | self.run(".%svisualTest" % os.sep)
18 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/widgetsaddons/fcitxqtconfiguiplugin.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | */
6 |
7 | #include "fcitxqtconfiguiplugin.h"
8 |
9 | namespace fcitx {
10 |
11 | FcitxQtConfigUIPlugin::FcitxQtConfigUIPlugin(QObject *parent)
12 | : QObject(parent) {}
13 |
14 | FcitxQtConfigUIPlugin::~FcitxQtConfigUIPlugin() {}
15 | } // namespace fcitx
16 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/widgetsaddons/fcitxqtconfiguiplugin.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | */
6 |
7 | #include "fcitxqtconfiguiplugin.h"
8 |
9 | namespace fcitx {
10 |
11 | FcitxQtConfigUIPlugin::FcitxQtConfigUIPlugin(QObject *parent)
12 | : QObject(parent) {}
13 |
14 | FcitxQtConfigUIPlugin::~FcitxQtConfigUIPlugin() {}
15 | } // namespace fcitx
16 |
--------------------------------------------------------------------------------
/src/qt/resources/assfonts-gui.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | true
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/test/cmake_test/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | # Copyright 2021 Alexander Grund
2 | #
3 | # Distributed under the Nowide Software License, Version 1.0.
4 | # https://www.boost.org/LICENSE_1_0.txt
5 |
6 | cmake_minimum_required(VERSION 3.5...3.16)
7 |
8 | project(cmake_subdir_test LANGUAGES CXX)
9 |
10 | find_package(nowide 11 REQUIRED)
11 |
12 | add_executable(main main.cpp)
13 | target_link_libraries(main nowide::nowide)
14 |
15 | enable_testing()
16 | add_test(NAME main COMMAND main)
17 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/config/check_movable_fstreams.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2020 Alexander Grund
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #include
8 | #include
9 |
10 | /// Check that the stdlib supports swapping and moving fstreams
11 | /// (and by extension all other streams and streambufs)
12 | void check()
13 | {
14 | std::fstream s1, s2;
15 | s1.swap(s2);
16 | s2 = std::move(s1);
17 | }
18 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/NEWS:
--------------------------------------------------------------------------------
1 | Overview of changes leading to v0.1.2
2 | Thursday, November 23, 2023
3 | ====================================
4 | - Fix bug: crash when recolorize
5 |
6 |
7 | Overview of changes leading to v0.1.1
8 | Wednesday, Janurary 4, 2023
9 | ====================================
10 | - Fix bugs of "Bt2100Oetf"
11 | - Add boundry check for -b option
12 |
13 |
14 | Overview of changes leading to v0.1.0
15 | Tuesday, Janurary 3, 2023
16 | ====================================
17 | - First time upload
18 | - Release x64 executable program
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/test/cmake_test/main.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2019-2021 Alexander Grund
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #include
8 | #include
9 |
10 | int main(int argc, char** argv, char** env)
11 | {
12 | nowide::args _(argc, argv, env);
13 | if(argc < 1)
14 | return 1;
15 | if(nowide::narrow(nowide::widen(argv[0])) != argv[0])
16 | return 1;
17 | return 0;
18 | }
19 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/widgetsaddons/fcitxqtconfiguiwidget.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | */
6 |
7 | #include "fcitxqtconfiguiwidget.h"
8 |
9 | namespace fcitx {
10 |
11 | FcitxQtConfigUIWidget::FcitxQtConfigUIWidget(QWidget *parent)
12 | : QWidget(parent) {}
13 |
14 | QString FcitxQtConfigUIWidget::icon() { return QLatin1String("fcitx"); }
15 |
16 | bool FcitxQtConfigUIWidget::asyncSave() { return false; }
17 | } // namespace fcitx
18 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/widgetsaddons/fcitxqtconfiguiwidget.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | */
6 |
7 | #include "fcitxqtconfiguiwidget.h"
8 |
9 | namespace fcitx {
10 |
11 | FcitxQtConfigUIWidget::FcitxQtConfigUIWidget(QWidget *parent)
12 | : QWidget(parent) {}
13 |
14 | QString FcitxQtConfigUIWidget::icon() { return QLatin1String("fcitx"); }
15 |
16 | bool FcitxQtConfigUIWidget::asyncSave() { return false; }
17 | } // namespace fcitx
18 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | if(NOT BUILD_ONLY_PLUGIN)
2 | set(REQUIRED_QT5_VERSION 5.7.0)
3 | endif()
4 |
5 | find_package(Qt5 ${REQUIRED_QT5_VERSION} CONFIG REQUIRED Core DBus Widgets)
6 | find_package(Qt5Gui ${REQUIRED_QT5_VERSION} REQUIRED Private)
7 |
8 | add_subdirectory(dbusaddons)
9 | add_subdirectory(platforminputcontext)
10 |
11 | if(NOT BUILD_ONLY_PLUGIN)
12 | add_subdirectory(guiwrapper)
13 | add_subdirectory(widgetsaddons)
14 | add_subdirectory(quickphrase-editor)
15 | add_subdirectory(immodule-probing)
16 | endif()
17 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #include "main.h"
8 | #include "editor.h"
9 | #include "model.h"
10 |
11 | QuickPhraseEditorPlugin::QuickPhraseEditorPlugin(QObject *parent)
12 | : fcitx::FcitxQtConfigUIPlugin(parent) {}
13 |
14 | fcitx::FcitxQtConfigUIWidget *
15 | QuickPhraseEditorPlugin::create(const QString &key) {
16 | Q_UNUSED(key);
17 | return new fcitx::ListEditor;
18 | }
19 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #include "main.h"
8 | #include "editor.h"
9 | #include "model.h"
10 |
11 | QuickPhraseEditorPlugin::QuickPhraseEditorPlugin(QObject *parent)
12 | : fcitx::FcitxQtConfigUIPlugin(parent) {}
13 |
14 | fcitx::FcitxQtConfigUIWidget *
15 | QuickPhraseEditorPlugin::create(const QString &key) {
16 | Q_UNUSED(key);
17 | return new fcitx::ListEditor;
18 | }
19 |
--------------------------------------------------------------------------------
/3rdparty/rang/meson.build:
--------------------------------------------------------------------------------
1 | project('rang', 'cpp', version : '3.2.0',
2 | default_options : ['cpp_std=c++11'])
3 |
4 | inc = include_directories('include')
5 |
6 | rang_dep = declare_dependency(include_directories:inc)
7 |
8 | doctest = dependency('doctest', required: false)
9 | if doctest.found()
10 | subdir('test')
11 | endif
12 |
13 | cppcheck = find_program('cppcheck', required: false)
14 | if cppcheck.found()
15 | run_target('cppcheck', command : ['cppcheck', '--project=' +
16 | join_paths(meson.build_root(), 'compile_commands.json')])
17 | endif
18 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/guiwrapper/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | * SPDX-FileCopyrightText: 2017~2017 xzhao
4 | *
5 | * SPDX-License-Identifier: LGPL-2.1-or-later
6 | */
7 |
8 | #include "wrapperapp.h"
9 | #include
10 | #include
11 |
12 | int main(int argc, char *argv[]) {
13 | setlocale(LC_ALL, "");
14 | QGuiApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
15 | fcitx::WrapperApp app(argc, argv);
16 | app.init();
17 | return app.exec();
18 | }
19 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/guiwrapper/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | * SPDX-FileCopyrightText: 2017~2017 xzhao
4 | *
5 | * SPDX-License-Identifier: LGPL-2.1-or-later
6 | */
7 |
8 | #include "wrapperapp.h"
9 | #include
10 | #include
11 |
12 | int main(int argc, char *argv[]) {
13 | setlocale(LC_ALL, "");
14 | QGuiApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
15 | fcitx::WrapperApp app(argc, argv);
16 | app.init();
17 | return app.exec();
18 | }
19 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/dbusaddons/gen_dbus.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | qdbusxml2cpp-qt5 -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
4 | qdbusxml2cpp-qt5 -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
5 | qdbusxml2cpp-qt5 -N -p fcitxqtcontrollerproxy -c FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
6 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/dbusaddons/gen_dbus.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | qdbusxml2cpp-qt6 -N -p fcitxqtinputcontextproxyimpl -c FcitxQtInputContextProxyImpl interfaces/org.fcitx.Fcitx.InputContext1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
4 | qdbusxml2cpp-qt6 -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
5 | qdbusxml2cpp-qt6 -N -p fcitxqtcontrollerproxy -c FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i fcitxqtdbustypes.h -i fcitx5qt6dbusaddons_export.h
6 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/dbusaddons/interfaces/org.fcitx.Fcitx.InputMethod1.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/dbusaddons/interfaces/org.fcitx.Fcitx.InputMethod1.xml:
--------------------------------------------------------------------------------
1 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/include/nowide/detail/utf.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2020 Alexander Grund
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #ifndef NOWIDE_DETAIL_UTF_HPP_INCLUDED
8 | #define NOWIDE_DETAIL_UTF_HPP_INCLUDED
9 |
10 | #include
11 |
12 | // Legacy compatibility header only. Include instead
13 |
14 | namespace nowide {
15 | namespace detail {
16 | namespace utf = nowide::utf;
17 | } // namespace detail
18 | } // namespace nowide
19 |
20 | #endif
21 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/include/nowide/replacement.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2018 Artyom Beilis (Tonkikh)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #ifndef NOWIDE_REPLACEMENT_HPP_INCLUDED
8 | #define NOWIDE_REPLACEMENT_HPP_INCLUDED
9 |
10 | /// @file
11 |
12 | /// \def NOWIDE_REPLACEMENT_CHARACTER
13 | /// Unicode character to be used to replace invalid UTF-8 sequences
14 | #ifndef NOWIDE_REPLACEMENT_CHARACTER
15 | #define NOWIDE_REPLACEMENT_CHARACTER 0xFFFD
16 | #endif
17 |
18 | #endif // boost/nowide/replacement.hpp
19 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/lib/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | set(THIRD_PARTY_LIBS PCRE2::8BIT)
4 |
5 | set(TARGET_SOURCES ass_recolorize.cc)
6 |
7 | set(TARGET_NAME libasshdr)
8 |
9 | add_library(${TARGET_NAME} STATIC)
10 |
11 | target_sources(${TARGET_NAME} PRIVATE ${TARGET_SOURCES})
12 |
13 | target_link_libraries(${TARGET_NAME} PRIVATE ${THIRD_PARTY_LIBS})
14 |
15 | target_include_directories(${TARGET_NAME} PUBLIC ${PROJECT_SOURCE_DIR}/include)
16 |
17 | target_compile_features(${TARGET_NAME} PRIVATE ${CXX_STD_VER})
18 |
19 | set_target_properties(${TARGET_NAME} PROPERTIES PREFIX "")
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/immodule-probing/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2023~2023 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #include
8 | #include
9 | #include
10 |
11 | int main(int argc, char *argv[]) {
12 | QApplication app(argc, argv);
13 | auto *inputContext = app.inputContext();
14 | std::cout << "QT_IM_MODULE=";
15 | if (inputContext) {
16 | std::cout << inputContext->identifierName().toUtf8().constData();
17 | }
18 | std::cout << std::endl;
19 | return 0;
20 | }
21 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | project (asshdr CXX)
4 |
5 | set(CMAKE_INSTALL_PREFIX ${PROJECT_SOURCE_DIR}/install)
6 |
7 | add_subdirectory(${PROJECT_SOURCE_DIR}/3rdparty)
8 |
9 | configure_file(${PROJECT_SOURCE_DIR}/src/ver.h.in ${PROJECT_BINARY_DIR}/src/ver.h)
10 |
11 | find_package(pcre2 CONFIG REQUIRED)
12 | find_package(CLI11 CONFIG REQUIRED)
13 |
14 | set(THIRD_PARTY_INCLUDE_DIRS ${PCRE2_INCLUDE_DIR}
15 | ${CLI11_INCLUDE_DIR})
16 |
17 | set(CXX_STD_VER cxx_std_17)
18 |
19 | add_subdirectory(${PROJECT_SOURCE_DIR}/lib)
20 | add_subdirectory(${PROJECT_SOURCE_DIR}/src)
--------------------------------------------------------------------------------
/3rdparty/rang/test/envTermMissing.cpp:
--------------------------------------------------------------------------------
1 | #include "rang.hpp"
2 | #include
3 |
4 | using std::cout;
5 | using std::endl;
6 | using std::getenv;
7 |
8 | int main()
9 | {
10 | #if defined(WIN32) || defined(_WIN32) || defined(_WIN64)
11 | return 0;
12 | #else
13 | const auto TERM = getenv("TERM");
14 | if (TERM != nullptr) {
15 | cout << "Unsetting $PATH: " << TERM << '\n';
16 | unsetenv("TERM");
17 | }
18 | cout << rang::fg::green << "===NO COLORS AS FALLBACK===" << endl;
19 | if (TERM != nullptr) {
20 | cout << "Setting $PATH: " << TERM << '\n';
21 | setenv("TERM", TERM, 1);
22 | }
23 | #endif
24 | }
25 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/widgetsaddons/Fcitx5Qt5WidgetsAddonsConfig.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | include(CMakeFindDependencyMacro)
4 |
5 | find_dependency(Fcitx5Utils)
6 | find_dependency(Qt5Core @REQUIRED_QT5_VERSION@)
7 | find_dependency(Qt5Gui @REQUIRED_QT5_VERSION@)
8 | find_dependency(Qt5Widgets @REQUIRED_QT5_VERSION@)
9 |
10 | include("${CMAKE_CURRENT_LIST_DIR}/Fcitx5Qt5WidgetsAddonsTargets.cmake")
11 |
12 | if(NOT TARGET Fcitx5Qt5::gui-wrapper)
13 | add_executable(Fcitx5Qt5::gui-wrapper IMPORTED)
14 | set_target_properties(Fcitx5Qt5::gui-wrapper PROPERTIES
15 | IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_LIBEXECDIR@/fcitx5-qt5-gui-wrapper")
16 | endif()
17 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/CMakeLists.txt:
--------------------------------------------------------------------------------
1 |
2 | find_package(Qt6 ${REQUIRED_QT6_VERSION} CONFIG REQUIRED Core DBus Widgets)
3 | find_package(Qt6Gui ${REQUIRED_QT6_VERSION} REQUIRED Private)
4 | if (ENABLE_QT6_WAYLAND_WORKAROUND)
5 | find_package(Qt6WaylandClient ${REQUIRED_QT6_VERSION} REQUIRED Private)
6 | find_package(Qt6WaylandGlobalPrivate ${REQUIRED_QT6_VERSION} REQUIRED)
7 | endif()
8 |
9 | add_subdirectory(dbusaddons)
10 | add_subdirectory(platforminputcontext)
11 |
12 | if(NOT BUILD_ONLY_PLUGIN)
13 | add_subdirectory(guiwrapper)
14 | add_subdirectory(widgetsaddons)
15 | add_subdirectory(quickphrase-editor)
16 | add_subdirectory(immodule-probing)
17 | endif()
18 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/widgetsaddons/Fcitx5Qt6WidgetsAddonsConfig.cmake.in:
--------------------------------------------------------------------------------
1 | @PACKAGE_INIT@
2 |
3 | include(CMakeFindDependencyMacro)
4 |
5 | find_dependency(Fcitx5Utils)
6 | find_dependency(Qt6Core @REQUIRED_QT6_VERSION@)
7 | find_dependency(Qt6Gui @REQUIRED_QT6_VERSION@)
8 | find_dependency(Qt6Widgets @REQUIRED_QT6_VERSION@)
9 |
10 | include("${CMAKE_CURRENT_LIST_DIR}/Fcitx5Qt6WidgetsAddonsTargets.cmake")
11 |
12 | if(NOT TARGET Fcitx5Qt6::gui-wrapper)
13 | add_executable(Fcitx5Qt6::gui-wrapper IMPORTED)
14 | set_target_properties(Fcitx5Qt6::gui-wrapper PROPERTIES
15 | IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_LIBEXECDIR@/fcitx5-qt6-gui-wrapper")
16 | endif()
17 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/include/nowide/detail/convert.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2020 Alexander Grund
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #ifndef NOWIDE_DETAIL_CONVERT_HPP_INCLUDED
8 | #define NOWIDE_DETAIL_CONVERT_HPP_INCLUDED
9 |
10 | #include
11 |
12 | // Legacy compatibility header only. Include instead
13 |
14 | namespace nowide {
15 | namespace detail {
16 | using nowide::utf::convert_buffer;
17 | using nowide::utf::convert_string;
18 | using nowide::utf::strlen;
19 | } // namespace detail
20 | } // namespace nowide
21 |
22 | #endif
23 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/batchdialog.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2013~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _QUICKPHRASE_EDITOR_BATCHDIALOG_H_
8 | #define _QUICKPHRASE_EDITOR_BATCHDIALOG_H_
9 |
10 | #include "ui_batchdialog.h"
11 | #include
12 |
13 | namespace fcitx {
14 | class BatchDialog : public QDialog, public Ui::BatchDialog {
15 | Q_OBJECT
16 | public:
17 | explicit BatchDialog(QWidget *parent = 0);
18 | virtual ~BatchDialog();
19 |
20 | QString text() const;
21 | void setText(const QString &s);
22 | };
23 | } // namespace fcitx
24 |
25 | #endif // _QUICKPHRASE_EDITOR_BATCHDIALOG_H_
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/batchdialog.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2013~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _QUICKPHRASE_EDITOR_BATCHDIALOG_H_
8 | #define _QUICKPHRASE_EDITOR_BATCHDIALOG_H_
9 |
10 | #include "ui_batchdialog.h"
11 | #include
12 |
13 | namespace fcitx {
14 | class BatchDialog : public QDialog, public Ui::BatchDialog {
15 | Q_OBJECT
16 | public:
17 | explicit BatchDialog(QWidget *parent = 0);
18 | virtual ~BatchDialog();
19 |
20 | QString text() const;
21 | void setText(const QString &s);
22 | };
23 | } // namespace fcitx
24 |
25 | #endif // _QUICKPHRASE_EDITOR_BATCHDIALOG_H_
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/README.md:
--------------------------------------------------------------------------------
1 | Fcitx Qt Library
2 | ================================================
3 | [](https://jenkins.fcitx-im.org/job/fcitx5-qt/)
4 |
5 | [](https://scan.coverity.com/projects/fcitx-fcitx5-qt)
6 |
7 | Files under qt4/ which include Fcitx5Qt4DBusAddons Library and Input context plugin are released under BSD (See COPYING.BSD).
8 | Files under qt5/dbusaddons/ and qt5/platforminputcontext, which include Fcitx5Qt5DBusAddons Library and Qt5 Platform input context plugin, are released under BSD.
9 | All other files are released under LGPL2.1+.
10 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/platforminputcontext/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #include "main.h"
9 |
10 | fcitx::QFcitxPlatformInputContext *
11 | QFcitx5PlatformInputContextPlugin::create(const QString &system,
12 | const QStringList ¶mList) {
13 | Q_UNUSED(paramList);
14 | if (system.compare(system, QStringLiteral("fcitx5"), Qt::CaseInsensitive) ==
15 | 0 ||
16 | system.compare(system, QStringLiteral("fcitx"), Qt::CaseInsensitive) ==
17 | 0) {
18 | return new fcitx::QFcitxPlatformInputContext;
19 | }
20 | return 0;
21 | }
22 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/main.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _QUICKPHRASE_EDITOR_MAIN_H_
8 | #define _QUICKPHRASE_EDITOR_MAIN_H_
9 |
10 | #include "fcitxqtconfiguiplugin.h"
11 |
12 | class QuickPhraseEditorPlugin : public fcitx::FcitxQtConfigUIPlugin {
13 | Q_OBJECT
14 | public:
15 | Q_PLUGIN_METADATA(IID FcitxQtConfigUIFactoryInterface_iid FILE
16 | "quickphrase-editor.json")
17 | explicit QuickPhraseEditorPlugin(QObject *parent = 0);
18 | fcitx::FcitxQtConfigUIWidget *create(const QString &key) override;
19 | };
20 |
21 | #endif // _QUICKPHRASE_EDITOR_MAIN_H_
22 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/platforminputcontext/main.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #include "main.h"
9 |
10 | fcitx::QFcitxPlatformInputContext *
11 | QFcitx5PlatformInputContextPlugin::create(const QString &system,
12 | const QStringList ¶mList) {
13 | Q_UNUSED(paramList);
14 | if (system.compare(system, QStringLiteral("fcitx5"), Qt::CaseInsensitive) ==
15 | 0 ||
16 | system.compare(system, QStringLiteral("fcitx"), Qt::CaseInsensitive) ==
17 | 0) {
18 | return new fcitx::QFcitxPlatformInputContext;
19 | }
20 | return 0;
21 | }
22 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/main.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _QUICKPHRASE_EDITOR_MAIN_H_
8 | #define _QUICKPHRASE_EDITOR_MAIN_H_
9 |
10 | #include "fcitxqtconfiguiplugin.h"
11 |
12 | class QuickPhraseEditorPlugin : public fcitx::FcitxQtConfigUIPlugin {
13 | Q_OBJECT
14 | public:
15 | Q_PLUGIN_METADATA(IID FcitxQtConfigUIFactoryInterface_iid FILE
16 | "quickphrase-editor.json")
17 | explicit QuickPhraseEditorPlugin(QObject *parent = 0);
18 | fcitx::FcitxQtConfigUIWidget *create(const QString &key) override;
19 | };
20 |
21 | #endif // _QUICKPHRASE_EDITOR_MAIN_H_
22 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/config/check_lfs_support.cpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2020 Alexander Grund
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #define _LARGEFILE_SOURCE
8 | #ifndef _FILE_OFFSET_BITS
9 | #define _FILE_OFFSET_BITS 64
10 | #endif
11 |
12 | #include
13 |
14 | void check(FILE* f)
15 | {
16 | #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
17 | (void)_fseeki64(f, 0, SEEK_CUR);
18 | (void)_ftelli64(f);
19 | #else
20 | // Check that those functions and off_t are available
21 | (void)fseeko(f, off_t(0), SEEK_CUR);
22 | (void)ftello(f);
23 | #endif
24 | }
25 |
26 | int main()
27 | {
28 | check(nullptr);
29 | }
30 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/batchdialog.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2013~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 |
8 | #include "batchdialog.h"
9 | #include "ui_batchdialog.h"
10 | #include
11 | #include
12 |
13 | namespace fcitx {
14 | BatchDialog::BatchDialog(QWidget *parent) : QDialog(parent) {
15 | setupUi(this);
16 | iconLabel->setPixmap(QIcon::fromTheme("dialog-information").pixmap(22, 22));
17 | }
18 |
19 | BatchDialog::~BatchDialog() {}
20 |
21 | void BatchDialog::setText(const QString &s) { plainTextEdit->setPlainText(s); }
22 |
23 | QString BatchDialog::text() const { return plainTextEdit->toPlainText(); }
24 | } // namespace fcitx
25 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/batchdialog.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2013~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 |
8 | #include "batchdialog.h"
9 | #include "ui_batchdialog.h"
10 | #include
11 | #include
12 |
13 | namespace fcitx {
14 | BatchDialog::BatchDialog(QWidget *parent) : QDialog(parent) {
15 | setupUi(this);
16 | iconLabel->setPixmap(QIcon::fromTheme("dialog-information").pixmap(22, 22));
17 | }
18 |
19 | BatchDialog::~BatchDialog() {}
20 |
21 | void BatchDialog::setText(const QString &s) { plainTextEdit->setPlainText(s); }
22 |
23 | QString BatchDialog::text() const { return plainTextEdit->toPlainText(); }
24 | } // namespace fcitx
25 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/platforminputcontext/main.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef MAIN_H
9 | #define MAIN_H
10 |
11 | #include
12 | #include
13 |
14 | #include "qfcitxplatforminputcontext.h"
15 |
16 | class QFcitx5PlatformInputContextPlugin : public QPlatformInputContextPlugin {
17 | Q_OBJECT
18 | Q_PLUGIN_METADATA(IID QPlatformInputContextFactoryInterface_iid FILE
19 | FCITX_PLUGIN_DATA_FILE_PATH)
20 | public:
21 | fcitx::QFcitxPlatformInputContext *
22 | create(const QString &system, const QStringList ¶mList) override;
23 | };
24 |
25 | #endif // MAIN_H
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/editordialog.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 |
8 | #include "editordialog.h"
9 | #include
10 |
11 | namespace fcitx {
12 | EditorDialog::EditorDialog(QWidget *parent) : QDialog(parent) { setupUi(this); }
13 |
14 | EditorDialog::~EditorDialog() {}
15 |
16 | void EditorDialog::setKey(const QString &s) { keyLineEdit->setText(s); }
17 |
18 | void EditorDialog::setValue(const QString &s) { valueLineEdit->setText(s); }
19 |
20 | QString EditorDialog::key() const { return keyLineEdit->text(); }
21 |
22 | QString EditorDialog::value() const { return valueLineEdit->text(); }
23 | } // namespace fcitx
24 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/platforminputcontext/main.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef MAIN_H
9 | #define MAIN_H
10 |
11 | #include
12 | #include
13 |
14 | #include "qfcitxplatforminputcontext.h"
15 |
16 | class QFcitx5PlatformInputContextPlugin : public QPlatformInputContextPlugin {
17 | Q_OBJECT
18 | Q_PLUGIN_METADATA(IID QPlatformInputContextFactoryInterface_iid FILE
19 | FCITX_PLUGIN_DATA_FILE_PATH)
20 | public:
21 | fcitx::QFcitxPlatformInputContext *
22 | create(const QString &system, const QStringList ¶mList) override;
23 | };
24 |
25 | #endif // MAIN_H
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/editordialog.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 |
8 | #include "editordialog.h"
9 | #include
10 |
11 | namespace fcitx {
12 | EditorDialog::EditorDialog(QWidget *parent) : QDialog(parent) { setupUi(this); }
13 |
14 | EditorDialog::~EditorDialog() {}
15 |
16 | void EditorDialog::setKey(const QString &s) { keyLineEdit->setText(s); }
17 |
18 | void EditorDialog::setValue(const QString &s) { valueLineEdit->setText(s); }
19 |
20 | QString EditorDialog::key() const { return keyLineEdit->text(); }
21 |
22 | QString EditorDialog::value() const { return valueLineEdit->text(); }
23 | } // namespace fcitx
24 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/guiwrapper/mainwindow.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindow
4 |
5 |
6 |
7 | 0
8 | 0
9 | 400
10 | 300
11 |
12 |
13 |
14 | -
15 |
16 |
17 | QDialogButtonBox::Apply|QDialogButtonBox::Close|QDialogButtonBox::Ok|QDialogButtonBox::Reset
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/guiwrapper/mainwindow.ui:
--------------------------------------------------------------------------------
1 |
2 |
3 | MainWindow
4 |
5 |
6 |
7 | 0
8 | 0
9 | 400
10 | 300
11 |
12 |
13 |
14 | -
15 |
16 |
17 | QDialogButtonBox::Apply|QDialogButtonBox::Close|QDialogButtonBox::Ok|QDialogButtonBox::Reset
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | find_package(Qt6Concurrent REQUIRED)
2 |
3 | set(QUICKPHRASE_EDITOR_SRCS
4 | main.cpp
5 | model.cpp
6 | editor.cpp
7 | editordialog.cpp
8 | batchdialog.cpp
9 | filelistmodel.cpp
10 | )
11 |
12 | add_library(fcitx-quickphrase-editor5
13 | MODULE ${QUICKPHRASE_EDITOR_SRCS})
14 | set_target_properties(fcitx-quickphrase-editor5 PROPERTIES
15 | AUTOMOC TRUE AUTOUIC TRUE AUTOUIC_OPTIONS "-tr=fcitx::tr2fcitx;--include=fcitxqti18nhelper.h"
16 | )
17 | target_link_libraries(fcitx-quickphrase-editor5
18 | Fcitx5::Utils
19 | Qt6::Core
20 | Qt6::Gui
21 | Qt6::Concurrent
22 | Fcitx5Qt6::WidgetsAddons
23 | )
24 |
25 | install(TARGETS fcitx-quickphrase-editor5 DESTINATION ${CMAKE_INSTALL_LIBDIR}/fcitx5/qt6)
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/editordialog.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _QUICKPHRASE_EDITOR_EDITORDIALOG_H_
8 | #define _QUICKPHRASE_EDITOR_EDITORDIALOG_H_
9 |
10 | #include "ui_editordialog.h"
11 | #include
12 |
13 | namespace fcitx {
14 | class EditorDialog : public QDialog, public Ui::EditorDialog {
15 | Q_OBJECT
16 | public:
17 | explicit EditorDialog(QWidget *parent = 0);
18 | virtual ~EditorDialog();
19 |
20 | QString key() const;
21 | QString value() const;
22 | void setValue(const QString &s);
23 | void setKey(const QString &s);
24 | };
25 | } // namespace fcitx
26 |
27 | #endif // _QUICKPHRASE_EDITOR_EDITORDIALOG_H_
28 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/quickphrase-editor/editordialog.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _QUICKPHRASE_EDITOR_EDITORDIALOG_H_
8 | #define _QUICKPHRASE_EDITOR_EDITORDIALOG_H_
9 |
10 | #include "ui_editordialog.h"
11 | #include
12 |
13 | namespace fcitx {
14 | class EditorDialog : public QDialog, public Ui::EditorDialog {
15 | Q_OBJECT
16 | public:
17 | explicit EditorDialog(QWidget *parent = 0);
18 | virtual ~EditorDialog();
19 |
20 | QString key() const;
21 | QString value() const;
22 | void setValue(const QString &s);
23 | void setKey(const QString &s);
24 | };
25 | } // namespace fcitx
26 |
27 | #endif // _QUICKPHRASE_EDITOR_EDITORDIALOG_H_
28 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/widgetsaddons/fcitxqti18nhelper.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _WIDGETSADDONS_FCITXQTI18NHELPER_H_
8 | #define _WIDGETSADDONS_FCITXQTI18NHELPER_H_
9 |
10 | #include
11 | #include
12 |
13 | namespace fcitx {
14 |
15 | inline QString tr2fcitx(const char *message, const char *comment = nullptr) {
16 | if (comment && comment[0] && message && message[0]) {
17 | return QString(C_(comment, message));
18 | } else if (message && message[0]) {
19 | return QString(_(message));
20 | } else {
21 | return QString();
22 | }
23 | }
24 | } // namespace fcitx
25 |
26 | #endif // _WIDGETSADDONS_FCITXQTI18NHELPER_H_
27 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/widgetsaddons/fcitxqti18nhelper.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | *
6 | */
7 | #ifndef _WIDGETSADDONS_FCITXQTI18NHELPER_H_
8 | #define _WIDGETSADDONS_FCITXQTI18NHELPER_H_
9 |
10 | #include
11 | #include
12 |
13 | namespace fcitx {
14 |
15 | inline QString tr2fcitx(const char *message, const char *comment = nullptr) {
16 | if (comment && comment[0] && message && message[0]) {
17 | return QString(C_(comment, message));
18 | } else if (message && message[0]) {
19 | return QString(_(message));
20 | } else {
21 | return QString();
22 | }
23 | }
24 | } // namespace fcitx
25 |
26 | #endif // _WIDGETSADDONS_FCITXQTI18NHELPER_H_
27 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/src/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | set(THIRD_PARTY_LIBS nowide::nowide
4 | CLI11::CLI11)
5 |
6 | set(TARGET_NAME asshdr)
7 |
8 | add_executable(${TARGET_NAME} asshdr.cc)
9 |
10 | target_link_libraries(${TARGET_NAME} PRIVATE ${THIRD_PARTY_LIBS} libasshdr)
11 |
12 | target_include_directories(${TARGET_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include
13 | ${PROJECT_BINARY_DIR}/src
14 | ${THIRD_PARTY_INCLUDE_DIRS})
15 |
16 | target_compile_features(${TARGET_NAME} PRIVATE ${CXX_STD_VER})
17 |
18 | install(TARGETS ${TARGET_NAME} RUNTIME
19 | DESTINATION ${CMAKE_INSTALL_BINDIR}
20 | CONFIGURATIONS Release
21 | COMPONENT ${TARGET_NAME})
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/inputcontext/main.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef MAIN_H
9 | #define MAIN_H
10 |
11 | #include
12 | #include
13 |
14 | #include "qfcitxinputcontext.h"
15 |
16 | namespace fcitx {
17 |
18 | class QFcitxInputContextPlugin : public QInputContextPlugin {
19 | Q_OBJECT
20 | public:
21 | QStringList keys() const override;
22 |
23 | QStringList languages(const QString &key) override;
24 |
25 | QString description(const QString &key) override;
26 |
27 | QInputContext *create(const QString &key) override;
28 |
29 | QString displayName(const QString &key) override;
30 | };
31 | } // namespace fcitx
32 |
33 | #endif // MAIN_H
34 |
--------------------------------------------------------------------------------
/3rdparty/rang/conanfile.py:
--------------------------------------------------------------------------------
1 | from conans import ConanFile, Meson
2 |
3 |
4 | class RangConan(ConanFile):
5 | name = "rang"
6 | version = "3.2.0"
7 | license = "The Unlicense"
8 | url = "https://github.com/agauniyal/rang"
9 | description = "A Minimal, Header only Modern c++ library for colors in your terminal"
10 | generators = "pkg_config"
11 | build_requires = "doctest/1.2.6@bincrafters/stable"
12 | exports_sources = "*"
13 | settings = "build_type"
14 |
15 | def build(self):
16 | meson = Meson(self)
17 | meson.configure(cache_build_folder="build")
18 | meson.build()
19 |
20 | def package(self):
21 | self.copy("*.hpp")
22 | self.copy(pattern="LICENSE", dst="licenses", keep_path=False)
23 |
24 | def package_id(self):
25 | self.info.header_only()
26 |
--------------------------------------------------------------------------------
/src/cli/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required (VERSION 3.16)
2 |
3 | set(THIRD_PARTY_LIBS nowide::nowide
4 | rang
5 | CLI11::CLI11
6 | ghcFilesystem::ghc_filesystem)
7 |
8 | set(TARGET_SOURCES main.cc)
9 |
10 | set(TARGET_NAME assfonts)
11 |
12 | if(APPLE)
13 | list(APPEND TARGET_SOURCES get_app_support_dir.mm)
14 | endif()
15 |
16 | add_executable(${TARGET_NAME} ${TARGET_SOURCES})
17 |
18 | target_link_libraries(${TARGET_NAME} PRIVATE ${THIRD_PARTY_LIBS} libassfonts)
19 |
20 | if(APPLE)
21 | target_link_options(${TARGET_NAME} PRIVATE -framework Foundation)
22 | endif()
23 |
24 | target_compile_features(${TARGET_NAME} PRIVATE ${CXX_STD_VER})
25 |
26 | install(TARGETS ${TARGET_NAME}
27 | CONFIGURATIONS Release
28 | RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
29 |
--------------------------------------------------------------------------------
/src/qt/resources/AppRun:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | APPDIR=$(dirname "$(readlink -f "$0")")
4 |
5 | export PATH="$APPDIR/usr/bin:$PATH"
6 | export LD_LIBRARY_PATH="$APPDIR/usr/lib:$LD_LIBRARY_PATH"
7 |
8 | export QT_AUTO_SCREEN_SCALE_FACTOR=1
9 | export QT_QPA_PLATFORM=xcb
10 |
11 | if [ -z "$QT_IM_MODULE" ]; then
12 | if grep -q "XKBOPTIONS.*compose:" /etc/default/keyboard; then
13 | export QT_IM_MODULE=compose
14 | elif type -P ibus version > /dev/null; then
15 | export QT_IM_MODULE=ibus
16 | elif type -P fcitx-diagnose > /dev/null; then
17 | export QT_IM_MODULE=fcitx
18 | elif type -P fcitx5-diagnose > /dev/null; then
19 | export QT_IM_MODULE=fcitx
20 | fi
21 | fi
22 |
23 | if [ -z "$FONTCONFIG_PATH" ]; then
24 | export FONTCONFIG_PATH=/etc/fonts
25 | fi
26 |
27 | exec "$APPDIR/usr/bin/assfonts-gui" "$@"
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/quickphrase-editor/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | find_package(Qt5Concurrent REQUIRED)
2 |
3 | set(QUICKPHRASE_EDITOR_SRCS
4 | main.cpp
5 | model.cpp
6 | editor.cpp
7 | editordialog.cpp
8 | batchdialog.cpp
9 | filelistmodel.cpp
10 | )
11 |
12 | add_library(fcitx-quickphrase-editor5-qt5
13 | MODULE ${QUICKPHRASE_EDITOR_SRCS})
14 | set_target_properties(fcitx-quickphrase-editor5-qt5 PROPERTIES
15 | OUTPUT_NAME fcitx-quickphrase-editor5
16 | AUTOMOC TRUE AUTOUIC TRUE AUTOUIC_OPTIONS "-tr=fcitx::tr2fcitx;--include=fcitxqti18nhelper.h"
17 | )
18 | target_link_libraries(fcitx-quickphrase-editor5-qt5
19 | Fcitx5::Utils
20 | Qt5::Core
21 | Qt5::Gui
22 | Qt5::Concurrent
23 | Fcitx5Qt5::WidgetsAddons
24 | )
25 |
26 | install(TARGETS fcitx-quickphrase-editor5-qt5 DESTINATION ${CMAKE_INSTALL_LIBDIR}/fcitx5/qt5)
27 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/guiwrapper/wrapperapp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2012 CSSlayer
3 | * SPDX-FileCopyrightText: 2017~2017 xzhao
4 | *
5 | * SPDX-License-Identifier: LGPL-2.1-or-later
6 | */
7 | #ifndef _GUIWRAPPER_WRAPPERAPP_H_
8 | #define _GUIWRAPPER_WRAPPERAPP_H_
9 |
10 | #include "mainwindow.h"
11 | #include
12 |
13 | namespace fcitx {
14 |
15 | class FcitxQtConfigUIFactory;
16 | class WrapperApp : public QApplication {
17 | Q_OBJECT
18 | public:
19 | WrapperApp(int &argc, char **argv);
20 | virtual ~WrapperApp();
21 |
22 | void init();
23 | public Q_SLOTS:
24 | void run();
25 |
26 | private Q_SLOTS:
27 | void errorExit();
28 |
29 | private:
30 | FcitxQtConfigUIFactory *factory_;
31 | MainWindow *mainWindow_;
32 | };
33 | } // namespace fcitx
34 |
35 | #endif // _GUIWRAPPER_WRAPPERAPP_H_
36 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/guiwrapper/wrapperapp.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2012 CSSlayer
3 | * SPDX-FileCopyrightText: 2017~2017 xzhao
4 | *
5 | * SPDX-License-Identifier: LGPL-2.1-or-later
6 | */
7 | #ifndef _GUIWRAPPER_WRAPPERAPP_H_
8 | #define _GUIWRAPPER_WRAPPERAPP_H_
9 |
10 | #include "mainwindow.h"
11 | #include
12 |
13 | namespace fcitx {
14 |
15 | class FcitxQtConfigUIFactory;
16 | class WrapperApp : public QApplication {
17 | Q_OBJECT
18 | public:
19 | WrapperApp(int &argc, char **argv);
20 | virtual ~WrapperApp();
21 |
22 | void init();
23 | public Q_SLOTS:
24 | void run();
25 |
26 | private Q_SLOTS:
27 | void errorExit();
28 |
29 | private:
30 | FcitxQtConfigUIFactory *factory_;
31 | MainWindow *mainWindow_;
32 | };
33 | } // namespace fcitx
34 |
35 | #endif // _GUIWRAPPER_WRAPPERAPP_H_
36 |
--------------------------------------------------------------------------------
/lib/get_home_dir_macos.h:
--------------------------------------------------------------------------------
1 | /* This file is part of assfonts.
2 | *
3 | * assfonts is free software: you can redistribute it and/or
4 | * modify it under the terms of the GNU General Public License
5 | * as published by the Free Software Foundation,
6 | * either version 3 of the License,
7 | * or (at your option) any later version.
8 | *
9 | * assfonts is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty
11 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | * See the GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public
15 | * License along with assfonts. If not, see .
16 | *
17 | * written by wyzdwdz (https://github.com/wyzdwdz)
18 | */
19 |
20 | #pragma once
21 |
22 | #include
23 |
24 | std::string GetHomeDir();
--------------------------------------------------------------------------------
/src/cli/get_app_support_dir.h:
--------------------------------------------------------------------------------
1 | /* This file is part of assfonts.
2 | *
3 | * assfonts is free software: you can redistribute it and/or
4 | * modify it under the terms of the GNU General Public License
5 | * as published by the Free Software Foundation,
6 | * either version 3 of the License,
7 | * or (at your option) any later version.
8 | *
9 | * assfonts is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty
11 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | * See the GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public
15 | * License along with assfonts. If not, see .
16 | *
17 | * written by wyzdwdz (https://github.com/wyzdwdz)
18 | */
19 |
20 | #pragma once
21 |
22 | #include
23 |
24 | std::string GetAppSupportDir();
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/include/nowide/filesystem.hpp:
--------------------------------------------------------------------------------
1 | //
2 | // Copyright (c) 2012 Artyom Beilis (Tonkikh)
3 | //
4 | // Distributed under the Boost Software License, Version 1.0.
5 | // https://www.boost.org/LICENSE_1_0.txt
6 |
7 | #ifndef NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
8 | #define NOWIDE_INTEGRATION_FILESYSTEM_HPP_INCLUDED
9 |
10 | #include
11 | #include
12 |
13 | namespace nowide {
14 | ///
15 | /// Install utf8_codecvt facet into boost::filesystem::path
16 | /// such that all char strings are interpreted as UTF-8 strings
17 | /// \return The previous imbued path locale.
18 | ///
19 | inline std::locale nowide_filesystem()
20 | {
21 | std::locale tmp = std::locale(std::locale(), new nowide::utf8_codecvt());
22 | return boost::filesystem::path::imbue(tmp);
23 | }
24 | } // namespace nowide
25 |
26 | #endif
27 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/dbusaddons/fcitxqtwatcher_p.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef _DBUSADDONS_FCITXQTWATCHER_P_H_
9 | #define _DBUSADDONS_FCITXQTWATCHER_P_H_
10 |
11 | #include "fcitxqtwatcher.h"
12 | #include
13 |
14 | #define FCITX_MAIN_SERVICE_NAME "org.fcitx.Fcitx5"
15 | #define FCITX_PORTAL_SERVICE_NAME "org.freedesktop.portal.Fcitx"
16 |
17 | namespace fcitx {
18 |
19 | class FcitxQtWatcherPrivate {
20 | public:
21 | FcitxQtWatcherPrivate(FcitxQtWatcher *q) : serviceWatcher_(q) {}
22 |
23 | QDBusServiceWatcher serviceWatcher_;
24 | bool watchPortal_ = false;
25 | bool availability_ = false;
26 | bool mainPresent_ = false;
27 | bool portalPresent_ = false;
28 | bool watched_ = false;
29 | };
30 | } // namespace fcitx
31 |
32 | #endif // _DBUSADDONS_FCITXQTWATCHER_P_H_
33 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/dbusaddons/fcitxqtwatcher_p.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef _DBUSADDONS_FCITXQTWATCHER_P_H_
9 | #define _DBUSADDONS_FCITXQTWATCHER_P_H_
10 |
11 | #include "fcitxqtwatcher.h"
12 | #include
13 |
14 | #define FCITX_MAIN_SERVICE_NAME "org.fcitx.Fcitx5"
15 | #define FCITX_PORTAL_SERVICE_NAME "org.freedesktop.portal.Fcitx"
16 |
17 | namespace fcitx {
18 |
19 | class FcitxQtWatcherPrivate {
20 | public:
21 | FcitxQtWatcherPrivate(FcitxQtWatcher *q) : serviceWatcher_(q) {}
22 |
23 | QDBusServiceWatcher serviceWatcher_;
24 | bool watchPortal_ = false;
25 | bool availability_ = false;
26 | bool mainPresent_ = false;
27 | bool portalPresent_ = false;
28 | bool watched_ = false;
29 | };
30 | } // namespace fcitx
31 |
32 | #endif // _DBUSADDONS_FCITXQTWATCHER_P_H_
33 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/dbusaddons/fcitxqtwatcher_p.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2012~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: BSD-3-Clause
5 | *
6 | */
7 |
8 | #ifndef _DBUSADDONS_FCITXQTWATCHER_P_H_
9 | #define _DBUSADDONS_FCITXQTWATCHER_P_H_
10 |
11 | #include "fcitxqtwatcher.h"
12 | #include
13 |
14 | #define FCITX_MAIN_SERVICE_NAME "org.fcitx.Fcitx5"
15 | #define FCITX_PORTAL_SERVICE_NAME "org.freedesktop.portal.Fcitx"
16 |
17 | namespace fcitx {
18 |
19 | class FcitxQtWatcherPrivate {
20 | public:
21 | FcitxQtWatcherPrivate(FcitxQtWatcher *q) : serviceWatcher_(q) {}
22 |
23 | QDBusServiceWatcher serviceWatcher_;
24 | bool watchPortal_ = false;
25 | bool availability_ = false;
26 | bool mainPresent_ = false;
27 | bool portalPresent_ = false;
28 | bool watched_ = false;
29 | };
30 | } // namespace fcitx
31 |
32 | #endif // _DBUSADDONS_FCITXQTWATCHER_P_H_
33 |
--------------------------------------------------------------------------------
/3rdparty/compact_enc_det/util/logging.h:
--------------------------------------------------------------------------------
1 | // Copyright 2016 Google Inc.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License");
4 | // you may not use this file except in compliance with the License.
5 | // You may obtain a copy of the License at
6 | //
7 | // http://www.apache.org/licenses/LICENSE-2.0
8 | //
9 | // Unless required by applicable law or agreed to in writing, software
10 | // distributed under the License is distributed on an "AS IS" BASIS,
11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | // See the License for the specific language governing permissions and
13 | // limitations under the License.
14 | //
15 | ////////////////////////////////////////////////////////////////////////////////
16 |
17 | #ifndef UTIL_LOGGING_H_
18 | #define UTIL_LOGGING_H_
19 |
20 | #undef CHECK
21 | #define CHECK(expr)
22 | #undef DCHECK
23 | #define DCHECK(expr)
24 |
25 | #endif // UTIL_LOGGING_H_
26 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/widgetsaddons/fcitxqtconfiguifactory_p.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | */
6 | #ifndef _WIDGETSADDONS_FCITXQTCONFIGUIFACTORY_P_H_
7 | #define _WIDGETSADDONS_FCITXQTCONFIGUIFACTORY_P_H_
8 |
9 | #include "fcitxqtconfiguifactory.h"
10 | #include
11 | #include
12 | #include
13 |
14 | namespace fcitx {
15 |
16 | class FcitxQtConfigUIFactoryPrivate : public QObject {
17 | Q_OBJECT
18 | public:
19 | FcitxQtConfigUIFactoryPrivate(FcitxQtConfigUIFactory *conn);
20 | virtual ~FcitxQtConfigUIFactoryPrivate();
21 | FcitxQtConfigUIFactory *const q_ptr;
22 | Q_DECLARE_PUBLIC(FcitxQtConfigUIFactory);
23 |
24 | private:
25 | void scan();
26 | QMap plugins_;
27 | };
28 | } // namespace fcitx
29 |
30 | #endif // _WIDGETSADDONS_FCITXQTCONFIGUIFACTORY_P_H_
31 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt6/widgetsaddons/fcitxqtconfiguifactory_p.h:
--------------------------------------------------------------------------------
1 | /*
2 | * SPDX-FileCopyrightText: 2017~2017 CSSlayer
3 | *
4 | * SPDX-License-Identifier: LGPL-2.1-or-later
5 | */
6 | #ifndef _WIDGETSADDONS_FCITXQTCONFIGUIFACTORY_P_H_
7 | #define _WIDGETSADDONS_FCITXQTCONFIGUIFACTORY_P_H_
8 |
9 | #include "fcitxqtconfiguifactory.h"
10 | #include
11 | #include
12 | #include
13 |
14 | namespace fcitx {
15 |
16 | class FcitxQtConfigUIFactoryPrivate : public QObject {
17 | Q_OBJECT
18 | public:
19 | FcitxQtConfigUIFactoryPrivate(FcitxQtConfigUIFactory *conn);
20 | virtual ~FcitxQtConfigUIFactoryPrivate();
21 | FcitxQtConfigUIFactory *const q_ptr;
22 | Q_DECLARE_PUBLIC(FcitxQtConfigUIFactory);
23 |
24 | private:
25 | void scan();
26 | QMap plugins_;
27 | };
28 | } // namespace fcitx
29 |
30 | #endif // _WIDGETSADDONS_FCITXQTCONFIGUIFACTORY_P_H_
31 |
--------------------------------------------------------------------------------
/src/qt/get_app_support_dir.h:
--------------------------------------------------------------------------------
1 | /* This file is part of assfonts.
2 | *
3 | * assfonts is free software: you can redistribute it and/or
4 | * modify it under the terms of the GNU General Public License
5 | * as published by the Free Software Foundation,
6 | * either version 3 of the License,
7 | * or (at your option) any later version.
8 | *
9 | * assfonts is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty
11 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | * See the GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public
15 | * License along with assfonts. If not, see .
16 | *
17 | * written by wyzdwdz (https://github.com/wyzdwdz)
18 | */
19 |
20 | #pragma once
21 |
22 | #include
23 |
24 | std::string GetAppSupportDir();
25 |
26 | std::string GetHomeDir();
--------------------------------------------------------------------------------
/src/qt/resources/assfonts-gui.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | en-US
7 | CFBundleExecutable
8 | ${MACOSX_BUNDLE_EXECUTABLE_NAME}
9 | CFBundleIdentifier
10 | wyzdwdz.assfonts-gui
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | assfonts-gui
15 | CFBundlePackageType
16 | APPL
17 | CFBundleIconFile
18 | icon.icns
19 | NSPrincipalClass
20 | NSApplication
21 | NSHighResolutionCapable
22 | True
23 | NSRequiresAquaSystemAppearance
24 | True
25 |
26 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/src/ver.h:
--------------------------------------------------------------------------------
1 | /* This file is part of asshdr.
2 | *
3 | * asshdr is free software: you can redistribute it and/or
4 | * modify it under the terms of the GNU General Public License
5 | * as published by the Free Software Foundation,
6 | * either version 2 of the License,
7 | * or (at your option) any later version.
8 | *
9 | * asshdr is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty
11 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | * See the GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public
15 | * License along with asshdr. If not, see .
16 | *
17 | * written by wyzdwdz (https://github.com/wyzdwdz)
18 | */
19 |
20 | #ifndef ASSHDR_VER_H_
21 | #define ASSHDR_VER_H_
22 |
23 | #define VERSION_MAJOR
24 | #define VERSION_MINOR
25 | #define VERSION_PATCH
26 |
27 | #endif
28 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/src/ver.h.in:
--------------------------------------------------------------------------------
1 | /* This file is part of asshdr.
2 | *
3 | * asshdr is free software: you can redistribute it and/or
4 | * modify it under the terms of the GNU General Public License
5 | * as published by the Free Software Foundation,
6 | * either version 2 of the License,
7 | * or (at your option) any later version.
8 | *
9 | * asshdr is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty
11 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | * See the GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public
15 | * License along with asshdr. If not, see .
16 | *
17 | * written by wyzdwdz (https://github.com/wyzdwdz)
18 | */
19 |
20 | #ifndef ASSHDR_VER_H_
21 | #define ASSHDR_VER_H_
22 |
23 | #define VERSION_MAJOR @VERSION_MAJOR@
24 | #define VERSION_MINOR @VERSION_MINOR@
25 | #define VERSION_PATCH @VERSION_PATCH@
26 |
27 | #endif
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt4/dbusaddons/fcitxqtinputmethodproxy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * This file was generated by qdbusxml2cpp version 0.7
3 | * Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i fcitxqtdbustypes.h -i fcitx5qt4dbusaddons_export.h
4 | *
5 | * qdbusxml2cpp is Copyright (C) 2015 The Qt Company Ltd.
6 | *
7 | * This is an auto-generated file.
8 | * This file may have been hand-edited. Look for HAND-EDIT comments
9 | * before re-generating it.
10 | */
11 |
12 | #include "fcitxqtinputmethodproxy.h"
13 |
14 | namespace fcitx {
15 |
16 | /*
17 | * Implementation of interface class FcitxQtInputMethodProxy
18 | */
19 |
20 | FcitxQtInputMethodProxy::FcitxQtInputMethodProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
21 | : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
22 | {
23 | }
24 |
25 | FcitxQtInputMethodProxy::~FcitxQtInputMethodProxy()
26 | {
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/dbusaddons/fcitxqtcontrollerproxy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * This file was generated by qdbusxml2cpp version 0.8
3 | * Command line was: qdbusxml2cpp -N -p fcitxqtcontrollerproxy -c
4 | * FcitxQtControllerProxy interfaces/org.fcitx.Fcitx.Controller1.xml -i
5 | * fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
6 | *
7 | * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
8 | *
9 | * This is an auto-generated file.
10 | * This file may have been hand-edited. Look for HAND-EDIT comments
11 | * before re-generating it.
12 | */
13 |
14 | #include "fcitxqtcontrollerproxy.h"
15 |
16 | namespace fcitx {
17 |
18 | /*
19 | * Implementation of interface class FcitxQtControllerProxy
20 | */
21 |
22 | FcitxQtControllerProxy::FcitxQtControllerProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
23 | : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
24 | {
25 | }
26 |
27 | FcitxQtControllerProxy::~FcitxQtControllerProxy()
28 | {
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/lib/get_home_dir_macos.mm:
--------------------------------------------------------------------------------
1 | /* This file is part of assfonts.
2 | *
3 | * assfonts is free software: you can redistribute it and/or
4 | * modify it under the terms of the GNU General Public License
5 | * as published by the Free Software Foundation,
6 | * either version 3 of the License,
7 | * or (at your option) any later version.
8 | *
9 | * assfonts is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty
11 | * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 | * See the GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public
15 | * License along with assfonts. If not, see .
16 | *
17 | * written by wyzdwdz (https://github.com/wyzdwdz)
18 | */
19 |
20 | #include "get_home_dir_macos.h"
21 |
22 | #import
23 |
24 | std::string GetHomeDir() {
25 | NSString *homeDir = NSHomeDirectory();
26 | return std::string([homeDir UTF8String]);
27 | }
--------------------------------------------------------------------------------
/3rdparty/fcitx5-qt/qt5/dbusaddons/fcitxqtinputmethodproxy.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * This file was generated by qdbusxml2cpp version 0.8
3 | * Command line was: qdbusxml2cpp -N -p fcitxqtinputmethodproxy -c
4 | * FcitxQtInputMethodProxy interfaces/org.fcitx.Fcitx.InputMethod1.xml -i
5 | * fcitxqtdbustypes.h -i fcitx5qt5dbusaddons_export.h
6 | *
7 | * qdbusxml2cpp is Copyright (C) 2022 The Qt Company Ltd.
8 | *
9 | * This is an auto-generated file.
10 | * This file may have been hand-edited. Look for HAND-EDIT comments
11 | * before re-generating it.
12 | */
13 |
14 | #include "fcitxqtinputmethodproxy.h"
15 |
16 | namespace fcitx {
17 |
18 | /*
19 | * Implementation of interface class FcitxQtInputMethodProxy
20 | */
21 |
22 | FcitxQtInputMethodProxy::FcitxQtInputMethodProxy(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent)
23 | : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
24 | {
25 | }
26 |
27 | FcitxQtInputMethodProxy::~FcitxQtInputMethodProxy()
28 | {
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/3rdparty/asshdr/3rdparty/nowide/test/test_iostream_passthrough.cmake:
--------------------------------------------------------------------------------
1 | # Copyright 2019 - 2021 Alexander Grund
2 | # Distributed under the Nowide Software License, Version 1.0.
3 | # https://www.boost.org/LICENSE_1_0.txt
4 |
5 | if(NOT DEFINED TEST_BINARY)
6 | if(CMAKE_ARGC GREATER 3)
7 | # cmake(0) -P(1)