kwave  18.07.70
InvertableSpinBox.h
Go to the documentation of this file.
1 /***************************************************************************
2  InvertableSpinBox.h - a spinbox with invertable spin buttons
3  -------------------
4  begin : Sun Jan 12 2003
5  copyright : (C) 2003 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #include "config.h"
19 
20 #include <QtGlobal>
21 #include <QSpinBox>
22 
23 #ifndef INVERTABLE_SPIN_BOX_H
24 #define INVERTABLE_SPIN_BOX_H
25 
26 class QWidget;
27 
28 namespace Kwave
29 {
30 
31  class Q_DECL_EXPORT InvertableSpinBox: public QSpinBox
32  {
33  Q_OBJECT
34  public:
35 
37  explicit InvertableSpinBox(QWidget *parent);
38 
41  {
42  }
43 
45  virtual void setInverse(bool inverse);
46 
48  virtual bool inverse() const { return m_inverse; }
49 
50  public slots:
51 
56  virtual void stepUp();
57 
62  virtual void stepDown();
63 
64  protected slots:
65 
67  void checkValueChange(int value);
68 
69  private:
70 
72  bool m_inverse;
73 
74  };
75 }
76 
77 #endif /* INVERTABLE_SPIN_BOX_H */
78 
79 //***************************************************************************
80 //***************************************************************************
Definition: App.h:33
virtual bool inverse() const