|
|
|
@ -50,8 +50,20 @@ void View_add_project::event() {
|
|
|
|
|
});
|
|
|
|
|
quotegroupCancelButtonAdd->signal_clicked().connect([&]() {this->close_wnd();});
|
|
|
|
|
quotegroupSaveButtonAdd->signal_clicked().connect([&]() {this->save();});
|
|
|
|
|
btnReviewProject->signal_clicked().connect([&]() {show_file_manager();});
|
|
|
|
|
btnFilemangerOk->signal_clicked().connect([&]() {save_file_manager();});
|
|
|
|
|
btnFilemangerExit->signal_clicked().connect([&]() {wndChooseFileWallpaper->hide();});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void View_add_project::show_file_manager() {
|
|
|
|
|
wndChooseFileWallpaper->set_current_folder(open_dir_file_manager);
|
|
|
|
|
wndChooseFileWallpaper->show();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void View_add_project::save_file_manager() {
|
|
|
|
|
entryCatalogProject->set_text(wndChooseFileWallpaper->get_filename());
|
|
|
|
|
wndChooseFileWallpaper->hide();
|
|
|
|
|
}
|
|
|
|
|
void View_add_project::close_wnd() {
|
|
|
|
|
wndQuotasAddProject->hide();
|
|
|
|
|
}
|
|
|
|
@ -99,22 +111,14 @@ void View_add_project::get_builder() {
|
|
|
|
|
builder->get_widget("quotegroupFilesHardLimitSpinProject", quotegroupFilesHardLimitSpinProject);
|
|
|
|
|
builder->get_widget("quotegroupSizeSoftLimitComboProject", quotegroupSizeSoftLimitComboProject);
|
|
|
|
|
builder->get_widget("quotegroupSizeHardLimitComboProject", quotegroupSizeHardLimitComboProject);
|
|
|
|
|
builder->get_widget("wndChooseFileWallpaper", wndChooseFileWallpaper);
|
|
|
|
|
builder->get_widget("btnFilemangerExit", btnFilemangerExit);
|
|
|
|
|
builder->get_widget("btnFilemangerOk", btnFilemangerOk);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void View_add_project::lacalization() {
|
|
|
|
|
this->fill_in_pow_memory(quotegroupSizeSoftLimitComboProject);
|
|
|
|
|
this->fill_in_pow_memory(quotegroupSizeHardLimitComboProject);
|
|
|
|
|
lblDeviceProject->set_text(str_device);
|
|
|
|
|
lblStatusQuotaProject->set_text(str_quota_status);
|
|
|
|
|
// lblSetUGP->set_text("");
|
|
|
|
|
quotegroupSizeFrameLabelProject->set_text(str_size);
|
|
|
|
|
quotegroupFilesFrameLabelProject->set_text(str_files);
|
|
|
|
|
quotegroupSizeCurrentlyLabelProject->set_text(str_currently_using);
|
|
|
|
|
quotegroupFilesCurrentlyLabelProject->set_text(str_currently_using);
|
|
|
|
|
quotegroupSizeSoftLimitLabelProject->set_text(str_soft_limit);
|
|
|
|
|
quotegroupFilesSoftLimitLabelProject->set_text(str_soft_limit);
|
|
|
|
|
quoteSizeHardLimitLabelProject->set_text(str_hard_limit);
|
|
|
|
|
quoteFilesHardLimitLabelProject->set_text(str_hard_limit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|