|
|
|
@ -30,6 +30,7 @@ void MainWindow::settings() {
|
|
|
|
|
map_device = obj_device.get_parted();
|
|
|
|
|
this->filling_device_combo_box_template(groupsDeviceCombo, map_device);
|
|
|
|
|
this->filling_device_combo_box_template(usersDeviceCombo, map_device);
|
|
|
|
|
this->filling_device_combo_box_template(usersProjectCombo, map_device);
|
|
|
|
|
this->init_tree_view();
|
|
|
|
|
this->init_spin_all();
|
|
|
|
|
check_limit(quotegroupSizeSoftLimitCheck
|
|
|
|
@ -176,7 +177,7 @@ void MainWindow::init_tree_view_general() {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::view_add_columns(Gtk::TreeView &treeView) {
|
|
|
|
|
treeView.append_column(str_name, m_columns.name);
|
|
|
|
|
treeView.append_column_editable(str_name, m_columns.name);
|
|
|
|
|
treeView.append_column_editable(str_quotas, m_columns.quotas);
|
|
|
|
|
treeView.append_column(str_size, m_columns.size);
|
|
|
|
|
treeView.append_column(str_tw_soft_limit, m_columns.soft_limit_size);
|
|
|
|
@ -265,6 +266,7 @@ void MainWindow::lacalization() {
|
|
|
|
|
lblSetDevice->set_text(str_device);
|
|
|
|
|
lblQuotasStatus->set_text(str_quota_status);
|
|
|
|
|
lblSetUGP->set_text("");
|
|
|
|
|
lblQuotasStatus->set_text(_("Quota use status:"));
|
|
|
|
|
this->fill_in_pow_memory(quotegroupSizeSoftLimitCombo);
|
|
|
|
|
this->fill_in_pow_memory(quotegroupSizeHardLimitCombo);
|
|
|
|
|
|
|
|
|
@ -639,6 +641,11 @@ void MainWindow::filters_show() {
|
|
|
|
|
FiltersWindow->show_all();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::set_data_cfg() {
|
|
|
|
|
// TODO:
|
|
|
|
|
// Написать функцию
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::check_limit(Gtk::CheckButton *check_button, Gtk::SpinButton *spin, Gtk::ComboBoxText *combo_box) {
|
|
|
|
|
spin->set_sensitive(check_button->get_active());
|
|
|
|
|
combo_box->set_sensitive(check_button->get_active());
|
|
|
|
@ -707,10 +714,6 @@ void MainWindow::load_system_cfg() {
|
|
|
|
|
map_gui_cfg = map_system_cfg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::set_data_cfg() {
|
|
|
|
|
// TODO:
|
|
|
|
|
// Написать функцию
|
|
|
|
|
}
|
|
|
|
|
void MainWindow::wrapper_save_global_cfg() {
|
|
|
|
|
this->set_data_cfg();
|
|
|
|
|
if (this->save_template("boot", "global")) {
|
|
|
|
|