Guitar
Classes | Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Slots | Protected Member Functions | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
MainWindow Class Reference

#include <MainWindow.h>

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

Classes

struct  Element
 
class  GitFile
 
struct  ObjectData
 
struct  Private
 
struct  Task
 

Public Types

enum  {
  IndexRole = Qt::UserRole, FilePathRole, DiffIndexRole, ObjectIdRole,
  HeaderRole, SubmodulePathRole, SubmoduleCommitIdRole
}
 
enum  CloneOperation { Clone, SubmoduleAdd }
 
enum  PtyCondition {
  None, PtyCondition::Clone, PtyCondition::Fetch, PtyCondition::Pull,
  PtyCondition::Push
}
 
enum  InteractionMode { None, None, Busy }
 
enum  NamedCommitFlag { Branches = 0x0001, Tags = 0x0002, Remotes = 0x0100 }
 
enum  FilesListType { FilesListType::SingleList, FilesListType::SideBySide }
 
enum  { GroupItem = -1 }
 

Public Slots

void writeLog_ (QByteArray ba, bool receive)
 

Signals

void signalWriteLog (QByteArray ba, bool receive)
 
void remoteInfoChanged ()
 
void updateButton ()
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 
 ~MainWindow () override
 
RepositoryWrapperFrameframe ()
 
const RepositoryWrapperFrameframe () const
 
const QPixmap & digitsPixmap () const
 
QColor color (unsigned int i)
 MainWindow::color. More...
 
bool isOnlineMode () const
 
void drawDigit (QPainter *pr, int x, int y, int n) const
 MainWindow::drawDigit. More...
 
void setStatusBarText (QString const &text)
 
void clearStatusBarText ()
 
void setCurrentLogRow (RepositoryWrapperFrame *frame, int row)
 
bool shown ()
 
void deleteTags (RepositoryWrapperFrame *frame, QStringList const &tagnames)
 
bool addTag (RepositoryWrapperFrame *frame, QString const &name)
 
void updateCurrentFilesList (RepositoryWrapperFrame *frame)
 
void postOpenRepositoryFromGitHub (const QString &username, const QString &reponame)
 
int selectedLogIndex (RepositoryWrapperFrame *frame) const
 
void updateAncestorCommitMap (RepositoryWrapperFrame *frame)
 
bool isAncestorCommit (const QString &id)
 
void postStartEvent (int ms_later)
 開始イベントをポストする More...
 
void setShowLabels (bool show, bool save)
 
void setShowGraph (bool show, bool save)
 
bool isLabelsVisible () const
 
bool isGraphVisible () const
 
void updateFilesList2 (RepositoryWrapperFrame *frame, const Git::CommitID &id, QList< Git::Diff > *diff_list, QListWidget *listwidget)
 ファイルリストを更新 More...
 
void execCommitViewWindow (const Git::CommitItem *commit)
 
void execCommitPropertyDialog (QWidget *parent, const Git::CommitItem *commit)
 
void execCommitExploreWindow (RepositoryWrapperFrame *frame, QWidget *parent, const Git::CommitItem *commit)
 
void execFileHistory (const QString &path)
 
void execFileHistory (QListWidgetItem *item)
 
void showObjectProperty (QListWidgetItem *item)
 オブジェクトプロパティ More...
 
bool testRemoteRepositoryValidity (const QString &url, const QString &sshkey)
 
QString selectGitCommand (bool save)
 
QString selectGpgCommand (bool save)
 
QString selectSshCommand (bool save)
 
const Git::BranchcurrentBranch () const
 
void setCurrentBranch (const Git::Branch &b)
 
const RepositoryDatacurrentRepository () const
 
QString currentRepositoryName () const
 
QString currentRemoteName () const
 
QString currentBranchName () const
 
GitPtr git (const QString &dir, const QString &submodpath, const QString &sshkey) const
 
GitPtr git ()
 
GitPtr git (Git::SubmoduleItem const &submod)
 
void autoOpenRepository (QString dir, const QString &commit_id={})
 
std::optional< Git::CommitItemqueryCommit (const QString &id)
 
void checkout (RepositoryWrapperFrame *frame, QWidget *parent, const Git::CommitItem *commit, std::function< void()> accepted_callback={})
 
void checkout (RepositoryWrapperFrame *frame)
 
void jumpToCommit (RepositoryWrapperFrame *frame, QString id)
 
Git::Object internalCatFile (RepositoryWrapperFrame *frame, const QString &id)
 
Git::Object catFile (const QString &id)
 
bool addExistingLocalRepository (const QString &dir, bool open)
 
bool saveAs (RepositoryWrapperFrame *frame, const QString &id, const QString &dstpath)
 
QString determinFileType (QByteArray in)
 
QList< Git::TagqueryTagList (RepositoryWrapperFrame *frame)
 
TextEditorThemePtr themeForTextEditor ()
 
bool isValidWorkingCopy (GitPtr g) const
 
void emitWriteLog (const QByteArray &ba, bool receive)
 
QString findFileID (RepositoryWrapperFrame *frame, const QString &commit_id, const QString &file)
 
const Git::CommitItemcommitItem (const RepositoryWrapperFrame *frame, int row) const
 
const Git::CommitItemcommitItem (const RepositoryWrapperFrame *frame, Git::CommitID const &id) const
 
QImage committerIcon (RepositoryWrapperFrame *frame, int row, QSize size) const
 
void changeSshKey (const QString &local_dir, const QString &ssh_key, bool save)
 
const QList< BranchLabel > * label (const RepositoryWrapperFrame *frame, int row) const
 
ApplicationSettingsappsettings ()
 
const ApplicationSettingsappsettings () const
 
QString defaultWorkingDir () const
 MainWindow::defaultWorkingDir. More...
 
QIcon signatureVerificationIcon (const Git::CommitID &id) const
 MainWindow::signatureVerificationIcon. More...
 
QAction * addMenuActionProperty (QMenu *menu)
 MainWindow::addMenuActionProperty. More...
 
QString currentWorkingCopyDir () const
 MainWindow::currentWorkingCopyDir. More...
 
const Git::SubmoduleItemquerySubmoduleByPath (const QString &path, Git::CommitItem *commit)
 サブモジュール情報を取得する More...
 
void refresh ()
 
bool cloneRepository (const Git::CloneData &clonedata, const RepositoryData &repodata)
 MainWindow::cloneRepository. More...
 
Git::User currentGitUser () const
 
void setupExternalPrograms ()
 
void updateCommitLogTable (RepositoryWrapperFrame *frame, int delay_ms)
 MainWindow::updateCommitLogTable. More...
 
void updateCommitLogTable (int delay_ms)
 

Static Public Member Functions

static QString abbrevCommitID (const Git::CommitItem &commit)
 

Static Public Attributes

static constexpr int DIGIT_WIDTH = 5
 
static constexpr int DIGIT_HEIGHT = 7
 

Protected Slots

void onLogIdle ()
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 
void customEvent (QEvent *) override
 
void dragEnterEvent (QDragEnterEvent *event) override
 
void keyPressEvent (QKeyEvent *event) override
 
bool event (QEvent *event) override
 
bool eventFilter (QObject *watched, QEvent *event) override
 
void internalWriteLog (const char *ptr, int len, bool record)
 
const RepositoryDataselectedRepositoryItem () const
 
void removeSelectedRepositoryFromBookmark (bool ask)
 リポジトリをブックマークから消去 More...
 

Private Slots

void updateUI ()
 
void onLogVisibilityChanged ()
 
void onPtyProcessCompleted (bool ok, const QVariant &userdata)
 
void onRepositoriesTreeDropped ()
 
void onAvatarUpdated (RepositoryWrapperFrameP frame)
 アイコンの読み込みが完了した More...
 
void onInterval10ms ()
 10ms間隔のインターバルタイマ More...
 
void onAvatarReady ()
 
void onCommitDetailGetterReady ()
 
void on_action_about_triggered ()
 
void on_action_add_repository_triggered ()
 
void on_action_clean_df_triggered ()
 
void on_action_commit_triggered ()
 
void on_action_create_desktop_launcher_file_triggered ()
 
void on_action_delete_branch_triggered ()
 
void on_action_delete_remote_branch_triggered ()
 
void on_action_edit_git_config_triggered ()
 
void on_action_edit_gitignore_triggered ()
 
void on_action_edit_global_gitconfig_triggered ()
 
void on_action_edit_settings_triggered ()
 
void on_action_edit_tags_triggered ()
 
void on_action_exit_triggered ()
 
void on_action_expand_commit_log_triggered ()
 
void on_action_expand_diff_view_triggered ()
 
void on_action_expand_file_list_triggered ()
 
void on_action_explorer_triggered ()
 
void on_action_fetch_prune_triggered ()
 
void on_action_fetch_triggered ()
 
void on_action_find_next_triggered ()
 
void on_action_find_triggered ()
 
void on_action_offline_triggered ()
 
void on_action_online_triggered ()
 
void on_action_pull_triggered ()
 
void on_action_push_all_tags_triggered ()
 
void on_action_push_triggered ()
 
void on_action_reflog_triggered ()
 
void on_action_repo_checkout_triggered ()
 
void on_action_repo_jump_to_head_triggered ()
 
void on_action_repo_jump_triggered ()
 
void on_action_repo_merge_triggered ()
 
void on_action_repositories_panel_triggered ()
 
void on_action_repository_property_triggered ()
 
void on_action_repository_status_triggered ()
 
void on_action_reset_HEAD_1_triggered ()
 
void on_action_reset_hard_triggered ()
 
void on_action_configure_user_triggered ()
 
void on_action_set_gpg_signing_triggered ()
 
void on_action_show_labels_triggered ()
 
void on_action_show_graph_triggered ()
 
void on_action_sidebar_triggered ()
 
void on_action_stash_apply_triggered ()
 
void on_action_stash_drop_triggered ()
 
void on_action_stash_triggered ()
 
void on_action_stop_process_triggered ()
 
void on_action_submodule_add_triggered ()
 
void on_action_submodule_update_triggered ()
 
void on_action_submodules_triggered ()
 
void on_action_terminal_triggered ()
 
void on_action_view_refresh_triggered ()
 
void on_action_window_log_triggered (bool checked)
 
void on_lineEdit_filter_textChanged (QString const &text)
 
void on_listWidget_files_currentRowChanged (int currentRow)
 
void on_listWidget_files_customContextMenuRequested (const QPoint &pos)
 
void on_listWidget_files_itemDoubleClicked (QListWidgetItem *item)
 
void on_listWidget_staged_currentRowChanged (int currentRow)
 
void on_listWidget_staged_customContextMenuRequested (const QPoint &pos)
 
void on_listWidget_staged_itemDoubleClicked (QListWidgetItem *item)
 
void on_listWidget_unstaged_currentRowChanged (int currentRow)
 
void on_listWidget_unstaged_customContextMenuRequested (const QPoint &pos)
 
void on_listWidget_unstaged_itemDoubleClicked (QListWidgetItem *item)
 
void on_radioButton_remote_offline_clicked ()
 
void on_radioButton_remote_online_clicked ()
 
void on_tableWidget_log_currentItemChanged (QTableWidgetItem *current, QTableWidgetItem *previous)
 
void on_tableWidget_log_customContextMenuRequested (const QPoint &pos)
 
void on_tableWidget_log_itemDoubleClicked (QTableWidgetItem *)
 
void on_toolButton_commit_clicked ()
 
void on_toolButton_erase_filter_clicked ()
 
void on_toolButton_explorer_clicked ()
 
void on_toolButton_fetch_clicked ()
 
void on_toolButton_pull_clicked ()
 
void on_toolButton_push_clicked ()
 
void on_toolButton_select_all_clicked ()
 
void on_toolButton_stage_clicked ()
 
void on_toolButton_status_clicked ()
 
void on_toolButton_stop_process_clicked ()
 
void on_toolButton_terminal_clicked ()
 
void on_toolButton_unstage_clicked ()
 
void on_treeWidget_repos_currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous)
 
void on_treeWidget_repos_customContextMenuRequested (const QPoint &pos)
 
void on_treeWidget_repos_itemDoubleClicked (QTreeWidgetItem *item, int column)
 
void on_toolButton_addrepo_clicked ()
 
void test ()
 

Private Member Functions

void postEvent (QObject *receiver, QEvent *event, int ms_later)
 イベントをポストする More...
 
void postUserFunctionEvent (const std::function< void(const QVariant &, void *)> &fn, QVariant const &v=QVariant(), void *p=nullptr, int ms_later=0)
 ユーザー関数イベントをポストする More...
 
void updateFilesList (RepositoryWrapperFrame *frame, QString const &id, bool wait)
 ファイルリストを更新 More...
 
void updateFilesList (RepositoryWrapperFrame *frame, Git::CommitItem const &commit, bool wait)
 
void updateRepositoriesList ()
 リポジトリリストを更新 More...
 
void internalOpenRepository (GitPtr g, bool keep_selection=false)
 
void openRepositoryWithFrame (RepositoryWrapperFrame *frame, GitPtr g, bool keep_selection=false)
 
QStringList selectedFiles_ (QListWidget *listwidget) const
 
QStringList selectedFiles () const
 
void for_each_selected_files (std::function< void(QString const &)> const &fn)
 
void showFileList (FilesListType files_list_type)
 ファイルリストの表示切り替え More...
 
void clearLog (RepositoryWrapperFrame *frame)
 
void clearFileList (RepositoryWrapperFrame *frame)
 ファイルリストを消去 More...
 
void clearDiffView (RepositoryWrapperFrame *frame)
 差分ビューを消去 More...
 
void clearDiffView ()
 差分ビューを消去 More...
 
void clearRepositoryInfo ()
 リポジトリ情報を消去 More...
 
int repositoryIndex_ (const QTreeWidgetItem *item) const
 
const RepositoryDatarepositoryItem (const QTreeWidgetItem *item) const
 
QTreeWidgetItem * newQTreeWidgetFolderItem (QString const &name)
 
void buildRepoTree (QString const &group, QTreeWidgetItem *item, QList< RepositoryData > *repos)
 
void refrectRepositories ()
 
void updateDiffView (RepositoryWrapperFrame *frame, QListWidgetItem *item)
 ファイル差分表示を更新する More...
 
void updateDiffView (RepositoryWrapperFrame *frame)
 
void updateUnstagedFileCurrentItem (RepositoryWrapperFrame *frame)
 
void updateStagedFileCurrentItem (RepositoryWrapperFrame *frame)
 
void updateStatusBarText (RepositoryWrapperFrame *frame)
 
void setRepositoryInfo (QString const &reponame, QString const &brname)
 
int indexOfRepository (const QTreeWidgetItem *treeitem) const
 
void clearRepoFilter ()
 
void appendCharToRepoFilter (ushort c)
 
void backspaceRepoFilter ()
 
void revertCommit (RepositoryWrapperFrame *frame)
 
void mergeBranch (const QString &commit, Git::MergeFastForward ff, bool squash)
 
void mergeBranch (Git::CommitItem const *commit, Git::MergeFastForward ff, bool squash)
 
void rebaseBranch (Git::CommitItem const *commit)
 
void cherrypick (Git::CommitItem const *commit)
 
void merge (RepositoryWrapperFrame *frame, const Git::CommitItem *commit=nullptr)
 
void detectGitServerType (GitPtr g)
 
void setRemoteOnline (bool f, bool save)
 
void startTimers ()
 インターバルタイマを開始する More...
 
void onCloneCompleted (bool success, const QVariant &userdata)
 
void setNetworkingCommandsEnabled (bool enabled)
 ネットワークを使用するコマンドの可否をUIに反映する More...
 
void blame (QListWidgetItem *item)
 
void blame ()
 
QListWidgetItem * currentFileItem () const
 
void execAreYouSureYouWantToContinueConnectingDialog ()
 
void deleteRemoteBranch (RepositoryWrapperFrame *frame, Git::CommitItem const *commit)
 
QStringList remoteBranches (RepositoryWrapperFrame *frame, QString const &id, QStringList *all)
 
bool isUninitialized ()
 
void doLogCurrentItemChanged (RepositoryWrapperFrame *frame)
 コミットログの選択が変化した More...
 
void findNext (RepositoryWrapperFrame *frame)
 
void findText (const QString &text)
 
bool locateCommitID (RepositoryWrapperFrame *frame, QString const &commit_id)
 
void showStatus ()
 
void onStartEvent ()
 
void showLogWindow (bool show)
 
bool isValidRemoteURL (const QString &url, const QString &sshkey)
 
QStringList whichCommand_ (const QString &cmdfile1, const QString &cmdfile2={})
 
QString selectCommand_ (const QString &cmdname, const QStringList &cmdfiles, const QStringList &list, QString path, const std::function< void(const QString &)> &callback)
 
QString selectCommand_ (const QString &cmdname, const QString &cmdfile, const QStringList &list, const QString &path, const std::function< void(const QString &)> &callback)
 
const RepositoryDatafindRegisteredRepository (QString *workdir) const
 MainWindow::findRegisteredRepository. More...
 
bool execSetGlobalUserDialog ()
 MainWindow::execSetGlobalUserDialog. More...
 
void revertAllFiles ()
 MainWindow::revertAllFiles. More...
 
bool addExistingLocalRepository (QString dir, QString name, QString sshkey, bool open)
 MainWindow::addExistingLocalRepository. More...
 
bool execWelcomeWizardDialog ()
 MainWindow::execWelcomeWizardDialog. More...
 
void execRepositoryPropertyDialog (const RepositoryData &repo, bool open_repository_menu=false)
 MainWindow::execRepositoryPropertyDialog. More...
 
void execConfigUserDialog (const Git::User &global_user, const Git::User &local_user, bool enable_local_user, const QString &reponame)
 MainWindow::execConfigUserDialog. More...
 
void setGitCommand (const QString &path, bool save)
 MainWindow::setGitCommand. More...
 
void setGpgCommand (const QString &path, bool save)
 MainWindow::setGpgCommand. More...
 
void setSshCommand (const QString &path, bool save)
 MainWindow::setSshCommand. More...
 
bool checkGitCommand ()
 MainWindow::checkGitCommand. More...
 
bool saveBlobAs (RepositoryWrapperFrame *frame, const QString &id, const QString &dstpath)
 MainWindow::saveBlobAs. More...
 
bool saveByteArrayAs (const QByteArray &ba, const QString &dstpath)
 MainWindow::saveByteArrayAs. More...
 
bool saveFileAs (const QString &srcpath, const QString &dstpath)
 MainWindow::saveFileAs. More...
 
QString executableOrEmpty (const QString &path)
 MainWindow::checkExecutable. More...
 
bool checkExecutable (const QString &path)
 MainWindow::checkExecutable. More...
 
void internalSaveCommandPath (const QString &path, bool save, const QString &name)
 MainWindow::internalSaveCommandPath. More...
 
void logGitVersion ()
 MainWindow::logGitVersion. More...
 
void internalClearRepositoryInfo ()
 MainWindow::internalClearRepositoryInfo. More...
 
void checkUser ()
 MainWindow::checkUser. More...
 
void openRepository (bool validate, bool waitcursor=true, bool keep_selection=false)
 MainWindow::openRepository. More...
 
void updateRepository ()
 MainWindow::updateRepository. More...
 
void reopenRepository (bool log, const std::function< void(GitPtr)> &callback)
 MainWindow::reopenRepository. More...
 
void setCurrentRepository (const RepositoryData &repo, bool clear_authentication)
 MainWindow::setCurrentRepository. More...
 
void openSelectedRepository ()
 MainWindow::openSelectedRepository. More...
 
std::optional< QList< Git::Diff > > makeDiffs (RepositoryWrapperFrame *frame, QString id)
 MainWindow::makeDiffs. More...
 
void queryBranches (RepositoryWrapperFrame *frame, GitPtr g)
 MainWindow::queryBranches. More...
 
void updateRemoteInfo ()
 MainWindow::updateRemoteInfo. More...
 
void queryRemotes (GitPtr g)
 MainWindow::queryRemotes. More...
 
void clone (QString url={}, QString dir={})
 MainWindow::clone. More...
 
void submodule_add (QString url={}, const QString &local_dir={})
 MainWindow::submodule_add. More...
 
const Git::CommitItemselectedCommitItem (RepositoryWrapperFrame *frame) const
 MainWindow::selectedCommitItem. More...
 
void commit (RepositoryWrapperFrame *frame, bool amend=false)
 MainWindow::commit. More...
 
void commitAmend (RepositoryWrapperFrame *frame)
 MainWindow::commitAmend. More...
 
void pushSetUpstream (bool set_upstream, const QString &remote, const QString &branch, bool force)
 MainWindow::pushSetUpstream. More...
 
bool pushSetUpstream ()
 MainWindow::pushSetUpstream. More...
 
void deleteBranch (RepositoryWrapperFrame *frame, const Git::CommitItem *commit)
 MainWindow::deleteBranch. More...
 
void deleteBranch (RepositoryWrapperFrame *frame)
 MainWindow::deleteBranch. More...
 
void resetFile (const QStringList &paths)
 MainWindow::resetFile. More...
 
void clearAuthentication ()
 MainWindow::clearAuthentication. More...
 
void clearSshAuthentication ()
 MainWindow::clearSshAuthentication. More...
 
void internalDeleteTags (const QStringList &tagnames)
 MainWindow::internalDeleteTags. More...
 
bool internalAddTag (RepositoryWrapperFrame *frame, const QString &name)
 MainWindow::internalAddTag. More...
 
void createRepository (const QString &dir)
 MainWindow::createRepository. More...
 
void addRepository (const QString &dir)
 MainWindow::addRepository. More...
 
void setLogEnabled (GitPtr g, bool f)
 
void doGitCommand (const std::function< void(GitPtr)> &callback)
 MainWindow::doGitCommand. More...
 
void setWindowTitle_ (const Git::User &user)
 
void setUnknownRepositoryInfo ()
 
void setCurrentRemoteName (const QString &name)
 
void deleteTags (RepositoryWrapperFrame *frame, const Git::CommitItem &commit)
 
bool isAvatarEnabled () const
 
QStringList remotes () const
 
QList< Git::BranchfindBranch (RepositoryWrapperFrame *frame, const Git::CommitID &id)
 MainWindow::findBranch. More...
 
QString tempfileHeader () const
 
void deleteTempFiles ()
 MainWindow::deleteTempFiles. More...
 
Git::CommitID idFromTag (RepositoryWrapperFrame *frame, const QString &tag)
 MainWindow::idFromTag. More...
 
QString newTempFilePath ()
 
int limitLogCount () const
 
Git::Object internalCatFile (RepositoryWrapperFrame *frame, GitPtr g, const QString &id)
 
bool isThereUncommitedChanges () const
 
Git::CommitItemList retrieveCommitLog (GitPtr g)
 コミットログを取得 More...
 
std::map< Git::CommitID, QList< Git::Branch > > & commitToBranchMapRef (RepositoryWrapperFrame *frame)
 
void updateWindowTitle (GitPtr g)
 
