itom  4.1.0
widgetPropEditorAutoCodeFormat.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5  Universitaet Stuttgart, Germany
6 
7  This file is part of itom.
8 
9  itom is free software; you can redistribute it and/or modify it
10  under the terms of the GNU Library General Public Licence as published by
11  the Free Software Foundation; either version 2 of the Licence, or (at
12  your option) any later version.
13 
14  itom is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17  General Public Licence for more details.
18 
19  You should have received a copy of the GNU Library General Public License
20  along with itom. If not, see <http://www.gnu.org/licenses/>.
21 *********************************************************************** */
22 
23 #pragma once
24 
25 #include "abstractPropertyPageWidget.h"
26 
27 #include <qwidget.h>
28 #include <qsharedpointer.h>
29 
30 #include "../codeEditor/pyCodeFormatter.h"
31 
32 #include "ui_widgetPropEditorAutoCodeFormat.h"
33 
34 namespace ito
35 {
36 
38 {
39  Q_OBJECT
40 
41 public:
42  WidgetPropEditorAutoCodeFormat(QWidget *parent = NULL);
44 
45  void readSettings();
46  void writeSettings();
47 
48 protected:
49  static void deleteLater(QObject *obj);
50 
51 private:
52  Ui::WidgetPropEditorAutoCodeFormat ui;
53  QString m_demoCode;
54  QSharedPointer<PyCodeFormatter> m_pyCodeFormatter;
55 
56 signals:
57 
58 public slots:
59 
60 private slots:
61  void on_btnTest_clicked();
62  void on_btnTake_clicked();
63 
64  void testCodeFormatterDone(bool success, QString code);
65 };
66 
67 } //end namespace ito
Definition: abstractPropertyPageWidget.h:31
Definition: widgetPropEditorAutoCodeFormat.h:37
Definition: apiFunctionsGraph.cpp:39
void readSettings()
Definition: widgetPropEditorAutoCodeFormat.cpp:49
void writeSettings()
Definition: widgetPropEditorAutoCodeFormat.cpp:66