diff options
author | Ken Moore <ken@ixsystems.com> | 2017-11-27 15:48:13 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-11-27 15:48:13 -0500 |
commit | b2a6b8620846f5ee8015794507cfec2ee20fe5e3 (patch) | |
tree | 17ed4be1040c92e48a2d317c391595a71dd41a82 /src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h | |
parent | Some UI improvements for lumina-pdf: (diff) | |
parent | Merge pull request #513 from schnitzeltony/master (diff) | |
download | lumina-b2a6b8620846f5ee8015794507cfec2ee20fe5e3.tar.gz lumina-b2a6b8620846f5ee8015794507cfec2ee20fe5e3.tar.bz2 lumina-b2a6b8620846f5ee8015794507cfec2ee20fe5e3.zip |
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h b/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h deleted file mode 100644 index e49f43aa..00000000 --- a/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h +++ /dev/null @@ -1,68 +0,0 @@ -//=========================================== -// Lumina-DE source code -// Copyright (c) 2016, Ken Moore -// Available under the 3-clause BSD license -// See the LICENSE file for full details -//=========================================== -// This is the dialog for cloning a git repository -//=========================================== -#ifndef _LUMINA_FM_GIT_DIALOG_H -#define _LUMINA_FM_GIT_DIALOG_H - -#include <QWizard> -#include <QString> -#include <QMessageBox> -#include <QCloseEvent> - -#include "gitCompat.h" - -namespace Ui{ - class GitWizard; -}; - -class GitWizard : public QWizard{ - Q_OBJECT -public: - GitWizard(QWidget *parent = 0); - ~GitWizard(); - - //Input values; - void setWorkingDir(QString path); - -private: - Ui::GitWizard *ui; - QString inDir; - GitProcess *proc; - - QString assembleURL(); - //void showDownload(GitProcess *P); - -private slots: - //Page Change slots - void pageChanged(int newpage); //called when the "next" button is clicked - //void finished(int); //called when the "finish" button is clicked - - //Page validation slots - void validateRepo(); //for page_repo - void validateType(); //for page_type - - //process output - void readProc(); - void procFinished(int retcode); - -protected: - void closeEvent(QCloseEvent *ev){ - //Make sure the process is not running first - if(proc!=0 && proc->state()!=QProcess::NotRunning){ - ev->ignore(); - if(QMessageBox::Yes == QMessageBox::question(this, tr("Stop Download?"), tr("Kill the current download?") ) ){ - proc->kill(); - } - }else{ - QWizard::closeEvent(ev); - this->deleteLater(); //we need to clean this up completely - } - } -}; - -#endif |