QString makeCommitInfoText (RepositoryWrapperFrame *frame, int row, QList< BranchLabel > *label_list)
 コミット情報のテキストを作成 More...
 
void removeRepositoryFromBookmark (int index, bool ask)
 リポジトリをブックマークから消去 More...
 
void openTerminal (const RepositoryData *repo)
 コマンドプロンプトを開く More...
 
void openExplorer (const RepositoryData *repo)
 ファイルマネージャを開く More...
 
bool askAreYouSureYouWantToRun (const QString &title, const QString &command)
 コマンドを実行していいか、ユーザーに尋ねる More...
 
bool editFile (const QString &path, const QString &title)
 テキストファイルを編集する More...
 
void setAppSettings (const ApplicationSettings &appsettings)
 
QIcon getRepositoryIcon () const
 
QIcon getFolderIcon () const
 
QIcon getSignatureGoodIcon () const
 
QIcon getSignatureDubiousIcon () const
 
QIcon getSignatureBadIcon () const
 
QPixmap getTransparentPixmap () const
 
QStringList findGitObject (const QString &id) const
 
void writeLog (const char *ptr, int len, bool record)
 
void writeLog (const QString &str, bool record)
 
QList< BranchLabelsortedLabels (RepositoryWrapperFrame *frame, int row) const
 
void saveApplicationSettings ()
 
void loadApplicationSettings ()
 
void setDiffResult (const QList< Git::Diff > &diffs)
 
const QList< Git::SubmoduleItem > & submodules () const
 
void setSubmodules (const QList< Git::SubmoduleItem > &submodules)
 
bool runOnRepositoryDir (const std::function< void(QString, QString)> &callback, const RepositoryData *repo)
 
NamedCommitList namedCommitItems (RepositoryWrapperFrame *frame, int flags)
 
void saveRepositoryBookmark (RepositoryData item)
 
void changeRepositoryBookmarkName (RepositoryData item, QString new_name)
 
int rowFromCommitId (RepositoryWrapperFrame *frame, const Git::CommitID &id)
 
QList< Git::TagfindTag (RepositoryWrapperFrame *frame, const QString &id)
 
void sshSetPassphrase (const std::string &user, const std::string &pass)
 
std::string sshPassphraseUser () const
 
std::string sshPassphrasePass () const
 
void httpSetAuthentication (const std::string &user, const std::string &pass)
 
std::string httpAuthenticationUser () const
 
std::string httpAuthenticationPass () const
 
const Git::CommitItemgetLog (RepositoryWrapperFrame const *frame, int index) const
 
void updateCommitGraph (RepositoryWrapperFrame *frame)
 MainWindow::updateCommitGraph. More...
 
void initNetworking ()
 
bool saveRepositoryBookmarks () const
 
QString getBookmarksFilePath () const
 
void stopPtyProcess ()
 
void abortPtyProcess ()
 
Git::CommitItemListgetCommitLogPtr (RepositoryWrapperFrame *frame)
 
const Git::CommitItemListgetCommitLog (RepositoryWrapperFrame const *frame) const
 
void setCommitLog (RepositoryWrapperFrame *frame, const Git::CommitItemList &logs)
 
void clearCommitLog (RepositoryWrapperFrame *frame)
 
PtyProcessgetPtyProcess ()
 
bool getPtyProcessOk () const
 
PtyCondition getPtyCondition ()
 
void setPtyUserData (const QVariant &userdata)
 
void setPtyProcessOk (bool pty_process_ok)
 
bool fetch (GitPtr g, bool prune)
 
bool fetch_tags_f (GitPtr g)
 
void setPtyCondition (const PtyCondition &ptyCondition)
 
const QList< RepositoryData > & cRepositories () const
 
QList< RepositoryData > * pRepositories ()
 
void setRepos (QList< RepositoryData > const &list)
 
bool interactionCanceled () const
 
void setInteractionCanceled (bool canceled)
 
InteractionMode interactionMode () const
 
void setInteractionMode (const InteractionMode &im)
 
QString getRepositoryFilterText () const
 
void setRepositoryFilterText (const QString &text)
 
void setUncommitedChanges (bool uncommited_changes)
 
QList< Git::Diff > * diffResult ()
 
std::map< QString, Git::Diff > * getDiffCacheMap (RepositoryWrapperFrame *frame)
 
GitHubRepositoryInfoptrGitHub ()
 
std::map< int, QList< BranchLabel > > * getLabelMap (RepositoryWrapperFrame *frame)
 
const std::map< int, QList< BranchLabel > > * getLabelMap (const RepositoryWrapperFrame *frame) const
 
void clearLabelMap (RepositoryWrapperFrame *frame)
 
GitObjectCachegetObjCache (RepositoryWrapperFrame *frame)
 
bool getForceFetch () const
 
void setForceFetch (bool force_fetch)
 
std::map< Git::CommitID, QList< Git::Tag > > * ptrCommitToTagMap (RepositoryWrapperFrame *frame)
 
Git::CommitID getHeadId () const
 
void setHeadId (const Git::CommitID &head_id)
 
void setPtyProcessCompletionData (const QVariant &value)
 
const QVariant & getTempRepoForCloneCompleteV () const
 
void msgNoRepositorySelected ()
 
bool isRepositoryOpened () const
 
QString gitCommand () const
 
QPixmap getTransparentPixmap ()
 
void cancelPendingUserEvents ()
 未送信のイベントをすべて削除する More...
 
void initRepository (const QString &path, const QString &reponame, const Git::Remote &remote)
 MainWindow::initRepository. More...
 
void updatePocessLog (bool processevents)
 PTYプロセスの出力をログに書き込む More...
 
void appendLogHistory (const char *ptr, int len)
 
std::vector< std::string > getLogHistoryLines ()
 
void clearLogHistory ()
 
void updateAvatar (const Git::User &user, bool request)
 
void cleanSubModule (QListWidgetItem *item)
 
void updateUncommitedChanges ()
 

Static Private Member Functions

static bool git_log_callback (void *cookie, const char *ptr, int len)
 MainWindow::git_log_callback. More...
 
static QString makeRepositoryName (const QString &loc)
 MainWindow::makeRepositoryName. More...
 
static void addDiffItems (const QList< Git::Diff > *diff_list, const std::function< void(const ObjectData &)> &add_item)
 差分リスト情報をもとにリストウィジェットへアイテムを追加する More...
 
static QString getObjectID (QListWidgetItem *item)
 
static QString getFilePath (QListWidgetItem *item)
 
static QString getSubmodulePath (QListWidgetItem *item)
 
static QString getSubmoduleCommitId (QListWidgetItem *item)
 
static bool isGroupItem (QTreeWidgetItem *item)
 
static int indexOfLog (QListWidgetItem *item)
 
static int indexOfDiff (QListWidgetItem *item)
 
static void updateSubmodules (GitPtr g, const QString &id, QList< Git::SubmoduleItem > *out)
 指定のコミットにおけるサブモジュールリストを取得 More...
 
static std::pair< QString, QString > makeFileItemText (const ObjectData &data)
 
static QListWidgetItem * newListWidgetFileItem (const MainWindow::ObjectData &data)
 リストウィジェット用ファイルアイテムを作成する More...
 

Private Attributes

Ui::MainWindow * ui
 
Privatem
 

Friends

class RepositoryWrapperFrame
 
class SubmoduleMainWindow
 
class ImageViewWidget
 
class FileDiffSliderWidget
 
class FileHistoryWindow
 
class FileDiffWidget
 
class AboutDialog
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
IndexRole 
FilePathRole 
DiffIndexRole 
ObjectIdRole 
HeaderRole 
SubmodulePathRole 
SubmoduleCommitIdRole 

◆ anonymous enum

anonymous enum
Enumerator
GroupItem 

◆ CloneOperation

Enumerator
Clone 
SubmoduleAdd 

◆ FilesListType

Enumerator
SingleList 
SideBySide 

◆ InteractionMode

Enumerator
None 
None 
Busy 

◆ NamedCommitFlag

Enumerator
Branches 
Tags 
Remotes 

◆ PtyCondition

Enumerator
None 
Clone 
Fetch 
Pull 
Push 

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

◆ ~MainWindow()

MainWindow::~MainWindow ( )
override
Here is the call graph for this function:

Member Function Documentation

◆ abbrevCommitID()

QString MainWindow::abbrevCommitID ( const Git::CommitItem commit)
static
Here is the call graph for this function:

◆ abortPtyProcess()

void MainWindow::abortPtyProcess ( )
private
Here is the call graph for this function:

◆ addDiffItems()

void MainWindow::addDiffItems ( const QList< Git::Diff > *  diff_list,
const std::function< void(const ObjectData &)> &  add_item 
)
staticprivate

差分リスト情報をもとにリストウィジェットへアイテムを追加する

Parameters
diff_list
fn_add_item

◆ addExistingLocalRepository() [1/2]

bool MainWindow::addExistingLocalRepository ( const QString &  dir,
bool  open 
)
Here is the call graph for this function:

◆ addExistingLocalRepository() [2/2]

bool MainWindow::addExistingLocalRepository ( QString  dir,
QString  name,
QString  sshkey,
bool  open 
)
private

MainWindow::addExistingLocalRepository.

Parameters
dirディレクトリ
name名前
sshkeySSHキー
open開く

既存のリポジトリを追加する

Here is the call graph for this function:

◆ addMenuActionProperty()

QAction * MainWindow::addMenuActionProperty ( QMenu *  menu)

MainWindow::addMenuActionProperty.

Parameters
menuメニュー

プロパティメニューを追加する

◆ addRepository()

void MainWindow::addRepository ( const QString &  dir)
private

MainWindow::addRepository.

Parameters
dirディレクトリ

リポジトリを追加する(クローンしたり初期化することもできる)

Here is the call graph for this function:

◆ addTag()

bool MainWindow::addTag ( RepositoryWrapperFrame frame,
QString const &  name 
)
Here is the call graph for this function:

◆ appendCharToRepoFilter()

void MainWindow::appendCharToRepoFilter ( ushort  c)
private
Here is the call graph for this function:

◆ appendLogHistory()

void MainWindow::appendLogHistory ( const char *  ptr,
int  len 
)
private

◆ appsettings() [1/2]

const ApplicationSettings * MainWindow::appsettings ( )

◆ appsettings() [2/2]

const ApplicationSettings* MainWindow::appsettings ( ) const

◆ askAreYouSureYouWantToRun()

bool MainWindow::askAreYouSureYouWantToRun ( const QString &  title,
const QString &  command 
)
private

コマンドを実行していいか、ユーザーに尋ねる

Parameters
titleウィンドウタイトル
commandコマンド名
Returns

◆ autoOpenRepository()

void MainWindow::autoOpenRepository ( QString  dir,
const QString &  commit_id = {} 
)
Here is the call graph for this function:

◆ backspaceRepoFilter()

void MainWindow::backspaceRepoFilter ( )
private
Here is the call graph for this function:

◆ blame() [1/2]

void MainWindow::blame ( )
private
Here is the call graph for this function:

◆ blame() [2/2]

void MainWindow::blame ( QListWidgetItem *  item)
private
Here is the call graph for this function:

◆ buildRepoTree()

void MainWindow::buildRepoTree ( QString const &  group,
QTreeWidgetItem *  item,
QList< RepositoryData > *  repos 
)
private
Here is the call graph for this function:

◆ cancelPendingUserEvents()

void MainWindow::cancelPendingUserEvents ( )
private

未送信のイベントをすべて削除する

◆ catFile()

Git::Object MainWindow::catFile ( const QString &  id)
Here is the call graph for this function:

◆ changeRepositoryBookmarkName()

