|
|
|
@ -30,10 +30,6 @@ void MainWindow::settings() {
|
|
|
|
|
this->lacalization();
|
|
|
|
|
this->add_CSS();
|
|
|
|
|
btnBoxAboutDialog->set_visible(false);
|
|
|
|
|
Gtk::Widget *boxWidget;
|
|
|
|
|
builder->get_widget("boxColor", boxWidget);
|
|
|
|
|
HeadOverlay->add_overlay(*boxWidget);
|
|
|
|
|
ubl_make_plugs(boxSave, boxButton, socket_ext_id_I, socket_trd_id_I);
|
|
|
|
|
this->entry_generalGroupsEnableCheck();
|
|
|
|
|
this->entry_generalUsersEnableCheck();
|
|
|
|
|
map_device = obj_device.get_map_part_devices("/dev/");
|
|
|
|
@ -43,9 +39,9 @@ void MainWindow::settings() {
|
|
|
|
|
this->entry_combo_box_temp(generalDeviceCombo,lblFstypeGeneralSettings);
|
|
|
|
|
this->entry_combo_box_temp(groupsDeviceCombo, lblFstypeGroups);
|
|
|
|
|
this->entry_combo_box_temp(usersDeviceCombo, lblFstypeUsers);
|
|
|
|
|
this->init_tree_view();
|
|
|
|
|
this->init_spin_all();
|
|
|
|
|
if (geteuid() == 0) {
|
|
|
|
|
this->init_tree_view();
|
|
|
|
|
this->load_system_cfg();
|
|
|
|
|
this->load_global_cfg();
|
|
|
|
|
this->event();
|
|
|
|
@ -58,6 +54,10 @@ void MainWindow::settings() {
|
|
|
|
|
info_status_app("boxInfoMessError");
|
|
|
|
|
lblWarning->set_text(_("The program must be run as root"));
|
|
|
|
|
}
|
|
|
|
|
Gtk::Widget *boxWidget;
|
|
|
|
|
builder->get_widget("boxColor", boxWidget);
|
|
|
|
|
HeadOverlay->add_overlay(*boxWidget);
|
|
|
|
|
ubl_make_plugs(boxSave, boxButton, socket_ext_id_I, socket_trd_id_I);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::init_spin_all() {
|
|
|
|
@ -144,7 +144,7 @@ void MainWindow::lacalization() {
|
|
|
|
|
generalTabLabel->set_text(_("General settings"));
|
|
|
|
|
GroupsTabLabel->set_text(_("Groups"));
|
|
|
|
|
headerAboutTopic->set_label(_(app_name.c_str()));
|
|
|
|
|
headerTopic->set_label(_(app_name.c_str()));
|
|
|
|
|
headerTopic->set_label(_("ubl-settings-quotas"));
|
|
|
|
|
UsersTabLabel->set_text(_("Users"));
|
|
|
|
|
generalDeviceLabel->set_text(_("Device:"));
|
|
|
|
|
generalFileSystemLabel->set_text(_("File system:"));
|
|
|
|
@ -226,11 +226,10 @@ void MainWindow::lacalization() {
|
|
|
|
|
btnSaveLocalGlob->set_label(_("Save to global and local configuration"));
|
|
|
|
|
btnSaveGlob->set_label(_("Save to global configuration"));
|
|
|
|
|
btnSaveLocal->set_label(_("Save to local configuration"));
|
|
|
|
|
lblHeadFiltersWindow->set_label(_("Filters"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::view_add_columns(Gtk::TreeView &treeView) {
|
|
|
|
|
// TODO:
|
|
|
|
|
// Не готово
|
|
|
|
|
treeView.append_column(_("Name"), m_columns.name);
|
|
|
|
|
treeView.append_column_editable(_("Quotas"), m_columns.quotas);
|
|
|
|
|
treeView.append_column(_("Size"), m_columns.size);
|
|
|
|
|