The FileDiffWidget class サイドバイサイドで2つのファイルのdiffを表示するウィジェット
More...
#include <FileDiffWidget.h>
|
| void | setSideBySideDiff (const GitDiff &diff, QByteArray const &ba, bool uncommitted, QString const &workingdir) |
| |
| void | setInlineDiff (GitDiff const &diff, QByteArray const &ba, bool uncommitted, QString const &workingdir) |
| |
| void | setSideBySideBlobDiff (const GitDiff &diff, QByteArray const &ba_a, QByteArray const &ba_b, bool uncommitted, QString const &workingdir) |
| |
| bool | isValidID (std::string const &id) |
| | コミットIDの検証 More...
|
| |
| FileViewType | setupPreviewWidget () |
| | テキストか画像かでビューを切り替える More...
|
| |
| void | onUpdateSliderBar () |
| |
| void | reflectScrollBar () |
| | スクロールバーの状態を反映 More...
|
| |
| void | reflectScrollBarV () |
| | 縦スクロールバーの状態を反映 More...
|
| |
| void | reflectScrollBarH () |
| | 横スクロールバーの状態を反映 More...
|
| |
| void | setOriginalLines_ (QByteArray const &ba, const GitSubmoduleItem *submodule, const GitCommitItem *submodule_commit) |
| |
| std::string | diffObjects (const std::string &a_id, const std::string &b_id) |
| |
| bool | setSubmodule (const GitDiff &diff) |
| |
| | FileDiffWidget (QWidget *parent=nullptr) |
| |
| | ~FileDiffWidget () override |
| |
| void | init () |
| | スクロールバーのセットアップ More...
|
| |
| void | clearDiffView () |
| |
| void | updateControls () |
| |
| void | scrollToBottom () |
| |
| void | updateDiffView (const GitDiff &info, bool uncommited) |
| | 差分ビューを更新 More...
|
| |
| void | updateDiffView (const std::string &id_left, const std::string &id_right, const std::string &path) |
| | 差分ビューを更新 More...
|
| |
| void | setMaximizeButtonEnabled (bool f) |
| |
| void | setFocusAcceptable (Qt::FocusPolicy focuspolicy) |
| |
| QPixmap | makeDiffPixmap (DiffPane pane, int width, int height) |
| |
| void | setViewType (FileViewType type) |
| |
|
| MainWindow * | mainwindow () |
| |
| ViewStyle | viewstyle () const |
| |
| void | setViewStyle (ViewStyle diffstyle) |
| |
| GitRunner | git () |
| |
| GitObject | catFile (GitRunner g, const std::string &id) |
| |
| int | totalTextLines () const |
| |
| void | resetScrollBarValue () |
| |
| void | updateSliderCursor () |
| |
| int | fileviewHeight () const |
| |
| void | setDiffText (GitDiff const &diff, TextDiffData const &data) |
| |
| void | setLeftOnlyDiff (const GitDiff &diff, QByteArray const &ba, bool uncommited, QString const &workingdir) |
| |
| void | setRightOnlyDiff (const GitDiff &diff, QByteArray const &ba, bool uncommited, const QString &workingdir) |
| |
| TextDiffData | makeSideBySideDiffData (const GitDiff &diff, const std::vector< std::string > &original_lines) |
| |
| void | _setDiff (ViewStyle viewstyle, const GitDiff &diff, QByteArray const &ba, bool uncommitted, QString const &workingdir) |
| |
| bool | isSideBySideView () const |
| |
The FileDiffWidget class サイドバイサイドで2つのファイルのdiffを表示するウィジェット
◆ ViewStyle
| Enumerator |
|---|
| None | |
| LeftOnly | |
| RightOnly | |
| InlineTextDiff | |
| SideBySideTextDiff | |
| SideBySideBinaryDiff | |
◆ FileDiffWidget()
| FileDiffWidget::FileDiffWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~FileDiffWidget()
| FileDiffWidget::~FileDiffWidget |
( |
| ) |
|
|
override |
◆ _setDiff()
| void FileDiffWidget::_setDiff |
( |
ViewStyle |
viewstyle, |
|
|
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba, |
|
|
bool |
uncommitted, |
|
|
QString const & |
workingdir |
|
) |
| |
|
private |
◆ catFile()
◆ clearDiffView()
| void FileDiffWidget::clearDiffView |
( |
| ) |
|
◆ diffObjects()
| std::string FileDiffWidget::diffObjects |
( |
const std::string & |
a_id, |
|
|
const std::string & |
b_id |
|
) |
| |
◆ fileviewHeight()
| int FileDiffWidget::fileviewHeight |
( |
| ) |
const |
|
private |
◆ git()
◆ init()
| void FileDiffWidget::init |
( |
| ) |
|
スクロールバーのセットアップ
- Parameters
-
◆ isSideBySideView()
| bool FileDiffWidget::isSideBySideView |
( |
| ) |
const |
|
private |
◆ isValidID()
| bool FileDiffWidget::isValidID |
( |
std::string const & |
id | ) |
|
コミットIDの検証
- Parameters
-
- Returns
◆ keyPressEvent()
| void FileDiffWidget::keyPressEvent |
( |
QKeyEvent * |
event | ) |
|
|
overrideprotected |
◆ mainwindow()
◆ makeDiffPixmap()
| QPixmap FileDiffWidget::makeDiffPixmap |
( |
DiffPane |
pane, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
◆ makeSideBySideDiffData()
◆ on_toolButton_fullscreen_clicked
| void FileDiffWidget::on_toolButton_fullscreen_clicked |
( |
| ) |
|
|
privateslot |
◆ on_toolButton_menu_clicked
| void FileDiffWidget::on_toolButton_menu_clicked |
( |
| ) |
|
|
privateslot |
◆ onDiffWidgetResized
| void FileDiffWidget::onDiffWidgetResized |
( |
| ) |
|
|
privateslot |
◆ onDiffWidgetWheelScroll
| void FileDiffWidget::onDiffWidgetWheelScroll |
( |
int |
lines | ) |
|
|
privateslot |
◆ onHorizontalScrollValueChanged
| void FileDiffWidget::onHorizontalScrollValueChanged |
( |
int |
value | ) |
|
|
privateslot |
◆ onHorizontalScrollValueChanged_inline
| void FileDiffWidget::onHorizontalScrollValueChanged_inline |
( |
int |
value | ) |
|
|
privateslot |
◆ onMoved
| void FileDiffWidget::onMoved |
( |
int |
cur_row, |
|
|
int |
cur_col, |
|
|
int |
scr_row, |
|
|
int |
scr_col |
|
) |
| |
|
privateslot |
スクロール位置の行と桁を設定
- Parameters
-
| cur_row | |
| cur_col | |
| scr_row | |
| scr_col | |
◆ onUpdateSliderBar()
| void FileDiffWidget::onUpdateSliderBar |
( |
| ) |
|
◆ onVerticalScrollValueChanged
| void FileDiffWidget::onVerticalScrollValueChanged |
( |
int |
value | ) |
|
|
privateslot |
◆ onVerticalScrollValueChanged_inline
| void FileDiffWidget::onVerticalScrollValueChanged_inline |
( |
int |
value | ) |
|
|
privateslot |
◆ reflectScrollBar()
| void FileDiffWidget::reflectScrollBar |
( |
| ) |
|
◆ reflectScrollBarH()
| void FileDiffWidget::reflectScrollBarH |
( |
| ) |
|
◆ reflectScrollBarV()
| void FileDiffWidget::reflectScrollBarV |
( |
| ) |
|
◆ resetScrollBarValue()
| void FileDiffWidget::resetScrollBarValue |
( |
| ) |
|
|
private |
◆ resizeEvent()
| void FileDiffWidget::resizeEvent |
( |
QResizeEvent * |
| ) |
|
|
overrideprotected |
◆ scrollTo
| void FileDiffWidget::scrollTo |
( |
int |
value | ) |
|
|
privateslot |
◆ scrollToBottom()
| void FileDiffWidget::scrollToBottom |
( |
| ) |
|
◆ setDiffText()
◆ setFocusAcceptable()
| void FileDiffWidget::setFocusAcceptable |
( |
Qt::FocusPolicy |
focuspolicy | ) |
|
◆ setInlineDiff()
| void FileDiffWidget::setInlineDiff |
( |
GitDiff const & |
diff, |
|
|
QByteArray const & |
ba, |
|
|
bool |
uncommitted, |
|
|
QString const & |
workingdir |
|
) |
| |
◆ setLeftOnlyDiff()
| void FileDiffWidget::setLeftOnlyDiff |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba, |
|
|
bool |
uncommited, |
|
|
QString const & |
workingdir |
|
) |
| |
|
private |
◆ setMaximizeButtonEnabled()
| void FileDiffWidget::setMaximizeButtonEnabled |
( |
bool |
f | ) |
|
◆ setOriginalLines_()
◆ setRightOnlyDiff()
| void FileDiffWidget::setRightOnlyDiff |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba, |
|
|
bool |
uncommited, |
|
|
const QString & |
workingdir |
|
) |
| |
|
private |
◆ setSideBySideBlobDiff()
| void FileDiffWidget::setSideBySideBlobDiff |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba_a, |
|
|
QByteArray const & |
ba_b, |
|
|
bool |
uncommitted, |
|
|
QString const & |
workingdir |
|
) |
| |
◆ setSideBySideDiff()
| void FileDiffWidget::setSideBySideDiff |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba, |
|
|
bool |
uncommitted, |
|
|
QString const & |
workingdir |
|
) |
| |
◆ setSubmodule()
| bool FileDiffWidget::setSubmodule |
( |
const GitDiff & |
diff | ) |
|
◆ setupPreviewWidget()
テキストか画像かでビューを切り替える
- Returns
◆ setViewStyle()
| void FileDiffWidget::setViewStyle |
( |
ViewStyle |
diffstyle | ) |
|
|
private |
◆ setViewType()
◆ textcodecChanged
| void FileDiffWidget::textcodecChanged |
( |
| ) |
|
|
signal |
◆ totalTextLines()
| int FileDiffWidget::totalTextLines |
( |
| ) |
const |
|
private |
◆ updateControls()
| void FileDiffWidget::updateControls |
( |
| ) |
|
◆ updateDiffView() [1/2]
| void FileDiffWidget::updateDiffView |
( |
const GitDiff & |
info, |
|
|
bool |
uncommited |
|
) |
| |
◆ updateDiffView() [2/2]
| void FileDiffWidget::updateDiffView |
( |
const std::string & |
id_left, |
|
|
const std::string & |
id_right, |
|
|
const std::string & |
path |
|
) |
| |
◆ updateSliderCursor()
| void FileDiffWidget::updateSliderCursor |
( |
| ) |
|
|
private |
◆ viewstyle()
◆ BigDiffWindow
◆ ui
| Ui::FileDiffWidget* FileDiffWidget::ui |
|
private |
The documentation for this class was generated from the following files: