Версия 1.0 бета

pull/2/head
Igor Belitskiy 2 years ago
parent 134d3791f1
commit 08fc56267f

@ -44,12 +44,13 @@ filters_window *get_widget_filters() {
return filters_widgets; return filters_widgets;
} }
void filters_show(GtkWidget *self) { void filters_show(GtkWidget *self, char* glade_path) {
if (filters_widgets != NULL) { if (filters_widgets != NULL) {
gtk_widget_show_all(filters_widgets->Window); gtk_widget_show_all(filters_widgets->Window);
} }
else { else {
filters_setup_window(glade_path);
gtk_widget_show_all(filters_widgets->Window);
} }
} }

@ -33,6 +33,6 @@ void filters_event(filters_window *widgets);
void filters_localization(filters_window *widgets); void filters_localization(filters_window *widgets);
void filters_on_hide_subwindow(GtkWidget *self); void filters_on_hide_subwindow(GtkWidget *self);
filters_window *get_widget_filters(); filters_window *get_widget_filters();
void filters_show(GtkWidget *self); void filters_show(GtkWidget *self, char* glade_path);
void filters_destroy(GtkWidget *self); void filters_destroy(GtkWidget *self);
#endif #endif

@ -164,10 +164,10 @@ void info_show(GtkWidget *self) {
} }
void event_all(main_window *widgets) { void event_all(main_window *widgets) {
g_signal_connect(G_OBJECT(widgets->btnShowFilters),"clicked",G_CALLBACK(filters_show),NULL); g_signal_connect(G_OBJECT(widgets->btnShowFilters),"clicked",G_CALLBACK(filters_show), glade_path);
g_signal_connect(G_OBJECT(widgets->btnAdd),"clicked",G_CALLBACK(add_show),NULL); g_signal_connect(G_OBJECT(widgets->btnAdd),"clicked",G_CALLBACK(add_show), glade_path);
g_signal_connect(G_OBJECT(widgets->btnEdit),"clicked",G_CALLBACK(edit_show),NULL); g_signal_connect(G_OBJECT(widgets->btnEdit),"clicked",G_CALLBACK(edit_show), glade_path);
g_signal_connect(G_OBJECT(widgets->btnInfo),"clicked",G_CALLBACK(info_show),NULL); g_signal_connect(G_OBJECT(widgets->btnInfo),"clicked",G_CALLBACK(info_show), glade_path);
} }
void main_event(main_window *widgets) { void main_event(main_window *widgets) {
@ -259,9 +259,9 @@ int main(int argc, char *argv[]){
main_window *widgets = setup_window(); main_window *widgets = setup_window();
filters_window *widget_filters = filters_setup_window(glade_path); filters_setup_window(glade_path);
add_window *add_widgets = add_setup_window(glade_path); add_setup_window(glade_path);
edit_window *edit_widgets = edit_setup_window(glade_path); edit_setup_window(glade_path);
event_all(widgets); event_all(widgets);
main_event(widgets); main_event(widgets);
yon_ubl_header_setup(widgets->HeadOverlay,widgets->HeadBox,widgets->HeadImage,banner_path); yon_ubl_header_setup(widgets->HeadOverlay,widgets->HeadBox,widgets->HeadImage,banner_path);

@ -37,12 +37,13 @@ add_window *get_widget_add() {
return add_widgets; return add_widgets;
} }
void add_show(GtkWidget *self) { void add_show(GtkWidget *self, char* glade_path) {
if (add_widgets != NULL) { if (add_widgets != NULL) {
gtk_widget_show_all(add_widgets->Window); gtk_widget_show_all(add_widgets->Window);
} }
else { else {
add_setup_window(glade_path);
gtk_widget_show_all(add_widgets->Window);
} }
} }

@ -25,6 +25,6 @@ void add_event(add_window *widgets);
void add_localization(add_window *widgets); void add_localization(add_window *widgets);
void add_on_hide_subwindow(GtkWidget *self); void add_on_hide_subwindow(GtkWidget *self);
add_window *get_widget_add(); add_window *get_widget_add();
void add_show(GtkWidget *self); void add_show(GtkWidget *self, char* glade_path);
void add_destroy(GtkWidget *self); void add_destroy(GtkWidget *self);
#endif #endif

@ -36,12 +36,13 @@ edit_window *get_widget_edit() {
return edit_widgets; return edit_widgets;
} }
void edit_show(GtkWidget *self) { void edit_show(GtkWidget *self, char* glade_path) {
if (edit_widgets != NULL) { if (edit_widgets != NULL) {
gtk_widget_show_all(edit_widgets->Window); gtk_widget_show_all(edit_widgets->Window);
} }
else { else {
edit_setup_window(glade_path);
gtk_widget_show_all(edit_widgets->Window);
} }
} }

@ -25,6 +25,6 @@ void edit_event(edit_window *widgets);
void edit_localization(edit_window *widgets); void edit_localization(edit_window *widgets);
void edit_on_hide_subwindow(GtkWidget *self); void edit_on_hide_subwindow(GtkWidget *self);
edit_window *get_widget_edit(); edit_window *get_widget_edit();
void edit_show(GtkWidget *self); void edit_show(GtkWidget *self, char* glade_path);
void edit_destroy(GtkWidget *self); void edit_destroy(GtkWidget *self);
#endif #endif

@ -133,7 +133,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="valign">start</property> <property name="valign">start</property>
<property name="label" translatable="yes">ubl-settings-resourcequota</property> <property name="label" translatable="yes">Configuring CPU and RAM quota settings for groups and users of the system</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<attributes> <attributes>
<attribute name="weight" value="bold"/> <attribute name="weight" value="bold"/>
@ -658,7 +658,8 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Quota volume</property> <property name="title" translatable="yes">Quota
volume</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -670,7 +671,8 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Soft RAM limit, (volume)</property> <property name="title" translatable="yes">Soft RAM limit,
(volume)</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -682,7 +684,8 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Hard RAM limit, (volume)</property> <property name="title" translatable="yes">Hard RAM limit,
(volume)</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -694,7 +697,9 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">Swap file limit (volume)</property> <property name="title" translatable="yes">Swap file
limit
(volume)</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -706,7 +711,8 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">CPU limit (%)</property> <property name="title" translatable="yes">CPU limit
(%)</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -718,7 +724,9 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">I/O limit (read)</property> <property name="title" translatable="yes">I/O
limit
(read)</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -730,7 +738,9 @@ translated and supported by community.</property>
</child> </child>
<child> <child>
<object class="GtkTreeViewColumn"> <object class="GtkTreeViewColumn">
<property name="title" translatable="yes">I/O limit (write)</property> <property name="title" translatable="yes">I/O
limit
(write)</property>
<property name="expand">True</property> <property name="expand">True</property>
<child> <child>
<object class="GtkCellRendererText"/> <object class="GtkCellRendererText"/>
@ -2757,7 +2767,6 @@ translated and supported by community.</property>
<property name="margin-end">5</property> <property name="margin-end">5</property>
<property name="margin-top">5</property> <property name="margin-top">5</property>
<property name="margin-bottom">5</property> <property name="margin-bottom">5</property>
<property name="label" translatable="yes">label</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -2775,7 +2784,6 @@ translated and supported by community.</property>
<property name="margin-end">5</property> <property name="margin-end">5</property>
<property name="margin-top">5</property> <property name="margin-top">5</property>
<property name="margin-bottom">5</property> <property name="margin-bottom">5</property>
<property name="label" translatable="yes">***</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>

@ -88,6 +88,27 @@ msgstr "Лимит I/O (запись)"
msgid "Filters" msgid "Filters"
msgstr "Фильтры" msgstr "Фильтры"
msgid "Quota\nvolume"
msgstr "Объем\nквотирования"
msgid "Soft RAM limit,\n(volume)"
msgstr "Мягкий лимит ОЗУ,\n(объём)"
msgid "Hard RAM limit,\n(volume)"
msgstr "Жёсткий лимит ОЗУ,\n(объём)"
msgid "Swap file\nlimit\n(volume)"
msgstr "Лимит файлов\nподкачки\n(объём)"
msgid "CPU limit\n(%)"
msgstr "Лимит ЦПУ (%)"
msgid "I/O\nlimit\n(read)"
msgstr "Лимит\nI/O\n(чтение)"
msgid "I/O\nlimit\n(write)"
msgstr "Лимит\nI/O\n(запись)"
msgid "List quotas" msgid "List quotas"
msgstr "Список квот" msgstr "Список квот"
@ -278,4 +299,7 @@ msgstr "Успешно записана глобальная конфигура
msgid "Local configuration saving succseeded." msgid "Local configuration saving succseeded."
msgstr "Успешно записана локальная конфигурация" msgstr "Успешно записана локальная конфигурация"
msgid "Configuring CPU and RAM quota settings for groups and users of the system"
msgstr "Настройка параметров квот процессорного времени и ОЗУ для групп и пользователей системы"

Loading…
Cancel
Save