You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
#ifndef VIEW_FILTERS_H
|
|
#define VIEW_FILTERS_H
|
|
#include "project_lib.h"
|
|
|
|
#define str_name _("Name")
|
|
#define str_size _("Size")
|
|
#define str_filters _("Filters")
|
|
#define str_quotas _("Quotas")
|
|
#define str_soft_limit_size _("Soft limit (size)")
|
|
#define str_hard_limit_size _("Hard limit (size)")
|
|
#define str_hard_limit_size_delay _("Hard limit (size) delay")
|
|
#define str_soft_limit_files _("Soft limit (files)")
|
|
#define str_hard_limit_size_delay _("Hard limit (files) delay")
|
|
class view_filters
|
|
{
|
|
private:
|
|
string path_glade;
|
|
std::map<string, bool> map_filters_flag;
|
|
private:
|
|
Glib::RefPtr<Gtk::Builder> const& builder;
|
|
Gtk::Window *wndFilters;
|
|
Gtk::CheckButton *chbFilterName;
|
|
Gtk::CheckButton *chbFilterQuotas;
|
|
Gtk::CheckButton *chbFilterSize;
|
|
Gtk::CheckButton *chbFilterSoftLimitSize;
|
|
Gtk::CheckButton *chbFilterHardLimitSize;
|
|
Gtk::CheckButton *chbFilterHardLimitSizeDelay;
|
|
Gtk::CheckButton *filtersHardSizeActivationFilterCheckbox;
|
|
Gtk::CheckButton *chbFilterFiles;
|
|
Gtk::CheckButton *chbFilterSoftLimitFile;
|
|
Gtk::CheckButton *chbFilterHardLimitFile;
|
|
Gtk::CheckButton *chbFilterHardLimitFileDelay;
|
|
Gtk::Label *lblFiltersHead;
|
|
Gtk::Button *btnFiltersSave;
|
|
Gtk::Button *btnFiltersCancel;
|
|
public:
|
|
view_filters(/* args */);
|
|
~view_filters();
|
|
void lacalization();
|
|
void event();
|
|
void get_builder();
|
|
void settings();
|
|
void show();
|
|
void set_path_glade(string path_glade)
|
|
private:
|
|
void set_map_flag(Gtk::CheckButton* check_button);
|
|
void save();
|
|
void cancel();
|
|
void set_map_flag_false();
|
|
map<string, bool> get_filters()
|
|
};
|
|
#endif
|
|
|
|
|