The FileDiffWidget class サイドバイサイドで2つのファイルのdiffを表示するウィジェット
More...
#include <FileDiffWidget.h>
|
| MainWindow * | mainwindow () |
| |
| ViewStyle | viewstyle () const |
| |
| GitRunner | git () |
| |
| GitObject | catFile (GitRunner g, QString const &id) |
| |
| int | totalTextLines () const |
| |
| void | resetScrollBarValue () |
| |
| void | updateSliderCursor () |
| |
| int | fileviewHeight () const |
| |
| void | setDiffText (const GitDiff &diff, TextDiffLineList const &left, TextDiffLineList const &right) |
| |
| void | setLeftOnly (const GitDiff &diff, QByteArray const &ba) |
| |
| void | setRightOnly (const GitDiff &diff, QByteArray const &ba) |
| |
| void | setSideBySide (const GitDiff &diff, QByteArray const &ba, bool uncommited, QString const &workingdir) |
| |
| void | setSideBySide_ (const GitDiff &diff, QByteArray const &ba_a, QByteArray const &ba_b, QString const &workingdir) |
| |
| bool | isValidID_ (QString const &id) |
| | コミットIDの検証 More...
|
| |
| FileViewType | setupPreviewWidget () |
| | テキストか画像かでビューを切り替える More...
|
| |
| void | makeSideBySideDiffData (const GitDiff &diff, const std::vector< std::string > &original_lines, TextDiffLineList *left_lines, TextDiffLineList *right_lines) |
| |
| void | onUpdateSliderBar () |
| |
| void | refrectScrollBar () |
| | スクロールバーの状態を反映 More...
|
| |
| void | refrectScrollBarV () |
| | 縦スクロールバーの状態を反映 More...
|
| |
| void | refrectScrollBarH () |
| | 横スクロールバーの状態を反映 More...
|
| |
| void | setOriginalLines_ (QByteArray const &ba, const GitSubmoduleItem *submodule, const GitCommitItem *submodule_commit) |
| |
| QString | diffObjects (QString const &a_id, QString const &b_id) |
| |
| bool | setSubmodule (const GitDiff &diff) |
| |
The FileDiffWidget class サイドバイサイドで2つのファイルのdiffを表示するウィジェット
◆ ViewStyle
| Enumerator |
|---|
| None | |
| SingleFile | |
| LeftOnly | |
| RightOnly | |
| SideBySideText | |
| SideBySideImage | |
◆ FileDiffWidget()
| FileDiffWidget::FileDiffWidget |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ ~FileDiffWidget()
| FileDiffWidget::~FileDiffWidget |
( |
| ) |
|
|
override |
◆ catFile()
◆ clearDiffView()
| void FileDiffWidget::clearDiffView |
( |
| ) |
|
◆ diffObjects()
| QString FileDiffWidget::diffObjects |
( |
QString const & |
a_id, |
|
|
QString const & |
b_id |
|
) |
| |
|
private |
◆ fileviewHeight()
| int FileDiffWidget::fileviewHeight |
( |
| ) |
const |
|
private |
◆ git()
◆ init()
| void FileDiffWidget::init |
( |
| ) |
|
スクロールバーのセットアップ
- Parameters
-
◆ isValidID_()
| bool FileDiffWidget::isValidID_ |
( |
QString const & |
id | ) |
|
|
private |
コミット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 |
| ) |
|
|
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 | |
◆ onScrollValueChanged2
| void FileDiffWidget::onScrollValueChanged2 |
( |
int |
value | ) |
|
|
privateslot |
◆ onUpdateSliderBar()
| void FileDiffWidget::onUpdateSliderBar |
( |
| ) |
|
|
private |
◆ onVerticalScrollValueChanged
| void FileDiffWidget::onVerticalScrollValueChanged |
( |
int |
| ) |
|
|
privateslot |
◆ refrectScrollBar()
| void FileDiffWidget::refrectScrollBar |
( |
| ) |
|
|
private |
◆ refrectScrollBarH()
| void FileDiffWidget::refrectScrollBarH |
( |
| ) |
|
|
private |
◆ refrectScrollBarV()
| void FileDiffWidget::refrectScrollBarV |
( |
| ) |
|
|
private |
◆ 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 | ) |
|
◆ setLeftOnly()
| void FileDiffWidget::setLeftOnly |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba |
|
) |
| |
|
private |
◆ setMaximizeButtonEnabled()
| void FileDiffWidget::setMaximizeButtonEnabled |
( |
bool |
f | ) |
|
◆ setOriginalLines_()
◆ setRightOnly()
| void FileDiffWidget::setRightOnly |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba |
|
) |
| |
|
private |
◆ setSideBySide()
| void FileDiffWidget::setSideBySide |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba, |
|
|
bool |
uncommited, |
|
|
QString const & |
workingdir |
|
) |
| |
|
private |
◆ setSideBySide_()
| void FileDiffWidget::setSideBySide_ |
( |
const GitDiff & |
diff, |
|
|
QByteArray const & |
ba_a, |
|
|
QByteArray const & |
ba_b, |
|
|
QString const & |
workingdir |
|
) |
| |
|
private |
◆ setSingleFile()
| void FileDiffWidget::setSingleFile |
( |
QByteArray const & |
ba, |
|
|
QString const & |
id, |
|
|
QString const & |
path |
|
) |
| |
◆ setSubmodule()
| bool FileDiffWidget::setSubmodule |
( |
const GitDiff & |
diff | ) |
|
|
private |
◆ setTextCodec() [1/2]
| void FileDiffWidget::setTextCodec |
( |
char const * |
name | ) |
|
◆ setTextCodec() [2/2]
| void FileDiffWidget::setTextCodec |
( |
std::shared_ptr< MyTextCodec > |
codec | ) |
|
◆ setupPreviewWidget()
テキストか画像かでビューを切り替える
- Returns
◆ setViewType()
◆ textcodecChanged
| void FileDiffWidget::textcodecChanged |
( |
| ) |
|
|
signal |
◆ totalTextLines()
| int FileDiffWidget::totalTextLines |
( |
| ) |
const |
|
private |
◆ updateControls()
| void FileDiffWidget::updateControls |
( |
| ) |
|
◆ updateDiffView()
| void FileDiffWidget::updateDiffView |
( |
const GitDiff & |
info, |
|
|
bool |
uncommited |
|
) |
| |
◆ updateDiffView_()
| void FileDiffWidget::updateDiffView_ |
( |
const QString & |
id_left, |
|
|
const QString & |
id_right, |
|
|
QString const & |
path = QString() |
|
) |
| |
◆ updateSliderCursor()
| void FileDiffWidget::updateSliderCursor |
( |
| ) |
|
|
private |
◆ viewstyle()
◆ BigDiffWindow
◆ ui
| Ui::FileDiffWidget* FileDiffWidget::ui |
|
private |
The documentation for this class was generated from the following files: