This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repository Module: reimplemented CloneDlg that inherits ExpandableDlg
- Loading branch information
Showing
7 changed files
with
186 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +0,0 @@ | ||
#include "CloneOptionsWdgt.hpp" | ||
|
||
#include <QLayout> | ||
|
||
|
||
CloneOptionsWdgt::CloneOptionsWdgt(QWidget *parent) : | ||
QWidget(parent) | ||
{ | ||
setupUi(this); | ||
|
||
// margin is controlled by the parent widget's layout | ||
layout()->setMargin(0); | ||
} | ||
|
||
CloneOptionsWdgt::~CloneOptionsWdgt() | ||
{ | ||
} | ||
|
||
void CloneOptionsWdgt::on_txtCloneMode_currentIndexChanged(int index) | ||
{ | ||
// Note: clone modes are fixed | ||
mCloneMode = static_cast<CloneMode>( index ); | ||
grpSubmodules->setEnabled( mCloneMode == cmCheckout ); | ||
} | ||
|
||
void CloneOptionsWdgt::on_chkInitSubmodules_toggled(bool checked) | ||
{ | ||
chkSubmodulesRecursive->setEnabled( checked ); | ||
if( !checked ) | ||
{ | ||
chkSubmodulesRecursive->setChecked( false ); | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1 @@ | ||
#ifndef UICLONEOPTIONS_HPP | ||
#define UICLONEOPTIONS_HPP | ||
|
||
#include <QWidget> | ||
|
||
#include "ui_CloneOptionsWdgt.h" | ||
|
||
|
||
class CloneOptionsWdgt : public QWidget, Ui::CloneOptionsWdgt | ||
{ | ||
Q_OBJECT | ||
|
||
friend class CloneRepositoryDlg; | ||
|
||
public: | ||
enum CloneMode { | ||
cmCheckout = 0, | ||
cmBare, | ||
cmMirror | ||
}; | ||
|
||
public: | ||
explicit CloneOptionsWdgt(QWidget *parent = 0); | ||
~CloneOptionsWdgt(); | ||
|
||
private slots: | ||
void on_txtCloneMode_currentIndexChanged(int index); | ||
|
||
void on_chkInitSubmodules_toggled(bool checked); | ||
|
||
private: | ||
CloneMode mCloneMode; | ||
}; | ||
|
||
#endif // UICLONEOPTIONS_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.