~ubuntu-branches/ubuntu/raring/unity-2d/raring

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2012-03-19 14:07:10 UTC
  • mfrom: (1.1.29)
  • Revision ID: package-import@ubuntu.com-20120319140710-uo2kqjoscac55y2s
Tags: 5.7.0-0ubuntu1
* New upstream release:
  - unity-2d-panel crashed with SIGABRT in Unity2dDebug::unity2dQtHandler()
    (LP: #925457)
  - unity-2d-shell crashed with SIGSEGV in ref() (LP: #947278)
  - Launcher - Make Launcher left of screen reveal more responsive and less
    prone to false positives (LP: #765819)
  - [dash] [launcher] [panel] Tinting based on wallpaper missing
    (LP: #882101)
  - [launcher] In multimonitor setup Unity-2D only shows launcher on one
    monitor (fails MM UX spec #2.8) (LP: #780204)
  - [unity-2d] FF exception to add PointerBarrier to Unity2d (LP: #947976)
  - multimonitor, launcher: Provide an option to display either a single
    launcher or a launcher on each display in a multi-monitor environment
    (LP: #950136)
  - lens switching is not keyboard navigable (LP: #945220)
  - [panel] [multi-monitor] On secondary screen, unable to scrub from
    indicator menu to app menu (LP: #844809)
  - "Workspaces" button displays previous wallpaper (LP: #900019)
  - Dash - cursor should change when pointer is over the search field
    (LP: #849175)
  - Filter checkboxes are without margins in right to left locales
    (LP: #949319)
  - [panel] [multi-monitor] Open indicator menu on one screen causes other
    indicator to look open too (LP: #844798)
  - Dash - horizental divider line in between categories incorrectly drawn
    (LP: #841750)
  - [launcher] Tile Progress bar starting from left of launcher, not
    container (LP: #912777)
  - Dash - dash is not closed with alt+f4 (LP: #891818)
  - [dash] Rating stars in right-to-left locales behave inconsistently.
    (LP: #945719)
  - LensButton.qml:72 warning when running unity-2d (LP: #947276)
  - [dash] Multi-range filters are rendered incorrectly in right-to-left
    locales (LP: #950649)
* debian/unity-2d.gconf-defaults:
  - removed: not used anymore and causing regression with hide-mode=2
    by default, converted to the gsettings key (LP: #942772)
* debian/unity-2d.preinst:
  - removed, was a natty -> oneiric transition
* debian/control, debian/unity-2d-common.install:
  - create unity-2d-common and make some packages depending on it
  - move some files from unity-2d package to unity-2d-common
    (gsettings and apport hook) to have packaging shipping their schema
    (LP: #925457)
* debian/unity-2d-common.install.in:
  - no more gconf -> gsettings migration shipped
* debian/unity-2d.postinst, prerm, trigger:
  - moved to unity-2d-common new package, to ensure even people uninstalling
    unity-2d got the right metacity configuration in the session
  - update the trigger to the correct directory
* debian/control:
  - bump to latest Standards-Version
  - fix some too long description
  - put the transitional packages in the oldlibs/extra section
  - build-dep on libxtst-dev, libxfixes-dev for barrier change
  - need latest metacity for barriers to work

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2012 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef DECAYEDVALUE_H
 
18
#define DECAYEDVALUE_H
 
19
 
 
20
#include <QObject>
 
21
 
 
22
#include <QTimer>
 
23
 
 
24
class DecayedValue : public QObject
 
25
{
 
26
    Q_OBJECT
 
27
public:
 
28
    DecayedValue();
 
29
 
 
30
    bool addAndCheckExceedingTarget(int i);
 
31
 
 
32
    void setDecayRate(int decayRate);
 
33
    void setTarget(int target);
 
34
 
 
35
private Q_SLOTS:
 
36
    void decay();
 
37
 
 
38
private:
 
39
    int m_value;
 
40
    int m_target;
 
41
    int m_decayRate;
 
42
    QTimer m_valueDecayTimer;
 
43
};
 
44
 
 
45
#endif // DECAYEDVALUE_H