File: rtoolbutton.h

package info (click to toggle)
qcad 1.3.3-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 4,504 kB
  • ctags: 2,449
  • sloc: cpp: 29,400; makefile: 49; sh: 15
file content (60 lines) | stat: -rw-r--r-- 1,363 bytes parent folder | download | duplicates (2)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/***************************************************************************
                          rtoolbutton.h  -  description
                             -------------------
    begin                : Mon Sep 27 1999
    copyright            : (C) 1999 by Andreas Mustun
    email                : andrew@ribbonsoft.com
 ***************************************************************************/

/****************************************************************************
** rtoolbutton.h 1999/04/14 A. Mustun RibbonSoft 
**
** Copyright (C) 1998 RibbonSoft.  All rights reserved.
**
*****************************************************************************/

#ifndef RTOOLBUTTON_H
#define RTOOLBUTTON_H

#include <qtoolbutton.h>
#include "rprgdef.h"


class RToolButton : public QToolButton
{
  Q_OBJECT
public:
  /*! Constructor
      \param _parent The parent widget
      \param _name Name
  */
  RToolButton(QWidget* _parent=0, 
              const char* _name=0,
              bool _forwardRightClick=false);
  /*! Destructor
  */
  ~RToolButton();

  /*! Draws the button in my own style
  */
  void drawButton( QPainter * p );

protected:
  /*! Mouse button released
  */
  void mouseReleaseEvent(QMouseEvent* _ev);
    
private:
  /*! Must we forward the right click of the mouse
  */
  bool forwardRightClick;

  
};


#endif

// EOF