2 | ⚠️ WARNING ⚠️3 |This project is no longer maintained!4 |I have decided to end the project for the time being to work on other projects. However, the project is still usable, I just won't be developing it anymore. 5 |When there is time, I may return to the project, for now the repository is archived. 6 |If you want to get regular updates, switch to Valdo CLI. 7 | |
GTK frontend for Valdo
15 |63 | First Valdo GTK release 64 |
65 |Valdo GTK is based on Valdo, awesome terminal utility created by Princeton Ferro. So if you want to add a template to Valdo GTK, add it to Valdo and you will also see it in the next release of Valdo GTK.
42 |So how to add a template? Just follow the instructions in the README file of the Valdo project.
43 | 44 | 48 | 49 | -------------------------------------------------------------------------------- /generate-pot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | meson compile valdo-gtk-pot -C build 3 | meson compile valdo-gtk-update-po -C build 4 | -------------------------------------------------------------------------------- /meson.build: -------------------------------------------------------------------------------- 1 | project('valdo-gtk', 'vala', 'c', 2 | version: '0.1.0', 3 | license: 'GPL-3.0-or-later' 4 | ) 5 | application_id = 'cz.pervoj.valdo-gtk' 6 | 7 | templates_dir = get_option('prefix') / get_option('datadir') / 'valdo-gtk' / 'templates' 8 | 9 | add_project_arguments ('-DGETTEXT_PACKAGE=@0@'.format(meson.project_name ()), 10 | language: 'c' 11 | ) 12 | 13 | # Check the profile for this build 14 | if get_option('profile') == 'development' 15 | profile = '.Devel' 16 | add_project_arguments('-D', 'DEVEL', 17 | language: 'vala' 18 | ) 19 | else 20 | profile = '' 21 | endif 22 | 23 | add_project_arguments([ 24 | '--vapidir', join_paths(meson.current_source_dir(), 'vapi'), 25 | '--pkg', 'config', 26 | ], 27 | language: 'vala', 28 | ) 29 | 30 | set_defines = [ 31 | ['TEMPLATES', templates_dir], 32 | ['APPLICATION_ID', application_id], 33 | ['ICON_NAME', '@0@@1@'.format(application_id, profile)], 34 | ['VERSION', meson.project_version()], 35 | ['SANDBOX', get_option('sandbox')], 36 | ['LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))], 37 | ['GETTEXT_PACKAGE', meson.project_name()] 38 | ] 39 | config_h = configuration_data() 40 | foreach define: set_defines 41 | config_h.set_quoted(define[0], define[1]) 42 | endforeach 43 | config_file = configure_file( 44 | output: 'config.h', 45 | configuration: config_h 46 | ) 47 | project_config_dep = declare_dependency( 48 | sources: config_file, 49 | include_directories: include_directories('.') 50 | ) 51 | 52 | deps = [ 53 | dependency('glib-2.0'), 54 | dependency('gobject-2.0'), 55 | dependency('gio-2.0'), 56 | dependency('json-glib-1.0'), 57 | dependency('gtk+-3.0'), 58 | project_config_dep 59 | ] 60 | 61 | i18n = import('i18n') 62 | 63 | subdir('data') 64 | subdir('ui') 65 | subdir('src') 66 | subdir('po') 67 | subdir('modules/valdo/templates') 68 | 69 | valdo_conf_data = configuration_data() 70 | valdo_conf_data.set('DATA_DIR', templates_dir) 71 | valdo_conf_data.set('VCS_TAG', '@VCS_TAG@') 72 | valdo_config_vala = configure_file( 73 | input: 'modules/valdo/src/config.vala.in', 74 | output: 'config.vala', 75 | configuration: valdo_conf_data 76 | ) 77 | valdo_files = [ 78 | valdo_config_vala, 79 | 'modules/valdo/src/templateengine.vala', 80 | 'modules/valdo/src/template.vala', 81 | 'modules/valdo/src/variable.vala', 82 | 'modules/valdo/src/value.vala' 83 | ] 84 | 85 | executable('valdo-gtk', 86 | [src, valdo_files, resources], 87 | dependencies: deps, 88 | vala_args: [resource_args], 89 | gui_app: true, 90 | install: true) 91 | 92 | meson.add_install_script('build-aux/meson/postinstall.py') 93 | -------------------------------------------------------------------------------- /meson_options.txt: -------------------------------------------------------------------------------- 1 | option ('profile', 2 | type: 'combo', 3 | value: 'default', 4 | choices: ['default', 'development'], 5 | description: 'The build profile for the app. If none specified, "default" is used.' 6 | ) 7 | 8 | option ('sandbox', 9 | type: 'combo', 10 | value: 'false', 11 | choices: ['false', 'true'], 12 | description: 'Is the app running in the sandbox? If none specified, flase is used.' 13 | ) -------------------------------------------------------------------------------- /po/LINGUAS: -------------------------------------------------------------------------------- 1 | cs 2 | es 3 | it 4 | nl 5 | -------------------------------------------------------------------------------- /po/POTFILES: -------------------------------------------------------------------------------- 1 | data/cz.pervoj.valdo-gtk.desktop.in 2 | data/cz.pervoj.valdo-gtk.metainfo.xml.in 3 | 4 | ui/main-window.glade 5 | ui/page-list-latest-projects.glade 6 | ui/no-projects.glade 7 | ui/page-list-available-templates.glade 8 | ui/page-list-template-variables.glade 9 | ui/page-creating-success.glade 10 | ui/list-item.glade 11 | ui/form-list-item.glade 12 | ui/preferences-window.glade 13 | 14 | src/app.vala 15 | src/main-window.vala 16 | src/page-projects.vala 17 | src/page-templates.vala 18 | src/page-variables.vala 19 | src/list-item.vala 20 | src/form-list-item.vala 21 | src/preferences-window.vala -------------------------------------------------------------------------------- /po/cs.po: -------------------------------------------------------------------------------- 1 | # Czech translations for PACKAGE package. 2 | # Copyright (C) 2021 THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # Vojtěch Perník