#include <domain.h>
Public Types | |
| enum | Field { SHA = 1, FILE_NAME = 2, DIFF_TO_SHA = 4, ALL_MERGE_FILES = 8, ANY = 15 } |
Public Member Functions | |
| StateInfo () | |
| StateInfo & | operator= (const StateInfo &newState) |
| bool | operator== (const StateInfo &newState) const |
| bool | operator!= (const StateInfo &newState) const |
| void | clear () |
| const QString | sha (bool n=true) const |
| const QString | fileName (bool n=true) const |
| const QString | diffToSha (bool n=true) const |
| bool | selectItem (bool n=true) const |
| bool | isMerge (bool n=true) const |
| bool | allMergeFiles (bool n=true) const |
| void | setSha (const QString &s) |
| void | setFileName (const QString &s) |
| void | setDiffToSha (const QString &s) |
| void | setSelectItem (bool b) |
| void | setIsMerge (bool b) |
| void | setAllMergeFiles (bool b) |
| bool | isChanged (uint what=ANY) const |
Private Member Functions | |
| bool | requestPending () const |
| void | setLock (bool b) |
| void | commit () |
| void | rollBack () |
| bool | flushQueue () |
Private Attributes | |
| S | curS |
| S | prevS |
| S | nextS |
| bool | isLocked |
Friends | |
| class | Domain |
Classes | |
| class | S |
Definition at line 31 of file domain.h.
| enum Field |
Definition at line 49 of file domain.cpp.
| bool operator== | ( | const StateInfo & | newState | ) | const |
| bool operator!= | ( | const StateInfo & | newState | ) | const |
Definition at line 68 of file domain.cpp.
| void clear | ( | ) |
Definition at line 41 of file domain.cpp.
Referenced by RevsView::clear(), PatchView::clear(), FileView::clear(), Domain::Domain(), and StateInfo().
| const QString sha | ( | bool | n = true |
) | const [inline] |
Definition at line 38 of file domain.h.
Referenced by MainImpl::ActCheckWorkDir_toggled(), MainImpl::ActSaveFile_activated(), PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), FileView::doUpdate(), ListView::filterRightButtonPressed(), MainImpl::getExternalDiffArgs(), isChanged(), FileContent::lookupAnnotation(), Domain::on_contextMenu(), ListView::on_currentChanged(), RevsView::on_loadCompleted(), FileView::on_spinBoxRevision_valueChanged(), RevsView::on_updateRevDesc(), PatchView::on_updateRevDesc(), Domain::populateState(), FileContent::rangeFilter(), TreeView::update(), ListView::update(), ListBoxFiles::update(), FileContent::update(), RevsView::updateLineEditSHA(), and PatchView::updatePatch().
| const QString fileName | ( | bool | n = true |
) | const [inline] |
Definition at line 39 of file domain.h.
Referenced by MainImpl::ActSaveFile_activated(), PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), FileView::doUpdate(), MainImpl::getExternalDiffArgs(), isChanged(), FileContent::lookupAnnotation(), FileContent::on_annotateReady(), TreeView::on_currentChanged(), ListBoxFiles::on_currentChanged(), TreeView::update(), ListBoxFiles::update(), FileContent::update(), and FileView::updateProgressBar().
| const QString diffToSha | ( | bool | n = true |
) | const [inline] |
Definition at line 40 of file domain.h.
Referenced by PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), ListView::filterRightButtonPressed(), MainImpl::getExternalDiffArgs(), isChanged(), PatchView::on_buttonGroupDiff_clicked(), ListView::update(), ListBoxFiles::update(), and PatchView::updatePatch().
| bool selectItem | ( | bool | n = true |
) | const [inline] |
Definition at line 41 of file domain.h.
Referenced by RevsView::doUpdate(), ListView::update(), and ListBoxFiles::update().
| bool isMerge | ( | bool | n = true |
) | const [inline] |
Definition at line 42 of file domain.h.
Referenced by PatchView::centerOnFileHeader(), ListBoxFiles::insertFiles(), ListBoxFiles::on_contextMenuRequested(), ListBoxFiles::on_currentChanged(), MainImpl::on_fileList_doubleClicked(), and PatchView::updatePatch().
| bool allMergeFiles | ( | bool | n = true |
) | const [inline] |
Definition at line 43 of file domain.h.
Referenced by PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), ListBoxFiles::insertFiles(), isChanged(), ListBoxFiles::on_currentChanged(), ListBoxFiles::update(), and PatchView::updatePatch().
| void setSha | ( | const QString & | s | ) | [inline] |
Definition at line 44 of file domain.h.
Referenced by RevsView::doUpdate(), MainImpl::filterList(), MainImpl::lineEditSHA_returnPressed(), ListView::on_currentChanged(), MainImpl::on_goRef_activated(), RevsView::on_lanesContextMenuRequested(), RevDesc::on_linkClicked(), RevsView::on_loadCompleted(), and FileView::on_spinBoxRevision_valueChanged().
| void setFileName | ( | const QString & | s | ) | [inline] |
Definition at line 45 of file domain.h.
Referenced by TreeView::on_currentChanged(), and ListBoxFiles::on_currentChanged().
| void setDiffToSha | ( | const QString & | s | ) | [inline] |
Definition at line 46 of file domain.h.
Referenced by ListView::filterRightButtonPressed(), and PatchView::on_buttonGroupDiff_clicked().
| void setSelectItem | ( | bool | b | ) | [inline] |
Definition at line 47 of file domain.h.
Referenced by TreeView::on_currentChanged(), ListView::on_currentChanged(), ListBoxFiles::on_currentChanged(), RevsView::on_loadCompleted(), and FileView::on_spinBoxRevision_valueChanged().
| void setIsMerge | ( | bool | b | ) | [inline] |
| void setAllMergeFiles | ( | bool | b | ) | [inline] |
| bool isChanged | ( | uint | what = ANY |
) | const |
Definition at line 73 of file domain.cpp.
Referenced by RevsView::doUpdate(), PatchView::doUpdate(), and FileView::doUpdate().
| bool requestPending | ( | ) | const [inline, private] |
Definition at line 63 of file domain.h.
Referenced by Domain::customEvent(), flushQueue(), and Domain::update().
| void setLock | ( | bool | b | ) | [inline, private] |
| void commit | ( | ) | [inline, private] |
| void rollBack | ( | ) | [inline, private] |
| bool flushQueue | ( | ) | [inline, private] |
Definition at line 93 of file domain.h.
Referenced by allMergeFiles(), clear(), commit(), diffToSha(), fileName(), flushQueue(), isMerge(), operator=(), operator==(), requestPending(), rollBack(), selectItem(), setAllMergeFiles(), setDiffToSha(), setFileName(), setIsMerge(), setLock(), setSelectItem(), setSha(), and sha().
Definition at line 94 of file domain.h.
Referenced by allMergeFiles(), clear(), commit(), diffToSha(), fileName(), isMerge(), rollBack(), selectItem(), and sha().
Definition at line 95 of file domain.h.
Referenced by clear(), flushQueue(), operator=(), requestPending(), rollBack(), setAllMergeFiles(), setDiffToSha(), setFileName(), setIsMerge(), setLock(), setSelectItem(), and setSha().
bool isLocked [private] |
Definition at line 96 of file domain.h.
Referenced by clear(), operator=(), setAllMergeFiles(), setDiffToSha(), setFileName(), setIsMerge(), setLock(), setSelectItem(), and setSha().
1.5.3