QtPdWidgets  2.3.1
TouchEditDialog.h
Go to the documentation of this file.
1 /*****************************************************************************
2  *
3  * Copyright (C) 2011 - 2012 Andreas Stewering-Bone <ab@igh-essen.com>
4  * Florian Pose <fp@igh-essen.com>
5  *
6  * This file is part of the QtPdWidgets library.
7  *
8  * The QtPdWidgets library is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public License as
10  * published by the Free Software Foundation, either version 3 of the License,
11  * or (at your option) any later version.
12  *
13  * The QtPdWidgets library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
16  * General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with the QtPdWidgets Library. If not, see
20  * <http://www.gnu.org/licenses/>.
21  *
22  ****************************************************************************/
23 
24 #ifndef TOUCHEDITDIALOG_H
25 #define TOUCHEDITDIALOG_H
26 
27 #include <QtGui>
28 #include <QDialog>
29 #include <QScopedPointer>
30 
31 #include "CursorEditWidget.h"
32 #include "Export.h"
33 
34 namespace Pd {
35 
36 class TouchEditDialogPrivate;
37 
38 /****************************************************************************/
39 
43  public QDialog
44 {
45  Q_OBJECT
46 
47  public:
48  TouchEditDialog(QWidget *parent = 0);
49  ~TouchEditDialog();
50 
51  double getValue() const;
52  void setValue(double);
53  void setDecimals(int);
54  void setSuffix(const QString &);
55  void setLowerLimit(double);
56  void setUpperLimit(double);
57  int getEditDigit() const;
58  void setEditDigit(int);
59 
60  private slots:
61  void buttonOk_clicked();
62  void buttonCancel_clicked();
63  void changeEvent(QEvent* event) override;
64 
65  private:
66  Q_DECLARE_PRIVATE(TouchEditDialog);
67 
68  QScopedPointer<TouchEditDialogPrivate> const d_ptr;
69 
70  PD_PRIVATE void retranslate();
71 };
72 
73 /****************************************************************************/
74 
75 } // namespace Pd
76 
77 #endif
Definition: Bar.h:36
QScopedPointer< TouchEditDialogPrivate > const d_ptr
Definition: TouchEditDialog.h:68
Dialog for editing numeric values on a touchscreen.
Definition: TouchEditDialog.h:42
#define PD_PRIVATE
Definition: Export.h:28
#define PD_PUBLIC
Definition: Export.h:33