diff --git a/Makefile b/Makefile index 9be5cf4..181d2ea 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ all: init build init: @echo "Initialize ..."; \ - sed -r "s/(version_application = ).*/\1\"$$(grep 'VERSION' ${FILE_VERSION} | cut -d" " -f2)\";/" -i source/ublexec.h; \ + sed -r "s/(version_application = ).*/\1\"$$(grep 'VERSION' ${FILE_VERSION} | cut -d" " -f2)\";/" -i source/ublexec.cc; \ echo "-- Build path: ${CMAKE_BUILD_DIR}" depend: diff --git a/source/main.cc b/source/main.cc index 0908fe5..ad6da8b 100644 --- a/source/main.cc +++ b/source/main.cc @@ -1,5 +1,6 @@ #include "ublexec.h" +void pars_flag(int index_start, int argc, char* argv[]); int main(int argc, char** argv) { string str_argv= ""; @@ -36,6 +37,7 @@ int main(int argc, char** argv) { if (argc == 2) { name_app_cmd = argv[1]; } + pars_flag(1,argc, argv); int local_argc = 1; auto app = Gtk::Application::create(local_argc, argv, "org.gtkmm.example.plug"); auto builder = Gtk::Builder::create_from_file(path_glade); @@ -46,4 +48,20 @@ int main(int argc, char** argv) { return r; } +} + +void pars_flag(int index_start, int argc, char* argv[]) { + string str_argv = ""; + for (int i = index_start; i build show_all_children(); } - +void help() { +} diff --git a/source/ublexec.h b/source/ublexec.h index 49c1db5..c74ba00 100644 --- a/source/ublexec.h +++ b/source/ublexec.h @@ -28,6 +28,7 @@ extern string name_app_cmd; extern const string path_img_head_background; extern int socket_ext_id_I; extern int socket_trd_id_I; +extern string version_application; void me_thread(string cmd); class CmdArgParser : public Glib::OptionGroup { @@ -205,7 +206,6 @@ public: Gtk::Widget *boxAbout; public: string termunal_cmd[3] = {"konsole -e ", "xfce4-terminal -x ", "xterm -e "}; - string version_application = "2.23"; string cmd_old = ""; string user_exec_app = ""; string user_cmd = ""; @@ -245,5 +245,6 @@ private: Gtk::Widget *plugBox; Gtk::Widget *parent; }; +void help(); diff --git a/ublexec.glade b/ublexec.glade index 77b652e..9a8a46a 100644 --- a/ublexec.glade +++ b/ublexec.glade @@ -1678,10 +1678,12 @@ with the specified priority 5 5 5 + 9 adjustment1 20 0 0 + False True diff --git a/ublexec.pot b/ublexec.pot index 68ea1d7..42e4977 100644 --- a/ublexec.pot +++ b/ublexec.pot @@ -214,3 +214,7 @@ msgstr "" msgid "ОК" msgstr "" + +#: source/main.cc:60 source/main.cc:60 +msgid "ublexec version: " +msgstr "https://wiki.ublinux.ru" diff --git a/ublexec_ru.po b/ublexec_ru.po index 9acaf05..f4f0351 100644 --- a/ublexec_ru.po +++ b/ublexec_ru.po @@ -218,3 +218,7 @@ msgstr "pkexec" msgid "ОК" msgstr "ОК" + +#: source/main.cc:60 source/main.cc:60 +msgid "ublexec version: " +msgstr "ublexec версия: "