master #1
YanTheKaller/ubinstall-gtk:master into master 1 year ago
@ -0,0 +1,12 @@
|
||||
.vscode/
|
||||
ubinstall-gtk
|
||||
*~
|
||||
build/
|
||||
compile/
|
||||
*#
|
||||
terminal-commands/
|
||||
source/ubl-cmake.h
|
||||
vgcore*
|
||||
.BUILD.md
|
||||
.updatebuild.sh
|
||||
.install.sh
|
||||
@ -0,0 +1,153 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
#SHELL := /bin/bash
|
||||
MAKEFILE_FILEPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
MAKEFILE_DIR := $(notdir $(patsubst %/,%,$(dir $(MAKEFILE_FILEPATH))))
|
||||
MAKEFILE_PATH := $(dir $(MAKEFILE_FILEPATH))
|
||||
|
||||
CMAKE_COMMAND = cmake
|
||||
CMAKE_SOURCE_DIR = $(MAKEFILE_PATH)source
|
||||
CMAKE_BUILD_DIR = $(MAKEFILE_PATH)compile
|
||||
DEPENDS = /bin/cmake
|
||||
PREFIX ?= /usr/local
|
||||
PKGNAME = $(MAKEFILE_DIR)
|
||||
FILE_VER = source/${PKGNAME}.h
|
||||
PKGIDENT = $(subst /,-,$(subst /usr,,${PREFIX}))
|
||||
|
||||
default_target: all
|
||||
|
||||
.PHONY: all init depend debug prepare check build uninstall install clean help
|
||||
|
||||
all: init build
|
||||
|
||||
init:
|
||||
@echo "Initialize ..."; \
|
||||
if [ -d ".git" ]; then \
|
||||
LATEST_TAG=$$(git describe --abbrev=0 --tags | sed 's/^v//'); \
|
||||
if [ -z "$${LATEST_TAG}" ]; then \
|
||||
LATEST_TAG="0.0"; \
|
||||
fi; \
|
||||
else \
|
||||
LATEST_TAG="Development"; \
|
||||
fi; \
|
||||
sed -r "s/^(string version_application).*/\1 = \"$${LATEST_TAG}\";/" -i ${FILE_VER}; \
|
||||
echo "-- Build path: ${CMAKE_BUILD_DIR}"
|
||||
|
||||
depend:
|
||||
@echo "Check depends ..."
|
||||
@for FILE_DEPEND in $(DEPENDS); do \
|
||||
if [ ! -f $${FILE_DEPEND} ]; then \
|
||||
echo "ERROR: Depend '$${FILE_DEPEND}' not found !"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
done; \
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B${CMAKE_BUILD_DIR} --check-build-system CMakeFiles/Makefile.cmake 1 || exit 1; \
|
||||
echo "Check depends: OK"
|
||||
|
||||
debug:
|
||||
@echo "Debug ..."
|
||||
if [ ! -d ${CMAKE_BUILD_DIR} ]; then \
|
||||
$(CMAKE_COMMAND) -S${CMAKE_SOURCE_DIR} -B${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="${PREFIX}"; \
|
||||
fi; \
|
||||
echo "Debug: OK"
|
||||
|
||||
prepare:
|
||||
@echo "Prepare ..."; \
|
||||
if [ ! -d ${CMAKE_BUILD_DIR} ]; then \
|
||||
$(CMAKE_COMMAND) -S${CMAKE_SOURCE_DIR} -B${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${PREFIX}"; \
|
||||
fi; \
|
||||
echo "Prepare: OK"
|
||||
|
||||
check:
|
||||
@echo "Check ..."; \
|
||||
if [ -f ${CMAKE_BUILD_DIR}/${PKGNAME} ]; then \
|
||||
echo "Check: OK"; \
|
||||
else \
|
||||
echo "Check: ${CMAKE_BUILD_DIR}/${PKGNAME} not found !"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
build: depend prepare
|
||||
@echo "Build ..."; \
|
||||
$(MAKE_COMMAND) --directory=${CMAKE_BUILD_DIR}; \
|
||||
sed -r "s/^(string version_application).*/\1;/" -i ${FILE_VER}; \
|
||||
echo "Build: OK"
|
||||
|
||||
uninstall:
|
||||
@echo "Uninstall ..."
|
||||
@for FILE_PO in $(wildcard *.po); do \
|
||||
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \
|
||||
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \
|
||||
PATH_FILE_MO="${DESTDIR}/usr/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
||||
$(RM) "$${PATH_FILE_MO}"; \
|
||||
done
|
||||
@for SIZE in 16x16 32x32 48x48 scalable; do \
|
||||
$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \
|
||||
$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}/apps/com.ublinux.${PKGNAME}.png"; \
|
||||
done
|
||||
@for FILE_SVG in $(wildcard *.svg); do \
|
||||
for SIZE in 16x16 32x32 48x48 scalable; do \
|
||||
$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}/status/$${FILE_SVG%.*}".{svg,png,jpg}; \
|
||||
done; \
|
||||
done
|
||||
@$(RM) "${DESTDIR}${PREFIX}/bin/${PKGNAME}"
|
||||
@$(RM) "${DESTDIR}${PREFIX}/share/applications/${PKGNAME}.desktop"
|
||||
@$(RM) "${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/com.ublinux.${PKGNAME}.svg"
|
||||
@$(RM) "${DESTDIR}/usr/share/polkit-1/actions/com.ublinux.${PKGNAME}${PKGIDENT}.policy"
|
||||
@if [ -z ${DESTDIR} ]; then \
|
||||
[ -d "${DESTDIR}${PREFIX}/share/icons/hicolor/" ] && gtk-update-icon-cache -fiq "${DESTDIR}${PREFIX}/share/icons/hicolor/" &>/dev/null || true; \
|
||||
update-desktop-database --quiet &>/dev/null || true; \
|
||||
[ -d "${DESTDIR}${PREFIX}/share/applications" ] && touch "${DESTDIR}${PREFIX}/share/applications" &>/dev/null || true; \
|
||||
fi
|
||||
@echo "Uninstall: OK"
|
||||
|
||||
install: check uninstall
|
||||
@echo "Install ..."
|
||||
@for FILE_PO in $(wildcard *.po); do \
|
||||
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \
|
||||
install -dm755 "${DESTDIR}/usr/share/locale/$${LANG}/LC_MESSAGES"; \
|
||||
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \
|
||||
PATH_FILE_MO="${DESTDIR}/usr/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
||||
echo "$${FILE_PO}"; \
|
||||
msgfmt "$${FILE_PO}" -v -f -o "$${PATH_FILE_MO}"; \
|
||||
done
|
||||
@for SIZE in 16 32 48; do \
|
||||
install -dm755 "${DESTDIR}/usr/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \
|
||||
rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data "com.ublinux.${PKGNAME}-gui.svg" -o "${DESTDIR}/usr/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/com.ublinux.${PKGNAME}-gui.svg"; \
|
||||
done
|
||||
@install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/apps/" "com.ublinux.${PKGNAME}-gui.svg"
|
||||
@install -Dm644 -t "${DESTDIR}/usr/share/${PKGNAME}/csv" "locales.csv"
|
||||
@for FILE_ICON in $(wildcard icons/*/*.svg); do \
|
||||
SUB_NAME=$${FILE_ICON#*/}; SUB_NAME=$${SUB_NAME%/*}; \
|
||||
install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/$${SUB_NAME}" $${FILE_ICON}; \
|
||||
done
|
||||
@install -Dm644 -t "${DESTDIR}${PREFIX}/share/applications/" "${PKGNAME}.desktop"
|
||||
@install -Dm755 -t "${DESTDIR}${PREFIX}/bin/" "${CMAKE_BUILD_DIR}/${PKGNAME}"
|
||||
@install -Dm644 "com.ublinux.${PKGNAME}.policy" "${DESTDIR}/usr/share/polkit-1/actions/com.ublinux.${PKGNAME}${PKGIDENT}.policy"
|
||||
@sed -e '\|annotate key=|s|/usr/bin|${PREFIX}/bin|' -e '/action id=/s/\.run/${PKGIDENT}\.run/' -i ${DESTDIR}/usr/share/polkit-1/actions/com.ublinux.${PKGNAME}${PKGIDENT}.policy
|
||||
@if [ -z ${DESTDIR} ]; then \
|
||||
[ -d "${DESTDIR}/usr/share/icons/hicolor/" ] && gtk-update-icon-cache -fiq "${DESTDIR}/usr/share/icons/hicolor/" &>/dev/null || true; \
|
||||
update-desktop-database --quiet &>/dev/null || true; \
|
||||
[ -d "${DESTDIR}/usr/share/applications" ] && touch "${DESTDIR}/usr/share/applications" &>/dev/null || true; \
|
||||
fi
|
||||
@echo "Install: OK"
|
||||
|
||||
clean:
|
||||
@echo "Clean ..."
|
||||
@$(RM) -rd ${CMAKE_BUILD_DIR}
|
||||
@if [ -d ${CMAKE_BUILD_DIR} ]; then \
|
||||
echo "Clean: error, compile directory exist ${CMAKE_BUILD_DIR}"; \
|
||||
else \
|
||||
echo "Clean: OK"; \
|
||||
fi
|
||||
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"; \
|
||||
echo "... all (the default if no target is provided)"; \
|
||||
echo "... init"; \
|
||||
echo "... debug"; \
|
||||
echo "... prepare"; \
|
||||
echo "... build"; \
|
||||
echo "... install"; \
|
||||
echo "... uninstall"; \
|
||||
echo "... clean"
|
||||
|
After Width: | Height: | Size: 194 KiB |
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<gresources>
|
||||
<gresource prefix="/com/ublinux/ui">
|
||||
<file>ubinstall-gtk.glade</file>
|
||||
<file>ubinstall-gtk-language.glade</file>
|
||||
<file>ubinstall-gtk-keyboard.glade</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/ublinux/css">
|
||||
<file>ubinstall-gtk.css</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/ublinux/images">
|
||||
<file>map-time-zone.png</file>
|
||||
<file>keyboard.png</file>
|
||||
<file>keyboard-ru.png</file>
|
||||
<file>slide-0.png</file>
|
||||
<file>slide-1.png</file>
|
||||
<file>slide-2.png</file>
|
||||
<file>slide-3.png</file>
|
||||
<file>slide-4.png</file>
|
||||
<file>slide-5.png</file>
|
||||
<file>slide-6.png</file>
|
||||
<file>slide-7.png</file>
|
||||
<file>slide-8.png</file>
|
||||
<file>slide-9.png</file>
|
||||
<file>slide-10.png</file>
|
||||
<file>slide-11.png</file>
|
||||
<file>slide-12.png</file>
|
||||
<file>near_install_disk.png</file>
|
||||
<file>language.png</file>
|
||||
<file>in_part_install_disk.png</file>
|
||||
<file>clear_install_disk.png</file>
|
||||
</gresource>
|
||||
<gresource prefix="/com/ublinux/csv">
|
||||
<file>modules.csv</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
After Width: | Height: | Size: 569 B |
|
After Width: | Height: | Size: 570 B |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 2.8 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 112 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 1009 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 208 KiB |
|
After Width: | Height: | Size: 178 KiB |
|
After Width: | Height: | Size: 204 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 147 KiB |
|
After Width: | Height: | Size: 161 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 159 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 156 KiB |
|
After Width: | Height: | Size: 151 KiB |
|
After Width: | Height: | Size: 189 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
After Width: | Height: | Size: 5.8 KiB |
|
|
@ -0,0 +1,122 @@
|
||||
cmake_minimum_required(VERSION 3.7)
|
||||
project(ubinstall-gtk)
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
|
||||
pkg_check_modules(GTK REQUIRED gtk+-3.0)
|
||||
include_directories(${GTK_INCLUDE_DIRS})
|
||||
link_directories(${GTK_LIBRARY_DIRS})
|
||||
add_definitions(${GTK_CFLAGS_OTHER})
|
||||
|
||||
pkg_check_modules(VTE291 REQUIRED vte-2.91)
|
||||
include_directories(${VTE291_INCLUDE_DIRS})
|
||||
link_directories(${VTE291_LIBRARY_DIRS})
|
||||
add_definitions(${VTE291_CFLAGS_OTHER})
|
||||
|
||||
pkg_check_modules(JSON REQUIRED json-c)
|
||||
include_directories(${JSON_INCLUDE_DIRS})
|
||||
link_directories(${JSON_LIBRARY_DIRS})
|
||||
add_definitions(${JSON_CFLAGS_OTHER})
|
||||
|
||||
find_library(WEBKIT_LIBRARIES_FOUND webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
||||
|
||||
option(WEBKIT_FOUND "No" OFF)
|
||||
if(WEBKIT_LIBRARIES_FOUND)
|
||||
option(WEBKIT_FOUND "Yes" ON)
|
||||
PKG_CHECK_MODULES(WEBKIT REQUIRED webkit2gtk-4.0 webkit2gtk-web-extension-4.0)
|
||||
include_directories(${WEBKIT_INCLUDE_DIRS})
|
||||
link_directories(${WEBKIT_LIBRARY_DIRS})
|
||||
add_definitions(${WEBKIT_CFLAGS_OTHER})
|
||||
endif()
|
||||
|
||||
set(GRESOURCE_C resources.c)
|
||||
set(GRESOURCE_XML gresource.xml)
|
||||
|
||||
find_program(GLIB_COMPILE_RESOURCES NAMES glib-compile-resources REQUIRED)
|
||||
add_custom_target(GLADE ubinstall-gtk.glade)
|
||||
|
||||
set(DEPENDFILES
|
||||
../images/keyboard.png
|
||||
../images/keyboard-ru.png
|
||||
../images/map-time-zone.png
|
||||
../images/slide-0.png
|
||||
../images/slide-1.png
|
||||
../images/slide-2.png
|
||||
../images/slide-3.png
|
||||
../images/slide-4.png
|
||||
../images/slide-5.png
|
||||
../images/slide-6.png
|
||||
../images/slide-7.png
|
||||
../images/slide-8.png
|
||||
../images/slide-9.png
|
||||
../images/slide-10.png
|
||||
../images/slide-11.png
|
||||
../images/slide-12.png
|
||||
../images/slide-12.png
|
||||
../images/near_install_disk.png
|
||||
../images/in_part_install_disk.png
|
||||
../images/clear_install_disk.png
|
||||
../images/language.png
|
||||
../ubinstall-gtk.glade
|
||||
../ubinstall-gtk-language.glade
|
||||
../ubinstall-gtk-keyboard.glade
|
||||
../gresource.xml
|
||||
../ubinstall-gtk.css
|
||||
../modules.csv
|
||||
)
|
||||
|
||||
file(COPY ${DEPENDFILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${GRESOURCE_C}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${GLIB_COMPILE_RESOURCES}
|
||||
ARGS
|
||||
--generate-source
|
||||
--target=${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
||||
${GRESOURCE_XML}
|
||||
VERBATIM
|
||||
MAIN_DEPENDENCY ${GRESOURCE_XML}
|
||||
DEPENDS
|
||||
${GLADE}
|
||||
)
|
||||
add_custom_target(
|
||||
dummy-resource
|
||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
||||
)
|
||||
|
||||
add_definitions(-DVTE_INCLUDE)
|
||||
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \
|
||||
-O2 -pipe -fno-plt -fexceptions \
|
||||
-Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \
|
||||
-fstack-clash-protection -fcf-protection")
|
||||
|
||||
set(SOURCE_FILES
|
||||
ubinstall-gtk.c
|
||||
ubinstall-gtk.h
|
||||
ubl-strings.h
|
||||
)
|
||||
|
||||
set(LIBRARIES
|
||||
${GTK_LIBRARIES}
|
||||
${WEBKIT_LIBRARIES}
|
||||
${UTILS_LIBRARIES}
|
||||
${VTE291_LIBRARIES}
|
||||
${JSON_LIBRARIES}
|
||||
pthread
|
||||
ublsettings
|
||||
ublsettings-gtk3
|
||||
ublsettingsui-gtk3
|
||||
)
|
||||
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SOURCE_FILES} ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C})
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${LIBRARIES})
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR})
|
||||
set_source_files_properties(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}
|
||||
PROPERTIES GENERATED TRUE
|
||||
)
|
||||
install(TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||
add_dependencies(${PROJECT_NAME} dummy-resource)
|
||||
@ -0,0 +1,107 @@
|
||||
#define VERSION_LABEL yon_char_unite(_("Version:")," ",!yon_char_is_empty(version_application)?version_application:"","\n",NULL)
|
||||
#define HELP_LABEL(rest) yon_char_unite(LocaleName,_(" version:")," ", !yon_char_is_empty(version_application)?version_application:"","\n",TITLE_LABEL,"\n",_("Usage:"), " ",LocaleName," ",_("[OPTIONS]"),"\n",_("Options:"),"\n\t--help, -h\t\t\t",_("Show this help"),"\n\t--version, -V\t\t\t",_("Show package version"),"\n\t--lock-help\t\t\t",_("Lock this help menu"),"\n\t--lock-save\t\t\t",_("Lock configuration saving"),"\n\t--lock-save-local\t\t",_("Lock local configration saving"),"\n\t--lock-save-global\t\t",_("Lock global configration saving"),"\n\t--lock-load-global\t\t",_("Lock global configration loading"),"\n\t--clear-config\t\t\t",_("Reset application settings"),"\n",!yon_char_is_empty(rest)?rest:NULL,NULL)
|
||||
|
||||
#define TITLE_LABEL _("ubinstall")
|
||||
|
||||
#define WELCOME_LABEL _("Welcome to UBLinux installation")
|
||||
#define WELCOME_BOTTOM_LABEL _("This program will ask you few questions\nand help you install UBLinux on your computer")
|
||||
|
||||
#define KEYBOARD_TITLE_LABEL _("Keyboard layout")
|
||||
|
||||
#define CANCEL_LABEL _("Cancel")
|
||||
#define BACK_LABEL _("Back")
|
||||
#define NEXT_LABEL _("Next")
|
||||
#define WELCOME_TAB_LABEL _("Welcome")
|
||||
#define LICENCE_TAB_LABEL _("Licence\nagreement")
|
||||
#define SECTIONS_TAB__LABEL _("Sections")
|
||||
#define INSTALLATION_TAB_LABEL _("Installation")
|
||||
#define LOCATION_TAB_LABEL _("Location")
|
||||
#define KEYBOARD_TAB_LABEL _("Keyboard")
|
||||
#define USERS_TAB_LABEL _("Users")
|
||||
#define COMPLETION_TAB_LABEL _("Completion")
|
||||
#define COMMON_INSTALL_INFO_LABEL _("Deleting all data on the selected disk and then installing the UBLinux system")
|
||||
#define NEAR_INSTALL_LABEL _("Installation next to another system")
|
||||
#define NEAR_INSTALL_INFO_LABEL _("Shrinking a partition and creating a new one for installing UBLinux")
|
||||
#define SHRINK_SECTION_INSTALL_LABEL _("Installation on the same partition as another system")
|
||||
#define SHRINK_SECTION_INSTALL_INFO_LABEL _("Unpacking the UBLinux file system into an existing system")
|
||||
#define ADDITIONAL_INSTALL_INFO_LABEL _("Selecting additional software to install from the repository via the Internet")
|
||||
#define CHOSEN_LABEL _("Chosen")
|
||||
#define MODULE_NAME_LABEL _("Module name")
|
||||
#define TAG_LABEL _("Tag")
|
||||
#define DESCRIPTION_LABEL _("Description")
|
||||
#define INSTALLATION_COMPLETION_LABEL _("Installation completion")
|
||||
#define LOCATION_LABEL _("Location")
|
||||
#define REGION_LABEL _("Region:")
|
||||
#define ZONE_LABEL _("Zone:")
|
||||
#define LANGUAGE_LABEL _("Language:")
|
||||
#define KEYBOARD_MODEL_LABEL _("Keyboard model:")
|
||||
#define LAYOUT_CHANGING_LABEL _("Layout changing:")
|
||||
#define DEFAUL_LAYOUT_LABEL _("Default layout (ru)")
|
||||
#define DEFINE_LABEL _("Define")
|
||||
#define ACCOUNT_NAME_LABEL _("Your account name:")
|
||||
#define LOGIN__LABEL _("Login:")
|
||||
#define PASSWORD__LABEL _("Password")
|
||||
#define DEFAULT_LABEL _("Default")
|
||||
#define SET_PASSWORD_LABEL _("Set a password")
|
||||
#define DO_NOT_SET_PASSWORD_LABEL _("Do no set a password")
|
||||
#define AUTOMATIC_LOGIN_LABEL _("Automatic login without password prompt")
|
||||
#define ADMIN_PASSWORD_LABEL _("Administrator password (root):")
|
||||
#define COMPUTER_NAME_LABEL _("Computer name:")
|
||||
#define USER_LABEL _("User")
|
||||
#define COMPLETION_LABEL _("Completion")
|
||||
#define INSTALLATION_COMPLETION_LABEL _("Installation completion")
|
||||
#define SELECT_DEVICE_LABEL _("Select device:")
|
||||
#define CHOOSE_SECTION_LABEL _("Choose a section:")
|
||||
#define ATTENSION_LABEL _("Attention! The selected partition will be modified: the size will be reduced. In the resulting free space, a partition will be created into which the UBLinux OS will be\ninstalled.")
|
||||
#define DEVICE_LABEL _("Device")
|
||||
#define MARK_LABEL _("Mark")
|
||||
#define SIZE_LABEL _("Size")
|
||||
#define FREE_LABEL _("Free")
|
||||
#define SPECIFY_LABEL _("Specify the size of the new partition for UBLinux OS:")
|
||||
#define TB_LABEL _("Tb")
|
||||
#define GB_LABEL _("Gb")
|
||||
#define MB_LABEL _("Mb")
|
||||
#define AVALIABLE_LANGUAGES_LABEL _("Available languages in the system:")
|
||||
|
||||
#define NO_DEVICE_CHOSEN_LABEL _("No device were chosen")
|
||||
|
||||
#define INSTALLATION_PARAMETERS_LABEL _("Installation parameters")
|
||||
|
||||
|
||||
#define KEYBOARD__LABEL _("Keyboard layout language")
|
||||
|
||||
#define REGION_EMPTY_LABEL _("Region were not fullified")
|
||||
#define ZONE_EMPTY_LABEL _("Zone were not fullified")
|
||||
#define LANGUAGES_EMPTY_LABEL _("Languages list is empty")
|
||||
#define LOCALE_EMPTY_LABEL _("System locale hasn't been chosen")
|
||||
#define LAYOUTS_CHOSEN_BUT_EMPTY_LABEL _("Manual layouts has been chosen but empty")
|
||||
|
||||
#define PASSWORD_TITLE_LABEL _("Password input")
|
||||
#define PASSWORD_MISMATCH_LABEL _("Password mismatch")
|
||||
#define EMPTY_IMPORTANT_LABEL _("Empty important field")
|
||||
#define PASSWORD_SHORT_LABEL(min_size_char) yon_char_unite(_("Password must be at least")," ", min_size_char," ",_("characters"))
|
||||
|
||||
#define RESTART_LABEL _("Restart PC")
|
||||
#define EXIT_LABEL _("Exit")
|
||||
#define CHOOSE_LABEL _("Choose file system type for the section:")
|
||||
#define SECTION_NAME_LABEL _("Section name:")
|
||||
#define FORMAT_LABEL _("Format")
|
||||
|
||||
#define SUCCESS_LABEL _("You have UBLinux installed on your computer.\nYou can reboot and use your new system\nor continue working in the UBLinux Live environment.")
|
||||
|
||||
#define LANGUAGES_TITLE_LABEL _("Available languages in the system")
|
||||
#define LAYOUTS_TITLE_LABEL _("Keyboard layout language")
|
||||
#define APPLY_LABEL _("Apply")
|
||||
#define SUCCESS_HEADER_LABEL _("Success")
|
||||
#define LAYOUT_LABEL _("Layout")
|
||||
#define DESIGNATION_LABEL _("Designation")
|
||||
#define SERIAL_LABEL _("Serial")
|
||||
#define SECTION_LABEL _("Section")
|
||||
#define CAPACITY_LABEL _("Capacity")
|
||||
#define FREE_SPACE_LABEL _("Free space")
|
||||
#define FS_LABEL _("File system")
|
||||
#define DEFAULTSWITCHING_LABEL _("Default (L_Alt + L_Shift)")
|
||||
#define DEFAULT_MODEL_LABEL _("Default (Regular 105-key)")
|
||||
|
||||
#define INSTALL_BEGIN_HEADER_LABEL _("Installation configuration has ended")
|
||||
#define INSTALL_BEGIN_LABEL _("UBLinux OS installation is about to begin")
|
||||
@ -0,0 +1,158 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.38.2 -->
|
||||
<interface>
|
||||
<requires lib="gtk+" version="3.24"/>
|
||||
<object class="GtkWindow" id="MainWindow">
|
||||
<property name="width-request">200</property>
|
||||
<property name="height-request">400</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="modal">True</property>
|
||||
<property name="default-width">800</property>
|
||||
<property name="icon-name">com.ublinux.libublsettingsui-gtk3</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">5</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="StatusBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="margin-left">5</property>
|
||||
<property name="margin-right">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">5</property>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="shadow-type">in</property>
|
||||
<child>
|
||||
<object class="GtkTreeView" id="LayoutsTree">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="headers-visible">False</property>
|
||||
<child internal-child="selection">
|
||||
<object class="GtkTreeSelection"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn">
|
||||
<property name="title" translatable="yes">column</property>
|
||||
<child>
|
||||
<object class="GtkCellRendererToggle" id="ActiveToggle"/>
|
||||
<attributes>
|
||||
<attribute name="visible">2</attribute>
|
||||
<attribute name="active">3</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn">
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">0</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkTreeViewColumn">
|
||||
<child>
|
||||
<object class="GtkCellRendererText"/>
|
||||
<attributes>
|
||||
<attribute name="text">1</attribute>
|
||||
</attributes>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="titlebar">
|
||||
<object class="GtkHeaderBar" id="headerBar">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<child type="title">
|
||||
<object class="GtkLabel" id="headerTopic">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="label" translatable="yes">Keyboard layout language</property>
|
||||
<attributes>
|
||||
<attribute name="weight" value="bold"/>
|
||||
</attributes>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage" id="HeadImage">
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">False</property>
|
||||
<property name="pixel-size">32</property>
|
||||
<property name="icon-name">com.ublinux.ubinstall-gtk-gui</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="CancelButton">
|
||||
<property name="label" translatable="yes">Cancel</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="position">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="SaveButton">
|
||||
<property name="label" translatable="yes">Apply</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can-focus">True</property>
|
||||
<property name="receives-default">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="pack-type">end</property>
|
||||
<property name="position">2</property>
|
||||
</packing>
|
||||
</child>
|
||||
<style>
|
||||
<class name="toolbar"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@ -0,0 +1,208 @@
|
||||
.thin {
|
||||
margin:0px;
|
||||
padding:0px;
|
||||
}
|
||||
.noborder {
|
||||
border:none;
|
||||
}
|
||||
.nobackground {
|
||||
background:transparent;
|
||||
}
|
||||
.nobackground:active {
|
||||
background:transparent;
|
||||
}
|
||||
.textHead{
|
||||
text-shadow: 2px 2px @theme_bg_color;
|
||||
color: @theme_text_color;
|
||||
}
|
||||
|
||||
.inherited>* {
|
||||
border:none;
|
||||
background:inherit;
|
||||
}
|
||||
.workingbg {
|
||||
background:@theme_base_color;
|
||||
}
|
||||
.menuitembottom{
|
||||
margin-top:0px;
|
||||
margin-bottom:3px;
|
||||
border-color:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitemmiddle{
|
||||
margin-top:0px;
|
||||
margin-bottom:0px;
|
||||
border-color:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
|
||||
.menuitemtop{
|
||||
margin-bottom:0px;
|
||||
border-color:inherit;
|
||||
border-top-width:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitemtop >*{
|
||||
margin:4px 2px 0 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
border:transparent;
|
||||
}
|
||||
.menuitemmiddle >*{
|
||||
margin:0 2px 0 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
border:transparent;
|
||||
}
|
||||
.menuitembottom >*{
|
||||
margin:0 2px 2px 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
}
|
||||
.menuitemtop:hover {
|
||||
background:@theme_bg_color;
|
||||
border-color:inherit;
|
||||
border-top-width:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitemmiddle:hover {
|
||||
background:@theme_bg_color;
|
||||
border-color:inherit;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
}
|
||||
.menuitembottom:hover {
|
||||
background:@theme_bg_color;
|
||||
border-color:inherit;
|
||||
border-bottom-width:0px;
|
||||
border-left-width:inherit;
|
||||
border-right-width:inherit;
|
||||
|
||||
}
|
||||
.menuitemtop:hover>* {
|
||||
margin:4px 2px 0 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
background:@theme_selected_bg_color;
|
||||
border-radius:2px;
|
||||
}
|
||||
.menuitemmiddle:hover>* {
|
||||
margin:0 2px 0 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
background:@theme_selected_bg_color;
|
||||
border-radius:2px;
|
||||
}
|
||||
.menuitembottom:hover>* {
|
||||
margin:0 2px 2px 2px;
|
||||
padding: 3px 10px 3px 5px;
|
||||
background:@theme_selected_bg_color;
|
||||
border-radius:2px;
|
||||
}
|
||||
.boxInfoMessError{
|
||||
background-color: #ea9999;
|
||||
}
|
||||
|
||||
.boxInfoMessOK{
|
||||
background-color: #f3f0ac;
|
||||
}
|
||||
.errorBox {
|
||||
border-width: 2px;
|
||||
border-color: #ea9999;
|
||||
border-style:solid;
|
||||
}
|
||||
|
||||
.chosenOutline{
|
||||
transition: 0ms;
|
||||
border-width: 1px;
|
||||
border-color: #f3f0ac;
|
||||
border-style:solid;
|
||||
}
|
||||
|
||||
.separatorTop{
|
||||
border-color: darker (@theme_bg_color);
|
||||
border-top-width:1px;
|
||||
border-style:solid;
|
||||
}
|
||||
|
||||
.separatorBottom{
|
||||
border-color: darker (@theme_bg_color);
|
||||
border-bottom-width:1px;
|
||||
border-style:solid;
|
||||
}
|
||||
|
||||
.marginright image{
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.spinner_image{
|
||||
-gtk-icon-transform: scale(2);
|
||||
}
|
||||
|
||||
treeview row:nth-child(odd) { background-color: #000000; }
|
||||
|
||||
treeview row:nth-child(even) { background-color: #ffffff; }
|
||||
|
||||
.blackbg {
|
||||
background-color: @theme_text_color;
|
||||
}
|
||||
|
||||
.toggletabs {
|
||||
background-color: @background_color;
|
||||
border:none;
|
||||
border-radius:0px;
|
||||
transition:0;
|
||||
padding-top:7px;
|
||||
padding-bottom:7px;
|
||||
}
|
||||
|
||||
.toggletabs:checked {
|
||||
background:@theme_base_color;
|
||||
border-radius:0px;
|
||||
color:inherit;
|
||||
padding-top:7px;
|
||||
padding-bottom:7px;
|
||||
}
|
||||
|
||||
.toggletabs:checked>* {
|
||||
background:@theme_base_color;
|
||||
border-radius:0px;
|
||||
color:inherit;
|
||||
}
|
||||
|
||||
.toggletabs:checked:disabled {
|
||||
background:@theme_base_color;
|
||||
border-radius:0px;
|
||||
color:inherit;
|
||||
padding-top:7px;
|
||||
padding-bottom:7px;
|
||||
}
|
||||
|
||||
.toggletabs:checked>*:disabled {
|
||||
background:@theme_base_color;
|
||||
border-color:inherit;
|
||||
border-style:solid;
|
||||
border-radius:0px;
|
||||
color:inherit;
|
||||
}
|
||||
|
||||
.toggletabs:active {
|
||||
background-color: @background_color;
|
||||
border:none;
|
||||
border-radius:0px;
|
||||
transition:0;
|
||||
padding-top:7px;
|
||||
padding-bottom:7px;
|
||||
}
|
||||
|
||||
.toggletabs:active>* {
|
||||
background:@background_color;
|
||||
border-radius:0px;
|
||||
color:inherit;
|
||||
}
|
||||
|
||||
.menubox {
|
||||
background-color:@theme_text_color;
|
||||
}
|
||||
.menubox *{
|
||||
color:@theme_base_color;
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
[Desktop Entry]
|
||||
Version=2.35
|
||||
Encoding=UTF-8
|
||||
Name=ubinstall-gtk
|
||||
Name[ru]=Установка UBLinux
|
||||
Comment=ubinstall-gtk
|
||||
Comment[ru]=Установка UBLinux
|
||||
Icon=com.ublinux.ubinstall-gtk
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Exec=pkexec /bin/ubinstall-gtk
|
||||
Categories=Settings;System;
|
||||
StartupNotify=true
|
||||