SedSat3
1.1.6
Sediment Source Apportionment Tool - Advanced statistical methods for environmental pollution research
Loading...
Searching...
No Matches
dialogchooseexcelsheets.cpp
Go to the documentation of this file.
1
#include "
dialogchooseexcelsheets.h
"
2
#include "ui_dialogchooseexcelsheets.h"
3
#include <QListWidgetItem>
4
5
DialogChooseExcelSheets::DialogChooseExcelSheets
(QWidget *parent, QStringList **_items) :
6
QDialog(parent),
7
ui(new
Ui
::
DialogChooseExcelSheets
)
8
{
9
*_items =
new
QStringList();
10
items
= *_items;
11
ui
->setupUi(
this
);
12
}
13
14
DialogChooseExcelSheets::~DialogChooseExcelSheets
()
15
{
16
delete
ui
;
17
}
18
19
void
DialogChooseExcelSheets::AddItem
(
const
QString &item)
20
{
21
QListWidgetItem *listItem =
new
QListWidgetItem(item,
ui
->listWidget);
22
listItem->setCheckState(Qt::Unchecked);
23
ui
->listWidget->addItem(listItem);
24
25
}
26
27
void
DialogChooseExcelSheets::reject
()
28
{
29
QDialog::reject();
30
}
31
void
DialogChooseExcelSheets::accept
()
32
{
33
34
for
(
int
i = 0; i <
ui
->listWidget->count(); ++i)
35
{
36
QListWidgetItem* item =
ui
->listWidget->item(i);
37
if
(item->checkState())
38
{
39
items
->append(item->text());
40
}
41
}
42
QDialog::accept();
43
}
DialogChooseExcelSheets
Definition
dialogchooseexcelsheets.h:11
DialogChooseExcelSheets::AddItem
void AddItem(const QString &item)
Definition
dialogchooseexcelsheets.cpp:19
DialogChooseExcelSheets::ui
Ui::DialogChooseExcelSheets * ui
Definition
dialogchooseexcelsheets.h:20
DialogChooseExcelSheets::items
QStringList * items
Definition
dialogchooseexcelsheets.h:21
DialogChooseExcelSheets::reject
void reject()
Definition
dialogchooseexcelsheets.cpp:27
DialogChooseExcelSheets::accept
void accept()
Definition
dialogchooseexcelsheets.cpp:31
DialogChooseExcelSheets::DialogChooseExcelSheets
DialogChooseExcelSheets(QWidget *parent, QStringList **_items)
Definition
dialogchooseexcelsheets.cpp:5
DialogChooseExcelSheets::~DialogChooseExcelSheets
~DialogChooseExcelSheets()
Definition
dialogchooseexcelsheets.cpp:14
dialogchooseexcelsheets.h
Ui
Definition
dialogchooseexcelsheets.h:6
dialogchooseexcelsheets.cpp
Generated by
1.9.8