itom  4.1.0
dialogNewPluginInstance.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 #ifndef DIALOGNEWPLUGININSTANCE_H
24 #define DIALOGNEWPLUGININSTANCE_H
25 
26 #include "../../common/addInInterface.h"
27 #include "../../common/sharedStructures.h"
28 
29 #include "../global.h"
30 
31 #include <QtGui>
32 #include <qdialog.h>
33 
34 #include "paramInputParser.h"
35 
36 
37 #include "ui_dialogNewPluginInstance.h"
38 
39 namespace ito {
40 
41 class DialogNewPluginInstance : public QDialog
42 {
43  Q_OBJECT
44 
45 public:
46  DialogNewPluginInstance(QModelIndex &modelIndex, ito::AddInInterfaceBase* aib, bool allowSendToPython = true);
48 
49  ito::RetVal getFilledMandParams(QVector<ito::ParamBase> &params);
50  ito::RetVal getFilledOptParams(QVector<ito::ParamBase> &params);
51  QString getPythonVariable();
52 
53 protected:
54  ParamInputParser *m_pMandParser;
55  ParamInputParser *m_pOptParser;
56 
57 private:
58 
59  Ui::DialogNewPluginInstance ui;
60 
61 private slots:
62  void on_buttonBox_accepted();
63 
64 };
65 
66 } //end namespace ito
67 
68 #endif
Class for managing status values (like errors or warning)
Definition: retVal.h:54
Definition: dialogNewPluginInstance.h:41
Definition: apiFunctionsGraph.cpp:39
forward declaration to private container class of AddInAlog
Definition: addInInterface.h:248
Definition: paramInputParser.h:38