void MainWindow::changeRepositoryBookmarkName ( RepositoryData  item,
QString  new_name 
)
private
Here is the call graph for this function:

◆ changeSshKey()

void MainWindow::changeSshKey ( const QString &  local_dir,
const QString &  ssh_key,
bool  save 
)
Here is the call graph for this function:

◆ checkExecutable()

bool MainWindow::checkExecutable ( const QString &  path)
private

MainWindow::checkExecutable.

Parameters
pathパス
Returns

実行可能かチェックする

Here is the call graph for this function:

◆ checkGitCommand()

bool MainWindow::checkGitCommand ( )
private

MainWindow::checkGitCommand.

gitコマンドの有効性をチェックする

Here is the call graph for this function:

◆ checkout() [1/2]

void MainWindow::checkout ( RepositoryWrapperFrame frame)
Here is the call graph for this function:

◆ checkout() [2/2]

void MainWindow::checkout ( RepositoryWrapperFrame frame,
QWidget *  parent,
const Git::CommitItem commit,
std::function< void()>  accepted_callback = {} 
)
Here is the call graph for this function:

◆ checkUser()

void MainWindow::checkUser ( )
private

MainWindow::checkUser.

ユーザーをチェックする

Here is the call graph for this function:

◆ cherrypick()

void MainWindow::cherrypick ( Git::CommitItem const *  commit)
private
Here is the call graph for this function:

◆ cleanSubModule()

void MainWindow::cleanSubModule ( QListWidgetItem *  item)
private
Here is the call graph for this function:

◆ clearAuthentication()

void MainWindow::clearAuthentication ( )
private

MainWindow::clearAuthentication.

認証情報をクリアする

Here is the call graph for this function:

◆ clearCommitLog()

void MainWindow::clearCommitLog ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ clearDiffView() [1/2]

void MainWindow::clearDiffView ( )
private

差分ビューを消去

Parameters
frame

◆ clearDiffView() [2/2]

void MainWindow::clearDiffView ( RepositoryWrapperFrame frame)
private

差分ビューを消去

Parameters
frame
Here is the call graph for this function:

◆ clearFileList()

void MainWindow::clearFileList ( RepositoryWrapperFrame frame)
private

ファイルリストを消去

Parameters
frame
Here is the call graph for this function:

◆ clearLabelMap()

void MainWindow::clearLabelMap ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ clearLog()

void MainWindow::clearLog ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ clearLogHistory()

void MainWindow::clearLogHistory ( )
private

◆ clearRepoFilter()

void MainWindow::clearRepoFilter ( )
private

◆ clearRepositoryInfo()

void MainWindow::clearRepositoryInfo ( )
private

リポジトリ情報を消去

Here is the call graph for this function:

◆ clearSshAuthentication()

void MainWindow::clearSshAuthentication ( )
private

MainWindow::clearSshAuthentication.

SSH認証情報をクリアする

◆ clearStatusBarText()

void MainWindow::clearStatusBarText ( )
Here is the call graph for this function:

◆ clone()

void MainWindow::clone ( QString  url = {},
QString  dir = {} 
)
private

MainWindow::clone.

Parameters
urlURL
dirディレクトリ

クローンする

Here is the call graph for this function:

◆ cloneRepository()

bool MainWindow::cloneRepository ( const Git::CloneData clonedata,
const RepositoryData repodata 
)

MainWindow::cloneRepository.

Parameters
clonedataクローンデータ
repodataリポジトリデータ
Returns

リポジトリをクローンする

Here is the call graph for this function:

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotected
Here is the call graph for this function:

◆ color()

QColor MainWindow::color ( unsigned int  depth)

MainWindow::color.

Parameters
depth階層の深さ
Returns

階層の深さに応じた色を返す

◆ commit()

void MainWindow::commit ( RepositoryWrapperFrame frame,
bool  amend = false 
)
private

MainWindow::commit.

Parameters
frameフレーム
amendコミットする
Here is the call graph for this function:

◆ commitAmend()

void MainWindow::commitAmend ( RepositoryWrapperFrame frame)
private

MainWindow::commitAmend.

Parameters
frameフレーム

コミットを修正する

Here is the call graph for this function:

◆ commitItem() [1/2]

const Git::CommitItem * MainWindow::commitItem ( const RepositoryWrapperFrame frame,
Git::CommitID const &  id 
) const
Here is the call graph for this function:

◆ commitItem() [2/2]

const Git::CommitItem * MainWindow::commitItem ( const RepositoryWrapperFrame frame,
int  row 
) const
Here is the call graph for this function:

◆ committerIcon()

QImage MainWindow::committerIcon ( RepositoryWrapperFrame frame,
int  row,
QSize  size 
) const
Here is the call graph for this function:

◆ commitToBranchMapRef()

std::map< Git::CommitID, QList< Git::Branch > > & MainWindow::commitToBranchMapRef ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ createRepository()

void MainWindow::createRepository ( const QString &  dir)
private

MainWindow::createRepository.

Parameters
dirディレクトリ

リポジトリを作成する

Here is the call graph for this function:

◆ cRepositories()

const QList< RepositoryData > & MainWindow::cRepositories ( ) const
private

◆ currentBranch()

const Git::Branch & MainWindow::currentBranch ( ) const

◆ currentBranchName()

QString MainWindow::currentBranchName ( ) const
Here is the call graph for this function:

◆ currentFileItem()

QListWidgetItem * MainWindow::currentFileItem ( ) const
private

◆ currentGitUser()

Git::User MainWindow::currentGitUser ( ) const

◆ currentRemoteName()

QString MainWindow::currentRemoteName ( ) const

◆ currentRepository()

const RepositoryData & MainWindow::currentRepository ( ) const

◆ currentRepositoryName()

QString MainWindow::currentRepositoryName ( ) const
Here is the call graph for this function:

◆ currentWorkingCopyDir()

QString MainWindow::currentWorkingCopyDir ( ) const

MainWindow::currentWorkingCopyDir.

Returns
現在の作業ディレクトリ

現在の作業ディレクトリを返す

◆ customEvent()

