itom 2.0.0
D:/git-itom/sources/itom/Qitom/ui/dialogPipManagerInstall.h
00001 /* ********************************************************************
00002     itom software
00003     URL: http://www.uni-stuttgart.de/ito
00004     Copyright (C) 2015, Institut für Technische Optik (ITO),
00005     Universität Stuttgart, Germany
00006 
00007     This file is part of itom.
00008   
00009     itom is free software; you can redistribute it and/or modify it
00010     under the terms of the GNU Library General Public Licence as published by
00011     the Free Software Foundation; either version 2 of the Licence, or (at
00012     your option) any later version.
00013 
00014     itom is distributed in the hope that it will be useful, but
00015     WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library
00017     General Public Licence for more details.
00018 
00019     You should have received a copy of the GNU Library General Public License
00020     along with itom. If not, see <http://www.gnu.org/licenses/>.
00021 *********************************************************************** */
00022 
00023 #ifndef DIALOGPIPMANAGERINSTALL_H
00024 #define DIALOGPIPMANAGERINSTALL_H
00025 
00026 #include "../../common/addInInterface.h"
00027 #include "../../common/sharedStructures.h"
00028 
00029 #include <qdialog.h>
00030 #include <qvector.h>
00031 #include <qevent.h>
00032 
00033 #include "ui_dialogPipManagerInstall.h"
00034 
00035 namespace ito {
00036 
00037 class DialogPipManagerInstall : public QDialog 
00038 {
00039     Q_OBJECT
00040 
00041 public:
00042     enum Type { typeWhl = 0, typeTarGz = 1, typeSearchIndex = 2};
00043     DialogPipManagerInstall(QWidget *parent = NULL, QString package = "");
00044     ~DialogPipManagerInstall();
00045 
00046     void getResult(int &type, QString &packageName, bool &upgrade, bool &installDeps, QString &findLinks, bool &ignoreIndex, bool &runAsSudo);
00047 
00048 private:
00049     Ui::DialogPipManagerInstall ui;
00050     Type m_selectedType;
00051 
00052 protected:
00053 
00054 private slots:
00055     void on_btnPackage_clicked();
00056     void on_btnFindLinks_clicked();
00057     void on_radioWhl_clicked(bool checked);
00058     void on_radioTarGz_clicked(bool checked);
00059     void on_radioSearchIndex_clicked(bool checked);
00060     void on_buttonBox_accepted();
00061     
00062 };
00063 
00064 } //end namespace ito
00065 
00066 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends