summaryrefslogtreecommitdiffstats
path: root/ksirc/puke/pbutton.h
blob: addc77138aaa19b53300eaf63966a34de4fc8723 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef PBUTTON_H
#define PBUTTON_H

class PButton;

#include <tqbutton.h>
#include "pmessage.h"
#include "pwidget.h"
#include "pobject.h"
#include "controller.h"


class PButton : public PWidget
{
  Q_OBJECT
public:
  static PObject *createWidget(CreateArgs &ca);

  PButton ( PObject * parent );
  virtual ~PButton ();
  
  virtual void messageHandler(int fd, PukeMessage *pm);
  
  virtual void setWidget(TQObject *_qb = 0x0);
  virtual TQButton *widget();

public slots:
  void buttonPressed();
  void buttonReleased();
  void buttonClicked();
  void buttonToggled(bool);
  
private:
  TQButton *button;

  void buttonMessage(int iCommand);
  bool checkWidget();
};

#endif