26
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: QT C++ based Class.
|
|
15 |
* DlgSetSelector is a QT based dialog.
|
|
16 |
* Used to display available test set for select to add cases into.
|
|
17 |
*
|
|
18 |
*/
|
|
19 |
#ifndef DLGSETSELECTOR_H_
|
|
20 |
#define DLGSETSELECTOR_H_
|
|
21 |
|
|
22 |
#include <QDialog>
|
|
23 |
#include <QList>
|
|
24 |
|
|
25 |
QT_BEGIN_NAMESPACE
|
|
26 |
class QGridLayout;
|
|
27 |
class QPushButton;
|
|
28 |
class QRadioButton;
|
|
29 |
class QListWidget;
|
|
30 |
QT_END_NAMESPACE
|
|
31 |
|
|
32 |
class DlgSetSelector : public QDialog {
|
|
33 |
Q_OBJECT
|
|
34 |
|
|
35 |
public:
|
|
36 |
DlgSetSelector(QList<QString> setList, QWidget *parent = 0);
|
|
37 |
|
|
38 |
public:
|
|
39 |
inline QString SelectName(){return selectName;}
|
|
40 |
|
|
41 |
private:
|
|
42 |
void SetupUI();
|
|
43 |
|
|
44 |
private slots:
|
|
45 |
void on_btnOk_clicked();
|
|
46 |
void on_btnCancel_clicked();
|
|
47 |
void on_radio1Selection_Changed(bool checked);
|
|
48 |
void on_radio2Selection_Changed(bool checked);
|
|
49 |
|
|
50 |
private:
|
|
51 |
QString selectName;
|
|
52 |
|
|
53 |
QRadioButton* rdoNewSet;
|
|
54 |
QRadioButton* rdoOldSet;
|
|
55 |
QListWidget* lstSet;
|
|
56 |
QPushButton* btnOk;
|
|
57 |
QPushButton* btnCancel;
|
|
58 |
QList<QString> setList;
|
|
59 |
|
|
60 |
|
|
61 |
};
|
|
62 |
|
|
63 |
|
|
64 |
#endif /* DLGSETSELECTOR_H_ */
|
31
|
65 |
|
|
66 |
// End of File
|