itom  4.1.0
dialogPipManagerInstall.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 DIALOGPIPMANAGERINSTALL_H
24 #define DIALOGPIPMANAGERINSTALL_H
25 
26 #include "../../common/addInInterface.h"
27 #include "../../common/sharedStructures.h"
28 
29 #include <qdialog.h>
30 #include <qvector.h>
31 #include <qevent.h>
32 
33 #include "ui_dialogPipManagerInstall.h"
34 
35 namespace ito {
36 
38 {
39  DialogPipManagerInstallDefaults() : valid(false) {};
40  bool valid;
41  bool upgradeIfNewer;
42  bool installDependencies;
43  bool findLinks;
44  QString findLinksPath;
45  bool ignorePypi;
46  bool runSudo;
47 };
48 
49 class DialogPipManagerInstall : public QDialog
50 {
51  Q_OBJECT
52 
53 public:
54  DialogPipManagerInstall(QWidget *parent = NULL, QString package = "");
56 
57  void getResult(int &type, QString &packageName, bool &upgrade, bool &installDeps, QString &findLinks, bool &ignoreIndex, bool &runAsSudo);
58 
59 private:
60  Ui::DialogPipManagerInstall ui;
61  bool m_upgradeMode;
62 
63 protected:
64  static DialogPipManagerInstallDefaults defaultsInstall;
65  static DialogPipManagerInstallDefaults defaultsUpgrade;
66 
67 private slots:
68  void on_btnPackage_clicked();
69  void on_btnFindLinks_clicked();
70  void on_radioWhl_clicked(bool checked);
71  void on_radioTarGz_clicked(bool checked);
72  void on_radioSearchIndex_clicked(bool checked);
73  void on_radioRequirements_clicked(bool checked);
74  void on_buttonBox_accepted();
75 
76 };
77 
78 } //end namespace ito
79 
80 #endif
Definition: dialogPipManagerInstall.h:37
Definition: apiFunctionsGraph.cpp:39
Definition: dialogPipManagerInstall.h:49