camerauis/cameraxui/cxui/inc/cxuisettingradiobuttonlist.h
changeset 43 0e652f8f1fbd
parent 19 d9aefe59d544
equal deleted inserted replaced
28:3075d9b614e6 43:0e652f8f1fbd
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    41 
    41 
    42 public:
    42 public:
    43     explicit CxuiSettingRadioButtonList(QGraphicsItem *parent, CxeEngine *engine);
    43     explicit CxuiSettingRadioButtonList(QGraphicsItem *parent, CxeEngine *engine);
    44     void init(CxUiSettings::RadioButtonListParams *data);
    44     void init(CxUiSettings::RadioButtonListParams *data);
    45 
    45 
    46 
    46     void setOriginalSelectedItemByValue(const QVariant &value);
    47 signals:
    47 signals:
    48     void valueSelected(int value);
    48     void valueSelected(int value);
    49     void selectionCommitted();
    49     void selectionCommitted();
    50 
    50 
    51 public slots:
    51 public slots:
    52     void handleSelectionAccepted();
    52     void handleSelectionAccepted();
    53     void handleClose();
    53     void handleClose();
    54 
    54 
    55 protected slots:
    55 protected slots:
    56     void handleItemSelected(int index);
    56     void handleItemSelected(int index);
    57 
       
    58 protected:
       
    59    void showEvent(QShowEvent *event); // From QGraphicsWidget
       
    60     virtual void initOriginalSelectedItem();
       
    61 
    57 
    62 private:
    58 private:
    63     // helper methods
    59     // helper methods
    64     void setSettingId(const QString &id);
    60     void setSettingId(const QString &id);
    65     void setItems(const QStringList &list);
    61     void setItems(const QStringList &list);