#include <app_window.hpp>
Public Member Functions | |
| AppWindow () | |
| ~AppWindow () override | |
Private Member Functions | |
| void | setup_columns () |
| void | add_text_column (const Glib::ustring &title, const char *property_name) |
| void | on_choose_file () |
| void | on_file_chosen (const Glib::RefPtr< Gio::AsyncResult > &result) |
| void | on_scan_clicked () |
| void | on_scan_completed (const ScanReport &report) |
| void | on_save_report_clicked () |
| void | on_report_file_chosen (const Glib::RefPtr< Gio::AsyncResult > &result) |
| void | on_choose_output_folder () |
| void | on_output_folder_chosen (const Glib::RefPtr< Gio::AsyncResult > &result) |
| void | on_recovery_completed (const RecoveryResult &result) |
| void | append_log (const std::string &line) |
Static Private Member Functions | |
| static std::string | human_size (uint64_t bytes) |
| static std::string | human_offset (uint64_t bytes) |
Private Attributes | |
| Gtk::Box | root_ {Gtk::Orientation::VERTICAL, 8} |
| Gtk::Box | toolbar_ {Gtk::Orientation::HORIZONTAL, 8} |
| Gtk::Button | btn_open_ |
| Gtk::Button | btn_scan_ |
| Gtk::Button | btn_save_report_ |
| Gtk::Button | btn_recover_ |
| Gtk::Entry | entry_path_ |
| Gtk::Label | status_ |
| Gtk::Paned | paned_ {Gtk::Orientation::VERTICAL} |
| Gtk::ScrolledWindow | results_scroller_ |
| Gtk::ScrolledWindow | logs_scroller_ |
| Gtk::ColumnView | column_view_ |
| Gtk::TextView | log_view_ |
| Glib::RefPtr< Gtk::TextBuffer > | log_buffer_ |
| Glib::RefPtr< Gio::ListStore< ResultRow > > | store_ |
| Glib::RefPtr< Gtk::SingleSelection > | selection_model_ |
| Glib::RefPtr< Gtk::FileDialog > | file_dialog_ |
| Glib::RefPtr< Gtk::FileDialog > | save_dialog_ |
| Glib::RefPtr< Gtk::FileDialog > | output_dialog_ |
| std::string | selected_path_ |
| std::string | output_dir_ |
| ScanReport | last_report_ |
| ScanWorker | worker_ |
| RecoveryWorker | recovery_worker_ |
Definition at line 30 of file app_window.hpp.
| AppWindow::AppWindow | ( | ) |
Definition at line 35 of file app_window.cpp.
References btn_open_, btn_recover_, btn_save_report_, btn_scan_, column_view_, entry_path_, log_buffer_, log_view_, logs_scroller_, on_choose_file(), on_choose_output_folder(), on_save_report_clicked(), on_scan_clicked(), paned_, results_scroller_, root_, selection_model_, setup_columns(), status_, store_, toolbar_, and tr().
|
overridedefault |
References add_text_column(), append_log(), human_offset(), human_size(), on_choose_file(), on_choose_output_folder(), on_file_chosen(), on_output_folder_chosen(), on_recovery_completed(), on_report_file_chosen(), on_save_report_clicked(), on_scan_clicked(), on_scan_completed(), and setup_columns().
|
private |
Definition at line 102 of file app_window.cpp.
References column_view_.
Referenced by setup_columns(), and ~AppWindow().
|
private |
Definition at line 272 of file app_window.cpp.
References log_buffer_.
Referenced by on_choose_output_folder(), on_file_chosen(), on_output_folder_chosen(), on_recovery_completed(), on_report_file_chosen(), on_save_report_clicked(), on_scan_clicked(), on_scan_completed(), and ~AppWindow().
|
staticprivate |
Definition at line 290 of file app_window.cpp.
Referenced by on_scan_completed(), and ~AppWindow().
|
staticprivate |
Definition at line 277 of file app_window.cpp.
Referenced by on_scan_completed(), and ~AppWindow().
|
private |
Definition at line 146 of file app_window.cpp.
References file_dialog_, on_file_chosen(), and tr().
Referenced by AppWindow(), and ~AppWindow().
|
private |
Definition at line 296 of file app_window.cpp.
References append_log(), ScanReport::input_path, last_report_, on_output_folder_chosen(), output_dialog_, recovery_worker_, RecoveryWorker::running(), tr(), and trs().
Referenced by AppWindow(), and ~AppWindow().
|
private |
Definition at line 152 of file app_window.cpp.
References append_log(), entry_path_, file_dialog_, selected_path_, status_, tr(), and trs().
Referenced by on_choose_file(), and ~AppWindow().
|
private |
Definition at line 311 of file app_window.cpp.
References append_log(), btn_open_, btn_recover_, btn_save_report_, btn_scan_, last_report_, on_recovery_completed(), output_dialog_, output_dir_, recovery_worker_, RecoveryWorker::start(), status_, tr(), and trs().
Referenced by on_choose_output_folder(), and ~AppWindow().
|
private |
Definition at line 341 of file app_window.cpp.
References append_log(), btn_open_, btn_recover_, btn_save_report_, btn_scan_, RecoveryResult::error, RecoverySummary::exported_images, RecoveryResult::logs, RecoveryResult::ok, RecoverySummary::recovered_files, status_, RecoveryResult::summary, tr(), and trs().
Referenced by on_output_folder_chosen(), and ~AppWindow().
|
private |
Definition at line 237 of file app_window.cpp.
References append_log(), last_report_, save_dialog_, ReportExporter::save_json(), ReportExporter::save_text(), status_, tr(), and trs().
Referenced by on_save_report_clicked(), and ~AppWindow().
|
private |
Definition at line 226 of file app_window.cpp.
References append_log(), ScanReport::input_path, last_report_, on_report_file_chosen(), save_dialog_, tr(), and trs().
Referenced by AppWindow(), and ~AppWindow().
|
private |
Definition at line 171 of file app_window.cpp.
References append_log(), btn_open_, btn_recover_, btn_save_report_, btn_scan_, last_report_, log_buffer_, on_scan_completed(), ScanWorker::running(), selected_path_, ScanWorker::start(), status_, store_, tr(), trs(), and worker_.
Referenced by AppWindow(), and ~AppWindow().
|
private |
Definition at line 201 of file app_window.cpp.
References append_log(), btn_open_, btn_recover_, btn_save_report_, btn_scan_, ResultRow::create(), human_offset(), human_size(), last_report_, ScanReport::logs, ScanReport::results, status_, store_, and tr().
Referenced by on_scan_clicked(), and ~AppWindow().
|
private |
Definition at line 93 of file app_window.cpp.
References add_text_column(), and tr().
Referenced by AppWindow(), and ~AppWindow().
|
private |
Definition at line 54 of file app_window.hpp.
Referenced by AppWindow(), on_output_folder_chosen(), on_recovery_completed(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 57 of file app_window.hpp.
Referenced by AppWindow(), on_output_folder_chosen(), on_recovery_completed(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 56 of file app_window.hpp.
Referenced by AppWindow(), on_output_folder_chosen(), on_recovery_completed(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 55 of file app_window.hpp.
Referenced by AppWindow(), on_output_folder_chosen(), on_recovery_completed(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 63 of file app_window.hpp.
Referenced by add_text_column(), and AppWindow().
|
private |
Definition at line 58 of file app_window.hpp.
Referenced by AppWindow(), and on_file_chosen().
|
private |
Definition at line 68 of file app_window.hpp.
Referenced by on_choose_file(), and on_file_chosen().
|
private |
Definition at line 73 of file app_window.hpp.
Referenced by on_choose_output_folder(), on_output_folder_chosen(), on_report_file_chosen(), on_save_report_clicked(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 65 of file app_window.hpp.
Referenced by append_log(), AppWindow(), and on_scan_clicked().
|
private |
Definition at line 64 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 62 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 70 of file app_window.hpp.
Referenced by on_choose_output_folder(), and on_output_folder_chosen().
|
private |
Definition at line 72 of file app_window.hpp.
Referenced by on_output_folder_chosen().
|
private |
Definition at line 60 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 75 of file app_window.hpp.
Referenced by on_choose_output_folder(), and on_output_folder_chosen().
|
private |
Definition at line 61 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 52 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 69 of file app_window.hpp.
Referenced by on_report_file_chosen(), and on_save_report_clicked().
|
private |
Definition at line 71 of file app_window.hpp.
Referenced by on_file_chosen(), and on_scan_clicked().
|
private |
Definition at line 67 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 59 of file app_window.hpp.
Referenced by AppWindow(), on_file_chosen(), on_output_folder_chosen(), on_recovery_completed(), on_report_file_chosen(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 66 of file app_window.hpp.
Referenced by AppWindow(), on_scan_clicked(), and on_scan_completed().
|
private |
Definition at line 53 of file app_window.hpp.
Referenced by AppWindow().
|
private |
Definition at line 74 of file app_window.hpp.
Referenced by on_scan_clicked().