Guitar
Public Types | Public Slots | Public Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
AddRepositoryDialog Class Reference

#include <AddRepositoryDialog.h>

Inheritance diagram for AddRepositoryDialog:
Inheritance graph
[legend]
Collaboration diagram for AddRepositoryDialog:
Collaboration graph
[legend]

Public Types

enum  Mode { Clone , Initialize , AddExisting }
 

Public Slots

void accept () override
 

Public Member Functions

 AddRepositoryDialog (MainWindow *parent, QString const &local_dir=QString())
 
 ~AddRepositoryDialog () override
 
int execClone (QString const &remote_url)
 
QString remoteName () const
 
QString remoteURL () const
 
QString localPath (bool cook) const
 
QString repositoryName () const
 
QString overridedSshKey () const
 
AddRepositoryDialog::Mode mode () const
 
Git::CloneData makeCloneData () const
 
RepositoryInfo repositoryInfo () const
 

Private Types

enum  SearchRepository { None , GitHub }
 

Private Slots

void on_comboBox_local_working_folder_currentTextChanged (const QString &arg1)
 
void on_comboBox_search_currentIndexChanged (int index)
 
void on_groupBox_remote_clicked ()
 
void on_groupBox_remote_toggled (bool arg1)
 
void on_lineEdit_local_path_textChanged (QString const &arg1)
 
void on_pushButton_browse_local_path_clicked ()
 
void on_pushButton_prev_clicked ()
 
void on_pushButton_test_repo_clicked ()
 
void on_radioButton_add_existing_clicked ()
 
void on_radioButton_clone_clicked ()
 
void on_radioButton_initialize_clicked ()
 
void on_pushButton_manage_local_fonder_clicked ()
 

Private Member Functions

MainWindowmainwindow ()
 
MainWindow const * mainwindow () const
 
QString workingDir () const
 
void validate ()
 
void setRemoteURL (const QString &url)
 
void setRepositoryNameFromLocalPath ()
 
void setRepositoryNameFromRemoteURL ()
 
void browseLocalPath ()
 
void updateUI ()
 
void updateLocalPath ()
 
void updateWorkingDirComboBoxFolders ()
 
void parseAndUpdateRemoteURL ()
 
void resetRemoteRepository ()
 

Private Attributes

Ui::AddRepositoryDialog * ui
 
Mode mode_ = Clone
 
bool mode_selectable_ = true
 
QString repository_name_
 

Member Enumeration Documentation

◆ Mode

Enumerator
Clone 
Initialize 
AddExisting 

◆ SearchRepository

Enumerator
None 
GitHub 

Constructor & Destructor Documentation

◆ AddRepositoryDialog()

AddRepositoryDialog::AddRepositoryDialog ( MainWindow parent,
QString const &  local_dir = QString() 
)
explicit
Here is the call graph for this function:

◆ ~AddRepositoryDialog()

AddRepositoryDialog::~AddRepositoryDialog ( )
override

Member Function Documentation

◆ accept

void AddRepositoryDialog::accept ( )
overrideslot
Here is the call graph for this function:

◆ browseLocalPath()

void AddRepositoryDialog::browseLocalPath ( )
private
Here is the call graph for this function:

◆ execClone()

int AddRepositoryDialog::execClone ( QString const &  remote_url)
Here is the call graph for this function:

◆ localPath()

QString AddRepositoryDialog::localPath ( bool  cook) const

◆ mainwindow() [1/2]

MainWindow * AddRepositoryDialog::mainwindow ( )
private

◆ mainwindow() [2/2]

MainWindow const * AddRepositoryDialog::mainwindow ( ) const
private
Here is the call graph for this function:

◆ makeCloneData()

Git::CloneData AddRepositoryDialog::makeCloneData ( ) const
Here is the call graph for this function:

◆ mode()

AddRepositoryDialog::Mode AddRepositoryDialog::mode ( ) const

◆ on_comboBox_local_working_folder_currentTextChanged

void AddRepositoryDialog::on_comboBox_local_working_folder_currentTextChanged ( const QString &  arg1)
privateslot
Here is the call graph for this function:

◆ on_comboBox_search_currentIndexChanged

void AddRepositoryDialog::on_comboBox_search_currentIndexChanged ( int  index)
privateslot
Here is the call graph for this function:

◆ on_groupBox_remote_clicked

void AddRepositoryDialog::on_groupBox_remote_clicked ( )
privateslot

◆ on_groupBox_remote_toggled

void AddRepositoryDialog::on_groupBox_remote_toggled ( bool  arg1)
privateslot
Here is the call graph for this function:

◆ on_lineEdit_local_path_textChanged

void AddRepositoryDialog::on_lineEdit_local_path_textChanged ( QString const &  arg1)
privateslot
Here is the call graph for this function:

◆ on_pushButton_browse_local_path_clicked

void AddRepositoryDialog::on_pushButton_browse_local_path_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_pushButton_manage_local_fonder_clicked

void AddRepositoryDialog::on_pushButton_manage_local_fonder_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_pushButton_prev_clicked

void AddRepositoryDialog::on_pushButton_prev_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_pushButton_test_repo_clicked

void AddRepositoryDialog::on_pushButton_test_repo_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_radioButton_add_existing_clicked

void AddRepositoryDialog::on_radioButton_add_existing_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_radioButton_clone_clicked

void AddRepositoryDialog::on_radioButton_clone_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_radioButton_initialize_clicked

void AddRepositoryDialog::on_radioButton_initialize_clicked ( )
privateslot
Here is the call graph for this function:

◆ overridedSshKey()

QString AddRepositoryDialog::overridedSshKey ( ) const

◆ parseAndUpdateRemoteURL()

void AddRepositoryDialog::parseAndUpdateRemoteURL ( )
private

◆ remoteName()

QString AddRepositoryDialog::remoteName ( ) const

◆ remoteURL()

QString AddRepositoryDialog::remoteURL ( ) const

◆ repositoryInfo()

RepositoryInfo AddRepositoryDialog::repositoryInfo ( ) const
Here is the call graph for this function:

◆ repositoryName()

QString AddRepositoryDialog::repositoryName ( ) const

◆ resetRemoteRepository()

void AddRepositoryDialog::resetRemoteRepository ( )
private

◆ setRemoteURL()

void AddRepositoryDialog::setRemoteURL ( const QString &  url)
private

◆ setRepositoryNameFromLocalPath()

void AddRepositoryDialog::setRepositoryNameFromLocalPath ( )
private

◆ setRepositoryNameFromRemoteURL()

void AddRepositoryDialog::setRepositoryNameFromRemoteURL ( )
private
Here is the call graph for this function:

◆ updateLocalPath()

void AddRepositoryDialog::updateLocalPath ( )
private
Here is the call graph for this function:

◆ updateUI()

void AddRepositoryDialog::updateUI ( )
private
Here is the call graph for this function:

◆ updateWorkingDirComboBoxFolders()

void AddRepositoryDialog::updateWorkingDirComboBoxFolders ( )
private

◆ validate()

void AddRepositoryDialog::validate ( )
private
Here is the call graph for this function:

◆ workingDir()

QString AddRepositoryDialog::workingDir ( ) const
private

Member Data Documentation

◆ mode_

Mode AddRepositoryDialog::mode_ = Clone
private

◆ mode_selectable_

bool AddRepositoryDialog::mode_selectable_ = true
private

◆ repository_name_

QString AddRepositoryDialog::repository_name_
private

◆ ui

Ui::AddRepositoryDialog* AddRepositoryDialog::ui
private

The documentation for this class was generated from the following files: