#include <SettingsWindow.hpp>
Public Types | |
| enum | Tabs { BACKUP_TYPE = 0 , BACKUP_DEVICE = 1 , SCHEDULE = 2 , EXCLUDE = 3 } |
Public Member Functions | |
| SettingsWindow (ClamdConfig &config) | |
| signal void | request_close () |
| SettingsWindow (bool embedded=false) | |
| Gtk.Widget | detach_root_widget () |
| void | reload_themed_icons () |
Private Member Functions | |
| void | build_headerbar () |
| void | build_sidebar (ClamdConfig &config) |
| Gtk::Button * | make_group_button (const std::string &icon_path, const std::string &label_text, Gtk::Box **out_submenu=nullptr) |
| Gtk::Button * | make_leaf_button (const std::string &label_text, bool indent=false, Gtk::Box *parent_submenu=nullptr) |
| void | activate_button (Gtk::Button *btn) |
| void | build_ui () |
| void | build_sidebar () |
| void | build_content () |
| void | build_pages () |
| void | connect_signals () |
| Gtk.Button | create_nav_button (string icon_name, string text) |
| Gee.ArrayList< string > | get_tab_order () |
| int | get_current_tab_index () |
| void | activate_tab_by_name (string name) |
| void | activate_relative_tab (int delta) |
| void | update_bottom_navigation () |
| void | activate_tab (string name, Gtk.Button active_button, string title_text) |
| void | clear_nav_selection () |
| bool | init_delayed () |
| bool | on_close_request () |
| void | save_changes () |
| Gtk.Image | themed_icon (string icon_name, int size) |
Private Attributes | |
| Gtk::Box | mainBox_ {Gtk::Orientation::HORIZONTAL, 0} |
| Gtk::Stack | stack_ |
| SettingsPage * | settingsPage_ = nullptr |
| Gtk::Box * | sidebar_box_ = nullptr |
| std::vector< Gtk::Button * > | all_leaf_buttons_ |
| std::map< Gtk::Button *, Gtk::Box * > | button_submenu_ |
| Gtk::Button * | active_button_ = nullptr |
| int | active_page_ = 0 |
| Gtk.Box | root_box |
| Gtk.Box | sidebar |
| Gtk.Box | content_box |
| Gtk.Box | content_header_box |
| Gtk.Box | content_body_box |
| Gtk.Box | bottom_bar |
| Gtk.Stack | stack |
| SnapshotBackendBox | backend_box |
| BackupDeviceBox | backup_dev_box |
| ScheduleBox | schedule_box |
| ExcludeBox | exclude_box |
| UsersBox | users_box |
| MiscBox | misc_box |
| Gtk.Button | btn_type |
| Gtk.Button | btn_location |
| Gtk.Button | btn_schedule |
| Gtk.Button | btn_users |
| Gtk.Button | btn_filters |
| Gtk.Button | btn_misc |
| Gtk.Button | btn_close |
| Gtk.Button | btn_prev |
| Gtk.Button | btn_next |
| Gtk.Label | lbl_page_title |
| Gee.ArrayList< Gtk.Button > | nav_buttons |
| uint | tmr_init |
| int | def_width = 1100 |
| int | def_height = 760 |
| bool | embedded_mode = false |
| Gee.ArrayList< Gtk.Image > | themed_img_list = new Gee.ArrayList<Gtk.Image>() |
| Gee.ArrayList< string > | themed_img_name = new Gee.ArrayList<string>() |
| Gee.ArrayList< int > | themed_img_size = new Gee.ArrayList<int>() |
Definition at line 29 of file SettingsWindow.hpp.
| enum SettingsWindow.Tabs |
| Enumerator | |
|---|---|
| BACKUP_TYPE | |
| BACKUP_DEVICE | |
| SCHEDULE | |
| EXCLUDE | |
Definition at line 493 of file SettingsWindow.vala.
|
explicit |
Definition at line 29 of file SettingsWindow.cpp.
References activate_button(), active_button_, active_page_, all_leaf_buttons_, build_headerbar(), build_sidebar(), global_css, SettingsPage::goto_page(), load_style(), mainBox_, SettingsPage::set_notebook_no_tabs(), settingsPage_, and stack_.
Referenced by MainWindow::init_settings_page(), and MainWindow::open_settings_window().
|
inline |
Definition at line 78 of file SettingsWindow.vala.
References _, activate_tab(), btn_type, build_pages(), build_ui(), connect_signals(), HeaderFactory.create_main_headerbar(), def_height, def_width, embedded_mode, init_delayed(), TeeJee.Logging.log_debug(), nav_buttons, on_close_request(), and tmr_init.
|
private |
Definition at line 159 of file SettingsWindow.cpp.
References active_button_, all_leaf_buttons_, and button_submenu_.
Referenced by build_sidebar(), and SettingsWindow().
|
inlineprivate |
Definition at line 424 of file SettingsWindow.vala.
References activate_tab_by_name(), get_current_tab_index(), and get_tab_order().
Referenced by build_content().
|
inlineprivate |
Definition at line 440 of file SettingsWindow.vala.
References clear_nav_selection(), stack, and update_bottom_navigation().
Referenced by activate_tab_by_name(), connect_signals(), init_delayed(), and SettingsWindow().
|
inlineprivate |
Definition at line 401 of file SettingsWindow.vala.
References _, activate_tab(), btn_filters, btn_location, btn_misc, btn_schedule, btn_type, and btn_users.
Referenced by activate_relative_tab().
|
inlineprivate |
Definition at line 190 of file SettingsWindow.vala.
References _, activate_relative_tab(), bottom_bar, btn_next, btn_prev, content_body_box, content_box, content_header_box, embedded_mode, lbl_page_title, request_close(), save_changes(), and stack.
Referenced by build_ui().
|
private |
Definition at line 402 of file SettingsWindow.cpp.
References _, btn_close, and resource().
Referenced by SettingsWindow().
|
inlineprivate |
Definition at line 283 of file SettingsWindow.vala.
References backend_box, backup_dev_box, BackupDeviceBox.BackupDeviceBox(), exclude_box, ExcludeBox.ExcludeBox(), misc_box, MiscBox.MiscBox(), schedule_box, ScheduleBox.ScheduleBox(), ExcludeBox.set_users_box(), SnapshotBackendBox.SnapshotBackendBox(), stack, users_box, and UsersBox.UsersBox().
Referenced by SettingsWindow().
|
inlineprivate |
Definition at line 126 of file SettingsWindow.vala.
References _, btn_close, btn_filters, btn_location, btn_misc, btn_schedule, btn_type, btn_users, create_nav_button(), Error, IconManager.lookup(), sidebar, and themed_icon().
|
private |
Definition at line 206 of file SettingsWindow.cpp.
References _, activate_button(), active_page_, all_leaf_buttons_, SettingsPage::goto_page(), mainBox_, make_group_button(), make_leaf_button(), resource(), settingsPage_, and sidebar_box_.
Referenced by build_ui(), and SettingsWindow().
|
inlineprivate |
Definition at line 110 of file SettingsWindow.vala.
References build_content(), build_sidebar(), content_box, root_box, and sidebar.
Referenced by SettingsWindow().
|
inlineprivate |
Definition at line 454 of file SettingsWindow.vala.
References nav_buttons.
Referenced by activate_tab().
|
inlineprivate |
Definition at line 305 of file SettingsWindow.vala.
References _, activate_tab(), App, backend_box, backup_dev_box, btn_close, btn_filters, btn_location, btn_misc, btn_schedule, btn_type, btn_users, Main.btrfs_mode, embedded_mode, BackupDeviceBox.refresh(), UsersBox.refresh(), request_close(), stack, SnapshotBackendBox.type_changed(), update_bottom_navigation(), and users_box.
Referenced by SettingsWindow().
|
inlineprivate |
Definition at line 349 of file SettingsWindow.vala.
References nav_buttons, and themed_icon().
Referenced by build_sidebar().
|
inline |
Definition at line 482 of file SettingsWindow.vala.
References root_box.
Referenced by MainWindow.init_settings_page().
|
inlineprivate |
Definition at line 391 of file SettingsWindow.vala.
References get_tab_order(), and stack.
Referenced by activate_relative_tab(), and update_bottom_navigation().
|
inlineprivate |
Definition at line 379 of file SettingsWindow.vala.
References App, and Main.btrfs_mode.
Referenced by activate_relative_tab(), get_current_tab_index(), and update_bottom_navigation().
|
inlineprivate |
Definition at line 460 of file SettingsWindow.vala.
References _, activate_tab(), backend_box, btn_type, def_height, def_width, SnapshotBackendBox.refresh(), stack, and tmr_init.
Referenced by SettingsWindow().
|
private |
Definition at line 85 of file SettingsWindow.cpp.
Referenced by build_sidebar().
|
private |
Definition at line 139 of file SettingsWindow.cpp.
References all_leaf_buttons_, and button_submenu_.
Referenced by build_sidebar().
|
inlineprivate |
Definition at line 476 of file SettingsWindow.vala.
References save_changes().
Referenced by SettingsWindow().
|
inline |
Definition at line 509 of file SettingsWindow.vala.
References IconManager.lookup(), themed_img_list, themed_img_name, and themed_img_size.
Referenced by MainWindow.reload_themed_icons().
| signal void SettingsWindow.request_close | ( | ) |
Referenced by build_content(), connect_signals(), and MainWindow.init_settings_page().
|
inlineprivate |
Definition at line 487 of file SettingsWindow.vala.
References App, Main.cron_job_update(), exclude_box, and ExcludeBox.save_changes().
Referenced by build_content(), and on_close_request().
|
inlineprivate |
Definition at line 501 of file SettingsWindow.vala.
References IconManager.lookup_image(), themed_img_list, themed_img_name, and themed_img_size.
Referenced by build_sidebar(), and create_nav_button().
|
inlineprivate |
Definition at line 433 of file SettingsWindow.vala.
References get_current_tab_index(), and get_tab_order().
Referenced by activate_tab(), and connect_signals().
|
private |
Definition at line 43 of file SettingsWindow.hpp.
Referenced by activate_button(), and SettingsWindow().
|
private |
Definition at line 44 of file SettingsWindow.hpp.
Referenced by build_sidebar(), and SettingsWindow().
|
private |
Definition at line 39 of file SettingsWindow.hpp.
Referenced by activate_button(), build_sidebar(), make_leaf_button(), and SettingsWindow().
|
private |
Definition at line 47 of file SettingsWindow.vala.
Referenced by build_pages(), connect_signals(), and init_delayed().
|
private |
Definition at line 48 of file SettingsWindow.vala.
Referenced by build_pages(), and connect_signals().
|
private |
Definition at line 43 of file SettingsWindow.vala.
Referenced by build_content().
|
private |
Definition at line 60 of file SettingsWindow.vala.
Referenced by build_headerbar(), build_sidebar(), and connect_signals().
|
private |
Definition at line 58 of file SettingsWindow.vala.
Referenced by activate_tab_by_name(), build_sidebar(), and connect_signals().
|
private |
Definition at line 55 of file SettingsWindow.vala.
Referenced by activate_tab_by_name(), build_sidebar(), and connect_signals().
|
private |
Definition at line 59 of file SettingsWindow.vala.
Referenced by activate_tab_by_name(), build_sidebar(), and connect_signals().
|
private |
Definition at line 62 of file SettingsWindow.vala.
Referenced by build_content().
|
private |
Definition at line 61 of file SettingsWindow.vala.
Referenced by build_content().
|
private |
Definition at line 56 of file SettingsWindow.vala.
Referenced by activate_tab_by_name(), build_sidebar(), and connect_signals().
|
private |
Definition at line 54 of file SettingsWindow.vala.
Referenced by activate_tab_by_name(), build_sidebar(), connect_signals(), init_delayed(), and SettingsWindow().
|
private |
Definition at line 57 of file SettingsWindow.vala.
Referenced by activate_tab_by_name(), build_sidebar(), and connect_signals().
|
private |
Definition at line 41 of file SettingsWindow.hpp.
Referenced by activate_button(), and make_leaf_button().
|
private |
Definition at line 42 of file SettingsWindow.vala.
Referenced by build_content().
|
private |
Definition at line 40 of file SettingsWindow.vala.
Referenced by build_content(), and build_ui().
|
private |
Definition at line 41 of file SettingsWindow.vala.
Referenced by build_content().
|
private |
Definition at line 70 of file SettingsWindow.vala.
Referenced by init_delayed(), and SettingsWindow().
|
private |
Definition at line 69 of file SettingsWindow.vala.
Referenced by init_delayed(), and SettingsWindow().
|
private |
Definition at line 71 of file SettingsWindow.vala.
Referenced by build_content(), connect_signals(), and SettingsWindow().
|
private |
Definition at line 50 of file SettingsWindow.vala.
Referenced by build_pages(), and save_changes().
|
private |
Definition at line 64 of file SettingsWindow.vala.
Referenced by build_content().
|
private |
Definition at line 34 of file SettingsWindow.hpp.
Referenced by build_sidebar(), and SettingsWindow().
|
private |
Definition at line 52 of file SettingsWindow.vala.
Referenced by build_pages().
|
private |
Definition at line 66 of file SettingsWindow.vala.
Referenced by clear_nav_selection(), create_nav_button(), and SettingsWindow().
|
private |
Definition at line 38 of file SettingsWindow.vala.
Referenced by build_ui(), and detach_root_widget().
|
private |
Definition at line 49 of file SettingsWindow.vala.
Referenced by build_pages().
|
private |
Definition at line 37 of file SettingsWindow.hpp.
Referenced by build_sidebar(), and SettingsWindow().
|
private |
Definition at line 39 of file SettingsWindow.vala.
Referenced by build_sidebar(), and build_ui().
|
private |
Definition at line 38 of file SettingsWindow.hpp.
Referenced by build_sidebar().
|
private |
Definition at line 45 of file SettingsWindow.vala.
Referenced by activate_tab(), build_content(), build_pages(), connect_signals(), get_current_tab_index(), and init_delayed().
|
private |
Definition at line 35 of file SettingsWindow.hpp.
Referenced by SettingsWindow().
|
private |
Definition at line 74 of file SettingsWindow.vala.
Referenced by reload_themed_icons(), and themed_icon().
|
private |
Definition at line 75 of file SettingsWindow.vala.
Referenced by reload_themed_icons(), and themed_icon().
|
private |
Definition at line 76 of file SettingsWindow.vala.
Referenced by reload_themed_icons(), and themed_icon().
|
private |
Definition at line 68 of file SettingsWindow.vala.
Referenced by init_delayed(), and SettingsWindow().
|
private |
Definition at line 51 of file SettingsWindow.vala.
Referenced by build_pages(), and connect_signals().