~ubuntu-branches/ubuntu/precise/sflphone/precise

« back to all changes in this revision

Viewing changes to kde/plasma/plasmoid/DialPage.h

  • Committer: Package Import Robot
  • Author(s): Whoopie
  • Date: 2012-03-22 10:29:10 UTC
  • mfrom: (4.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120322102910-tb8hugi2su1tguwh
Tags: 1.0.2-1ubuntu1
* Apply some upstream patches to fix FTBFS (LP: #913018):
  - debian/patches/05_glib_includes.patch: fix glib includes.
  - debian/patches/06_use_XkbKeycodeToKeysym.patch: use 
    XkbKeycodeToKeysym instead of (deprecated) XKeycodeToKeysym.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef DIAL_PAGE
 
2
#define DIAL_PAGE
 
3
 
 
4
#include <Plasma/Frame>
 
5
#include <Plasma/PushButton>
 
6
 
 
7
class DialButton : public Plasma::PushButton
 
8
{
 
9
   Q_OBJECT
 
10
 
 
11
   public:
 
12
      DialButton(QGraphicsWidget* parent) : Plasma::PushButton(parent) {
 
13
         connect(this, SIGNAL(clicked()), this, SLOT(clicked2()));
 
14
      }
 
15
      void setLetter(QString value) {
 
16
         letter = value;
 
17
      }
 
18
   private slots:
 
19
      void clicked2() {
 
20
         emit typed(letter);
 
21
      }
 
22
   signals:
 
23
      void typed(QString);
 
24
   private:
 
25
      QString letter;
 
26
};
 
27
 
 
28
class DialPage : public Plasma::Frame
 
29
{
 
30
   Q_OBJECT
 
31
   public:
 
32
      DialPage();
 
33
 
 
34
   private slots:
 
35
      void charTyped(QString value);
 
36
      void call();
 
37
      void cancel();
 
38
 
 
39
   private:
 
40
      Plasma::Frame* currentNumber;
 
41
      QString currentNumber2;
 
42
 
 
43
   signals:
 
44
      void typed(QString);
 
45
      void call(QString);
 
46
 
 
47
};
 
48
 
 
49
#endif