FileView Class Reference

#include <fileview.h>

Inheritance diagram for FileView:

Domain

List of all members.

Public Slots

void on_toolButtonCopy_clicked ()
void on_toolButtonShowAnnotate_toggled (bool)
void on_toolButtonFindAnnotate_toggled (bool)
void on_toolButtonRangeFilter_toggled (bool)
void on_toolButtonPin_toggled (bool)
void on_toolButtonHighlightText_toggled (bool)
void on_spinBoxRevision_valueChanged (int)
void on_loadCompleted (const FileHistory *, const QString &)
void on_annotationAvailable (bool)
void on_fileAvailable (bool)
void on_revIdSelected (int)
void on_closeAllTabs ()

Signals

void updateRequested (StateInfo newSt)
void cancelDomainProcesses ()

Public Member Functions

 FileView ()
 FileView (MainImpl *m, Git *git)
 ~FileView ()
void append (SCRef data)
void clear (bool complete=true)
void historyReady ()
void updateHistViewer (SCRef revSha, SCRef fileName, bool fromUpstream=true)
void eof ()
virtual TabFile * tab ()
void deleteWhenDone ()
void setThrowOnDelete (bool b)
bool isThrowOnDeleteRaised (int excpId, SCRef curContext)
MainImplm () const
const QString dragHostName () const
bool isReadyToDrag () const
bool setReadyToDrag (bool b)
bool isDragging () const
bool setDragging (bool b)
bool isDropping () const
void setDropping (bool b)
bool isLinked () const
int tabPos () const

Public Attributes

StateInfo st

Protected Slots

virtual void on_contextMenu (const QString &, int)
void on_tabClosed (int)
void on_updateRequested (StateInfo newSt)
void on_deleteWhenDone ()

Protected Member Functions

virtual void customEvent (QCustomEvent *e)
virtual bool doUpdate (bool force)
void linkDomain (Domain *d)
void unlinkDomain (Domain *d)

Protected Attributes

Gitgit
bool busy
int tabPosition

Private Member Functions

void showAnnotation ()
bool goToCurrentAnnotation ()
void updateProgressBar (int annotatedNum)
void filterOnRange (bool b)
void updateSpinBoxValue ()
void updateEnabledButtons ()

Private Attributes

TabFile * fileTab
ListViewhistListView
FileContenttextEditFile
FileHistoryfh
bool annotateAvailable
bool fileAvailable

Friends

class MainImpl
class FileHighlighter


Detailed Description

Definition at line 23 of file fileview.h.


Constructor & Destructor Documentation

FileView (  )  [inline]

Definition at line 26 of file fileview.h.

FileView ( MainImpl m,
Git git 
)

Definition at line 34 of file fileview.cpp.

~FileView (  ) 

Definition at line 92 of file fileview.cpp.


Member Function Documentation

void append ( SCRef  data  ) 

void clear ( bool  complete = true  ) 

Definition at line 109 of file fileview.cpp.

Referenced by doUpdate(), and FileView().

void historyReady (  ) 

void updateHistViewer ( SCRef  revSha,
SCRef  fileName,
bool  fromUpstream = true 
)

void eof (  ) 

virtual TabFile* tab (  )  [inline, virtual]

Implements Domain.

Definition at line 34 of file fileview.h.

Referenced by MainImpl::ActSplitView_activated(), and MainImpl::openFileTab().

void on_toolButtonCopy_clicked (  )  [slot]

Definition at line 206 of file fileview.cpp.

Referenced by FileView().

void on_toolButtonShowAnnotate_toggled ( bool  b  )  [slot]

Definition at line 211 of file fileview.cpp.

Referenced by FileView().

void on_toolButtonFindAnnotate_toggled ( bool  b  )  [slot]

Definition at line 220 of file fileview.cpp.

Referenced by FileView().

void on_toolButtonRangeFilter_toggled ( bool  b  )  [slot]

Definition at line 238 of file fileview.cpp.

