SedSat3
1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
formelementinformation.cpp
Go to the documentation of this file.
1
#include "
formelementinformation.h
"
2
#include "ui_formelementinformation.h"
3
#include "
elementstablemodel.h
"
4
5
FormElementInformation::FormElementInformation
(QWidget *parent) :
6
QWidget(parent),
7
ui(new
Ui
::
FormElementInformation
)
8
{
9
ui
->setupUi(
this
);
10
ui
->Include_Exclude_All_checkBox->setText(
"Exclude all elements"
);
11
connect(
ui
->Include_Exclude_All_checkBox,SIGNAL(stateChanged(
int
)),
this
,SLOT(
on_Include_Exclude_Change
()));
12
13
}
14
15
FormElementInformation::~FormElementInformation
()
16
{
17
delete
ui
;
18
}
19
20
QTableView *
FormElementInformation::table
()
21
{
22
return
ui
->tableView;
23
}
24
25
26
void
FormElementInformation::on_Include_Exclude_Change
()
27
{
28
if
(
ui
->Include_Exclude_All_checkBox->checkState()==Qt::CheckState::Checked)
29
{
30
ui
->Include_Exclude_All_checkBox->setText(
"Include all elements"
);
31
static_cast<
ElementTableModel
*
>
(
table
()->model())->Data->IncludeExcludeAllElements(
false
);
32
}
33
else
34
{
35
ui
->Include_Exclude_All_checkBox->setText(
"Exclude all elements"
);
36
static_cast<
ElementTableModel
*
>
(
table
()->model())->Data->IncludeExcludeAllElements(
true
);
37
}
38
}
39
ElementTableModel
Definition
elementstablemodel.h:9
FormElementInformation
Definition
formelementinformation.h:12
FormElementInformation::~FormElementInformation
~FormElementInformation()
Definition
formelementinformation.cpp:15
FormElementInformation::on_Include_Exclude_Change
void on_Include_Exclude_Change()
Definition
formelementinformation.cpp:26
FormElementInformation::table
QTableView * table()
Definition
formelementinformation.cpp:20
FormElementInformation::FormElementInformation
FormElementInformation(QWidget *parent=nullptr)
Definition
formelementinformation.cpp:5
FormElementInformation::ui
Ui::FormElementInformation * ui
Definition
formelementinformation.h:20
elementstablemodel.h
formelementinformation.h
Ui
Definition
dialogchooseexcelsheets.h:6
formelementinformation.cpp
Generated by
1.9.8