Seamly2D
Code documentation
calculator_dialog.h
Go to the documentation of this file.
1 /************************************************************************
2  **
3  ** @file calculator_dialog.h
4  ** @author DSCaskey <dscaskey@gmail.com>
5  ** @date 12 26, 2021
6  **
7  ** @brief
8  ** @copyright
9  ** This source code is part of the Valentine project, a pattern making
10  ** program, whose allow create and modeling patterns of clothing.
11  ** Copyright (C) 2013-2015 Seamly2D project
12  ** All Rights Reserved.
13  **
14  ** Seamly2D is free software: you can redistribute it and/or modify
15  ** it under the terms of the GNU General Public License as published by
16  ** the Free Software Foundation, either version 3 of the License, or
17  ** (at your option) any later version.
18  **
19  ** Seamly2D is distributed in the hope that it will be useful,
20  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
21  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  ** GNU General Public License for more details.
23  **
24  ** You should have received a copy of the GNU General Public License
25  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
26  **
27  *************************************************************************/
28 
29 #ifndef DIALOGCALCULATOR_H
30 #define DIALOGCALCULATOR_H
31 
32 #include <QDialog>
33 #include <QWidget>
34 
35 #include "../vwidgets/calculator/calculator.h"
36 
37 namespace Ui
38 {
39  class CalculatorDialog;
40 }
41 
42 class QWidget;
43 class Calculator;
44 
45 class CalculatorDialog : public QDialog
46 {
47  Q_OBJECT
48 
49 public:
50  explicit CalculatorDialog(QWidget *parent = nullptr);
51  virtual ~CalculatorDialog();
52 
53 protected:
54  virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
55 
56 private:
57  Ui::CalculatorDialog *ui;
59  Q_DISABLE_COPY(CalculatorDialog)
60 
62 };
63 
64 #endif // DIALOGCALCULATOR_H
CalculatorDialog(QWidget *parent=nullptr)
CalculatorUtil * calc
virtual void showEvent(QShowEvent *event) Q_DECL_OVERRIDE
Ui::CalculatorDialog * ui
The Calculator class for calculation formula.
Definition: calculator.h:84