void MainWindow::customEvent ( QEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ defaultWorkingDir()

QString MainWindow::defaultWorkingDir ( ) const

MainWindow::defaultWorkingDir.

デフォルトの作業ディレクトリを返す

Here is the call graph for this function:

◆ deleteBranch() [1/2]

void MainWindow::deleteBranch ( RepositoryWrapperFrame frame)
private

MainWindow::deleteBranch.

Parameters
frameフレーム

ブランチを削除する

Here is the call graph for this function:

◆ deleteBranch() [2/2]

void MainWindow::deleteBranch ( RepositoryWrapperFrame frame,
const Git::CommitItem commit 
)
private

MainWindow::deleteBranch.

Parameters
frameフレーム
commitコミット

ブランチを削除する

Here is the call graph for this function:

◆ deleteRemoteBranch()

void MainWindow::deleteRemoteBranch ( RepositoryWrapperFrame frame,
Git::CommitItem const *  commit 
)
private
Here is the call graph for this function:

◆ deleteTags() [1/2]

void MainWindow::deleteTags ( RepositoryWrapperFrame frame,
const Git::CommitItem commit 
)
private
Here is the call graph for this function:

◆ deleteTags() [2/2]

void MainWindow::deleteTags ( RepositoryWrapperFrame frame,
QStringList const &  tagnames 
)
Here is the call graph for this function:

◆ deleteTempFiles()

void MainWindow::deleteTempFiles ( )
private

MainWindow::deleteTempFiles.

一時ファイルを削除する

Here is the call graph for this function:

◆ detectGitServerType()

void MainWindow::detectGitServerType ( GitPtr  g)
private
Here is the call graph for this function:

◆ determinFileType()

QString MainWindow::determinFileType ( QByteArray  in)
Here is the call graph for this function:

◆ diffResult()

QList< Git::Diff > * MainWindow::diffResult ( )
private

◆ digitsPixmap()

const QPixmap & MainWindow::digitsPixmap ( ) const

◆ doGitCommand()

void MainWindow::doGitCommand ( const std::function< void(GitPtr)> &  callback)
private

MainWindow::doGitCommand.

Parameters
callbackコールバック

gitコマンドを実行する

Here is the call graph for this function:

◆ doLogCurrentItemChanged()

void MainWindow::doLogCurrentItemChanged ( RepositoryWrapperFrame frame)
private

コミットログの選択が変化した

Here is the call graph for this function:

◆ dragEnterEvent()

void MainWindow::dragEnterEvent ( QDragEnterEvent *  event)
overrideprotected
Here is the call graph for this function:

◆ drawDigit()

void MainWindow::drawDigit ( QPainter *  pr,
int  x,
int  y,
int  n 
) const

MainWindow::drawDigit.

Parameters
prQPainter
xX座標
yY座標
n数字
Returns

0〜9の小さい数字を描画する

◆ editFile()

bool MainWindow::editFile ( const QString &  path,
const QString &  title 
)
private

テキストファイルを編集する

Parameters
path
title
Returns
Here is the call graph for this function:

◆ emitWriteLog()

void MainWindow::emitWriteLog ( const QByteArray &  ba,
bool  receive 
)

◆ event()

bool MainWindow::event ( QEvent *  event)
overrideprotected
Here is the call graph for this function:

◆ eventFilter()

bool MainWindow::eventFilter ( QObject *  watched,
QEvent *  event 
)
overrideprotected
Here is the call graph for this function:

◆ execAreYouSureYouWantToContinueConnectingDialog()

void MainWindow::execAreYouSureYouWantToContinueConnectingDialog ( )
private
Here is the call graph for this function:

◆ execCommitExploreWindow()

void MainWindow::execCommitExploreWindow ( RepositoryWrapperFrame frame,
QWidget *  parent,
const Git::CommitItem commit 
)
Here is the call graph for this function:

◆ execCommitPropertyDialog()

void MainWindow::execCommitPropertyDialog ( QWidget *  parent,
const Git::CommitItem commit 
)
Here is the call graph for this function:

◆ execCommitViewWindow()

void MainWindow::execCommitViewWindow ( const Git::CommitItem commit)
Here is the call graph for this function:

◆ execConfigUserDialog()

void MainWindow::execConfigUserDialog ( const Git::User global_user,
const Git::User local_user,
bool  enable_local_user,
const QString &  reponame 
)
private

MainWindow::execConfigUserDialog.

Parameters
global_userグローバルユーザー
local_userローカルユーザー
enable_local_userローカルユーザーを有効にする
reponameリポジトリ名

ユーザー設定ダイアログを表示する

Here is the call graph for this function:

◆ execFileHistory() [1/2]

void MainWindow::execFileHistory ( const QString &  path)
Here is the call graph for this function:

◆ execFileHistory() [2/2]

void MainWindow::execFileHistory ( QListWidgetItem *  item)
Here is the call graph for this function:

◆ execRepositoryPropertyDialog()

void MainWindow::execRepositoryPropertyDialog ( const RepositoryData repo,
bool  open_repository_menu = false 
)
private

MainWindow::execRepositoryPropertyDialog.

Parameters
repoリポジトリ
open_repository_menuリポジトリメニューを開く

リポジトリプロパティダイアログを表示する

Here is the call graph for this function:

◆ execSetGlobalUserDialog()

bool MainWindow::execSetGlobalUserDialog ( )
private

MainWindow::execSetGlobalUserDialog.

グローバルユーザー設定ダイアログを表示する

Here is the call graph for this function:

◆ executableOrEmpty()

QString MainWindow::executableOrEmpty ( const QString &  path)
private

MainWindow::checkExecutable.

Parameters
pathパス
Returns

実行可能かチェックする

Here is the call graph for this function:

◆ execWelcomeWizardDialog()

bool MainWindow::execWelcomeWizardDialog ( )
private

MainWindow::execWelcomeWizardDialog.

ようこそダイアログを表示する

Here is the call graph for this function:

◆ fetch()

bool MainWindow::fetch ( GitPtr  g,
bool  prune 
)
private
Here is the call graph for this function:

◆ fetch_tags_f()

bool MainWindow::fetch_tags_f ( GitPtr  g)
private
Here is the call graph for this function:

◆ findBranch()

QList< Git::Branch > MainWindow::findBranch ( RepositoryWrapperFrame frame,
const Git::CommitID id 
)
private

MainWindow::findBranch.

Parameters
frame
idコミットIDからブランチを検索する
Here is the call graph for this function:

◆ findFileID()

QString MainWindow::findFileID ( RepositoryWrapperFrame frame,
const QString &  commit_id,
const QString &  file 
)
Here is the call graph for this function:

◆ findGitObject()

QStringList MainWindow::findGitObject ( const QString &  id) const
private
Here is the call graph for this function:

◆ findNext()

void MainWindow::findNext ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ findRegisteredRepository()

const RepositoryData * MainWindow::findRegisteredRepository ( QString *  workdir) const
private

MainWindow::findRegisteredRepository.

Parameters
workdir作業ディレクトリ

登録済みのリポジトリを探す

Here is the call graph for this function:

◆ findTag()

QList< Git::Tag > MainWindow::findTag ( RepositoryWrapperFrame frame,
const QString &  id 
)
private
Here is the call graph for this function:

◆ findText()

void MainWindow::findText ( const QString &  text)
private

◆ for_each_selected_files()

void MainWindow::for_each_selected_files ( std::function< void(QString const &)> const &  fn)
private
Here is the call graph for this function:

◆ frame() [1/2]

const RepositoryWrapperFrame * MainWindow::frame ( )

◆ frame() [2/2]

const RepositoryWrapperFrame* MainWindow::frame ( ) const

◆ getBookmarksFilePath()

QString MainWindow::getBookmarksFilePath ( ) const
private

◆ getCommitLog()

const Git::CommitItemList & MainWindow::getCommitLog ( RepositoryWrapperFrame const *  frame) const
private
Here is the call graph for this function:

◆ getCommitLogPtr()

Git::CommitItemList * MainWindow::getCommitLogPtr ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ getDiffCacheMap()

std::map< QString, Git::Diff > * MainWindow::getDiffCacheMap ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ getFilePath()

QString MainWindow::getFilePath ( QListWidgetItem *  item)
staticprivate

◆ getFolderIcon()

QIcon MainWindow::getFolderIcon ( ) const
private

◆ getForceFetch()

bool MainWindow::getForceFetch ( ) const
private

◆ getHeadId()

Git::CommitID MainWindow::getHeadId ( ) const
private

◆ getLabelMap() [1/2]

const std::map< int, QList< BranchLabel > > * MainWindow::getLabelMap ( const RepositoryWrapperFrame frame) const
private
Here is the call graph for this function:

◆ getLabelMap() [2/2]

std::map< int, QList< BranchLabel > > * MainWindow::getLabelMap ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ getLog()

const Git::CommitItem * MainWindow::getLog ( RepositoryWrapperFrame const *  frame,
int  index 
) const
private
Here is the call graph for this function:

◆ getLogHistoryLines()

std::vector< std::string > MainWindow::getLogHistoryLines ( )
private

◆ getObjCache()

GitObjectCache * MainWindow::getObjCache ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ getObjectID()

QString MainWindow::getObjectID ( QListWidgetItem *  item)
staticprivate

◆ getPtyCondition()

MainWindow::PtyCondition MainWindow::getPtyCondition ( )
private

◆ getPtyProcess()

PtyProcess * MainWindow::getPtyProcess ( )
private

◆ getPtyProcessOk()

bool MainWindow::getPtyProcessOk ( ) const
private

◆ getRepositoryFilterText()

QString MainWindow::getRepositoryFilterText ( ) const
private

◆ getRepositoryIcon()

QIcon MainWindow::getRepositoryIcon ( ) const
private

◆ getSignatureBadIcon()

QIcon MainWindow::getSignatureBadIcon ( ) const
private

◆ getSignatureDubiousIcon()

QIcon MainWindow::getSignatureDubiousIcon ( ) const
private

◆ getSignatureGoodIcon()

QIcon MainWindow::getSignatureGoodIcon ( ) const
private

◆ getSubmoduleCommitId()

QString MainWindow::getSubmoduleCommitId ( QListWidgetItem *  item)
staticprivate

◆ getSubmodulePath()

QString MainWindow::getSubmodulePath ( QListWidgetItem *  item)
staticprivate

◆ getTempRepoForCloneCompleteV()

const QVariant & MainWindow::getTempRepoForCloneCompleteV ( ) const
private

◆ getTransparentPixmap() [1/2]

QPixmap MainWindow::getTransparentPixmap ( )
private

◆ getTransparentPixmap() [2/2]

QPixmap MainWindow::getTransparentPixmap ( ) const
private

◆ git() [1/3]

GitPtr MainWindow::git ( )
Here is the call graph for this function:

◆ git() [2/3]

GitPtr MainWindow::git ( const QString &  dir,
const QString &  submodpath,
const QString &  sshkey 
) const
Here is the call graph for this function:

◆ git() [3/3]

GitPtr MainWindow::git ( Git::SubmoduleItem const &  submod)
Here is the call graph for this function:

◆ git_log_callback()

bool MainWindow::git_log_callback ( void *  cookie,
const char *  ptr,
int  len 
)
staticprivate

MainWindow::git_log_callback.

Parameters
cookie
ptr
lengit logのコールバック関数

◆ gitCommand()

QString MainWindow::gitCommand ( ) const
private

◆ httpAuthenticationPass()

std::string MainWindow::httpAuthenticationPass ( ) const
private

◆ httpAuthenticationUser()

std::string MainWindow::httpAuthenticationUser ( ) const
private

◆ httpSetAuthentication()

void MainWindow::httpSetAuthentication ( const std::string &  user,
const std::string &  pass 
)
private

◆ idFromTag()

Git::CommitID MainWindow::idFromTag ( RepositoryWrapperFrame frame,
const QString &  tag 
)
private

MainWindow::idFromTag.

Parameters
frame
tag
Returns

タグ名からコミットIDを取得する

Here is the call graph for this function:

◆ indexOfDiff()

int MainWindow::indexOfDiff ( QListWidgetItem *  item)
staticprivate

◆ indexOfLog()

int MainWindow::indexOfLog ( QListWidgetItem *  item)
staticprivate

◆ indexOfRepository()

int MainWindow::indexOfRepository ( const QTreeWidgetItem *  treeitem) const
private

◆ initNetworking()

void MainWindow::initNetworking ( )
private
Here is the call graph for this function:

◆ initRepository()

void MainWindow::initRepository ( const QString &  path,
const QString &  reponame,
const Git::Remote remote 
)
private

MainWindow::initRepository.

Parameters
pathパス
reponameリポジトリ名
remoteリモート

リポジトリを初期化する

Here is the call graph for this function:

◆ interactionCanceled()

bool MainWindow::interactionCanceled ( ) const
private

◆ interactionMode()

MainWindow::InteractionMode MainWindow::interactionMode ( ) const
private

◆ internalAddTag()

bool MainWindow::internalAddTag ( RepositoryWrapperFrame frame,
const QString &  name 
)
private

MainWindow::internalAddTag.

Parameters
frameフレーム
name名前
Returns

タグを追加する

Here is the call graph for this function:

◆ internalCatFile() [1/2]

Git::Object MainWindow::internalCatFile ( RepositoryWrapperFrame frame,
const QString &  id 
)
Here is the call graph for this function:

◆ internalCatFile() [2/2]

Git::Object MainWindow::internalCatFile ( RepositoryWrapperFrame frame,
GitPtr  g,
const QString &  id 
)
private
Here is the call graph for this function:

◆ internalClearRepositoryInfo()

void MainWindow::internalClearRepositoryInfo ( )
private

MainWindow::internalClearRepositoryInfo.

リポジトリ情報をクリアする

Here is the call graph for this function:

◆ internalDeleteTags()

void MainWindow::internalDeleteTags ( const QStringList &  tagnames)
private

MainWindow::internalDeleteTags.

Parameters
tagnamesタグ名

タグを削除する

Here is the call graph for this function:

◆ internalOpenRepository()

void MainWindow::internalOpenRepository ( GitPtr  g,
bool  keep_selection = false 
)
private
Here is the call graph for this function:

◆ internalSaveCommandPath()

void MainWindow::internalSaveCommandPath ( const QString &  path,
bool  save,
const QString &  name 
)
private

MainWindow::internalSaveCommandPath.

Parameters
pathパス
save保存する
name名前

コマンドのパスを保存する

◆ internalWriteLog()

void MainWindow::internalWriteLog ( const char *  ptr,
int  len,
bool  record 
)
protected
Here is the call graph for this function:

◆ isAncestorCommit()

bool MainWindow::isAncestorCommit ( const QString &  id)

◆ isAvatarEnabled()

bool MainWindow::isAvatarEnabled ( ) const
private
Here is the call graph for this function:

◆ isGraphVisible()

bool MainWindow::isGraphVisible ( ) const
Here is the call graph for this function:

◆ isGroupItem()

bool MainWindow::isGroupItem ( QTreeWidgetItem *  item)
staticprivate

◆ isLabelsVisible()

bool MainWindow::isLabelsVisible ( ) const
Here is the call graph for this function:

◆ isOnlineMode()

bool MainWindow::isOnlineMode ( ) const

◆ isRepositoryOpened()

bool MainWindow::isRepositoryOpened ( ) const
private
Here is the call graph for this function:

◆ isThereUncommitedChanges()

bool MainWindow::isThereUncommitedChanges ( ) const
private

◆ isUninitialized()

bool MainWindow::isUninitialized ( )
private
Here is the call graph for this function:

◆ isValidRemoteURL()

bool MainWindow::isValidRemoteURL ( const QString &  url,
const QString &  sshkey 
)
private
Here is the call graph for this function:

◆ isValidWorkingCopy()

bool MainWindow::isValidWorkingCopy ( GitPtr  g) const

◆ jumpToCommit()

void MainWindow::jumpToCommit ( RepositoryWrapperFrame frame,
QString  id 
)
Here is the call graph for this function:

◆ keyPressEvent()

void MainWindow::keyPressEvent ( QKeyEvent *  event)
overrideprotected
Here is the call graph for this function:

◆ label()

const QList< BranchLabel > * MainWindow::label ( const RepositoryWrapperFrame frame,
int  row 
) const
Here is the call graph for this function:

◆ limitLogCount()

int MainWindow::limitLogCount ( ) const
private
Here is the call graph for this function:

◆ loadApplicationSettings()

void MainWindow::loadApplicationSettings ( )
private
Here is the call graph for this function:

◆ locateCommitID()

bool MainWindow::locateCommitID ( RepositoryWrapperFrame frame,
QString const &  commit_id 
)
private
Here is the call graph for this function:

◆ logGitVersion()

void MainWindow::logGitVersion ( )
private

MainWindow::logGitVersion.

gitコマンドのバージョンをログに書き込む

Here is the call graph for this function:

◆ makeCommitInfoText()

QString MainWindow::makeCommitInfoText ( RepositoryWrapperFrame frame,
int  row,
QList< BranchLabel > *  label_list 
)
private

コミット情報のテキストを作成

Parameters
frame
row
label_list
Returns
Here is the call graph for this function:

◆ makeDiffs()

std::optional< QList< Git::Diff > > MainWindow::makeDiffs ( RepositoryWrapperFrame frame,
QString  id 
)
private

MainWindow::makeDiffs.

Parameters
frameフレーム
idID

差分を作成する

Here is the call graph for this function:

◆ makeFileItemText()

static std::pair<QString, QString> MainWindow::makeFileItemText ( const ObjectData data)
staticprivate

◆ makeRepositoryName()

QString MainWindow::makeRepositoryName ( const QString &  loc)
staticprivate

MainWindow::makeRepositoryName.

Parameters
locロケーション

リポジトリ名を作成する

◆ merge()

void MainWindow::merge ( RepositoryWrapperFrame frame,
const Git::CommitItem commit = nullptr 
)
private
Here is the call graph for this function:

◆ mergeBranch() [1/2]

void MainWindow::mergeBranch ( const QString &  commit,
Git::MergeFastForward  ff,
bool  squash 
)
private
Here is the call graph for this function:

◆ mergeBranch() [2/2]

void MainWindow::mergeBranch ( Git::CommitItem const *  commit,
Git::MergeFastForward  ff,
bool  squash 
)
private
Here is the call graph for this function:

◆ msgNoRepositorySelected()

void MainWindow::msgNoRepositorySelected ( )
private

◆ namedCommitItems()

NamedCommitList MainWindow::namedCommitItems ( RepositoryWrapperFrame frame,
int  flags 
)
private
Here is the call graph for this function:

◆ newListWidgetFileItem()

QListWidgetItem * MainWindow::newListWidgetFileItem ( const MainWindow::ObjectData data)
staticprivate

リストウィジェット用ファイルアイテムを作成する

Parameters
data
Returns
Here is the call graph for this function:

◆ newQTreeWidgetFolderItem()

QTreeWidgetItem * MainWindow::newQTreeWidgetFolderItem ( QString const &  name)
private
Here is the call graph for this function:

◆ newTempFilePath()

QString MainWindow::newTempFilePath ( )
private
Here is the call graph for this function:

◆ on_action_about_triggered

void MainWindow::on_action_about_triggered ( )
privateslot

◆ on_action_add_repository_triggered

void MainWindow::on_action_add_repository_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_clean_df_triggered

void MainWindow::on_action_clean_df_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_commit_triggered

void MainWindow::on_action_commit_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_configure_user_triggered

void MainWindow::on_action_configure_user_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_create_desktop_launcher_file_triggered

void MainWindow::on_action_create_desktop_launcher_file_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_delete_branch_triggered

void MainWindow::on_action_delete_branch_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_delete_remote_branch_triggered

void MainWindow::on_action_delete_remote_branch_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_edit_git_config_triggered

void MainWindow::on_action_edit_git_config_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_edit_gitignore_triggered

void MainWindow::on_action_edit_gitignore_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_edit_global_gitconfig_triggered

void MainWindow::on_action_edit_global_gitconfig_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_edit_settings_triggered

void MainWindow::on_action_edit_settings_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_edit_tags_triggered

void MainWindow::on_action_edit_tags_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_exit_triggered

void MainWindow::on_action_exit_triggered ( )
privateslot

◆ on_action_expand_commit_log_triggered

void MainWindow::on_action_expand_commit_log_triggered ( )
privateslot

◆ on_action_expand_diff_view_triggered

void MainWindow::on_action_expand_diff_view_triggered ( )
privateslot

◆ on_action_expand_file_list_triggered

void MainWindow::on_action_expand_file_list_triggered ( )
privateslot

◆ on_action_explorer_triggered

void MainWindow::on_action_explorer_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_fetch_prune_triggered

void MainWindow::on_action_fetch_prune_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_fetch_triggered

void MainWindow::on_action_fetch_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_find_next_triggered

void MainWindow::on_action_find_next_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_find_triggered

void MainWindow::on_action_find_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_offline_triggered

void MainWindow::on_action_offline_triggered ( )
privateslot

◆ on_action_online_triggered

void MainWindow::on_action_online_triggered ( )
privateslot

◆ on_action_pull_triggered

void MainWindow::on_action_pull_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_push_all_tags_triggered

void MainWindow::on_action_push_all_tags_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_push_triggered

void MainWindow::on_action_push_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_reflog_triggered

void MainWindow::on_action_reflog_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_repo_checkout_triggered

void MainWindow::on_action_repo_checkout_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_repo_jump_to_head_triggered

void MainWindow::on_action_repo_jump_to_head_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_repo_jump_triggered

void MainWindow::on_action_repo_jump_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_repo_merge_triggered

void MainWindow::on_action_repo_merge_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_repositories_panel_triggered

void MainWindow::on_action_repositories_panel_triggered ( )
privateslot

◆ on_action_repository_property_triggered

void MainWindow::on_action_repository_property_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_repository_status_triggered

void MainWindow::on_action_repository_status_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_reset_hard_triggered

void MainWindow::on_action_reset_hard_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_reset_HEAD_1_triggered

void MainWindow::on_action_reset_HEAD_1_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_set_gpg_signing_triggered

void MainWindow::on_action_set_gpg_signing_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_show_graph_triggered

void MainWindow::on_action_show_graph_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_show_labels_triggered

void MainWindow::on_action_show_labels_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_sidebar_triggered

void MainWindow::on_action_sidebar_triggered ( )
privateslot

◆ on_action_stash_apply_triggered

void MainWindow::on_action_stash_apply_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_stash_drop_triggered

void MainWindow::on_action_stash_drop_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_stash_triggered

void MainWindow::on_action_stash_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_stop_process_triggered

void MainWindow::on_action_stop_process_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_submodule_add_triggered

void MainWindow::on_action_submodule_add_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_submodule_update_triggered

void MainWindow::on_action_submodule_update_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_submodules_triggered

void MainWindow::on_action_submodules_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_terminal_triggered

void MainWindow::on_action_terminal_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_view_refresh_triggered

void MainWindow::on_action_view_refresh_triggered ( )
privateslot
Here is the call graph for this function:

◆ on_action_window_log_triggered

void MainWindow::on_action_window_log_triggered ( bool  checked)
privateslot
Here is the call graph for this function:

◆ on_lineEdit_filter_textChanged

void MainWindow::on_lineEdit_filter_textChanged ( QString const &  text)
privateslot
Here is the call graph for this function:

◆ on_listWidget_files_currentRowChanged

void MainWindow::on_listWidget_files_currentRowChanged ( int  currentRow)
privateslot
Here is the call graph for this function:

◆ on_listWidget_files_customContextMenuRequested

void MainWindow::on_listWidget_files_customContextMenuRequested ( const QPoint &  pos)
privateslot
Here is the call graph for this function:

◆ on_listWidget_files_itemDoubleClicked

void MainWindow::on_listWidget_files_itemDoubleClicked ( QListWidgetItem *  item)
privateslot
Here is the call graph for this function:

◆ on_listWidget_staged_currentRowChanged

void MainWindow::on_listWidget_staged_currentRowChanged ( int  currentRow)
privateslot
Here is the call graph for this function:

◆ on_listWidget_staged_customContextMenuRequested

void MainWindow::on_listWidget_staged_customContextMenuRequested ( const QPoint &  pos)
privateslot
Here is the call graph for this function:

◆ on_listWidget_staged_itemDoubleClicked

void MainWindow::on_listWidget_staged_itemDoubleClicked ( QListWidgetItem *  item)
privateslot
Here is the call graph for this function:

◆ on_listWidget_unstaged_currentRowChanged

void MainWindow::on_listWidget_unstaged_currentRowChanged ( int  currentRow)
privateslot
Here is the call graph for this function:

◆ on_listWidget_unstaged_customContextMenuRequested

void MainWindow::on_listWidget_unstaged_customContextMenuRequested ( const QPoint &  pos)
privateslot
Here is the call graph for this function:

◆ on_listWidget_unstaged_itemDoubleClicked

void MainWindow::on_listWidget_unstaged_itemDoubleClicked ( QListWidgetItem *  item)
privateslot
Here is the call graph for this function:

◆ on_radioButton_remote_offline_clicked

void MainWindow::on_radioButton_remote_offline_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_radioButton_remote_online_clicked

void MainWindow::on_radioButton_remote_online_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_tableWidget_log_currentItemChanged

void MainWindow::on_tableWidget_log_currentItemChanged ( QTableWidgetItem *  current,
QTableWidgetItem *  previous 
)
privateslot
Here is the call graph for this function:

◆ on_tableWidget_log_customContextMenuRequested

void MainWindow::on_tableWidget_log_customContextMenuRequested ( const QPoint &  pos)
privateslot
Here is the call graph for this function:

◆ on_tableWidget_log_itemDoubleClicked

void MainWindow::on_tableWidget_log_itemDoubleClicked ( QTableWidgetItem *  )
privateslot
Here is the call graph for this function:

◆ on_toolButton_addrepo_clicked

void MainWindow::on_toolButton_addrepo_clicked ( )
privateslot

◆ on_toolButton_commit_clicked

void MainWindow::on_toolButton_commit_clicked ( )
privateslot

◆ on_toolButton_erase_filter_clicked

void MainWindow::on_toolButton_erase_filter_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_explorer_clicked

void MainWindow::on_toolButton_explorer_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_fetch_clicked

void MainWindow::on_toolButton_fetch_clicked ( )
privateslot

◆ on_toolButton_pull_clicked

void MainWindow::on_toolButton_pull_clicked ( )
privateslot

◆ on_toolButton_push_clicked

void MainWindow::on_toolButton_push_clicked ( )
privateslot

◆ on_toolButton_select_all_clicked

void MainWindow::on_toolButton_select_all_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_stage_clicked

void MainWindow::on_toolButton_stage_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_status_clicked

void MainWindow::on_toolButton_status_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_stop_process_clicked

void MainWindow::on_toolButton_stop_process_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_terminal_clicked

void MainWindow::on_toolButton_terminal_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_toolButton_unstage_clicked

void MainWindow::on_toolButton_unstage_clicked ( )
privateslot
Here is the call graph for this function:

◆ on_treeWidget_repos_currentItemChanged

void MainWindow::on_treeWidget_repos_currentItemChanged ( QTreeWidgetItem *  current,
QTreeWidgetItem *  previous 
)
privateslot
Here is the call graph for this function:

◆ on_treeWidget_repos_customContextMenuRequested

void MainWindow::on_treeWidget_repos_customContextMenuRequested ( const QPoint &  pos)
privateslot
Here is the call graph for this function:

◆ on_treeWidget_repos_itemDoubleClicked

void MainWindow::on_treeWidget_repos_itemDoubleClicked ( QTreeWidgetItem *  item,
int  column 
)
privateslot
Here is the call graph for this function:

◆ onAvatarReady

void MainWindow::onAvatarReady ( )
privateslot
Here is the call graph for this function:

◆ onAvatarUpdated

void MainWindow::onAvatarUpdated ( RepositoryWrapperFrameP  frame)
privateslot

アイコンの読み込みが完了した

Here is the call graph for this function:

◆ onCloneCompleted()

void MainWindow::onCloneCompleted ( bool  success,
const QVariant &  userdata 
)
private
Here is the call graph for this function:

◆ onCommitDetailGetterReady

void MainWindow::onCommitDetailGetterReady ( )
privateslot
Here is the call graph for this function:

◆ onInterval10ms

void MainWindow::onInterval10ms ( )
privateslot

10ms間隔のインターバルタイマ

Here is the call graph for this function:

◆ onLogIdle

void MainWindow::onLogIdle ( )
protectedslot
Here is the call graph for this function:

◆ onLogVisibilityChanged

void MainWindow::onLogVisibilityChanged ( )
privateslot

◆ onPtyProcessCompleted

void MainWindow::onPtyProcessCompleted ( bool  ok,
const QVariant &  userdata 
)
privateslot
Here is the call graph for this function:

◆ onRepositoriesTreeDropped

void MainWindow::onRepositoriesTreeDropped ( )
privateslot
Here is the call graph for this function:

◆ onStartEvent()

void MainWindow::onStartEvent ( )
private
Here is the call graph for this function:

◆ openExplorer()

void MainWindow::openExplorer ( const RepositoryData repo)
private

ファイルマネージャを開く

Parameters
repo
Here is the call graph for this function:

◆ openRepository()

void MainWindow::openRepository ( bool  validate,
bool  waitcursor = true,
bool  keep_selection = false 
)
private

MainWindow::openRepository.

Parameters
validateバリデート
waitcursorウェイトカーソル
keep_selection選択を保持する

リポジトリを開く

Here is the call graph for this function:

◆ openRepositoryWithFrame()

void MainWindow::openRepositoryWithFrame ( RepositoryWrapperFrame frame,
GitPtr  g,
bool  keep_selection = false 
)
private
Here is the call graph for this function:

◆ openSelectedRepository()

void MainWindow::openSelectedRepository ( )
private

MainWindow::openSelectedRepository.

選択されたリポジトリを開く

Here is the call graph for this function:

◆ openTerminal()

void MainWindow::openTerminal ( const RepositoryData repo)
private

コマンドプロンプトを開く

Parameters
repo
Here is the call graph for this function:

◆ postEvent()

void MainWindow::postEvent ( QObject *  receiver,
QEvent *  event,
int  ms_later 
)
private

イベントをポストする

Parameters
receiver宛先
eventイベント
ms_later遅延時間(0なら即座)
Here is the call graph for this function:

◆ postOpenRepositoryFromGitHub()

void MainWindow::postOpenRepositoryFromGitHub ( const QString &  username,
const QString &  reponame 
)
Here is the call graph for this function:

◆ postStartEvent()

void MainWindow::postStartEvent ( int  ms_later)

開始イベントをポストする

Here is the call graph for this function:

◆ postUserFunctionEvent()

void MainWindow::postUserFunctionEvent ( const std::function< void(const QVariant &, void *)> &  fn,
QVariant const &  v = QVariant(),
void *  p = nullptr,
int  ms_later = 0 
)
private

ユーザー関数イベントをポストする

Parameters
fn関数
vQVariant
pポインタ
ms_later遅延時間(0なら即座)
Here is the call graph for this function:

◆ pRepositories()

QList< RepositoryData > * MainWindow::pRepositories ( )
private

◆ ptrCommitToTagMap()

std::map< Git::CommitID, QList< Git::Tag > > * MainWindow::ptrCommitToTagMap ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ ptrGitHub()

GitHubRepositoryInfo * MainWindow::ptrGitHub ( )
private

◆ pushSetUpstream() [1/2]

bool MainWindow::pushSetUpstream ( )
private

MainWindow::pushSetUpstream.

Returns

pushする

Here is the call graph for this function:

◆ pushSetUpstream() [2/2]

void MainWindow::pushSetUpstream ( bool  set_upstream,
const QString &  remote,
const QString &  branch,
bool  force 
)
private

MainWindow::pushSetUpstream.

Parameters
-uオプションを有効にする
remoteリモート
branchブランチ
force強制

pushする

Here is the call graph for this function:

◆ queryBranches()

void MainWindow::queryBranches ( RepositoryWrapperFrame frame,
GitPtr  g 
)
private

MainWindow::queryBranches.

Parameters
frameフレーム
ggit

ブランチを取得する

Here is the call graph for this function:

◆ queryCommit()

std::optional< Git::CommitItem > MainWindow::queryCommit ( const QString &  id)
Here is the call graph for this function:

◆ queryRemotes()

void MainWindow::queryRemotes ( GitPtr  g)
private

MainWindow::queryRemotes.

Parameters
ggit

リモートを取得する

◆ querySubmoduleByPath()

const Git::SubmoduleItem * MainWindow::querySubmoduleByPath ( const QString &  path,
Git::CommitItem commit 
)

サブモジュール情報を取得する

Parameters
path
commitコミット情報を取得(nullptr可)
Returns
Here is the call graph for this function:

◆ queryTagList()

QList< Git::Tag > MainWindow::queryTagList ( RepositoryWrapperFrame frame)
Here is the call graph for this function:

◆ rebaseBranch()

void MainWindow::rebaseBranch ( Git::CommitItem const *  commit)
private
Here is the call graph for this function:

◆ refrectRepositories()

void MainWindow::refrectRepositories ( )
private
Here is the call graph for this function:

◆ refresh()

void MainWindow::refresh ( )
Here is the call graph for this function:

◆ remoteBranches()

QStringList MainWindow::remoteBranches ( RepositoryWrapperFrame frame,
QString const &  id,
QStringList *  all 
)
private
Here is the call graph for this function:

◆ remoteInfoChanged

void MainWindow::remoteInfoChanged ( )
signal

◆ remotes()

QStringList MainWindow::remotes ( ) const
private

◆ removeRepositoryFromBookmark()

void MainWindow::removeRepositoryFromBookmark ( int  index,
bool  ask 
)
private

リポジトリをブックマークから消去

Parameters
index消去するリポジトリのインデックス
asktrueならユーザーに問い合わせる
Here is the call graph for this function:

◆ removeSelectedRepositoryFromBookmark()

void MainWindow::removeSelectedRepositoryFromBookmark ( bool  ask)
protected

リポジトリをブックマークから消去

Parameters
asktrueならユーザーに問い合わせる
Here is the call graph for this function:

◆ reopenRepository()

void MainWindow::reopenRepository ( bool  log,
const std::function< void(GitPtr)> &  callback 
)
private

MainWindow::reopenRepository.

Parameters
logログ
callbackコールバック

リポジトリを再オープンする

Here is the call graph for this function:

◆ repositoryIndex_()

int MainWindow::repositoryIndex_ ( const QTreeWidgetItem *  item) const
private
Here is the call graph for this function:

◆ repositoryItem()

const RepositoryData * MainWindow::repositoryItem ( const QTreeWidgetItem *  item) const
private
Here is the call graph for this function:

◆ resetFile()

void MainWindow::resetFile ( const QStringList &  paths)
private

MainWindow::resetFile.

Parameters
pathsパス

ファイルをリセットする

Here is the call graph for this function:

◆ retrieveCommitLog()

Git::CommitItemList MainWindow::retrieveCommitLog ( GitPtr  g)
private

コミットログを取得

Parameters
g
Returns
Here is the call graph for this function:

◆ revertAllFiles()

void MainWindow::revertAllFiles ( )
private

MainWindow::revertAllFiles.

すべてのファイルをHEADに戻す

Here is the call graph for this function:

◆ revertCommit()

void MainWindow::revertCommit ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ rowFromCommitId()

int MainWindow::rowFromCommitId ( RepositoryWrapperFrame frame,
const Git::CommitID id 
)
private
Here is the call graph for this function:

◆ runOnRepositoryDir()

bool MainWindow::runOnRepositoryDir ( const std::function< void(QString, QString)> &  callback,
const RepositoryData repo 
)
private
Here is the call graph for this function:

◆ saveApplicationSettings()

void MainWindow::saveApplicationSettings ( )
private
Here is the call graph for this function:

◆ saveAs()

bool MainWindow::saveAs ( RepositoryWrapperFrame frame,
const QString &  id,
const QString &  dstpath 
)
Here is the call graph for this function:

◆ saveBlobAs()

bool MainWindow::saveBlobAs ( RepositoryWrapperFrame frame,
const QString &  id,
const QString &  dstpath 
)
private

MainWindow::saveBlobAs.

Parameters
frameフレーム
idID
dstpath保存先

ファイルを保存する

Here is the call graph for this function:

◆ saveByteArrayAs()

bool MainWindow::saveByteArrayAs ( const QByteArray &  ba,
const QString &  dstpath 
)
private

MainWindow::saveByteArrayAs.

Parameters
baバイト配列
dstpath保存先
Returns

バイト配列を保存する

◆ saveFileAs()

bool MainWindow::saveFileAs ( const QString &  srcpath,
const QString &  dstpath 
)
private

MainWindow::saveFileAs.

Parameters
srcpath保存元
dstpath保存先

ファイルを保存する

Here is the call graph for this function:

◆ saveRepositoryBookmark()

void MainWindow::saveRepositoryBookmark ( RepositoryData  item)
private
Here is the call graph for this function:

◆ saveRepositoryBookmarks()

bool MainWindow::saveRepositoryBookmarks ( ) const
private
Here is the call graph for this function:

◆ selectCommand_() [1/2]

QString MainWindow::selectCommand_ ( const QString &  cmdname,
const QString &  cmdfile,
const QStringList &  list,
const QString &  path,
const std::function< void(const QString &)> &  callback 
)
private
Here is the call graph for this function:

◆ selectCommand_() [2/2]

QString MainWindow::selectCommand_ ( const QString &  cmdname,
const QStringList &  cmdfiles,
const QStringList &  list,
QString  path,
const std::function< void(const QString &)> &  callback 
)
private
Here is the call graph for this function:

◆ selectedCommitItem()

const Git::CommitItem * MainWindow::selectedCommitItem ( RepositoryWrapperFrame frame) const
private

MainWindow::selectedCommitItem.

Parameters
frameフレーム
Returns
コミットアイテム

選択されたコミットアイテムを返す

Here is the call graph for this function:

◆ selectedFiles()

QStringList MainWindow::selectedFiles ( ) const
private
Here is the call graph for this function:

◆ selectedFiles_()

QStringList MainWindow::selectedFiles_ ( QListWidget *  listwidget) const
private
Here is the call graph for this function:

◆ selectedLogIndex()

int MainWindow::selectedLogIndex ( RepositoryWrapperFrame frame) const
Here is the call graph for this function:

◆ selectedRepositoryItem()

const RepositoryData * MainWindow::selectedRepositoryItem ( ) const
protected
Here is the call graph for this function:

◆ selectGitCommand()

QString MainWindow::selectGitCommand ( bool  save)
Here is the call graph for this function:

◆ selectGpgCommand()

QString MainWindow::selectGpgCommand ( bool  save)
Here is the call graph for this function:

◆ selectSshCommand()

QString MainWindow::selectSshCommand ( bool  save)
Here is the call graph for this function:

◆ setAppSettings()

void MainWindow::setAppSettings ( const ApplicationSettings appsettings)
private
Here is the call graph for this function:

◆ setCommitLog()

void MainWindow::setCommitLog ( RepositoryWrapperFrame frame,
const Git::CommitItemList logs 
)
private
Here is the call graph for this function:

◆ setCurrentBranch()

void MainWindow::setCurrentBranch ( const Git::Branch b)

◆ setCurrentLogRow()

void MainWindow::setCurrentLogRow ( RepositoryWrapperFrame frame,
int  row 
)
Here is the call graph for this function:

◆ setCurrentRemoteName()

void MainWindow::setCurrentRemoteName ( const QString &  name)
private

◆ setCurrentRepository()

void MainWindow::setCurrentRepository ( const RepositoryData repo,
bool  clear_authentication 
)
private

MainWindow::setCurrentRepository.

Parameters
repoリポジトリ
clear_authentication認証情報をクリアする

現在のリポジトリを設定する

Here is the call graph for this function:

◆ setDiffResult()

void MainWindow::setDiffResult ( const QList< Git::Diff > &  diffs)
private

◆ setForceFetch()

void MainWindow::setForceFetch ( bool  force_fetch)
private

◆ setGitCommand()

void MainWindow::setGitCommand ( const QString &  path,
bool  save 
)
private

MainWindow::setGitCommand.

Parameters
pathパス
save保存する

gitコマンドのパスを設定する

Here is the call graph for this function:

◆ setGpgCommand()

void MainWindow::setGpgCommand ( const QString &  path,
bool  save 
)
private

MainWindow::setGpgCommand.

Parameters
pathパス
save保存する

gpgコマンドのパスを設定する

Here is the call graph for this function:

◆ setHeadId()

void MainWindow::setHeadId ( const Git::CommitID head_id)
private

◆ setInteractionCanceled()

void MainWindow::setInteractionCanceled ( bool  canceled)
private

◆ setInteractionMode()

void MainWindow::setInteractionMode ( const InteractionMode im)
private

◆ setLogEnabled()

void MainWindow::setLogEnabled ( GitPtr  g,
bool  f 
)
private
Here is the call graph for this function:

◆ setNetworkingCommandsEnabled()

void MainWindow::setNetworkingCommandsEnabled ( bool  enabled)
private

ネットワークを使用するコマンドの可否をUIに反映する

Parameters
enabled
Here is the call graph for this function:

◆ setPtyCondition()

void MainWindow::setPtyCondition ( const PtyCondition ptyCondition)
private

◆ setPtyProcessCompletionData()

void MainWindow::setPtyProcessCompletionData ( const QVariant &  value)
private

◆ setPtyProcessOk()

void MainWindow::setPtyProcessOk ( bool  pty_process_ok)
private

◆ setPtyUserData()

void MainWindow::setPtyUserData ( const QVariant &  userdata)
private
Here is the call graph for this function:

◆ setRemoteOnline()

void MainWindow::setRemoteOnline ( bool  f,
bool  save 
)
private
Here is the call graph for this function:

◆ setRepos()

void MainWindow::setRepos ( QList< RepositoryData > const &  list)
private

◆ setRepositoryFilterText()

void MainWindow::setRepositoryFilterText ( const QString &  text)
private

◆ setRepositoryInfo()

void MainWindow::setRepositoryInfo ( QString const &  reponame,
QString const &  brname 
)
private

◆ setShowGraph()

void MainWindow::setShowGraph ( bool  show,
bool  save 
)
Here is the call graph for this function:

◆ setShowLabels()

void MainWindow::setShowLabels ( bool  show,
bool  save 
)
Here is the call graph for this function:

◆ setSshCommand()

void MainWindow::setSshCommand ( const QString &  path,
bool  save 
)
private

MainWindow::setSshCommand.

Parameters
pathパス
save保存する

sshコマンドのパスを設定する

Here is the call graph for this function:

◆ setStatusBarText()

void MainWindow::setStatusBarText ( QString const &  text)

◆ setSubmodules()

void MainWindow::setSubmodules ( const QList< Git::SubmoduleItem > &  submodules)
private
Here is the call graph for this function:

◆ setUncommitedChanges()

void MainWindow::setUncommitedChanges ( bool  uncommited_changes)
private

◆ setUnknownRepositoryInfo()

void MainWindow::setUnknownRepositoryInfo ( )
private
Here is the call graph for this function:

◆ setupExternalPrograms()

void MainWindow::setupExternalPrograms ( )
Here is the call graph for this function:

◆ setWindowTitle_()

void MainWindow::setWindowTitle_ ( const Git::User user)
private
Here is the call graph for this function:

◆ showFileList()

void MainWindow::showFileList ( FilesListType  files_list_type)
private

ファイルリストの表示切り替え

Parameters
files_list_type
Here is the call graph for this function:

◆ showLogWindow()

void MainWindow::showLogWindow ( bool  show)
private

◆ shown()

bool MainWindow::shown ( )
Here is the call graph for this function:

◆ showObjectProperty()

void MainWindow::showObjectProperty ( QListWidgetItem *  item)

オブジェクトプロパティ

Parameters
item
Here is the call graph for this function:

◆ showStatus()

void MainWindow::showStatus ( )
private
Here is the call graph for this function:

◆ signalWriteLog

void MainWindow::signalWriteLog ( QByteArray  ba,
bool  receive 
)
signal

◆ signatureVerificationIcon()

QIcon MainWindow::signatureVerificationIcon ( const Git::CommitID id) const

MainWindow::signatureVerificationIcon.

Parameters
idコミットID

コミットの署名検証結果に応じたアイコンを返す

Here is the call graph for this function:

◆ sortedLabels()

QList< BranchLabel > MainWindow::sortedLabels ( RepositoryWrapperFrame frame,
int  row 
) const
private
Here is the call graph for this function:

◆ sshPassphrasePass()

std::string MainWindow::sshPassphrasePass ( ) const
private

◆ sshPassphraseUser()

std::string MainWindow::sshPassphraseUser ( ) const
private

◆ sshSetPassphrase()

void MainWindow::sshSetPassphrase ( const std::string &  user,
const std::string &  pass 
)
private

◆ startTimers()

void MainWindow::startTimers ( )
private

インターバルタイマを開始する

Here is the call graph for this function:

◆ stopPtyProcess()

void MainWindow::stopPtyProcess ( )
private
Here is the call graph for this function:

◆ submodule_add()

void MainWindow::submodule_add ( QString  url = {},
const QString &  local_dir = {} 
)
private

MainWindow::submodule_add.

Parameters
urlURL
local_dirローカルディレクトリ

サブモジュールを追加する

Here is the call graph for this function:

◆ submodules()

const QList< Git::SubmoduleItem > & MainWindow::submodules ( ) const
private

◆ tempfileHeader()

QString MainWindow::tempfileHeader ( ) const
private

◆ test

void MainWindow::test ( )
privateslot
Here is the call graph for this function:

◆ testRemoteRepositoryValidity()

bool MainWindow::testRemoteRepositoryValidity ( const QString &  url,
const QString &  sshkey 
)
Here is the call graph for this function:

◆ themeForTextEditor()

TextEditorThemePtr MainWindow::themeForTextEditor ( )

◆ updateAncestorCommitMap()

void MainWindow::updateAncestorCommitMap ( RepositoryWrapperFrame frame)
Here is the call graph for this function:

◆ updateAvatar()

void MainWindow::updateAvatar ( const Git::User user,
bool  request 
)
private
Here is the call graph for this function:

◆ updateButton

void MainWindow::updateButton ( )
signal

◆ updateCommitGraph()

void MainWindow::updateCommitGraph ( RepositoryWrapperFrame frame)
private

MainWindow::updateCommitGraph.

Parameters
frame樹形図情報を構築する
Here is the call graph for this function:

◆ updateCommitLogTable() [1/2]

void MainWindow::updateCommitLogTable ( int  delay_ms)
Here is the call graph for this function:

◆ updateCommitLogTable() [2/2]

void MainWindow::updateCommitLogTable ( RepositoryWrapperFrame frame,
int  delay_ms 
)

MainWindow::updateCommitLogTable.

Parameters
frame
delay_msコミットログテーブルを更新する
Here is the call graph for this function:

◆ updateCurrentFilesList()

void MainWindow::updateCurrentFilesList ( RepositoryWrapperFrame frame)
Here is the call graph for this function:

◆ updateDiffView() [1/2]

void MainWindow::updateDiffView ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ updateDiffView() [2/2]

void MainWindow::updateDiffView ( RepositoryWrapperFrame frame,
QListWidgetItem *  item 
)
private

ファイル差分表示を更新する

Parameters
item
Here is the call graph for this function:

◆ updateFilesList() [1/2]

void MainWindow::updateFilesList ( RepositoryWrapperFrame frame,
Git::CommitItem const &  commit,
bool  wait 
)
private
Here is the call graph for this function:

◆ updateFilesList() [2/2]

void MainWindow::updateFilesList ( RepositoryWrapperFrame frame,
QString const &  id,
bool  wait 
)
private

ファイルリストを更新

Parameters
idコミットID
wait
Here is the call graph for this function:

◆ updateFilesList2()

void MainWindow::updateFilesList2 ( RepositoryWrapperFrame frame,
const Git::CommitID id,
QList< Git::Diff > *  diff_list,
QListWidget *  listwidget 
)

ファイルリストを更新

Parameters
id
diff_list
listwidget
Here is the call graph for this function:

◆ updatePocessLog()

void MainWindow::updatePocessLog ( bool  processevents)
private

PTYプロセスの出力をログに書き込む

Here is the call graph for this function:

◆ updateRemoteInfo()

void MainWindow::updateRemoteInfo ( )
private

MainWindow::updateRemoteInfo.

リモート情報を更新する

Here is the call graph for this function:

◆ updateRepositoriesList()

void MainWindow::updateRepositoriesList ( )
private

リポジトリリストを更新

Here is the call graph for this function:

◆ updateRepository()

void MainWindow::updateRepository ( )
private

MainWindow::updateRepository.

リポジトリを更新する

Here is the call graph for this function:

◆ updateStagedFileCurrentItem()

void MainWindow::updateStagedFileCurrentItem ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ updateStatusBarText()

void MainWindow::updateStatusBarText ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ updateSubmodules()

void MainWindow::updateSubmodules ( GitPtr  g,
const QString &  id,
QList< Git::SubmoduleItem > *  out 
)
staticprivate

指定のコミットにおけるサブモジュールリストを取得

Parameters
g
id
out
Here is the call graph for this function:

◆ updateUI

void MainWindow::updateUI ( )
privateslot
Here is the call graph for this function:

◆ updateUncommitedChanges()

void MainWindow::updateUncommitedChanges ( )
private
Here is the call graph for this function:

◆ updateUnstagedFileCurrentItem()

void MainWindow::updateUnstagedFileCurrentItem ( RepositoryWrapperFrame frame)
private
Here is the call graph for this function:

◆ updateWindowTitle()

void MainWindow::updateWindowTitle ( GitPtr  g)
private
Here is the call graph for this function:

◆ whichCommand_()

QStringList MainWindow::whichCommand_ ( const QString &  cmdfile1,
const QString &  cmdfile2 = {} 
)
private
Here is the call graph for this function:

◆ writeLog() [1/2]

void MainWindow::writeLog ( const char *  ptr,
int  len,
bool  record 
)
private
Here is the call graph for this function:

◆ writeLog() [2/2]

void MainWindow::writeLog ( const QString &  str,
bool  record 
)
private
Here is the call graph for this function:

◆ writeLog_

void MainWindow::writeLog_ ( QByteArray  ba,
bool  receive 
)
slot
Here is the call graph for this function:

Friends And Related Function Documentation

◆ AboutDialog

friend class AboutDialog
friend

◆ FileDiffSliderWidget

friend class FileDiffSliderWidget
friend

◆ FileDiffWidget

friend class FileDiffWidget
friend

◆ FileHistoryWindow

friend class FileHistoryWindow
friend

◆ ImageViewWidget

friend class ImageViewWidget
friend

◆ RepositoryWrapperFrame

friend class RepositoryWrapperFrame
friend

◆ SubmoduleMainWindow

friend class SubmoduleMainWindow
friend

Member Data Documentation

◆ DIGIT_HEIGHT

constexpr int MainWindow::DIGIT_HEIGHT = 7
staticconstexpr

◆ DIGIT_WIDTH

constexpr int MainWindow::DIGIT_WIDTH = 5
staticconstexpr

◆ m

Private* MainWindow::m
private

◆ ui

Ui::MainWindow* MainWindow::ui
private

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