ginebra2/ContentToolbarSnippet.h
changeset 16 3c88a81ff781
parent 3 0954f5dd2cd0
equal deleted inserted replaced
14:6aeb7a756187 16:3c88a81ff781
    40     virtual ~ContentToolbarSnippet();
    40     virtual ~ContentToolbarSnippet();
    41 
    41 
    42     static ContentToolbarSnippet * instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element);
    42     static ContentToolbarSnippet * instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element);
    43     WebChromeContainerSnippet * middleSnippet() { return m_middleSnippet;}
    43     WebChromeContainerSnippet * middleSnippet() { return m_middleSnippet;}
    44     void handleToolbarStateChange(ContentToolbarState);
    44     void handleToolbarStateChange(ContentToolbarState);
       
    45     virtual void setChromeWidget(QGraphicsWidget * newWidget);
    45 
    46 
    46   Q_SIGNALS:
    47   Q_SIGNALS:
    47     void menuButtonSelected();
    48     void menuButtonSelected();
    48     void menuButtonCanceled();
    49     void menuButtonCanceled();
    49 
    50 
    65     /// as well as those of the sub-chrome chidlren's
    66     /// as well as those of the sub-chrome chidlren's
    66     void onSnippetMouseEvent( QEvent::Type type); 
    67     void onSnippetMouseEvent( QEvent::Type type); 
    67     void onHidden();
    68     void onHidden();
    68     void onShown();
    69     void onShown();
    69     void onInactivityTimer();
    70     void onInactivityTimer();
       
    71 
       
    72     /// Called when the ContentToolbarChromeItem's inactivityTimer() signal is sent.
       
    73     void onWidgetInactivityTimer();
       
    74 
       
    75 #ifdef Q_WS_MAEMO_5
       
    76     /// Called when the top-level window changes state -- typically from
       
    77     /// full screen to normal or vice versa.
       
    78     void onWindowStateChanged(Qt::WindowStates state);
       
    79 #endif
       
    80 
    70     void onExternalMouse(QEvent * ev, const QString & name, const QString & description);
    81     void onExternalMouse(QEvent * ev, const QString & name, const QString & description);
    71     void onAspectChanged( ); 
    82     void onAspectChanged( ); 
    72 
    83 
    73 
    84 
    74   private:
    85   private: