~ubuntu-branches/ubuntu/precise/unity-2d/precise-updates

« back to all changes in this revision

Viewing changes to libunity-2d-private/src/indicatorswidget.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2011-09-15 11:43:52 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: package-import@ubuntu.com-20110915114352-4r8z8vbm4s4v9q6h
Tags: 4.8.0-0ubuntu1
* New upstream release
  - [window management] Alt tab does not switch to the desired application
    but instead set the urgency flag on the window (LP: #735205)
  - [dash] search field default text not cleared immediately when using
    chinese input method (LP: #745246)
  - [dash] Apps lens shows no result by default (LP: #834571)
  - unity-2d-panel crashed with SIGSEGV in
    IndicatorsWidget::onEntryRemoved() (LP: #846836)
  - [panel] graphics corruption in top line of pixels (LP: #846335)
  - Repeated indicators in unity-2d panel when second screen added
    (LP: #846441)
  - [dash] Lens navigation bar (buttons on lower edge of dash window) is
    accessible (LP: #826560)
  - [dash] Category filters is sorted according to their english names, even
    when another language is used (LP: #838023)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
#include <UnityCore/IndicatorEntry.h>
30
30
 
31
31
// Qt
 
32
#include <QMap>
32
33
#include <QWidget>
33
34
 
 
35
// sigc++
 
36
#include <sigc++/connection.h>
 
37
 
34
38
class QHBoxLayout;
35
39
 
36
40
class IndicatorEntryWidget;
41
45
Q_OBJECT
42
46
public:
43
47
    IndicatorsWidget(IndicatorsManager* manager);
 
48
    ~IndicatorsWidget();
44
49
 
45
50
    void addIndicator(const unity::indicator::Indicator::Ptr& indicator);
 
51
    void removeIndicator(const unity::indicator::Indicator::Ptr& indicator);
46
52
 
47
53
private:
48
54
    QHBoxLayout* m_layout;
49
55
    IndicatorsManager* m_indicatorsManager;
50
 
    QList<unity::indicator::Indicator::Ptr> m_indicators;
 
56
    QMap<unity::indicator::Indicator::Ptr, QList<sigc::connection>> m_indicators_connections;
51
57
    QList<IndicatorEntryWidget*> m_entries;
52
58
 
53
59
    void onEntryAdded(const unity::indicator::Entry::Ptr& entry);