Domain Class Reference

#include <domain.h>

Inheritance diagram for Domain:

FileView PatchView RevsView

List of all members.

Public Slots

void on_closeAllTabs ()

Signals

void updateRequested (StateInfo newSt)
void cancelDomainProcesses ()

Public Member Functions

 Domain ()
 Domain (MainImpl *m, Git *git)
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
virtual QWidget * tab ()=0

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)=0
void linkDomain (Domain *d)
void unlinkDomain (Domain *d)

Protected Attributes

Gitgit
bool busy
int tabPosition

Private Member Functions

void populateState ()
void update (bool fromMaster, bool force)
bool flushQueue ()
void sendPopupEvent ()
 EM_DECLARE (exDeleteRequest)
 EM_DECLARE (exCancelRequest)

Private Attributes

bool readyToDrag
bool dragging
bool dropping
bool linked
int popupType
QString popupData
QString statusBarRequest


Detailed Description

Definition at line 99 of file domain.h.


Constructor & Destructor Documentation

Domain (  )  [inline]

Definition at line 102 of file domain.h.

Domain ( MainImpl m,
Git git 
)

Definition at line 93 of file domain.cpp.


Member Function Documentation

void deleteWhenDone (  ) 

Definition at line 111 of file domain.cpp.

Referenced by MainImpl::pushButtonCloseTab_clicked().

void setThrowOnDelete ( bool  b  ) 

Definition at line 135 of file domain.cpp.

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

bool isThrowOnDeleteRaised ( int  excpId,
SCRef  curContext 
)

Definition at line 143 of file domain.cpp.

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

MainImpl * m (  )  const

Definition at line 148 of file domain.cpp.

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

const QString dragHostName (  )  const

Definition at line 153 of file domain.cpp.

Referenced by ListView::on_onItem().

bool isReadyToDrag (  )  const [inline]

Definition at line 109 of file domain.h.

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

bool setReadyToDrag ( bool  b  ) 

Definition at line 158 of file domain.cpp.

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

bool isDragging (  )  const [inline]

Definition at line 111 of file domain.h.

bool setDragging ( bool  b  ) 

Definition at line 164 of file domain.cpp.

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

bool isDropping (  )  const [inline]

Definition at line 113 of file domain.h.

Referenced by RevsView::on_droppedRevisions().

void setDropping ( bool  b  )  [inline]

Definition at line 114 of file domain.h.

Referenced by RevsView::on_droppedRevisions().

bool isLinked (  )  const [inline]

Definition at line 115 of file domain.h.

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

int tabPos (  )  const [inline]

Definition at line 116 of file domain.h.

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

virtual QWidget* tab (  )  [pure virtual]

Implemented in FileView, PatchView, and RevsView.

Referenced by ListBoxFiles::on_currentChanged().

void updateRequested ( StateInfo  newSt  )  [signal]

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

void cancelDomainProcesses (  )  [signal]

Referenced by deleteWhenDone(), and update().

void on_closeAllTabs (  )  [slot]

Definition at line 106 of file domain.cpp.

Referenced by RevsView::viewPatch().

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

Reimplemented in PatchView.

Definition at line 348 of file domain.cpp.

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

void on_tabClosed ( int  tabPos  )  [protected, slot]

Definition at line 129 of file domain.cpp.

Referenced by Domain().

void on_updateRequested ( StateInfo  newSt  )  [protected, slot]

Definition at line 194 of file domain.cpp.

Referenced by linkDomain().

void on_deleteWhenDone (  )  [protected, slot]

Definition at line 121 of file domain.cpp.

Referenced by deleteWhenDone().

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

Reimplemented in FileView.

Definition at line 210 of file domain.cpp.

Referenced by FileView::customEvent(), and RevsView::doUpdate().

virtual bool doUpdate ( bool  force  )  [protected, pure virtual]

Implemented in FileView, PatchView, and RevsView.

Referenced by update().

void linkDomain ( Domain d  )  [protected]

Definition at line 187 of file domain.cpp.

Referenced by RevsView::viewPatch().

void unlinkDomain ( Domain d  )  [protected]

Definition at line 179 of file domain.cpp.

Referenced by linkDomain().

void populateState (  )  [private]

Definition at line 233 of file domain.cpp.

Referenced by update().

void update ( bool  fromMaster,
bool  force 
) [private]

Definition at line 240 of file domain.cpp.

Referenced by customEvent().

bool flushQueue (  )  [private]

Definition at line 200 of file domain.cpp.

Referenced by setDragging(), and update().

void sendPopupEvent (  )  [private]

Definition at line 339 of file domain.cpp.

Referenced by on_contextMenu(), and update().

EM_DECLARE ( exDeleteRequest   )  [private]

EM_DECLARE ( exCancelRequest   )  [private]


Member Data Documentation

StateInfo st

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(), FileView::clear(), customEvent(), Domain(), RevsView::doUpdate(), PatchView::doUpdate(), FileView::doUpdate(), FileContent::FileContent(), MainImpl::filterList(), flushQueue(), MainImpl::getExternalDiffArgs(), MainImpl::lineEditSHA_returnPressed(), ListBoxFiles::ListBoxFiles(), ListView::ListView(), PatchView::on_buttonGroupDiff_clicked(), on_contextMenu(), MainImpl::on_fileList_doubleClicked(), MainImpl::on_goRef_activated(), RevsView::on_lanesContextMenuRequested(), RevDesc::on_linkClicked(), RevsView::on_loadCompleted(), FileView::on_spinBoxRevision_valueChanged(), on_updateRequested(), RevsView::on_updateRevDesc(), PatchView::on_updateRevDesc(), MainImpl::openFileTab(), populateState(), TreeView::TreeView(), update(), RevsView::updateLineEditSHA(), PatchView::updatePatch(), FileView::updateProgressBar(), and RevsView::viewPatch().

Git* git [protected]

Definition at line 140 of file domain.h.

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

bool busy [protected]

Definition at line 141 of file domain.h.

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

int tabPosition [protected]

Definition at line 142 of file domain.h.

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

bool readyToDrag [private]

Definition at line 153 of file domain.h.

Referenced by Domain(), isReadyToDrag(), setDragging(), and setReadyToDrag().

bool dragging [private]

Definition at line 154 of file domain.h.

Referenced by Domain(), isDragging(), setDragging(), setReadyToDrag(), and update().

bool dropping [private]

Definition at line 155 of file domain.h.

Referenced by Domain(), isDropping(), setDragging(), setDropping(), and setReadyToDrag().

bool linked [private]

Definition at line 156 of file domain.h.

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

int popupType [private]

Definition at line 157 of file domain.h.

Referenced by Domain(), on_contextMenu(), sendPopupEvent(), and update().

QString popupData [private]

Definition at line 158 of file domain.h.

Referenced by on_contextMenu(), and sendPopupEvent().

QString statusBarRequest [private]

Definition at line 159 of file domain.h.

Referenced by customEvent(), and update().


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