ginebra2/ActionButtonSnippet.h
changeset 0 1450b09d0cfd
child 3 0954f5dd2cd0
child 5 0f2326c2a325
equal deleted inserted replaced
-1:000000000000 0:1450b09d0cfd
       
     1 /*
       
     2 * Copyright (c) 2010 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 
       
    19 #ifndef __gva_actionbuttonsnippet_h__
       
    20 #define __gva_actionbuttonsnippet_h__
       
    21 
       
    22 #include "ChromeSnippet.h"
       
    23 #include "ChromeWidget.h"
       
    24 #include "ActionButton.h"
       
    25 
       
    26 namespace GVA {
       
    27 
       
    28 
       
    29   class ActionButtonSnippet : public ChromeSnippet
       
    30   {
       
    31     Q_OBJECT
       
    32     public:
       
    33        ActionButtonSnippet(const QString & elementId, ChromeWidget * chrome, QGraphicsWidget * widget, const QWebElement & element);
       
    34        virtual ~ActionButtonSnippet() {;}
       
    35 
       
    36     public slots:
       
    37        void setIcon( const QString & icon );
       
    38        void setDisabledIcon( const QString & icon );
       
    39        void setSelectedIcon( const QString & icon );
       
    40        void setActiveIcon( const QString & icon );
       
    41        void connectAction ( const QString & action, const QString & view, const QString & inputEvent = "Down" );
       
    42        void setEnabled( bool enabled );
       
    43        void setLatched( bool latched );
       
    44        void setInputEvent( const QString & inputEvent );
       
    45     signals:
       
    46        void activated();
       
    47        void contextMenuEvent();
       
    48   };
       
    49 }
       
    50 
       
    51 #endif // ICONSNIPPET_H