Referenced by FileView().

void on_toolButtonPin_toggled ( bool  b  )  [slot]

Definition at line 227 of file fileview.cpp.

Referenced by FileView().

void on_toolButtonHighlightText_toggled ( bool  b  )  [slot]

Definition at line 255 of file fileview.cpp.

Referenced by FileView().

void on_spinBoxRevision_valueChanged ( int  id  )  [slot]

Definition at line 261 of file fileview.cpp.

Referenced by FileView().

void on_loadCompleted ( const FileHistory f,
const QString &   
) [slot]

Definition at line 275 of file fileview.cpp.

Referenced by FileView().

void on_annotationAvailable ( bool  b  )  [slot]

Definition at line 313 of file fileview.cpp.

Referenced by FileView().

void on_fileAvailable ( bool  b  )  [slot]

Definition at line 322 of file fileview.cpp.

Referenced by FileView().

void on_revIdSelected ( int  id  )  [slot]

Definition at line 336 of file fileview.cpp.

Referenced by FileView().

void customEvent ( QCustomEvent *  e  )  [protected, virtual]

Reimplemented from Domain.

Definition at line 353 of file fileview.cpp.

bool doUpdate ( bool  force  )  [protected, virtual]

Implements Domain.

Definition at line 146 of file fileview.cpp.

void showAnnotation (  )  [private]

Definition at line 298 of file fileview.cpp.

Referenced by on_annotationAvailable(), and on_fileAvailable().

bool goToCurrentAnnotation (  )  [private]

Definition at line 128 of file fileview.cpp.

Referenced by on_toolButtonFindAnnotate_toggled(), on_toolButtonShowAnnotate_toggled(), and showAnnotation().

void updateProgressBar ( int  annotatedNum  )  [private]

Definition at line 361 of file fileview.cpp.

Referenced by customEvent(), and on_loadCompleted().

void filterOnRange ( bool  b  )  [private]

Definition at line 377 of file fileview.cpp.

Referenced by on_toolButtonRangeFilter_toggled().

void updateSpinBoxValue (  )  [private]

Definition at line 136 of file fileview.cpp.

Referenced by doUpdate(), and on_toolButtonPin_toggled().

void updateEnabledButtons (  )  [private]

Definition at line 175 of file fileview.cpp.

Referenced by clear(), on_annotationAvailable(), on_fileAvailable(), on_toolButtonFindAnnotate_toggled(), on_toolButtonHighlightText_toggled(), on_toolButtonRangeFilter_toggled(), and on_toolButtonShowAnnotate_toggled().

void deleteWhenDone (  )  [inherited]

Definition at line 111 of file domain.cpp.

Referenced by MainImpl::pushButtonCloseTab_clicked().

void setThrowOnDelete ( bool  b  )  [inherited]

Definition at line 135 of file domain.cpp.

Referenced by FileContent::lookupAnnotation(), FileContent::rangeFilter(), and Domain::update().

bool isThrowOnDeleteRaised ( int  excpId,
SCRef  curContext 
) [inherited]

Definition at line 143 of file domain.cpp.

Referenced by FileContent::lookupAnnotation(), FileContent::rangeFilter(), and Domain::update().

MainImpl * m (  )  const [inherited]

Definition at line 148 of file domain.cpp.

Referenced by clear(), Domain::customEvent(), RevsView::doUpdate(), PatchView::doUpdate(), doUpdate(), Domain::dragHostName(), FileView(), filterOnRange(), TreeView::initMimePix(), FileContent::on_annotateReady(), RevsView::on_droppedRevisions(), on_loadCompleted(), on_toolButtonRangeFilter_toggled(), RevsView::on_updateRevDesc(), PatchView::on_updateRevDesc(), PatchView::PatchView(), RevsView::RevsView(), Domain::sendPopupEvent(), Domain::update(), RevsView::updateLineEditSHA(), updateProgressBar(), RevsView::viewPatch(), ~FileView(), and PatchView::~PatchView().

