From fc553ca9c1a3785e68422bde83c173fc923f6bbe Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 11 Dec 2023 12:46:08 +0600 Subject: [PATCH 1/4] Init commit --- .gitignore | 147 + LICENSE | 117 + README.md | 47 + com.ublinux.ublsettingsui-gtk3.checked.svg | 327 ++ com.ublinux.ublsettingsui-gtk3.svg | 4957 ++++++++++++++++++++ com.ublinux.ublsettingsui-gtk3.warning.svg | 55 + gresource.xml | 17 + source/CMakeLists.txt | 101 + source/ublsettingsui-gtk3.c | 184 + source/ublsettingsui-gtk3.h | 198 + ublsettingsui-gtk3-about.glade | 64 + ublsettingsui-gtk3-banner.png | Bin 0 -> 33872 bytes ublsettingsui-gtk3-documentation.glade | 208 + ublsettingsui-gtk3-save-confirmation.glade | 145 + ublsettingsui-gtk3.css | 114 + ublsettingsui-gtk3.glade | 502 ++ ublsettingsui-gtk3.pot | 122 + ublsettingsui-gtk3_ru.po | 126 + 18 files changed, 7431 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 com.ublinux.ublsettingsui-gtk3.checked.svg create mode 100644 com.ublinux.ublsettingsui-gtk3.svg create mode 100644 com.ublinux.ublsettingsui-gtk3.warning.svg create mode 100644 gresource.xml create mode 100644 source/CMakeLists.txt create mode 100644 source/ublsettingsui-gtk3.c create mode 100644 source/ublsettingsui-gtk3.h create mode 100644 ublsettingsui-gtk3-about.glade create mode 100644 ublsettingsui-gtk3-banner.png create mode 100644 ublsettingsui-gtk3-documentation.glade create mode 100644 ublsettingsui-gtk3-save-confirmation.glade create mode 100644 ublsettingsui-gtk3.css create mode 100644 ublsettingsui-gtk3.glade create mode 100644 ublsettingsui-gtk3.pot create mode 100644 ublsettingsui-gtk3_ru.po diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..370ce61 --- /dev/null +++ b/.gitignore @@ -0,0 +1,147 @@ +# ---> C +# Prerequisites +*.d + +# Object files +*.o +*.ko +*.obj +*.elf + +# Linker output +*.ilk +*.map +*.exp + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + +# Debug files +*.dSYM/ +*.su +*.idb +*.pdb + +# Kernel Module Compile Results +*.mod* +*.cmd +.tmp_versions/ +modules.order +Module.symvers +Mkfile.old +dkms.conf + +# Ubl projects output +.vscode/ +ubl-settings-TEMPLATE +*~ +build/ +*compile/ +*# +terminal-commands/ +source/ubl-cmake.h +vgcore* +.BUILD.md +.updatebuild.sh +.install.sh +ublsettings-ui-debug +.install-debug.sh + +# ---> C++ +# Prerequisites +*.d + +# Compiled Object files +*.slo +*.lo +*.o +*.obj + +# Precompiled Headers +*.gch +*.pch + +# Compiled Dynamic libraries +*.so +*.dylib +*.dll + +# Fortran module files +*.mod +*.smod + +# Compiled Static libraries +*.lai +*.la +*.a +*.lib + +# Executables +*.exe +*.out +*.app + +# ---> CMake +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps + +# ---> ArchLinuxPackages +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +pkg/ +src/ + +# Ubl project output +.vscode/ +ubl-settings-TEMPLATE +*~ +build/ +*compile/ +*# +terminal-commands/ +source/ubl-cmake.h +vgcore* +.BUILD.md +.updatebuild.sh +.install.sh +ublsettings-ui-debug +.install-debug.sh \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..17cb286 --- /dev/null +++ b/LICENSE @@ -0,0 +1,117 @@ +GNU GENERAL PUBLIC LICENSE +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA + +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. + + c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. + + one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author + + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. + +signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice diff --git a/README.md b/README.md index 9c09318..2774b4e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,49 @@ # libublsettingsui-gtk3 +# Выполнить +# Build +In order to build ubl-settings-logging you will need: +- CMake +- C compiler +- [libublsettings](https://gitea.ublinux.ru/Applications/libublsettings) +- [libublsettings-gtk3](https://gitea.ublinux.ru/Applications/libublsettingsui-gtk3) +- GTK+ 3 & dependencies +- webkit2gtk (optional) +- vte-2.91 + +Once you have all the necessary dependencies, you can use: +```sh +$ make +``` + +# Installation +After a successful build, just use: +```sh +$ sudo make install clean +``` + +# Uninstallation +After a successful build, just use: +```sh +$ sudo make uninstall +``` +# Library usage +Libublsettingsui-gtk3 provides library: +```C + #include +``` +## ublsettingsui-gtk3 +ublsettingsui-gtk3 provides API to use ubl-settings- applications shared interface: main window, about dialog, confirmation window. +First of all, you need to connect config structure to standard interface: +```C + _template_config config; + yon_ubl_connect_config(config); +``` +Next step you should initialize all necceccary information for standard interface: +```C +yon_ubl_window_init("Title of util","Description of util",".po file name","path to css file (must be connected as resource)","filename of your util","Version of util","About dialog wiki link"); +``` +And finaly you get interface structure: +```C + template_main_window *widgets = yon_ubl_window_setup(); +``` \ No newline at end of file diff --git a/com.ublinux.ublsettingsui-gtk3.checked.svg b/com.ublinux.ublsettingsui-gtk3.checked.svg new file mode 100644 index 0000000..e3cab42 --- /dev/null +++ b/com.ublinux.ublsettingsui-gtk3.checked.svg @@ -0,0 +1,327 @@ + + + + + + + + + + + + + + + + diff --git a/com.ublinux.ublsettingsui-gtk3.svg b/com.ublinux.ublsettingsui-gtk3.svg new file mode 100644 index 0000000..f636c26 --- /dev/null +++ b/com.ublinux.ublsettingsui-gtk3.svg @@ -0,0 +1,4957 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/com.ublinux.ublsettingsui-gtk3.warning.svg b/com.ublinux.ublsettingsui-gtk3.warning.svg new file mode 100644 index 0000000..9a90dba --- /dev/null +++ b/com.ublinux.ublsettingsui-gtk3.warning.svg @@ -0,0 +1,55 @@ + + + + + + image/svg+xml + + + + + + + + diff --git a/gresource.xml b/gresource.xml new file mode 100644 index 0000000..4c3f1da --- /dev/null +++ b/gresource.xml @@ -0,0 +1,17 @@ + + + + ublsettingsui-gtk3.glade + ublsettingsui-gtk3-about.glade + ublsettingsui-gtk3-documentation.glade + ublsettingsui-gtk3-save-confirmation.glade + + + ublsettingsui-gtk3.css + + + ublsettingsui-gtk3-banner.png + com.ublinux.ublsettingsui-gtk3.checked.svg + com.ublinux.ublsettingsui-gtk3.warning.svg + + \ No newline at end of file diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt new file mode 100644 index 0000000..580e8b1 --- /dev/null +++ b/source/CMakeLists.txt @@ -0,0 +1,101 @@ +cmake_minimum_required(VERSION 3.9) +project(ublsettingsui-gtk3 VERSION 3.1) +include(GNUInstallDirs) + +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}) + +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 ublsettingsui-gtk3.glade) + +set(DEPENDFILES + ../ublsettingsui-gtk3.glade + ../ublsettingsui-gtk3-about.glade + ../ublsettingsui-gtk3-documentation.glade + ../ublsettingsui-gtk3-save-confirmation.glade + ../gresource.xml + ../ublsettingsui-gtk3-banner.png + ../ublsettingsui-gtk3.css + ../com.ublinux.ublsettingsui-gtk3.checked.svg + ../com.ublinux.ublsettingsui-gtk3.warning.svg + ) + +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} +) + +#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -std=c++2a") +#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -lm") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -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") + +add_library(${PROJECT_NAME} SHARED + ublsettingsui-gtk3.c + ublsettingsui-gtk3.h + ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C}) + + +set(LIBRARIES + ${GTK_LIBRARIES} + ${WEBKIT_LIBRARIES} + ${VTE291_LIBRARIES} + ublsettings + ublsettings-gtk3 + pthread) + + message(${CMAKE_INSTALL_LIBDIR}) +target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR}) + +target_link_libraries(${PROJECT_NAME} PUBLIC ${LIBRARIES}) + +set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C) +set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION}) +set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) +set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER ${PROJECT_NAME}.h) + +install(TARGETS ${PROJECT_NAME} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} +) +# Set pkg-config file to install. \ No newline at end of file diff --git a/source/ublsettingsui-gtk3.c b/source/ublsettingsui-gtk3.c new file mode 100644 index 0000000..c48db2e --- /dev/null +++ b/source/ublsettingsui-gtk3.c @@ -0,0 +1,184 @@ +#include "ublsettingsui-gtk3.h" + + + +//signal emmit handlers - no header initialization + +void on_subwindow_close(GtkWidget *self){ + gtk_widget_destroy(gtk_widget_get_toplevel(self)); +} + +void yon_open_browser(GtkWidget *self, char *link){ + yon_ubl_browser_window_open(link,template_app_information.app_title); +} + +void on_open_documentation_confirmation(GtkWidget *self, char *link){ + if (template_app_information.always_open_documentation==0){ + GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path_documentation); + template_documentation_confirmation_window *window = malloc(sizeof(template_documentation_confirmation_window)); + window->Window = yon_gtk_builder_get_widget(builder,"helpConfirmationWindow"); + window->AcceptButton = yon_gtk_builder_get_widget(builder,"ReadHelpButton"); + window->CloseButton = yon_gtk_builder_get_widget(builder,"CancelHelpButton"); + window->HeaderLabel = yon_gtk_builder_get_widget(builder,"webHeaderNameLabel"); + window->AlwaysOpenCheck = yon_gtk_builder_get_widget(builder,"AlwaysOpenDocumentationCheckbox"); + gtk_label_set_text(GTK_LABEL(window->HeaderLabel),template_app_information.app_title); + gtk_widget_show_all(window->Window); + g_signal_connect(G_OBJECT(window->CloseButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); + g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(yon_open_browser),yon_char_new(link)); + g_signal_connect(G_OBJECT(window->AcceptButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); + + + } else { + yon_open_browser(self,link); + } +} + +/**on_link(GtkWidget *self, char* uri, gpointer user_data) + * [EN] + * Signal for hadnling AboutDialog links. + * Connect to "activate-link" signal. + * [self] is AboutDialog window; + * [uri] is activated link; + * [user_data] is pointer for user data, hasn't used in standard handler; + * [RU] + * Функция для обработки сигнала нажатия на ссылку окна AboutDialog. + * Присоединять к сигналу "activate-link". + * [self] - окно AboutDialog; + * [uri] - ссылка, по которой совершается переход; + * [user_data] - указатель на любые другие данные, не используется в стандартном обработчике; +*/ +void on_link(GtkWidget *self, char* uri, gpointer user_data){ + gtk_widget_destroy(self); + on_open_documentation_confirmation(self,uri); +} + +void on_about(GtkWidget *self, char *version_application){ + GtkBuilder *builder=gtk_builder_new_from_resource(ui_glade_path_about); + GtkWidget *window=yon_gtk_builder_get_widget(builder,"AboutWindow"); + GtkWidget *title=yon_gtk_builder_get_widget(builder,"headerAboutTopic"); + GtkWidget *hideButtonBox=yon_gtk_builder_get_widget(builder,"buttonBoxHide"); + gtk_about_dialog_set_version(GTK_ABOUT_DIALOG(window),version_application); + gtk_about_dialog_set_comments(GTK_ABOUT_DIALOG(window),template_app_information.app_title); + gtk_about_dialog_set_logo_icon_name(GTK_ABOUT_DIALOG(window),yon_char_append("com.ublinux.",template_app_information.app_tech_name)); + gtk_label_set_text(GTK_LABEL(title),template_app_information.app_title); + g_signal_connect(G_OBJECT(window),"activate-link",G_CALLBACK(on_link),NULL); + gtk_widget_set_visible(hideButtonBox,0); + gtk_widget_destroy(hideButtonBox); + gtk_widget_show(window); +} + +//functions + +void yon_load_proceed(char *command){ + yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); + +} + +// standard functions + +int yon_ubl_connect_config(_template_config *config){ + int replaces; + if(!template_config) + replaces=0; + else + replaces=1; + template_config = config; + return replaces; +} + +template_main_window *setup_window(){ + /* Widgets getting | Получение виджетов */ + template_main_window *widgets = malloc(sizeof(template_main_window)); + GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path); + widgets->Window = yon_gtk_builder_get_widget(builder,"MainWindow"); + widgets->HeadLabel = yon_gtk_builder_get_widget(builder,"headerTopic"); + widgets->PlugBox = yon_gtk_builder_get_widget(builder,"plugBox"); + + widgets->HeadOverlay = yon_gtk_builder_get_widget(builder,"HeadOverlay"); + widgets->HeadImage = yon_gtk_builder_get_widget(builder,"HeadBackgroundImage"); + widgets->HeadBox = yon_gtk_builder_get_widget(builder,"HeaderBox"); + widgets->HeadTitleLabel = yon_gtk_builder_get_widget(builder,"HeaderTitleLabel"); + widgets->HeadInfoLabel = yon_gtk_builder_get_widget(builder,"HeaderInfoLabel"); + + widgets->StatusBox = yon_gtk_builder_get_widget(builder,"mainStatusBox"); + widgets->StatusIcon = yon_gtk_builder_get_widget(builder,"mainStatusIcon"); + widgets->StatusLabel = yon_gtk_builder_get_widget(builder,"mainStatusLabel"); + + widgets->SaveMenuItem = yon_gtk_builder_get_widget(builder,"SaveGlobalLocalConfigurationMenuItem"); + widgets->SaveGlobalMenuItem = yon_gtk_builder_get_widget(builder,"SaveGlobalConfigurationMenuItem"); + widgets->SaveLocalMenuItem = yon_gtk_builder_get_widget(builder,"SaveLocalConfigurationMenuItem"); + widgets->RightBox = yon_gtk_builder_get_widget(builder,"HeaderRightBox"); + + widgets->LoadGlobalMenuItem = yon_gtk_builder_get_widget(builder,"LoadGlobalConfigurationMenuItem"); + widgets->LoadLocalMenuItem = yon_gtk_builder_get_widget(builder,"LoadLocalConfigurationMenuItem"); + widgets->LeftBox = yon_gtk_builder_get_widget(builder,"HeaderLeftBox"); + + widgets->InterfaceBox = yon_gtk_builder_get_widget(builder,"InterfaceBox"); + GtkWidget *HatIcon = yon_gtk_builder_get_widget(builder,"HatIcon"); + GtkWidget *HeadImage = yon_gtk_builder_get_widget(builder,"HeadImage"); + + widgets->DocumentationMenuItem = yon_ubl_menu_item_documentation_new(DOCUMENTATION_LABEL); + widgets->AboutMenuItem = yon_ubl_menu_item_about_new(ABOUT_LABEL); + + gtk_window_set_icon_name(GTK_WINDOW(widgets->Window),yon_char_append("com.ublinux.",template_app_information.app_tech_name)); + // gtk_image_set_from_icon_name(widgets->HeadImage,) + gtk_image_set_from_pixbuf(GTK_IMAGE(HeadImage),gtk_icon_theme_load_icon_for_scale(gtk_icon_theme_get_default(),yon_char_append("com.ublinux.",template_app_information.app_tech_name),32,1,GTK_ICON_LOOKUP_FORCE_SIZE,NULL)); + gtk_image_set_from_pixbuf(GTK_IMAGE(HatIcon),gtk_icon_theme_load_icon_for_scale(gtk_icon_theme_get_default(),yon_char_append("com.ublinux.",template_app_information.app_tech_name),64,1,GTK_ICON_LOOKUP_FORCE_SIZE,NULL)); + gtk_window_set_title(GTK_WINDOW(widgets->Window),template_app_information.app_title); + gtk_label_set_text(GTK_LABEL(widgets->HeadLabel),template_app_information.app_title); + gtk_label_set_text(GTK_LABEL(widgets->HeadTitleLabel),template_app_information.app_title); + gtk_label_set_text(GTK_LABEL(widgets->HeadInfoLabel),template_app_information.app_description); + + GtkWidget *menu = yon_gtk_builder_get_widget(builder,"menu2"); + gtk_menu_shell_append(GTK_MENU_SHELL(menu),widgets->DocumentationMenuItem); + gtk_menu_shell_append(GTK_MENU_SHELL(menu),widgets->AboutMenuItem); + + /* Widget registration for config monitoring | Регистрация виджетов для мониторинга конфига */ + // yon_window_config_add_listener(widgets->HeadInfoLabel,"head-text","label",YON_TYPE_STRING); + + /* Signal connection | Присоединение сигналов */ + g_signal_connect(G_OBJECT(widgets->Window), "destroy", G_CALLBACK(gtk_main_quit), NULL); + g_signal_connect(G_OBJECT(widgets->DocumentationMenuItem),"activate",G_CALLBACK(on_open_documentation_confirmation),template_app_information.wiki_link); + g_signal_connect(G_OBJECT(widgets->AboutMenuItem),"activate",G_CALLBACK(on_about),NULL); + + + gtk_widget_show(widgets->Window); + return widgets; +} + +int yon_ubl_window_init(char *app_title, char *app_description, char *locale, char *css, char *tech_name, char *version, char *wiki){ + template_app_information.app_title=app_title; + template_app_information.css_path=css; + template_app_information.app_tech_name=tech_name; + template_app_information.app_version=version; + template_app_information.wiki_link=wiki; + template_app_information.app_description=app_description; + + template_app_information.app_locale=locale; +} + +template_main_window *yon_ubl_window_setup(){ + textdomain (template_ui_LocaleName); + setlocale(LC_ALL,""); + + template_main_window *widgets = setup_window(); + yon_ubl_header_setup_resource(widgets->HeadOverlay,widgets->HeadBox,widgets->HeadImage,ui_banner_path); + + if (yon_ubl_status_box_setup(widgets->StatusIcon,widgets->StatusBox,widgets->StatusLabel)){ + if (getuid()!=0) + yon_ubl_status_box_render(ROOT_WARNING_LABEL,BACKGROUND_IMAGE_FAIL_TYPE); + else + yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); + } + if(template_config) + yon_ubl_setup_sockets(widgets->PlugBox,widgets->LeftBox,widgets->RightBox,template_config->socket_id,template_config->load_socket_id,template_config->save_socket_id); + yon_window_config_setup(GTK_WINDOW(widgets->Window)); + yon_window_config_load(ui_config_path); + GtkCssProvider *css=gtk_css_provider_new(); + gtk_css_provider_load_from_resource(css,ui_CssPath); + gtk_style_context_add_provider_for_screen(gdk_screen_get_default(), + GTK_STYLE_PROVIDER(css), + -1); + + return widgets; +} diff --git a/source/ublsettingsui-gtk3.h b/source/ublsettingsui-gtk3.h new file mode 100644 index 0000000..f72c510 --- /dev/null +++ b/source/ublsettingsui-gtk3.h @@ -0,0 +1,198 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + #include + +#define ui_WIKI_LINK "https://wiki.ublinux.ru/ru/Программное_обеспечение/Программы_и_утилиты/Все/ublsettingsui-gtk3" + +#define _(String) gettext(String) + +#define ui_glade_path "/com/ublinux/ui/ublsettingsui-gtk3.glade" +#define ui_glade_path_documentation "/com/ublinux/ui/ublsettingsui-gtk3-documentation.glade" +#define ui_glade_path_about "/com/ublinux/ui/ublsettingsui-gtk3-about.glade" +#define ui_banner_path "/com/ublinux/images/ublsettingsui-gtk3-banner.png" +#define ui_CssPath "/com/ublinux/css/ublsettingsui-gtk3.css" +#define ui_config_path yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",template_app_information.app_tech_name,"/",template_app_information.app_tech_name,".conf",NULL) + +#ifndef UBL_UI + #define template_ui_LocalePath "/usr/share/locale" + #define template_ui_LocaleName "ublsettingsui-gtk3" + + #define SUCCESS_LABEL _("Operation succeeded") + #define ROOT_WARNING_LABEL _("Warning! Application was launched without root - root-dependent actions are locked") + + #define ABOUT_LABEL _("About") + #define DOCUMENTATION_LABEL _("Documentation") + + #define SAVE_LOCAL_LABEL _("Save to local configuration") + #define SAVE_GLOBAL_LABEL _("Save to global configuration") + #define SAVE_CONFIGURATION_LABEL _("Save configuration") + #define SAVE_LABEL _("Save") + + #define LOAD_LOCAL_LABEL _("Load local configuration") + #define LOAD_GLOBAL_LABEL _("Load global configuration") + #define LOAD_LABEL _("Load") + + #define CANCEL_LABEL _("Cancel") + #define ACCEPT_LABEL _("Accept") + + #define HELP_TITLE_LABEL _("Would you like to read documentation in the Web?") + #define HELP_INFO_LABEL _("You will be redirected to documentation website where documentation is\ntranslated and supported by community.") + #define HELP_ALWAYS_OPEN_LABEL _("Always redirect to online documentation") + #define OPEN_HELP_LABEL _("Open documentation") + #define PROJECT_HOME_LABEL _("Project Home Page") + #define NOTHING_CHOSEN_LABEL _("Nothing were chosen") + + + #define GLOBAL_LOAD_SUCCESS_LABEL _("Global configuration loading succeeded.") + #define LOCAL_LOAD_SUCCESS_LABEL _("Local configuration loading succeeded.") + #define LOAD_FAILED_LABEL _("Config loading failed") + + #define GLOBAL_LOCAL_SAVE_SUCCESS_LABEL _("Local and global configuration saving succeeded.") + #define GLOBAL_SAVE_SUCCESS_LABEL _("Global configuration saving succeeded.") + #define LOCAL_SAVE_SUCCESS_LABEL _("Local configuration saving succeeded.") +#endif + +typedef struct { + GtkWidget *interface; + + char *app_locale; + char *css_path; + + char *app_title; + char *app_description; + + char *app_tech_name; + char *app_version; + char *wiki_link; + + gboolean always_open_documentation; +} template_app_info; +static template_app_info template_app_information; + +typedef struct { + int socket_id; + int load_socket_id; + int save_socket_id; + + int lock_help; + int lock_save_local; + int lock_save_global; + int lock_load_global; + + int always_open_documentation; +} _template_config; +static _template_config *template_config; + +typedef struct { + GtkWidget *Window; + GtkWidget *HeadLabel; + GtkWidget *PlugBox; + + GtkWidget *HeadOverlay; + GtkWidget *HeadImage; + GtkWidget *HeadBox; + GtkWidget *HeadTitleLabel; + GtkWidget *HeadInfoLabel; + + GtkWidget *StatusBox; + GtkWidget *StatusIcon; + GtkWidget *StatusLabel; + + GtkWidget *SaveMenuItem; + GtkWidget *SaveGlobalMenuItem; + GtkWidget *SaveLocalMenuItem; + GtkWidget *RightBox; + + GtkWidget *LoadGlobalMenuItem; + GtkWidget *LoadLocalMenuItem; + GtkWidget *LeftBox; + + GtkWidget *DocumentationMenuItem; + GtkWidget *AboutMenuItem; + + GtkWidget *InterfaceBox; +} template_main_window; + + +typedef struct { + GtkWidget *Window; + GtkWidget *HeaderLabel; + + GtkWidget *AlwaysOpenCheck; + + GtkWidget *CloseButton; + GtkWidget *AcceptButton; +} template_documentation_confirmation_window; + +/**yon_open_browser(GtkWidget *self, char *link) + * [EN] + * Opens browser with [link] link. + * [RU] + * Открывает браузер с [link] ссылкой. +*/ +void yon_open_browser(GtkWidget *self, char *link); + +/**yon_ubl_connect_config(_template_config *config) + * [EN] + * + * [RU] + * Присоединяет конфиг основной утилиты (struct config) к стандартному интерфейсу. +*/ +int yon_ubl_connect_config(_template_config *config); + +/**yon_ubl_window_init(int argc, char *argv[]) + * [EN] + * + * [RU] + * Создаёт и настраивает основное окно приложения. +*/ +template_main_window *yon_ubl_window_setup(); + +/**yon_ubl_window_setup(GtkWidget *interface, char *app_title, char *app_description, char *locale, char *css, char *tech_name, char *version, char *wiki) + * [EN] + * + * [RU] + * Установить важные значения для конфига; + * [app_title] - оботражаемое имя утилиты; + * [app_description] - отображаемое описание утилиты; + * [css] - путь к ресурсу css файла; + * [tech_name] - техническое имя утилиты (ubl-settings-) + * [version] - строка с версией приложения; + * [wiki] - ссылка на вики страницу; +*/ +int yon_ubl_window_init(char *app_title, char *app_description, char *locale, char *css, char *tech_name, char *version, char *wiki); + +/**on_about() + * [EN] + * Function for setting up and showing AboutDialog. + * Connect it to "activate" signal of Documentation MenuItem. + * [RU] + * Функиця для настройки и показа окна AboutDialog. + * Присоединять к сигналу "activate" кнопки справки типа MenuItem. +*/ +void on_about(GtkWidget *self, char *version_application); + +/**on_open_documentation_confirmation(GtkWidget *self, char *link) + * [EN] + * Opens confirmation window for [link] link. + * [RU] + * Открывает окно подтверждения перехода по ссылке [link]. +*/ +void on_open_documentation_confirmation(GtkWidget *self, char *link); + +/**on_subwindow_close(GtkWidget *self) + * [EN] + * Closes window in which [self] is contained. + * [RU] + * Закрывает окно, в котором расположен виджет [self]. +*/ +void on_subwindow_close(GtkWidget *self); \ No newline at end of file diff --git a/ublsettingsui-gtk3-about.glade b/ublsettingsui-gtk3-about.glade new file mode 100644 index 0000000..0dae3ac --- /dev/null +++ b/ublsettingsui-gtk3-about.glade @@ -0,0 +1,64 @@ + + + + + + False + False + True + center + com.ublinux.ublsettingsui-gtk3 + dialog + True + ublsettingsui-gtk3 + 1.1 + Copyright © 2022 - 2023, UBSoft LLC + TEMPLATE Manager + https://wiki.ublinux.ru/ru/Программное_обеспечение/Программы_и_утилиты/Все/ublsettingsui-gtk3 + Project Home Page + Это приложение распространяется без каких-либо гарантий. +Подробнее в <a href="https://www.gnu.org/licenses/old-licenses/gpl-2.0.html">GNU General Public License, версии 2 или позднее</a>. + UBGroup + UBGroup + com.ublinux.ublsettingsui-gtk3 + True + gpl-2-0 + + + False + + + False + + + False + False + 0 + + + + + + + True + False + True + + + True + False + 5 + 5 + 5 + 5 + 2 + TEMPLATE Manager + + + + + + + + + diff --git a/ublsettingsui-gtk3-banner.png b/ublsettingsui-gtk3-banner.png new file mode 100644 index 0000000000000000000000000000000000000000..8eb67cbc38babeaf498d981356cf7e77e2741f12 GIT binary patch literal 33872 zcmeFYWmuKl+BQ6C1O+4{L`v!IkZvYDX{2M)4blxNU6WF}kp=pV{*)KugiV3A=#Adm+N^3pH}1nCm| z4#PwTKQ;FJ#UT)EG9OJ{cbKUsm9wi8+{WIL%H7-9lFHJ{1`dIE%~zz^C9VqKgxziv z`l3EWy|*vmC%g0D^!!pnTT2X1XLf4p`Jz@yor)_#e!BklWYq0CH1)h9_0iG1ZJW2v z1YIUUhgj8tU(t)~(RGhL-;{v103vTEd^XG2i=%pf!)1eY;kM<4%lKp78@s%!q)9<$ zv4D;1Hqn4K(WQHOBTfWu4}TteAGR$$UW%w~eYm-P>G$;g@bA>ZiVIP_WyPD-4tSEj zE!UdH8edtATk4A#ze>zwC7W#W82*U8@Txsysqi$5b%c|sTR{HMf!O*8=fS{<;*aA1 zw%%e3U;IE6T53ESU&>=P-oy(x$AF(3>_&lBdi=P8&(Uwg=FblJm;AD?`yShLjQ@Jf zTeTN|#a!-rEqb$gqS;RO=MQzDm~lWr?dX|OK%3FTVt`8T3HP^k7O~MhJ((FO+g3|S z6|JaM^y7ry^~x^`yFOj|>(7>A8keuLoNX7AppP>epLO~q7A5-#*@*S0(^0>-=ZvK} zO1v^~7q{i2G_r1;csR&fwWDSxNJKh^L`2#H6#t3&LnBfJ)PuF($}kUYN2Bmz$_jXSd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)rOJj)3=qyn-=kg#J2_+CpHmg= z2|91OR@%bsJo1D2BY)M;R_^2yNDrN{DY!Oh+`5Q1ty_=eZs`B#nbem2;g7V?=#p7e zOe-u(p^^OUk``6LK`{7Q-tEWimBqVD6l#^?`D*t4;!c7}q0=?rpABGt_4g( zbfkLQBhzN5qj-mN{{6(a4jPsHYVE5=+OU{`!~Vv1?uuU$t2O3jO8tuLr8RS;OEa^Y zva3)V>f#@n13T>Ni@hp_vR=d@7H!1uF8*%goxQEX;(NITBSLqud#yc8op9ULuU}O2 z6#KrRkd-J;7Ezv9c>Xmd=C4uq*3lwrvJ7>F5?E}5<-n>vdv%<@g zrQo2R=RPQX%Q{@ccyA#@z^KeR&JtD%xb`<2%Y)V;$R{tH`ZMLHAL(Uh;+kH^pKTQ0 z=#_OVpm-NMuu0$e-8JCvAX@{k<9**F4{_r=&j-4@Z?N>_HCAySs2MvOEpaS08f~Jk zIh$gh7vQR1Wo&sdJTiGrF|4erRL3*>o>-RN@+Pk0fx%6upl3pX#*&$4h=tG0gCc3~ zlO-KPzujh%8kx5Cd$5YCYSdWLoH2Tno`Z3CGKn4kS06VxEG2uJAZXy14}GuaK+|pY z$n_?Nht$);J$*yf=Lg9bO4k0?tc}StN}38Cd1+;woJLNQF25KzzFo{)V8$qT)2f!l zdnqZ9y3O-N_--xXN&5kF>i)0Yg-fM#Q|iS!rxoq)OoAJ^6vgJG@%y>6hIM^o-L11!>eVcf7tn-a8dg{+o0;C|B|O!*1iV7+<$~ z@rm9|CIGirCK3eoPw071ylNv#B>r^yD%q7E*W&)%c3)}F_QF_c)Rg3}HCNt=kHtI^ z$WC?bl#1N;B-&}FqMKUW^GOs6-(zhFd^wWmM}{$ecA7g^wnD3R$d@#rEuG9^%{Usg zxVKm&tLmfy7J;OW^io(IWj2KsM)Se_cUO@ z + + + + + False + False + 450 + dialog-question-symbolic + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + vertical + 10 + + + True + False + + + True + False + start + 20 + 20 + dialog-question-symbolic + 6 + + + False + True + 0 + + + + + True + False + vertical + + + True + False + start + 10 + 5 + Would you like to read documentation in the Web? + True + 0 + + + + + + + False + True + 0 + + + + + True + False + start + start + 10 + 10 + You will be redirected to documentation website where documentation is +translated and supported by community. + True + 0 + + + + False + True + 1 + + + + + Always redirect to online documentation + True + True + False + end + True + + + + False + True + end + 2 + + + + + + True + True + 1 + + + + + + True + True + 0 + + + + + True + False + 30 + True + + + Cancel + True + True + True + image8 + + + + True + True + 0 + + + + + Open documentation + True + True + True + image9 + + + + True + True + 1 + + + + + False + True + 1 + + + + + + + True + False + True + + + True + False + TEMPLATE Manager + + + + + + + + + + True + False + process-stop-symbolic + + + True + False + emblem-ok-symbolic + + diff --git a/ublsettingsui-gtk3-save-confirmation.glade b/ublsettingsui-gtk3-save-confirmation.glade new file mode 100644 index 0000000..488e351 --- /dev/null +++ b/ublsettingsui-gtk3-save-confirmation.glade @@ -0,0 +1,145 @@ + + + + + + True + False + process-stop-symbolic + + + True + False + emblem-ok-symbolic + + + + + + + + + + + False + False + 450 + dialog-question-symbolic + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + vertical + 10 + + + True + True + liststore1 + + + + + + Parameter + + + + 0 + + + + + + + Save + + + + 1 + + + + + + + True + True + 0 + + + + + True + False + end + 5 + True + + + Cancel + True + True + True + image8 + + + + True + True + 0 + + + + + Accept + True + True + True + image9 + + + + True + True + 1 + + + + + False + True + 1 + + + + + + + True + False + True + + + True + False + ubl-settings-TEMPLATES + + + + + + + + + diff --git a/ublsettingsui-gtk3.css b/ublsettingsui-gtk3.css new file mode 100644 index 0000000..88e8c57 --- /dev/null +++ b/ublsettingsui-gtk3.css @@ -0,0 +1,114 @@ + +.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:2px 2px 0 2px; + padding: 3px 10px 3px 5px; + /* padding: 5px 0px 3px 5px; */ + border:transparent; + } + .menuitemmiddle>*{ + margin:0 2px 0 2px; + padding: 3px 10px 3px 5px; + /* padding: 3px 0px 3px 5px; */ + border:transparent; + } + .menuitembottom>*{ + margin:0 2px 2px 2px; + padding: 3px 10px 3px 5px; + /* padding: 3px 0px 5px 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:2px 2px 0 2px; + padding: 3px 10px 3px 5px; + /* padding: 5px 0 3px 5px; */ + background:@theme_selected_bg_color; + border-radius:2px; + } + .menuitemmiddle:hover>* { + margin:0 2px 0px 2px; + padding: 3px 10px 3px 5px; + /* padding: 3px 0px 3px 5px; */ + background:@theme_selected_bg_color; + border-radius:2px; + } + .menuitembottom:hover>* { + margin:0 2px 2px 2px; + padding: 3px 10px 3px 5px; + /* padding: 3px 0px 5px 5px; */ + background:@theme_selected_bg_color; + border-radius:2px; + } + .boxInfoMessError{ + background-color: #ea9999; +} + +.boxInfoMessOK{ + background-color: #f3f0ac; +} \ No newline at end of file diff --git a/ublsettingsui-gtk3.glade b/ublsettingsui-gtk3.glade new file mode 100644 index 0000000..1e4feb9 --- /dev/null +++ b/ublsettingsui-gtk3.glade @@ -0,0 +1,502 @@ + + + + + + + + + + True + False + center + + + True + False + 5 + 5 + 5 + 5 + 6 + 6 + 64 + com.ublinux.ublsettingsui-gtk3 + + + False + True + 0 + + + + + True + False + + + True + False + + + True + False + center + vertical + + + 255 + True + False + end + TEMPLATE Manager + 0 + + + + + + + + True + True + 0 + + + + + 255 + True + False + start + TEMPLATE management app + 0 + + + + + + + + True + True + 1 + + + + + False + True + 0 + + + + + True + True + 0 + + + + + True + True + 1 + + + + + True + False + False + + + True + False + Load global configuration + + + + + + True + False + Load local configuration + + + + + + True + False + False + False + + + True + False + False + + + True + False + Save configuration + + + + + + True + False + Save to global configuration + + + + + + True + False + Save to local configuration + + + + + + 800 + 600 + False + 800 + 600 + com.ublinux.ublsettingsui-gtk3 + + + True + False + vertical + + + True + False + vertical + + + True + False + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + 25 + + + False + True + 0 + + + + + True + False + start + 5 + 5 + 5 + 5 + 6 + 6 + True + + + + + + + False + True + 1 + + + + + False + True + 0 + + + + + True + False + vertical + + + 81 + True + False + + + True + False + start + + + -1 + + + + + False + True + 0 + + + + + False + True + 1 + + + + + True + False + 5 + 5 + 5 + 5 + 5 + 5 + True + True + vertical + + + + + + False + True + 2 + + + + + True + True + 0 + + + + + + + True + False + True + + + True + False + 5 + 5 + 5 + 5 + 2 + TEMPLATE Manager + + + + + + + + True + False + 5 + 5 + 5 + 5 + 6 + 6 + 32 + com.ublinux.ublsettingsui-gtk3 + + + + + True + False + + + True + True + False + True + menu3 + + + True + False + + + True + False + Save + + + False + True + 0 + + + + + True + False + pan-down-symbolic + + + False + True + 1 + + + + + + + False + True + 0 + + + + + True + True + True + False + True + True + menu2 + none + + + + + + + False + True + 1 + + + + + end + 1 + + + + + True + False + + + True + True + False + True + menu1 + + + True + False + + + True + False + Load + + + False + True + 0 + + + + + True + False + pan-down-symbolic + + + False + True + 1 + + + + + + + False + True + 0 + + + + + 2 + + + + + + + diff --git a/ublsettingsui-gtk3.pot b/ublsettingsui-gtk3.pot new file mode 100644 index 0000000..1c4b59d --- /dev/null +++ b/ublsettingsui-gtk3.pot @@ -0,0 +1,122 @@ +# Language translations for ublsettingsui-gtk3 package. +# Copyright (C) 2022, UBTech LLC +# This file is distributed under the same license as the ublsettingsui-gtk3 package. +# UBLinux Team , 2022 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ublsettingsui-gtk3 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-05-22 16:12+0600\n" +"PO-Revision-Date: \n" +"Last-Translator: \n" +"Language-Team: \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: source/ublsettingsui-gtk3.h:31 +msgid "Operation succeeded" +msgstr "" + +#: source/ublsettingsui-gtk3.h:32 +msgid "" +"Warning! Application was launched without root - root-dependent actions are " +"locked" +msgstr "" + +#: source/ublsettingsui-gtk3.h:34 +msgid "About" +msgstr "" + +#: source/ublsettingsui-gtk3.h:35 +msgid "Documentation" +msgstr "" + +#: source/ublsettingsui-gtk3.h:37 +msgid "Save to local configuration" +msgstr "" + +#: source/ublsettingsui-gtk3.h:38 +msgid "Save to global configuration" +msgstr "" + +#: source/ublsettingsui-gtk3.h:39 +msgid "Save configuration" +msgstr "" + +#: source/ublsettingsui-gtk3.h:40 +msgid "Save" +msgstr "" + +#: source/ublsettingsui-gtk3.h:42 +msgid "Load local configuration" +msgstr "" + +#: source/ublsettingsui-gtk3.h:43 +msgid "Load global configuration" +msgstr "" + +#: source/ublsettingsui-gtk3.h:44 +msgid "Load" +msgstr "" + +#: source/ublsettingsui-gtk3.h:46 +msgid "Cancel" +msgstr "" + +#: source/ublsettingsui-gtk3.h:47 +msgid "Accept" +msgstr "" + +#: source/ublsettingsui-gtk3.h:49 +msgid "Would you like to read documentation in the Web?" +msgstr "" + +#: source/ublsettingsui-gtk3.h:50 +msgid "" +"You will be redirected to documentation website where documentation is\n" +"translated and supported by community." +msgstr "" + +#: source/ublsettingsui-gtk3.h:51 +msgid "Always redirect to online documentation" +msgstr "" + +#: source/ublsettingsui-gtk3.h:52 +msgid "Open documentation" +msgstr "" + +#: source/ublsettingsui-gtk3.h:53 +msgid "Project Home Page" +msgstr "" + +#: source/ublsettingsui-gtk3.h:54 +msgid "Nothing were chosen" +msgstr "" + +#: source/ublsettingsui-gtk3.h:57 +msgid "Global configuration loading succeeded." +msgstr "" + +#: source/ublsettingsui-gtk3.h:58 +msgid "Local configuration loading succeeded." +msgstr "" + +#: source/ublsettingsui-gtk3.h:59 +msgid "Config loading failed" +msgstr "" + +#: source/ublsettingsui-gtk3.h:61 +msgid "Local and global configuration saving succeeded." +msgstr "" + +#: source/ublsettingsui-gtk3.h:62 +msgid "Global configuration saving succeeded." +msgstr "" + +#: source/ublsettingsui-gtk3.h:63 +msgid "Local configuration saving succeeded." +msgstr "" diff --git a/ublsettingsui-gtk3_ru.po b/ublsettingsui-gtk3_ru.po new file mode 100644 index 0000000..8d869b7 --- /dev/null +++ b/ublsettingsui-gtk3_ru.po @@ -0,0 +1,126 @@ +# Russian translations for ublsettingsui-gtk3 package. +# Copyright (C) 2022, UBTech LLC +# This file is distributed under the same license as the ublsettingsui-gtk3 package. +# UBLinux Team , 2022 +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: ublsettingsui-gtk3 1.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2023-05-22 16:12+0600\n" +"PO-Revision-Date: 2023-01-01 00:00+0600\n" +"Last-Translator: UBLinux Team \n" +"Language-Team: Russian - UBLinux Team \n" +"Language: Russian\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: source/ublsettingsui-gtk3.h:31 +msgid "Operation succeeded" +msgstr "Операция завершена" + +#: source/ublsettingsui-gtk3.h:32 +msgid "" +"Warning! Application was launched without root - root-dependent actions are " +"locked" +msgstr "" +"Внимание! Приложение было запущено без прав суперпользователя - действия, " +"требующие их наличия заблокированы" + +#: source/ublsettingsui-gtk3.h:34 +msgid "About" +msgstr "О программе" + +#: source/ublsettingsui-gtk3.h:35 +msgid "Documentation" +msgstr "Справка" + +#: source/ublsettingsui-gtk3.h:37 +msgid "Save to local configuration" +msgstr "Сохранить в локальную конфигурацию" + +#: source/ublsettingsui-gtk3.h:38 +msgid "Save to global configuration" +msgstr "Сохранить в глобальную конфигурацию" + +#: source/ublsettingsui-gtk3.h:39 +msgid "Save configuration" +msgstr "Сохранить конфигурацию" + +#: source/ublsettingsui-gtk3.h:40 +msgid "Save" +msgstr "Сохранить" + +#: source/ublsettingsui-gtk3.h:42 +msgid "Load local configuration" +msgstr "Загрузить локальную конфигуруцию" + +#: source/ublsettingsui-gtk3.h:43 +msgid "Load global configuration" +msgstr "Загрузить глобальную конфигурацию" + +#: source/ublsettingsui-gtk3.h:44 +msgid "Load" +msgstr "Загрузить" + +#: source/ublsettingsui-gtk3.h:46 +msgid "Cancel" +msgstr "Отмена" + +#: source/ublsettingsui-gtk3.h:47 +msgid "Accept" +msgstr "Принять" + +#: source/ublsettingsui-gtk3.h:49 +msgid "Would you like to read documentation in the Web?" +msgstr "Вы хотите прочитать справку в Сети?" + +#: source/ublsettingsui-gtk3.h:50 +msgid "" +"You will be redirected to documentation website where documentation is\n" +"translated and supported by community." +msgstr "" +"Вы будете перенаправлены на сайт с документацией, где страницы помощи\n" +"переводятся и поддерживаются сообществом." + +#: source/ublsettingsui-gtk3.h:51 +msgid "Always redirect to online documentation" +msgstr "Всегда перенаправлять" + +#: source/ublsettingsui-gtk3.h:52 +msgid "Open documentation" +msgstr "Прочитать справку" + +#: source/ublsettingsui-gtk3.h:53 +msgid "Project Home Page" +msgstr "Домашняя страница проекта" + +#: source/ublsettingsui-gtk3.h:54 +msgid "Nothing were chosen" +msgstr "Ничего не было выбрано" + +#: source/ublsettingsui-gtk3.h:57 +msgid "Global configuration loading succeeded." +msgstr "Успешно загружена глобальная конфигурация" + +#: source/ublsettingsui-gtk3.h:58 +msgid "Local configuration loading succeeded." +msgstr "Успешно загружена локальная конфигурация" + +#: source/ublsettingsui-gtk3.h:59 +msgid "Config loading failed" +msgstr "" + +#: source/ublsettingsui-gtk3.h:61 +msgid "Local and global configuration saving succeeded." +msgstr "Успешно записаны локальная и глобальная конфигурация" + +#: source/ublsettingsui-gtk3.h:62 +msgid "Global configuration saving succeeded." +msgstr "Успешно записана глобальная конфигурация" + +#: source/ublsettingsui-gtk3.h:63 +msgid "Local configuration saving succeeded." +msgstr "Успешно записана локальная конфигурация" \ No newline at end of file From d05e138b6795eb8a30b9fa0c75afd4000fa72149 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 11 Dec 2023 12:54:31 +0600 Subject: [PATCH 2/4] Added makefile --- .gitignore | 1 - Makefile | 150 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 370ce61..ad4edbd 100644 --- a/.gitignore +++ b/.gitignore @@ -108,7 +108,6 @@ CMakeCache.txt CMakeFiles CMakeScripts Testing -Makefile cmake_install.cmake install_manifest.txt compile_commands.json diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ffd6db4 --- /dev/null +++ b/Makefile @@ -0,0 +1,150 @@ +#!/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_UI_COMMAND = cmake +CMAKE_UI_SOURCE_DIR = $(MAKEFILE_PATH)source +CMAKE_UI_BUILD_DIR = $(MAKEFILE_PATH)compile +DEPENDS = /bin/cmake +PREFIX ?= /usr/local +PKGNAME = ublsettingsui-gtk3 +FILE_VER = source/${PKGNAME}.h +PKGIDENT=$(subst /,-,${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"; \ + echo "$${LATEST_TAG} is empty"; \ + fi; \ + else \ + LATEST_TAG="Development"; \ + fi; \ + sed -r "s/^(string version_application).*/\1 = \"$${LATEST_TAG}\";/" -i ${FILE_VER}; \ + echo "-- Build path: ${CMAKE_UI_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_UI_COMMAND) -DCMAKE_INSTALL_PREFIX=/usr -S$(CMAKE_UI_SOURCE_DIR) -B${CMAKE_UI_BUILD_DIR} --check-build-system CMakeFiles/Makefile.cmake 1 || exit 1; \ + echo "Check depends: OK" + +debug: + @echo "Debug ..." + if [ ! -d ${CMAKE_UI_BUILD_DIR} ]; then \ + $(CMAKE_UI_COMMAND) -S${CMAKE_UI_SOURCE_DIR} -B${CMAKE_UI_BUILD_DIR} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="${PREFIX}"; \ + fi; \ + echo "Debug: OK" + +prepare: + @echo "Prepare ..."; \ + if [ ! -d ${CMAKE_UI_BUILD_DIR} ]; then \ + $(CMAKE_UI_COMMAND) -DCMAKE_INSTALL_PREFIX=/usr -S${CMAKE_UI_SOURCE_DIR} -B${CMAKE_UI_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${PREFIX}"; \ + fi; \ + echo "Prepare: OK" + +check: + @echo "Check ..."; \ + if [ -f ${CMAKE_UI_BUILD_DIR}/libublsettingsui-gtk3.so ]; then \ + echo "Check: OK"; \ + else \ + echo "Check: ${CMAKE_UI_BUILD_DIR}/libublsettingsui-gtk3.so not found !"; \ + exit 1; \ + fi + +build: depend prepare + @echo "Build ..."; \ + cd ./source; \ + $(MAKE_COMMAND) --directory=${CMAKE_UI_BUILD_DIR}; \ + cd ../ + echo "Build: OK" + +uninstall: + @echo "Uninstall ..." + $(RM) -r /usr/local/lib/libublsettingsui-gtk3.so*; \ + $(RM) -r /usr/local/include/*ublsettingsui-gtk3.h* + @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 + @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 + @echo "Install ..." + @$(MAKE_COMMAND) install --directory=${CMAKE_UI_BUILD_DIR} + @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}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps"; \ + rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data "com.ublinux.${PKGNAME}.svg" -o "${DESTDIR}${PREFIX}/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/com.ublinux.${PKGNAME}.svg"; \ + done + @install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/apps/" "com.ublinux.${PKGNAME}.svg" + @install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.checked.svg" + @install -Dm644 -t "${DESTDIR}/usr/share/icons/hicolor/scalable/status/" "com.ublinux.${PKGNAME}.warning.svg" + @ldconfig -n /usr/local/lib + @if [ -z ${DESTDIR} ]; then \ + [ -d "${DESTDIR}/usr/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}/usr/share/applications" ] && touch "${DESTDIR}${PREFIX}/share/applications" &>/dev/null || true; \ + fi + @echo "Install: OK" + +clean: + @echo "Clean ..." + @$(RM) -rd ${CMAKE_UI_BUILD_DIR} + @$(RM) -rd ${CMAKE_UI_BUILD_DIR} + @if [ -d ${CMAKE_UI_BUILD_DIR} ]; then \ + echo "Clean: error, compile directory exist ${CMAKE_UI_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 "... compile"; \ + echo "... install"; \ + echo "... uninstall"; \ + echo "... clean" \ No newline at end of file From 3a9f6e6d831185f5e84119efad4dbb5a182ed003 Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Mon, 11 Dec 2023 18:10:07 +0600 Subject: [PATCH 3/4] Saving uncompleted updates --- gresource.xml | 2 +- source/CMakeLists.txt | 2 +- source/ublsettingsui-gtk3.c | 19 ++- source/ublsettingsui-gtk3.h | 7 + ublsettingsui-gtk3-save-confirmation.glade | 145 ---------------- ublsettingsui-gtk3-saving.glade | 186 +++++++++++++++++++++ ublsettingsui-gtk3.glade | 12 +- 7 files changed, 214 insertions(+), 159 deletions(-) delete mode 100644 ublsettingsui-gtk3-save-confirmation.glade create mode 100644 ublsettingsui-gtk3-saving.glade diff --git a/gresource.xml b/gresource.xml index 4c3f1da..0fcb609 100644 --- a/gresource.xml +++ b/gresource.xml @@ -4,7 +4,7 @@ ublsettingsui-gtk3.glade ublsettingsui-gtk3-about.glade ublsettingsui-gtk3-documentation.glade - ublsettingsui-gtk3-save-confirmation.glade + ublsettingsui-gtk3-saving.glade ublsettingsui-gtk3.css diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 580e8b1..758b994 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -35,7 +35,7 @@ set(DEPENDFILES ../ublsettingsui-gtk3.glade ../ublsettingsui-gtk3-about.glade ../ublsettingsui-gtk3-documentation.glade - ../ublsettingsui-gtk3-save-confirmation.glade + ../ublsettingsui-gtk3-saving.glade ../gresource.xml ../ublsettingsui-gtk3-banner.png ../ublsettingsui-gtk3.css diff --git a/source/ublsettingsui-gtk3.c b/source/ublsettingsui-gtk3.c index c48db2e..59969cf 100644 --- a/source/ublsettingsui-gtk3.c +++ b/source/ublsettingsui-gtk3.c @@ -69,9 +69,22 @@ void on_about(GtkWidget *self, char *version_application){ //functions -void yon_load_proceed(char *command){ - yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); - +int yon_load_proceed(YON_CONFIG_TYPE type){ + // if (yon_config_load_register(type,"logging",,"logging",JOURNALD("*"),NULL)){ + // update_loaded_logrotate(); + // return 1; + // } +} + +void yon_save_proceed(char *path,YON_CONFIG_TYPE type){ + if (((type==YON_CONFIG_LOCAL&& template_config->load_mode==1)||(type==YON_CONFIG_GLOBAL&& template_config->load_mode==0))) + yon_config_save_registered(path); + else{ + GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path_saving); + GtkWidget *window = yon_gtk_builder_get_widget(builder,"MainWindow"); + gtk_widget_show(window); + } + } // standard functions diff --git a/source/ublsettingsui-gtk3.h b/source/ublsettingsui-gtk3.h index f72c510..b1266eb 100644 --- a/source/ublsettingsui-gtk3.h +++ b/source/ublsettingsui-gtk3.h @@ -18,6 +18,7 @@ #define ui_glade_path "/com/ublinux/ui/ublsettingsui-gtk3.glade" #define ui_glade_path_documentation "/com/ublinux/ui/ublsettingsui-gtk3-documentation.glade" #define ui_glade_path_about "/com/ublinux/ui/ublsettingsui-gtk3-about.glade" +#define ui_glade_path_saving "/com/ublinux/ui/ublsettingsui-gtk3-saving.glade" #define ui_banner_path "/com/ublinux/images/ublsettingsui-gtk3-banner.png" #define ui_CssPath "/com/ublinux/css/ublsettingsui-gtk3.css" #define ui_config_path yon_char_unite(yon_ubl_user_get_home_directory(),"/.config/",template_app_information.app_tech_name,"/",template_app_information.app_tech_name,".conf",NULL) @@ -88,6 +89,8 @@ typedef struct { int lock_save_global; int lock_load_global; + int load_mode; + int always_open_documentation; } _template_config; static _template_config *template_config; @@ -133,6 +136,10 @@ typedef struct { GtkWidget *AcceptButton; } template_documentation_confirmation_window; +int yon_load_proceed(YON_CONFIG_TYPE type); + +void yon_save_proceed(char *path,YON_CONFIG_TYPE type); + /**yon_open_browser(GtkWidget *self, char *link) * [EN] * Opens browser with [link] link. diff --git a/ublsettingsui-gtk3-save-confirmation.glade b/ublsettingsui-gtk3-save-confirmation.glade deleted file mode 100644 index 488e351..0000000 --- a/ublsettingsui-gtk3-save-confirmation.glade +++ /dev/null @@ -1,145 +0,0 @@ - - - - - - True - False - process-stop-symbolic - - - True - False - emblem-ok-symbolic - - - - - - - - - - - False - False - 450 - dialog-question-symbolic - - - True - False - 5 - 5 - 5 - 5 - 5 - 5 - vertical - 10 - - - True - True - liststore1 - - - - - - Parameter - - - - 0 - - - - - - - Save - - - - 1 - - - - - - - True - True - 0 - - - - - True - False - end - 5 - True - - - Cancel - True - True - True - image8 - - - - True - True - 0 - - - - - Accept - True - True - True - image9 - - - - True - True - 1 - - - - - False - True - 1 - - - - - - - True - False - True - - - True - False - ubl-settings-TEMPLATES - - - - - - - - - diff --git a/ublsettingsui-gtk3-saving.glade b/ublsettingsui-gtk3-saving.glade new file mode 100644 index 0000000..7fc2a0b --- /dev/null +++ b/ublsettingsui-gtk3-saving.glade @@ -0,0 +1,186 @@ + + + + + + Save + True + True + False + True + + + True + False + process-stop-symbolic + + + True + False + emblem-ok-symbolic + + + + 450 + False + True + com.ublinux.ubl-settings-logging + dialog + + + False + 5 + vertical + 5 + + + False + end + + + Cancel + True + True + True + image1 + + + True + True + 0 + + + + + Save + True + True + True + image2 + + + True + True + 1 + + + + + False + False + end + 0 + + + + + True + False + vertical + + + + + + False + True + 0 + + + + + True + True + in + + + True + True + liststore1 + + + + + + Save + + + + + + + + Parameter + + + + + + + + Old value + + + + + + + + New value + + + + + + + + + + True + True + 1 + + + + + + + True + False + True + + + True + False + 5 + 5 + 5 + 5 + 2 + TEMPLATE Manager + + + + + + + + True + False + 5 + 5 + 5 + 5 + 6 + 6 + 32 + com.ublinux.ublsettingsui-gtk3 + + + + + + + diff --git a/ublsettingsui-gtk3.glade b/ublsettingsui-gtk3.glade index 1e4feb9..a4f118f 100644 --- a/ublsettingsui-gtk3.glade +++ b/ublsettingsui-gtk3.glade @@ -30,7 +30,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. False center - + True False 5 @@ -298,7 +298,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - + True False 5 @@ -350,15 +350,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - + True False - 5 - 5 - 5 - 5 - 6 - 6 32 com.ublinux.ublsettingsui-gtk3 From a44a4a3747e9fa4b4efa9bb280b8314e2012137f Mon Sep 17 00:00:00 2001 From: Ivan Yarcev Date: Wed, 13 Dec 2023 16:41:13 +0600 Subject: [PATCH 4/4] Added new saving confirmation window --- .gitignore | 4 +- source/CMakeLists.txt | 3 +- source/ublsettingsui-gtk3.c | 208 ++++++++++++++++++++++++++++++-- source/ublsettingsui-gtk3.h | 21 +++- ublsettingsui-gtk3-saving.glade | 72 +++++++---- ublsettingsui-gtk3.pot | 12 ++ ublsettingsui-gtk3_ru.po | 16 ++- 7 files changed, 297 insertions(+), 39 deletions(-) diff --git a/.gitignore b/.gitignore index ad4edbd..f4d2c41 100644 --- a/.gitignore +++ b/.gitignore @@ -143,4 +143,6 @@ vgcore* .updatebuild.sh .install.sh ublsettings-ui-debug -.install-debug.sh \ No newline at end of file +.install-debug.sh +debug/ +ubl-settings-test \ No newline at end of file diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index 758b994..7431000 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -63,8 +63,7 @@ add_custom_target( DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${GRESOURCE_C} ) -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -std=c++2a") -#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always -lm") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wextra -Werror -Wmissing-declarations -fdiagnostics-color=always \ -O2 -pipe -fno-plt -fexceptions \ -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security \ diff --git a/source/ublsettingsui-gtk3.c b/source/ublsettingsui-gtk3.c index 59969cf..e025db7 100644 --- a/source/ublsettingsui-gtk3.c +++ b/source/ublsettingsui-gtk3.c @@ -69,20 +69,207 @@ void on_about(GtkWidget *self, char *version_application){ //functions -int yon_load_proceed(YON_CONFIG_TYPE type){ - // if (yon_config_load_register(type,"logging",,"logging",JOURNALD("*"),NULL)){ - // update_loaded_logrotate(); - // return 1; - // } +void on_save_window_parameter_switched(GtkCellRendererToggle *self, gchar *path, template_saving_window *window){ + GtkTreeIter iter; + if (gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(window->list),&iter,path)){ + gboolean is_active; + gtk_tree_model_get(GTK_TREE_MODEL(window->list),&iter,0,&is_active,-1); + gtk_list_store_set(window->list,&iter,0,!is_active,-1); + } + +} + +void on_save_parameters(GtkWidget *self, template_saving_window *window){ + char *append_command = yon_char_unite("ubconfig --target ",template_config->load_mode==1?"global":"system"," set ",NULL); + char *remove_command = yon_char_unite("ubconfig --target ",template_config->load_mode==1?"global":"system"," remove ",NULL); + dictionary *final_append=NULL; + dictionary *final_remove=NULL; + GtkTreeIter iter; + int valid = gtk_tree_model_get_iter_first(GTK_TREE_MODEL(window->list),&iter); + for (;valid;valid=gtk_tree_model_iter_next(GTK_TREE_MODEL(window->list),&iter)){ + gboolean is_active,can_save; + char *parameter,*old_value,*new_value,*section; + gtk_tree_model_get(GTK_TREE_MODEL(window->list),&iter,0,&is_active,1,¶meter,2,&old_value,3,&new_value,5,&can_save,6,§ion,-1); + if (is_active&&can_save){ + if(!yon_char_is_empty(parameter)){ + if (yon_char_is_empty(new_value)){ // empty new value - delete + if (yon_dictionary_get(&final_remove,section)){ + final_remove->data = yon_char_unite((char*)final_remove->data," ",parameter,NULL); + } else { + yon_dictionary_add_or_create_if_exists_with_data(final_remove,section, parameter); + } + } else { // non-empty new value - add + if (yon_dictionary_get(&final_append,section)){ + final_append->data=yon_char_unite((char*)final_append->data," ",yon_char_unite(parameter,"=\"",new_value,"\"",NULL),NULL); + } else { + yon_dictionary_add_or_create_if_exists_with_data(final_append,section, yon_char_unite(parameter,"=\"",new_value,"\"",NULL)); + } + } + } + } + } + dictionary *dict = NULL; + if (final_remove){ + for_dictionaries(dict,final_remove){ + char *final_command = yon_char_unite(remove_command," ",dict->key," ",(char*)dict->data,NULL); + system(final_command); + free(final_command); + } + } + if (final_append){ + for_dictionaries(dict,final_append){ + char *final_command = yon_char_unite(append_command," ",dict->key," ",(char*)dict->data,NULL); + system(final_command); + free(final_command); + } + } + on_subwindow_close(self); } -void yon_save_proceed(char *path,YON_CONFIG_TYPE type){ - if (((type==YON_CONFIG_LOCAL&& template_config->load_mode==1)||(type==YON_CONFIG_GLOBAL&& template_config->load_mode==0))) +template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...){ + if (((type==YON_CONFIG_LOCAL&& template_config->load_mode==1)||(type==YON_CONFIG_GLOBAL&& template_config->load_mode==0))){ yon_config_save_registered(path); - else{ + return NULL; + } else { + char *config_to_save = NULL; + if (type==YON_CONFIG_GLOBAL) config_to_save="global"; + else if (type==YON_CONFIG_LOCAL) config_to_save="system"; + else if (type==YON_CONFIG_BOTH) { + if (template_config->load_mode==1){ + config_to_save="global"; + yon_config_save_registered("system"); + } else if (template_config->load_mode==0){ + config_to_save="system"; + yon_config_save_registered("global"); + } + } + yon_config_set_status(0); + config_str config_compare=NULL; + int compare_size=0; + va_list args; + va_start(args,type); + char *cur_section = NULL; + dictionary *section_commands=NULL; + while ((cur_section=va_arg(args,char*))){ + char *cur_parameter = va_arg(args,char*); + yon_dictionary_add_or_create_if_exists_with_data(section_commands,cur_section,cur_parameter); + } + struct loaded_config { + dictionary *dict; + char *section; + }; + + struct loaded_config loaded; + loaded.dict = yon_dictionary_new(); + dictionary *dct; + for_dictionaries(dct,section_commands){ + char *command = yon_char_unite(ubconfig_load_command," ", config_to_save," get ", dct->key," ", yon_dictionary_get_data(dct,char*),NULL); + FILE *output = popen(command, "r"); + char **output_strings = NULL; + output_strings = malloc(sizeof(char*)); + int i = 0; + char str[4096]; + memset(str, 0, 4096); + while (fgets(str, 4096, output)) + { + if (!yon_char_is_empty(str)&& strcmp(str,"(null)\n")!=0) + { + char *final_str = yon_char_new(str); + char *key =yon_char_divide_search(final_str,"=",-1); + if (final_str[strlen(final_str)-1]=='\n')final_str[strlen(final_str)-1]='\0'; + yon_dictionary_add_or_create_if_exists_with_data(loaded.dict,NULL,yon_char_new(dct->key)); + yon_dictionary_add_or_create_if_exists_with_data(loaded.dict,key,yon_char_new(final_str)); + yon_char_parsed_add_or_create_if_exists(config_compare,&compare_size,yon_char_new(str)); + } + } + } GtkBuilder *builder = gtk_builder_new_from_resource(ui_glade_path_saving); - GtkWidget *window = yon_gtk_builder_get_widget(builder,"MainWindow"); - gtk_widget_show(window); + template_saving_window *window = malloc(sizeof(template_saving_window)); + window->Window = yon_gtk_builder_get_widget(builder,"Window"); + window->HeaderImage = yon_gtk_builder_get_widget(builder,"HeaderImage"); + window->HeaderTopic = yon_gtk_builder_get_widget(builder,"HeaderTopic"); + window->StatusBox = yon_gtk_builder_get_widget(builder,"StatusBox"); + window->ParametersTree = yon_gtk_builder_get_widget(builder,"ParametersTree"); + window->SaveButton = yon_gtk_builder_get_widget(builder,"SaveButton"); + window->CancelButton = yon_gtk_builder_get_widget(builder,"CancelButton"); + window->ToggleCell = GTK_CELL_RENDERER(gtk_builder_get_object(builder,"ToggleCell")); + window->list = GTK_LIST_STORE(gtk_builder_get_object(builder,"liststore1")); + window->type=type; + gtk_window_set_icon_name(GTK_WINDOW(window->Window),yon_char_append("com.ublinux.",template_app_information.app_tech_name)); + gtk_window_set_title(GTK_WINDOW(window->Window),template_app_information.app_title); + gtk_label_set_text(GTK_LABEL(window->HeaderTopic),template_app_information.app_title); + gtk_image_set_from_pixbuf(GTK_IMAGE(window->HeaderImage),gtk_icon_theme_load_icon_for_scale(gtk_icon_theme_get_default(),yon_char_append("com.ublinux.",template_app_information.app_tech_name),32,1,GTK_ICON_LOOKUP_FORCE_SIZE,NULL)); + g_signal_connect(G_OBJECT(window->CancelButton),"clicked",G_CALLBACK(on_subwindow_close),NULL); + g_signal_connect(G_OBJECT(window->SaveButton),"clicked", G_CALLBACK(on_save_parameters),window); + g_signal_connect(G_OBJECT(window->ToggleCell),"toggled", G_CALLBACK(on_save_window_parameter_switched),window); + int config_size=0; + config_str config_strings = yon_config_get_all(&config_size); + if (config_strings){ + GtkTreeIter iter; + gtk_tree_view_set_model(GTK_TREE_VIEW(window->ParametersTree),NULL); + config_str compare_keys = NULL; + compare_keys = yon_char_parsed_copy(config_compare,compare_size); + int compare_keys_size=compare_size; + yon_char_parsed_divide_search_full(compare_keys,compare_keys_size,"=",-1); + int config_keys_size=0; + config_str config_keys = yon_config_get_all_keys(&config_keys_size); + int final_size=0; + GdkRGBA rgba; + rgba.alpha=0.8; + rgba.red=1; + rgba.blue=0.3; + rgba.green=0.65; + char *rgba_string = gdk_rgba_to_string(&rgba); + for (int i=0;ilist,&iter); + gtk_list_store_set(window->list,&iter,0,1,1,compare_keys[i],5,1,-1); + for (int j=0;jfirst,compare_keys[i])->prev->data; + gtk_list_store_set(window->list,&iter,2,compare_value,4,rgba_string,6,cur_section,-1); + } + free(compare_value); + free(compare_name); + } + + } + char *name,*value; + for (int i=0;ilist),&iter); + for (;valid;valid=gtk_tree_model_iter_next(GTK_TREE_MODEL(window->list),&iter)){ + gtk_tree_model_get(GTK_TREE_MODEL(window->list),&iter,1,&name,2,&value,-1); + if (!yon_char_is_empty(name)&&!strcmp(name,config_keys[i])){ + gtk_list_store_set(window->list,&iter,3,compare_value,4,NULL,6,section,-1); + if (!strcmp(value,compare_value)){ + gtk_list_store_set(window->list,&iter,0,0,5,0,-1); + } + found=1; + break; + } + } + if (!found){ + GtkTreeIter itar; + gtk_list_store_append(window->list,&itar); + gtk_list_store_set(window->list,&itar,0,1,1,compare_name,3,compare_value,5,1,6,section,-1); + } + free(compare_value); + free(compare_name); + } + free(rgba_string); + + gtk_tree_view_set_model(GTK_TREE_VIEW(window->ParametersTree),GTK_TREE_MODEL(window->list)); + } + + gtk_widget_show(window->Window); + return window; + } } @@ -183,6 +370,7 @@ template_main_window *yon_ubl_window_setup(){ else yon_ubl_status_box_render(LOCAL_LOAD_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE); } + template_config->load_mode=1; if(template_config) yon_ubl_setup_sockets(widgets->PlugBox,widgets->LeftBox,widgets->RightBox,template_config->socket_id,template_config->load_socket_id,template_config->save_socket_id); yon_window_config_setup(GTK_WINDOW(widgets->Window)); diff --git a/source/ublsettingsui-gtk3.h b/source/ublsettingsui-gtk3.h index b1266eb..1e4aa8f 100644 --- a/source/ublsettingsui-gtk3.h +++ b/source/ublsettingsui-gtk3.h @@ -60,6 +60,10 @@ #define GLOBAL_LOCAL_SAVE_SUCCESS_LABEL _("Local and global configuration saving succeeded.") #define GLOBAL_SAVE_SUCCESS_LABEL _("Global configuration saving succeeded.") #define LOCAL_SAVE_SUCCESS_LABEL _("Local configuration saving succeeded.") + + #define PARAMETER_LABEL _("Parameter") + #define OLD_VALUE_LABEL _("Old value") + #define NEW_VALUE_LABEL _("New value") #endif typedef struct { @@ -136,9 +140,20 @@ typedef struct { GtkWidget *AcceptButton; } template_documentation_confirmation_window; -int yon_load_proceed(YON_CONFIG_TYPE type); - -void yon_save_proceed(char *path,YON_CONFIG_TYPE type); +typedef struct { + GtkWidget *Window; + GtkWidget *HeaderTopic; + GtkWidget *HeaderImage; + GtkWidget *StatusBox; + GtkWidget *ParametersTree; + GtkCellRenderer *ToggleCell; + GtkWidget *CancelButton; + GtkWidget *SaveButton; + GtkListStore *list; + YON_CONFIG_TYPE type; +} template_saving_window; + +template_saving_window *yon_save_proceed(char *path,YON_CONFIG_TYPE type, ...); /**yon_open_browser(GtkWidget *self, char *link) * [EN] diff --git a/ublsettingsui-gtk3-saving.glade b/ublsettingsui-gtk3-saving.glade index 7fc2a0b..befc723 100644 --- a/ublsettingsui-gtk3-saving.glade +++ b/ublsettingsui-gtk3-saving.glade @@ -1,7 +1,8 @@ - + + Save True @@ -19,12 +20,30 @@ False emblem-ok-symbolic - - + + + + + + + + + + + + + + + + + + + 450 + 500 False True - com.ublinux.ubl-settings-logging + com.ublinux.ublsettingsui-gtk3 dialog @@ -93,18 +112,25 @@ True in - + True True liststore1 - + + none + Save - + + + 4 + 5 + 0 + @@ -113,6 +139,11 @@ Parameter + + 4 + 5 + 1 + @@ -121,6 +152,11 @@ Old value + + 4 + 5 + 2 + @@ -129,6 +165,11 @@ New value + + 4 + 5 + 3 + @@ -144,19 +185,14 @@ - + True False True - + True False - 5 - 5 - 5 - 5 - 2 TEMPLATE Manager @@ -164,15 +200,9 @@ - + True False - 5 - 5 - 5 - 5 - 6 - 6 32 com.ublinux.ublsettingsui-gtk3 diff --git a/ublsettingsui-gtk3.pot b/ublsettingsui-gtk3.pot index 1c4b59d..f81febb 100644 --- a/ublsettingsui-gtk3.pot +++ b/ublsettingsui-gtk3.pot @@ -120,3 +120,15 @@ msgstr "" #: source/ublsettingsui-gtk3.h:63 msgid "Local configuration saving succeeded." msgstr "" + +#: source/ublsettingsui-gtk3.h:64 +msgid "Parameter" +msgstr "" + +#: source/ublsettingsui-gtk3.h:65 +msgid "Old value" +msgstr "" + +#: source/ublsettingsui-gtk3.h:66 +msgid "New value" +msgstr "" diff --git a/ublsettingsui-gtk3_ru.po b/ublsettingsui-gtk3_ru.po index 8d869b7..6efbd24 100644 --- a/ublsettingsui-gtk3_ru.po +++ b/ublsettingsui-gtk3_ru.po @@ -111,7 +111,7 @@ msgstr "Успешно загружена локальная конфигура #: source/ublsettingsui-gtk3.h:59 msgid "Config loading failed" -msgstr "" +msgstr "Ошибка загрузки конфига" #: source/ublsettingsui-gtk3.h:61 msgid "Local and global configuration saving succeeded." @@ -123,4 +123,16 @@ msgstr "Успешно записана глобальная конфигура #: source/ublsettingsui-gtk3.h:63 msgid "Local configuration saving succeeded." -msgstr "Успешно записана локальная конфигурация" \ No newline at end of file +msgstr "Успешно записана локальная конфигурация" + +#: source/ublsettingsui-gtk3.h:64 +msgid "Parameter" +msgstr "Параметр" + +#: source/ublsettingsui-gtk3.h:65 +msgid "Old value" +msgstr "Старое значение" + +#: source/ublsettingsui-gtk3.h:66 +msgid "New value" +msgstr "Новое значение" \ No newline at end of file