stifui/qt/inc/dlgrepeatrun.h
changeset 29 1c71b77fbc93
child 31 e7a04a6385be
equal deleted inserted replaced
28:4cc0d1a608c1 29:1c71b77fbc93
       
     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 */
       
    16 
       
    17 #ifndef DLGREPEATRUN_H_
       
    18 #define DLGREPEATRUN_H_
       
    19 #include <QDialog>
       
    20 #include <QLineEdit>
       
    21 
       
    22 QT_BEGIN_NAMESPACE
       
    23 class QTabWidget;
       
    24 class QGridLayout;
       
    25 class QRadioButton;
       
    26 class QPushButton;
       
    27 QT_END_NAMESPACE
       
    28 
       
    29 class DlgRepeatRun : public QDialog {    
       
    30     Q_OBJECT
       
    31     
       
    32 public:
       
    33     DlgRepeatRun(QWidget *parent = 0);
       
    34     inline bool isRepeatInfinitely() {return isInfinite;};
       
    35     inline int  GetLoopTimes() {return loopTimes;};
       
    36     
       
    37     
       
    38 private:
       
    39     void SetupUI();
       
    40     
       
    41 private:
       
    42     QPushButton* btnOk;
       
    43     QPushButton* btnCancel;
       
    44     QLineEdit* lineEdit;
       
    45     QRadioButton* rdoLoopInfinitely;
       
    46     QRadioButton* rdoGiveLoopTimes;
       
    47     
       
    48     int loopTimes;
       
    49     bool isInfinite;
       
    50     
       
    51 private slots:
       
    52     //on button clicked
       
    53     void on_btnOk_clicked();
       
    54     void on_btnCancel_clicked();
       
    55     
       
    56     //on check box state changed
       
    57     void on_rdoLoopInfinitely_stateChanged(bool checked);
       
    58     void on_rdoGiveLoopTimes_stateChanged(bool checked);
       
    59     
       
    60     };
       
    61 
       
    62 #endif /* DLGREPEATRUN_H_ */