const QString dragHostName (  )  const [inherited]

Definition at line 153 of file domain.cpp.

Referenced by ListView::on_onItem().

bool isReadyToDrag (  )  const [inline, inherited]

Definition at line 109 of file domain.h.

Referenced by ListBoxFiles::mouseMoved(), and ListView::on_onItem().

bool setReadyToDrag ( bool  b  )  [inherited]

Definition at line 158 of file domain.cpp.

Referenced by ListView::on_clicked(), ListBoxFiles::on_clicked(), ListView::on_mouseButtonPressed(), ListBoxFiles::on_mouseButtonPressed(), and Domain::update().

bool isDragging (  )  const [inline, inherited]

Definition at line 111 of file domain.h.

bool setDragging ( bool  b  )  [inherited]

Definition at line 164 of file domain.cpp.

Referenced by ListBoxFiles::mouseMoved(), and ListView::on_onItem().

bool isDropping (  )  const [inline, inherited]

Definition at line 113 of file domain.h.

Referenced by RevsView::on_droppedRevisions().

void setDropping ( bool  b  )  [inline, inherited]

Definition at line 114 of file domain.h.

Referenced by RevsView::on_droppedRevisions().

bool isLinked (  )  const [inline, inherited]

Definition at line 115 of file domain.h.

Referenced by PatchView::doUpdate(), and PatchView::on_contextMenu().

int tabPos (  )  const [inline, inherited]

Definition at line 116 of file domain.h.

Referenced by MainImpl::accelActivated(), MainImpl::ActViewRev_activated(), MainImpl::currentTabType(), MainImpl::openFileTab(), and RevsView::viewPatch().

void updateRequested ( StateInfo  newSt  )  [signal, inherited]

Referenced by Domain::linkDomain(), Domain::unlinkDomain(), and Domain::update().

void cancelDomainProcesses (  )  [signal, inherited]

Referenced by Domain::deleteWhenDone(), and Domain::update().

void on_closeAllTabs (  )  [slot, inherited]

Definition at line 106 of file domain.cpp.

Referenced by RevsView::viewPatch().

void on_contextMenu ( const QString &  data,
int  type 
) [protected, virtual, slot, inherited]

Reimplemented in PatchView.

Definition at line 348 of file domain.cpp.

Referenced by FileView(), PatchView::on_contextMenu(), and RevsView::RevsView().

void on_tabClosed ( int  tabPos  )  [protected, slot, inherited]

Definition at line 129 of file domain.cpp.

Referenced by Domain::Domain().

void on_updateRequested ( StateInfo  newSt  )  [protected, slot, inherited]

Definition at line 194 of file domain.cpp.

Referenced by Domain::linkDomain().

void on_deleteWhenDone (  )  [protected, slot, inherited]

Definition at line 121 of file domain.cpp.

Referenced by Domain::deleteWhenDone().

void linkDomain ( Domain d  )  [protected, inherited]

Definition at line 187 of file domain.cpp.

Referenced by RevsView::viewPatch().

void unlinkDomain ( Domain d  )  [protected, inherited]

Definition at line 179 of file domain.cpp.

Referenced by Domain::linkDomain().


Friends And Related Function Documentation

friend class MainImpl [friend]

Definition at line 54 of file fileview.h.

friend class FileHighlighter [friend]

Definition at line 55 of file fileview.h.


Member Data Documentation

TabFile* fileTab [private]

Definition at line 64 of file fileview.h.

Referenced by clear(), doUpdate(), FileView(), filterOnRange(), goToCurrentAnnotation(), on_fileAvailable(), on_loadCompleted(), on_revIdSelected(), on_spinBoxRevision_valueChanged(), on_toolButtonPin_toggled(), on_toolButtonRangeFilter_toggled(), on_toolButtonShowAnnotate_toggled(), showAnnotation(), tab(), updateEnabledButtons(), updateProgressBar(), updateSpinBoxValue(), and ~FileView().

