stifui/qt/inc/dlgsetselector.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:32:52 +0300
branchRCL_3
changeset 60 6646c35e558c
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: QT C++ based Class.
*              DlgSetSelector is a QT based dialog.
*              Used to display available test set for select to add cases into.
*
*/
#ifndef DLGSETSELECTOR_H_
#define DLGSETSELECTOR_H_

#include <QDialog>
#include <QList>

QT_BEGIN_NAMESPACE
class QGridLayout;
class QPushButton;
class QRadioButton;
class QListWidget;
QT_END_NAMESPACE

class DlgSetSelector : public QDialog {
    Q_OBJECT

public:
    DlgSetSelector(QList<QString> setList, QWidget *parent = 0);
    
public:
    inline QString SelectName(){return selectName;}
    
private:
    void SetupUI();
    
private slots:
    void on_btnOk_clicked();
    void on_btnCancel_clicked();
    void on_radio1Selection_Changed(bool checked);
    void on_radio2Selection_Changed(bool checked);
    
private:
    QString selectName;
    
    QRadioButton* rdoNewSet;
    QRadioButton* rdoOldSet;
    QListWidget* lstSet;
    QPushButton* btnOk;
    QPushButton* btnCancel;
    QList<QString> setList;
    
    
};


#endif /* DLGSETSELECTOR_H_ */

// End of File