#ifndef VIEW_SET_USER_GROUP_H #define VIEW_SET_USER_GROUP_H #include "project_lib.h" #define str_device _("Device:") #define str_quota_status _("Quota use status:") #define str_size _("Size") #define str_files _("files") #define str_currently_using _("Currently using:") #define str_soft_limit _("Soft limit") #define str_hard_limit _("Hard limit") #define str_hard_limit _("Hard limit") #define str_prefix_KB _("Kb") #define str_prefix_MB _("Mb") #define str_prefix_GB _("Gb") #define str_prefix_TB _("Tb") class view_set_user_group { private: string path_glade; private: Glib::RefPtr const& builder; Gtk::Label* lblSetDevice; Gtk::Label* lblQuotasStatus; Gtk::Label* lblSetUGP; Gtk::Label* lblSetNameDevice; Gtk::Label* lblSetQuotasStatus; Gtk::ComboBoxText* cmbSetNameUGP; Gtk::Label *quotegroupSizeFrameLabel; Gtk::Label *quotegroupSizeCurrentlyLabel; Gtk::Label *quoteSizeHardLimitLabel; Gtk::Label *quotegroupFilesFrameLabel; Gtk::Label *quotegroupFilesCurrentlyLabel; Gtk::Label *quotegroupFilesSoftLimitLabel; Gtk::Label *quoteFilesHardLimitLabel; Gtk::Label *quotegroupFilesHarLimitLabel; Gtk::Label *quotegroupSizeSoftLimitLabel; Gtk::Window *QuotasEditWindow; Gtk::Label *lblHeadQuotasEditWindow; Gtk::Button *quotegroupCancelButton; Gtk::Button *quotegroupSaveButton; Gtk::SpinButton *quotegroupSizeSoftLimitSpin; Gtk::SpinButton *quotegroupSizeHardLimitSpin; Gtk::SpinButton *quotegroupFilesSoftLimitSpin; Gtk::SpinButton *quotegroupFilesHardLimitSpin; Gtk::Label *quotegroupFilesSoftLimitlabel; Gtk::ComboBoxText *quotegroupSizeSoftLimitCombo; Gtk::ComboBoxText *quotegroupSizeHardLimitCombo; Gtk::CheckButton *quotegroupSizeSoftLimitCheck; Gtk::CheckButton *quotegroupSizeHardLimitCheck; Gtk::CheckButton *quotegroupFilesSoftLimitCheck; Gtk::CheckButton *quotegroupFilesHardLimitCheck; public: view_set_user_group(/* args */); ~view_set_user_group(); void lacalization(); void event(); void get_builder(); void settings(); void show(); void set_path_glade(string path_glade); private: void set_change_gui(Glib::RefPtr* list_store, const Gtk::TreeModel::iterator* iter, bool& flag_validate, Gtk::ComboBoxText *combo_box); void fill_in_pow_memory(Gtk::ComboBoxText *cb_text); void check_limit(Gtk::CheckButton *check_button, Gtk::SpinButton *spin, Gtk::ComboBoxText *combo_box); void check_limit(Gtk::CheckButton *check_button, Gtk::SpinButton *spin, Gtk::Label *combo_box); void edit_tree_view_U(Glib::RefPtr* list_store, const Gtk::TreeModel::iterator* iter, bool& flag_validate); void edit_tree_view_G(Glib::RefPtr* list_store, const Gtk::TreeModel::iterator* iter, bool& flag_validate); void edit_tree_view_P(Glib::RefPtr* list_store, const Gtk::TreeModel::iterator* iter, bool& flag_validate); }; #endif