ListView* histListView [private]

Definition at line 65 of file fileview.h.

Referenced by clear(), doUpdate(), FileView(), on_loadCompleted(), on_spinBoxRevision_valueChanged(), and ~FileView().

FileContent* textEditFile [private]

Definition at line 66 of file fileview.h.

Referenced by clear(), doUpdate(), FileView(), filterOnRange(), goToCurrentAnnotation(), on_fileAvailable(), on_loadCompleted(), on_toolButtonCopy_clicked(), on_toolButtonHighlightText_toggled(), on_toolButtonPin_toggled(), on_toolButtonRangeFilter_toggled(), on_toolButtonShowAnnotate_toggled(), showAnnotation(), and ~FileView().

FileHistory* fh [private]

Definition at line 67 of file fileview.h.

Referenced by doUpdate(), FileView(), on_loadCompleted(), and ~FileView().

bool annotateAvailable [private]

Definition at line 68 of file fileview.h.

Referenced by clear(), on_annotationAvailable(), and updateEnabledButtons().

bool fileAvailable [private]

Definition at line 69 of file fileview.h.

Referenced by clear(), FileView(), on_fileAvailable(), and updateEnabledButtons().

StateInfo st [inherited]

Definition at line 119 of file domain.h.

Referenced by MainImpl::ActCheckWorkDir_toggled(), MainImpl::ActSaveFile_activated(), MainImpl::ActViewDiff_activated(), MainImpl::ActViewRev_activated(), PatchView::centerOnFileHeader(), RevsView::clear(), PatchView::clear(), clear(), Domain::customEvent(), Domain::Domain(), RevsView::doUpdate(), PatchView::doUpdate(), doUpdate(), FileContent::FileContent(), MainImpl::filterList(), Domain::flushQueue(), MainImpl::getExternalDiffArgs(), MainImpl::lineEditSHA_returnPressed(), ListBoxFiles::ListBoxFiles(), ListView::ListView(), PatchView::on_buttonGroupDiff_clicked(), Domain::on_contextMenu(), MainImpl::on_fileList_doubleClicked(), MainImpl::on_goRef_activated(), RevsView::on_lanesContextMenuRequested(), RevDesc::on_linkClicked(), RevsView::on_loadCompleted(), on_spinBoxRevision_valueChanged(), Domain::on_updateRequested(), RevsView::on_updateRevDesc(), PatchView::on_updateRevDesc(), MainImpl::openFileTab(), Domain::populateState(), TreeView::TreeView(), Domain::update(), RevsView::updateLineEditSHA(), PatchView::updatePatch(), updateProgressBar(), and RevsView::viewPatch().

Git* git [protected, inherited]

Definition at line 140 of file domain.h.

Referenced by PatchView::centerOnFileHeader(), RevsView::doUpdate(), PatchView::doUpdate(), doUpdate(), FileView(), PatchView::on_buttonGroupDiff_clicked(), RevsView::on_droppedRevisions(), RevsView::on_lanesContextMenuRequested(), RevsView::on_loadCompleted(), RevsView::on_updateRevDesc(), PatchView::on_updateRevDesc(), PatchView::PatchView(), Domain::populateState(), RevsView::RevsView(), Domain::update(), updateEnabledButtons(), PatchView::updatePatch(), RevsView::viewPatch(), and PatchView::~PatchView().

bool busy [protected, inherited]

Definition at line 141 of file domain.h.

Referenced by Domain::customEvent(), Domain::Domain(), Domain::flushQueue(), Domain::on_contextMenu(), Domain::setReadyToDrag(), and Domain::update().

int tabPosition [protected, inherited]

Definition at line 142 of file domain.h.

Referenced by Domain::Domain(), FileView(), Domain::on_tabClosed(), PatchView::PatchView(), RevsView::RevsView(), and Domain::tabPos().


The documentation for this class was generated from the following files:
Generated on Fri Dec 7 21:57:39 2007 for QGit by  doxygen 1.5.3