camerauis/cameraxui/cxui/inc/cxuisettingbuttoncontainer.h
changeset 19 d9aefe59d544
equal deleted inserted replaced
3:8b2d6d0384b0 19:d9aefe59d544
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CXUISETTINGBUTTONCONTAINER_H_
       
    19 #define CXUISETTINGBUTTONCONTAINER_H_
       
    20 #include <hbwidget.h>
       
    21 #include <QList>
       
    22 #include "cxuisettingbutton.h"
       
    23 
       
    24 class CxuiSettingButtonContainer : public HbWidget
       
    25 {
       
    26     Q_OBJECT
       
    27 
       
    28 public:
       
    29     explicit CxuiSettingButtonContainer(QGraphicsItem *parent);
       
    30 
       
    31 
       
    32 signals:
       
    33     void buttonReleased();
       
    34 
       
    35 public slots:
       
    36 
       
    37     void handleButtonPress();
       
    38 
       
    39 
       
    40 protected:
       
    41     void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
       
    42     void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
       
    43 private:
       
    44     Q_DISABLE_COPY(CxuiSettingButtonContainer)
       
    45 
       
    46     QList<CxuiSettingButton *>mButtons;
       
    47     bool mListCreated;
       
    48     CxuiSettingButton *mPressedDownButton;
       
    49     CxuiSettingButton *mPreviouslyPressedDownButton;
       
    50 
       
    51 };
       
    52 
       
    53 
       
    54 
       
    55 
       
    56 #endif /* CXUISETTINGBUTTONCONTAINER_H_ */