aboutsummaryrefslogtreecommitdiff
path: root/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h
diff options
context:
space:
mode:
authorWeblate <noreply@weblate.org>2017-09-20 10:04:33 +0000
committerWeblate <noreply@weblate.org>2017-09-20 10:04:33 +0000
commit6a570a2c9648c47c3c58d96f139feab6596105ae (patch)
treea61a7e3e8149c96474db636b282559ddd9d90ed9 /src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h
parentTranslated using Weblate (Finnish) (diff)
parentGet the window embed routine cleaned up and demo-ready. (diff)
downloadlumina-6a570a2c9648c47c3c58d96f139feab6596105ae.tar.gz
lumina-6a570a2c9648c47c3c58d96f139feab6596105ae.tar.bz2
lumina-6a570a2c9648c47c3c58d96f139feab6596105ae.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h')
-rw-r--r--src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h b/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h
new file mode 100644
index 00000000..e49f43aa
--- /dev/null
+++ b/src-qt5/desktop-utils/lumina-fm-dev/gitWizard.h
@@ -0,0 +1,68 @@
+//===========================================
+// 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
bgstack15