~ubuntu-branches/ubuntu/trusty/kdeplasma-addons/trusty

« back to all changes in this revision

Viewing changes to applets/plasmaboard/FuncKey.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Thomas
  • Date: 2010-05-25 09:50:14 UTC
  • mfrom: (1.1.28 upstream)
  • Revision ID: james.westby@ubuntu.com-20100525095014-6mlrm9z9bkws0zkt
Tags: 4:4.4.80-0ubuntu1
* New upstream beta release:
  - Bump kde-sc-dev-latest build-dep version to 4.4.80
  - Refresh kubuntu_04_kimpanel_disable_scim.diff
  - Update various .install files
  - Drop liblancelot0a and liblancelot-dev packages; Upstream has broken ABI
    without an .so version bump, and after discussion with Debian it was
    decided it was not worth it to ship an unstable library.
  - Add liblancelot files to plasma-widget-lancelot, adding appropriate
    Replaces: entries
* Switch to source format 3.0 (quilt):
  - Bump debhelper build-depend version to 7.3.16 or greater

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef FUNCKEY_H
22
22
#define FUNCKEY_H
23
23
 
24
 
#include "BoardKey.h"
25
 
 
26
 
class PlasmaboardWidget;
27
 
 
28
 
class FuncKey: public BoardKey {
29
 
 
30
 
    Q_OBJECT
 
24
#include "AlphaNumKey.h"
 
25
 
 
26
class FuncKey: public AlphaNumKey {
31
27
 
32
28
public:
33
 
        FuncKey(PlasmaboardWidget *parent);
34
 
        void toggleOn();
35
 
        void toggleOff();
36
 
        bool toggled();
37
 
        void setKeycode(unsigned int code, bool sendUp);
38
 
        void setKey(unsigned int code, bool sendUp, const QString text);
39
 
 
40
 
 
41
 
public Q_SLOTS:
42
 
        void sendKeycodeToggled();
43
 
        void toggle(bool toggle);
44
 
 
45
 
protected:
46
 
        virtual void released();
 
29
    FuncKey(QPoint relativePosition, QSize relativeSize, unsigned int keycode, QString label);
 
30
    virtual void paint(QPainter *painter);
47
31
 
48
32
private:
49
 
        bool pressed;
50
 
        bool toggler;
 
33
    virtual void paintLabel(QPainter *painter);
51
34
 
52
35
protected:
53
36
        void paintArrow(QPainter *painter);