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