settingsDialog.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015, C. Dornhege, University of Freiburg
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright notice, this
9  * list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright notice,
11  * this list of conditions and the following disclaimer in the documentation
12  * and/or other materials provided with the distribution.
13  * * Neither the name of the University of Freiburg nor the names
14  * of its contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
24  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 #ifndef SETTINGS_DIALOG_H
30 #define SETTINGS_DIALOG_H
31 
32 #include "ui_SettingsDialog.h"
33 
34 class SettingsDialog : public QDialog, protected Ui::SettingsDialog
35 {
36  public:
37  SettingsDialog(QWidget* parent = NULL);
39 
40  void setDoubleDecimals(unsigned int decs)
41  {
42  doubleDecimalsSpinBox->setValue(decs);
43  }
44 
45  unsigned int getDoubleDecimals() const
46  {
47  return doubleDecimalsSpinBox->value();
48  }
49 
50  int getMaxDisplayLength() const
51  {
52  return maxDisplayLengthSpinBox->value();
53  }
54 
55  void setMaxDisplayLength(unsigned int l)
56  {
57  maxDisplayLengthSpinBox->setValue(l);
58  }
59 
60 };
61 
62 #endif
63 
void setDoubleDecimals(unsigned int decs)
unsigned int getDoubleDecimals() const
void setMaxDisplayLength(unsigned int l)
SettingsDialog(QWidget *parent=NULL)
int getMaxDisplayLength() const


qt_paramedit
Author(s): Christian Dornhege
autogenerated on Mon Feb 28 2022 23:37:51