|
SedSat3 1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
|
#include </home/runner/work/SedSat3/SedSat3/resultswindow.h>


Public Member Functions | |
| ResultsWindow (QWidget *parent=nullptr) | |
| void | AppendText (const string &text) |
| void | AppendResult (const ResultItem &resultitem, const std::string &key) |
| ~ResultsWindow () | |
| void | SetResults (Results *res) |
| void | on_result_graph_clicked () |
| void | on_result_export_clicked () |
| void | on_result_table_clicked () |
Private Member Functions | |
| ResultItem * | ResultForButton (QObject *button) |
Private Attributes | |
| Ui::ResultsWindow * | ui |
| Results * | results = nullptr |
| int | result_item_counter = 0 |
Definition at line 17 of file resultswindow.h.
|
explicit |
Definition at line 16 of file resultswindow.cpp.
References ResultsWindow(), and ui.
Referenced by ResultsWindow().
| ResultsWindow::~ResultsWindow | ( | ) |
Definition at line 24 of file resultswindow.cpp.
References ui.
| void ResultsWindow::AppendResult | ( | const ResultItem & | resultitem, |
| const std::string & | key ) |
Adds a result's text and buttons. key is its key in the Results map; the buttons find the result by it.
Definition at line 34 of file resultswindow.cpp.
References ResultItem::Name(), on_result_export_clicked(), on_result_graph_clicked(), on_result_table_clicked(), ResultItem::Result(), result_item_counter, ResultItem::ShowAsString(), ResultItem::ShowGraph(), ResultItem::ShowTable(), Interface::ToString(), and ui.
Referenced by MainWindow::Execute(), and MainWindow::on_old_result_requested().
| void ResultsWindow::AppendText | ( | const string & | text | ) |
| void ResultsWindow::on_result_export_clicked | ( | ) |
Definition at line 150 of file resultswindow.cpp.
References ResultItem::Result(), ResultForButton(), and Interface::writetofile().
Referenced by AppendResult().
| void ResultsWindow::on_result_graph_clicked | ( | ) |
Definition at line 121 of file resultswindow.cpp.
References ResultItem::Name(), GeneralChart::Plot(), and ResultForButton().
Referenced by AppendResult().
| void ResultsWindow::on_result_table_clicked | ( | ) |
Definition at line 134 of file resultswindow.cpp.
References ResultItem::Name(), ResultItem::Result(), ResultForButton(), ResultTableViewer::SetTable(), ResultItem::TableTitle(), and Interface::ToTable().
Referenced by AppendResult().
|
private |
The result a button belongs to, or nullptr if it is not in the map or holds no data
Definition at line 110 of file resultswindow.cpp.
References results.
Referenced by on_result_export_clicked(), on_result_graph_clicked(), and on_result_table_clicked().
|
inline |
Definition at line 28 of file resultswindow.h.
References results.
Referenced by MainWindow::Execute(), and MainWindow::on_old_result_requested().
|
private |
Definition at line 33 of file resultswindow.h.
Referenced by AppendResult().
|
private |
Definition at line 32 of file resultswindow.h.
Referenced by ResultForButton(), and SetResults().
|
private |
Definition at line 31 of file resultswindow.h.
Referenced by ResultsWindow(), ~ResultsWindow(), and AppendResult().