itom
Loading...
Searching...
No Matches
dialogPipManagerInstall.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität 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
35namespace 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
49class DialogPipManagerInstall : public QDialog
50{
51 Q_OBJECT
52
53public:
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
59private:
60 Ui::DialogPipManagerInstall ui;
61 bool m_upgradeMode;
62
63protected:
64 static DialogPipManagerInstallDefaults defaultsInstall;
65 static DialogPipManagerInstallDefaults defaultsUpgrade;
66
67private 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_radioPackageDevelopment_clicked(bool checked);
75 void on_buttonBox_accepted();
76
77};
78
79} //end namespace ito
80
81#endif
Definition dialogPipManagerInstall.h:50
Definition apiFunctionsGraph.cpp:40
Definition dialogPipManagerInstall.h:38