~ubuntu-branches/ubuntu/quantal/openmsx-debugger/quantal

« back to all changes in this revision

Viewing changes to src/InteractiveButton.h

  • Committer: Bazaar Package Importer
  • Author(s): Joost Yervante Damad
  • Date: 2009-12-06 07:40:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20091206074002-kssfkg1d6xbp6w9e
Tags: 0.0.0.svn20091206-1
New svn snapshot (Closes: #559612)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INTERACTIVEBUTTON
 
2
#define INTERACTIVEBUTTON
 
3
 
 
4
#include <QPushButton>
 
5
 
 
6
class InteractiveButton : public QPushButton
 
7
{
 
8
        Q_OBJECT
 
9
public:
 
10
        InteractiveButton(QWidget* parent = 0);
 
11
 
 
12
protected:
 
13
        virtual void enterEvent(QEvent* event);
 
14
        virtual void leaveEvent(QEvent* event);
 
15
 
 
16
signals:
 
17
        void mouseOver(bool state);
 
18
        // this one is specific for the VDPRegViewer and depends on the
 
19
        // name of the button also
 
20
        void newBitValue(int reg, int bit, bool state);
 
21
 
 
22
public slots:
 
23
        void highlight(bool state);
 
24
        void mustBeSet(bool state);
 
25
 
 
26
private slots:
 
27
        // this one is specific for the VDPRegViewer
 
28
        void newBitValueSlot(bool);
 
29
 
 
30
private:
 
31
        void setColor();
 
32
        bool _mustBeSet;
 
33
        bool _highlight;
 
34
        bool _state;
 
35
};
 
36
 
 
37
#endif // INTERACTIVEBUTTON