From 17f192e3484b7eac00658b807859418cc34f32fb Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Tue, 20 Jun 2023 16:11:00 +0600 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D1=80=D0=B0=D1=81=D1=88=D0=B8=D1=80=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D1=86=D0=BE=D0=B2?= =?UTF-8?q?=20treeView?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/view/ubl-settings-diskquota.cc | 20 +- ubl-settings-diskquota.glade | 427 +++++++++++++++++++++++++- 2 files changed, 436 insertions(+), 11 deletions(-) diff --git a/source/view/ubl-settings-diskquota.cc b/source/view/ubl-settings-diskquota.cc index 183a964..9706c3f 100755 --- a/source/view/ubl-settings-diskquota.cc +++ b/source/view/ubl-settings-diskquota.cc @@ -140,10 +140,10 @@ void MainWindow::init_spin_all() { } void MainWindow::init_tree_view() { - this->view_add_columns(*usersQuotasTree); - this->view_add_columns(*groupsQuotasTree); - this->view_add_columns(*ProjectQuotasTree); - this->init_tree_view_general(); + //this->view_add_columns(*usersQuotasTree); + //this->view_add_columns(*groupsQuotasTree); + //this->view_add_columns(*ProjectQuotasTree); + //this->init_tree_view_general(); } void MainWindow::init_tree_view_general() { GeneralQuotasTree->append_column_editable(str_status, m_columnsGeneral.status); @@ -580,9 +580,9 @@ void MainWindow::info_status_app(string stule) { void MainWindow::init_work_tv_g_u_p() { // Todo: remove - groupsQuotasTree->remove_all_columns(); - ProjectQuotasTree->remove_all_columns(); - usersQuotasTree->remove_all_columns(); + //groupsQuotasTree->remove_all_columns(); + //ProjectQuotasTree->remove_all_columns(); + //usersQuotasTree->remove_all_columns(); list_store_groups = Gtk::ListStore::create(m_columns); list_store_project = Gtk::ListStore::create(m_columns); list_store_users = Gtk::ListStore::create(m_columns); @@ -598,9 +598,9 @@ void MainWindow::init_work_tv_g_u_p() { Glib::RefPtr usersQuotasTreeModel = usersQuotasTree->get_model(); usersQuotasTreeModel->signal_row_changed().connect(sigc::bind (sigc::mem_fun(*this, &MainWindow::remove_line_template),iter_users, flag_validate_del_users)); - this->view_add_columns(*groupsQuotasTree); - this->view_add_columns(*ProjectQuotasTree); - this->view_add_columns(*usersQuotasTree); + //this->view_add_columns(*groupsQuotasTree); + //this->view_add_columns(*ProjectQuotasTree); + //this->view_add_columns(*usersQuotasTree); } void MainWindow::remove_line_template(const Gtk::TreeModel::Path&, const Gtk::TreeModel::iterator& iter, Gtk::TreeModel::iterator& iter_del, bool& flag_del) { diff --git a/ubl-settings-diskquota.glade b/ubl-settings-diskquota.glade index 7ae92f2..39d8e4a 100644 --- a/ubl-settings-diskquota.glade +++ b/ubl-settings-diskquota.glade @@ -1,5 +1,5 @@ - + @@ -532,6 +532,125 @@ + + + Status + True + + + + + + + + Quota type + True + + + + + + + + Device +Project + True + + + + + + + + User + True + + + + + + + + Group + True + + + + + + + + Projects + True + + + + + + + + Soft +Restriction +(size) + True + + + + + + + + Severe +limitation +(size) + True + + + + + + + + Soft +Restriction +(files) + True + + + + + + + + Severe +limitation +(files) + True + + + + + + + + Deferring +(size) + True + + + + + + + + Deferring +(files) + True + + + + + @@ -1129,6 +1248,105 @@ + + + Name + True + + + + + + + + Quota + True + + + + + + + + Size + True + + + + + + + + Soft +Restriction +(size) + True + + + + + + + + Severe +limitation +(size) + True + + + + + + + + Soft +Restriction +(files) + True + + + + + + + + Files + + + + + + + + Severe +limitation +(files) + True + + + + + + + + Deferring +(size) + True + + + + + + + + Deferring +(files) + True + + + + + @@ -1898,6 +2116,105 @@ + + + Name + True + + + + + + + + Quota + True + + + + + + + + Size + True + + + + + + + + Soft +Restriction +(size) + True + + + + + + + + Severe +limitation +(size) + True + + + + + + + + Soft +Restriction +(files) + True + + + + + + + + Files + + + + + + + + Severe +limitation +(files) + True + + + + + + + + Deferring +(size) + True + + + + + + + + Deferring +(files) + True + + + + + @@ -2667,6 +2984,114 @@ + + + ID + True + + + + + + + + Project Name + True + + + + + + + + Quota + True + + + + + + + + Size + True + + + + + + + + Soft +Restriction +(size) + True + + + + + + + + Severe +limitation +(size) + True + + + + + + + + Soft +Restriction +(files) + True + + + + + + + + Files + + + + + + + + Severe +limitation +(files) + True + + + + + + + + Deferring +(size) + True + + + + + + + + Deferring +(files) + True + + + + +