#include <mainimpl.h>
Public Slots | |
| void | tabWdg_currentChanged (QWidget *) |
| void | on_newRevsAdded (const FileHistory *, const QValueVector< QString > &) |
Signals | |
| void | highlightPatch (const QString &, bool) |
| void | updateRevDesc () |
| void | closeAllWindows () |
| void | closeAllTabs () |
| void | tabClosed (int tabPos) |
| void | repaintListViews (const QFont &) |
| void | closeTabButtonEnabled (bool) |
Public Member Functions | |
| MainImpl (const QString &curDir="", QWidget *parent=0) | |
| QString | curWorkDir () const |
Protected Slots | |
| void | initWithEventLoopActive () |
| void | refreshRepo (bool setCurRevAfterLoad=true) |
| void | on_listViewLog_doubleClicked (QListViewItem *) |
| void | on_fileList_doubleClicked (QListBoxItem *) |
| void | on_treeView_doubleClicked (QListViewItem *) |
| void | on_histListView_doubleClicked (QListViewItem *item) |
| void | on_customActionListChanged (const QStringList &list) |
| void | on_openRecent_activated (int id) |
| void | on_customAction_activated (int id) |
| void | on_customAction_exited (const QString &name) |
| void | on_goRef_activated (int id) |
| void | on_changesCommitted (bool) |
| void | lineEditSHA_returnPressed () |
| void | lineEditFilter_returnPressed () |
| void | pushButtonCloseTab_clicked () |
| void | toolButtonFilter_toggled (bool) |
| void | toolButtonBold_toggled (bool) |
| void | accelActivated (int) |
| void | ActBack_activated () |
| void | ActForward_activated () |
| void | ActFind_activated () |
| void | ActFindNext_activated () |
| void | ActViewRev_activated () |
| void | ActViewFile_activated () |
| void | ActViewFileNewTab_activated () |
| void | ActViewDiff_activated () |
| void | ActViewDiffNewTab_activated () |
| void | ActExternalDiff_activated () |
| void | ActSplitView_activated () |
| void | ActShowDescHeader_toggled (bool) |
| void | ActOpenRepo_activated () |
| void | ActOpenRepoNewWindow_activated () |
| void | ActRefresh_activated () |
| void | ActSaveFile_activated () |
| void | ActMailFormatPatch_activated () |
| void | ActMailApplyPatch_activated () |
| void | ActSettings_activated () |
| void | ActCommit_activated () |
| void | ActTag_activated () |
| void | ActTagDelete_activated () |
| void | ActPush_activated () |
| void | ActPop_activated () |
| void | ActClose_activated () |
| void | ActExit_activated () |
| void | ActCustomActionSetup_activated () |
| void | ActCheckWorkDir_toggled (bool) |
| void | ActShowTree_toggled (bool) |
| void | ActFilterTree_toggled (bool) |
| void | ActAbout_activated () |
| void | ActHelp_activated () |
| void | closeEvent (QCloseEvent *ce) |
Protected Member Functions | |
| virtual void | customEvent (QCustomEvent *e) |
Private Member Functions | |
| virtual bool | eventFilter (QObject *obj, QEvent *ev) |
| void | updateGlobalActions (bool b) |
| void | updateContextActions (SCRef newRevSha, SCRef newFileName, bool isDir, bool found) |
| void | setupAccelerator (QAccel *accel) |
| int | currentTabType (Domain **t) |
| void | filterList (bool isOn, bool onlyHighlight) |
| bool | passFilter (ListViewItem *i, const QRegExp &f, int cn, const QMap< QString, bool > &sm) |
| void | setRepository (SCRef wd, bool r, bool ks, QStringList *fl=NULL) |
| void | diffViewerUpdate (QListViewItem *item, bool newDiff) |
| void | getExternalDiffArgs (QStringList *args) |
| void | lineEditSHASetText (SCRef text) |
| void | updateCommitMenu (bool isStGITStack) |
| void | updateRecentRepoMenu (SCRef newEntry="") |
| void | doUpdateRecentRepoMenu (SCRef newEntry) |
| void | doUpdateCustomActionMenu (const QStringList &list) |
| void | ActCommit_setEnabled (bool b) |
| void | doContexPopup (SCRef sha) |
| void | doFileContexPopup (SCRef fileName, int type) |
| void | adjustFontSize (int delta) |
| void | scrollTextEdit (int delta) |
| void | scrollListView (int delta) |
| void | goMatch (int delta) |
| bool | askApplyPatchParameters (bool *commit, bool *fold) |
| QTextEdit * | getCurrentTextEdit () |
| template<class X> | |
| QPtrList< X > * | getTabs (int tabPos=-1) |
| template<class X> | |
| X * | firstTab (int startPos=-1) |
| void | openFileTab (FileView *fv=NULL) |
| EM_DECLARE (exExiting) | |
Private Attributes | |
| Git * | git |
| RevsView * | rv |
| QString | curDir |
| QRegExp | shortLogRE |
| QRegExp | longLogRE |
| QGuardedPtr< QPopupMenu > | contextMenu |
| QGuardedPtr< QPopupMenu > | contextSubMenu |
| QGuardedPtr< QPopupMenu > | contextRmtMenu |
| QString | startUpDir |
| QString | textToFind |
| QFont | listViewFont |
| bool | setRepositoryBusy |
| int | recentRepoMenuPos |
Friends | |
| class | FileView |
| class | RevsView |
| class | PatchView |
| class | setRepoDelayed |
Definition at line 32 of file mainimpl.h.
| MainImpl | ( | const QString & | curDir = "", |
|
| QWidget * | parent = 0 | |||
| ) |
| QString curWorkDir | ( | ) | const [inline] |
| void highlightPatch | ( | const QString & | , | |
| bool | ||||
| ) | [signal] |
Referenced by ActViewDiff_activated(), and filterList().
| void updateRevDesc | ( | ) | [signal] |
Referenced by ActShowDescHeader_toggled(), and filterList().
| void closeAllWindows | ( | ) | [signal] |
| void closeAllTabs | ( | ) | [signal] |
Referenced by closeEvent(), openFileTab(), and setRepository().
| void tabClosed | ( | int | tabPos | ) | [signal] |
Referenced by pushButtonCloseTab_clicked().
| void repaintListViews | ( | const QFont & | ) | [signal] |
Referenced by adjustFontSize().
| void closeTabButtonEnabled | ( | bool | ) | [signal] |
Referenced by MainImpl(), and tabWdg_currentChanged().
| void tabWdg_currentChanged | ( | QWidget * | w | ) | [slot] |
Definition at line 791 of file mainimpl.cpp.
| void on_newRevsAdded | ( | const FileHistory * | fh, | |
| const QValueVector< QString > & | ||||
| ) | [slot] |
| void customEvent | ( | QCustomEvent * | e | ) | [protected, virtual] |
Definition at line 692 of file mainimpl.cpp.
| void initWithEventLoopActive | ( | ) | [protected, slot] |
| void refreshRepo | ( | bool | setCurRevAfterLoad = true |
) | [protected, slot] |
Definition at line 1289 of file mainimpl.cpp.
Referenced by ActCheckWorkDir_toggled(), ActFilterTree_toggled(), ActMailApplyPatch_activated(), ActPop_activated(), ActPush_activated(), ActRefresh_activated(), ActTag_activated(), ActTagDelete_activated(), on_changesCommitted(), on_customAction_exited(), and RevsView::on_droppedRevisions().
| void on_listViewLog_doubleClicked | ( | QListViewItem * | item | ) | [protected, slot] |
| void on_fileList_doubleClicked | ( | QListBoxItem * | item | ) | [protected, slot] |
| void on_treeView_doubleClicked | ( | QListViewItem * | item | ) | [protected, slot] |
| void on_histListView_doubleClicked | ( | QListViewItem * | item | ) | [protected, slot] |
| void on_customActionListChanged | ( | const QStringList & | list | ) | [protected, slot] |
| void on_openRecent_activated | ( | int | id | ) | [protected, slot] |
| void on_customAction_activated | ( | int | id | ) | [protected, slot] |
| void on_customAction_exited | ( | const QString & | name | ) | [protected, slot] |
| void on_goRef_activated | ( | int | id | ) | [protected, slot] |
| void on_changesCommitted | ( | bool | ok | ) | [protected, slot] |
| void lineEditSHA_returnPressed | ( | ) | [protected, slot] |
Definition at line 170 of file mainimpl.cpp.
Referenced by ActBack_activated(), and ActForward_activated().
| void lineEditFilter_returnPressed | ( | ) | [protected, slot] |
Definition at line 531 of file mainimpl.cpp.
| void pushButtonCloseTab_clicked | ( | ) | [protected, slot] |
| void toolButtonFilter_toggled | ( | bool | isOn | ) | [protected, slot] |
| void toolButtonBold_toggled | ( | bool | isOn | ) | [protected, slot] |
| void accelActivated | ( | int | id | ) | [protected, slot] |
| void ActBack_activated | ( | ) | [protected, slot] |
| void ActForward_activated | ( | ) | [protected, slot] |
| void ActFind_activated | ( | ) | [protected, slot] |
Definition at line 1662 of file mainimpl.cpp.
| void ActFindNext_activated | ( | ) | [protected, slot] |
| void ActViewRev_activated | ( | ) | [protected, slot] |
Definition at line 433 of file mainimpl.cpp.
| void ActViewFile_activated | ( | ) | [protected, slot] |
Definition at line 443 of file mainimpl.cpp.
| void ActViewFileNewTab_activated | ( | ) | [protected, slot] |
Definition at line 448 of file mainimpl.cpp.
| void ActViewDiff_activated | ( | ) | [protected, slot] |
Definition at line 470 of file mainimpl.cpp.
| void ActViewDiffNewTab_activated | ( | ) | [protected, slot] |
Definition at line 486 of file mainimpl.cpp.
| void ActExternalDiff_activated | ( | ) | [protected, slot] |
Definition at line 193 of file mainimpl.cpp.
| void ActSplitView_activated | ( | ) | [protected, slot] |
Definition at line 1197 of file mainimpl.cpp.
| void ActShowDescHeader_toggled | ( | bool | ) | [protected, slot] |
Definition at line 1223 of file mainimpl.cpp.
| void ActOpenRepo_activated | ( | ) | [protected, slot] |
Definition at line 1266 of file mainimpl.cpp.
| void ActOpenRepoNewWindow_activated | ( | ) | [protected, slot] |
Definition at line 1277 of file mainimpl.cpp.
| void ActRefresh_activated | ( | ) | [protected, slot] |
Definition at line 1294 of file mainimpl.cpp.
| void ActSaveFile_activated | ( | ) | [protected, slot] |
Definition at line 1237 of file mainimpl.cpp.
| void ActMailFormatPatch_activated | ( | ) | [protected, slot] |
Definition at line 1299 of file mainimpl.cpp.
| void ActMailApplyPatch_activated | ( | ) | [protected, slot] |
Definition at line 1346 of file mainimpl.cpp.
| void ActSettings_activated | ( | ) | [protected, slot] |
Definition at line 1382 of file mainimpl.cpp.
| void ActCommit_activated | ( | ) | [protected, slot] |
Definition at line 1491 of file mainimpl.cpp.
| void ActTag_activated | ( | ) | [protected, slot] |
Definition at line 1519 of file mainimpl.cpp.
| void ActTagDelete_activated | ( | ) | [protected, slot] |
Definition at line 1554 of file mainimpl.cpp.
| void ActPush_activated | ( | ) | [protected, slot] |
Definition at line 1570 of file mainimpl.cpp.
| void ActPop_activated | ( | ) | [protected, slot] |
Definition at line 1600 of file mainimpl.cpp.
| void ActClose_activated | ( | ) | [protected, slot] |
| void ActExit_activated | ( | ) | [protected, slot] |
Definition at line 1742 of file mainimpl.cpp.
| void ActCustomActionSetup_activated | ( | ) | [protected, slot] |
Definition at line 1392 of file mainimpl.cpp.
| void ActCheckWorkDir_toggled | ( | bool | b | ) | [protected, slot] |
Definition at line 1372 of file mainimpl.cpp.
| void ActShowTree_toggled | ( | bool | b | ) | [protected, slot] |
Definition at line 1228 of file mainimpl.cpp.
| void ActFilterTree_toggled | ( | bool | b | ) | [protected, slot] |
Definition at line 1614 of file mainimpl.cpp.
| void ActAbout_activated | ( | ) | [protected, slot] |
Definition at line 1697 of file mainimpl.cpp.
| void ActHelp_activated | ( | ) | [protected, slot] |
Definition at line 1685 of file mainimpl.cpp.
| void closeEvent | ( | QCloseEvent * | ce | ) | [protected, slot] |
Definition at line 1707 of file mainimpl.cpp.
| bool eventFilter | ( | QObject * | obj, | |
| QEvent * | ev | |||
| ) | [private, virtual] |
Definition at line 491 of file mainimpl.cpp.
| void updateGlobalActions | ( | bool | b | ) | [private] |
Definition at line 351 of file mainimpl.cpp.
Referenced by RevsView::doUpdate(), and setRepository().
| void setupAccelerator | ( | QAccel * | accel | ) | [private] |
| int currentTabType | ( | Domain ** | t | ) | [private] |
Definition at line 727 of file mainimpl.cpp.
Referenced by ActSplitView_activated(), ActViewDiff_activated(), ActViewRev_activated(), doContexPopup(), doFileContexPopup(), getCurrentTextEdit(), pushButtonCloseTab_clicked(), scrollListView(), and tabWdg_currentChanged().
| void filterList | ( | bool | isOn, | |
| bool | onlyHighlight | |||
| ) | [private] |
Definition at line 552 of file mainimpl.cpp.
Referenced by toolButtonBold_toggled(), and toolButtonFilter_toggled().
| bool passFilter | ( | ListViewItem * | i, | |
| const QRegExp & | f, | |||
| int | cn, | |||
| const QMap< QString, bool > & | sm | |||
| ) | [private] |
| void setRepository | ( | SCRef | wd, | |
| bool | r, | |||
| bool | ks, | |||
| QStringList * | fl = NULL | |||
| ) | [private] |
Definition at line 245 of file mainimpl.cpp.
Referenced by ActFilterTree_toggled(), ActOpenRepo_activated(), initWithEventLoopActive(), on_openRecent_activated(), setRepoDelayed::on_timeout(), and refreshRepo().
| void diffViewerUpdate | ( | QListViewItem * | item, | |
| bool | newDiff | |||
| ) | [private] |
| void getExternalDiffArgs | ( | QStringList * | args | ) | [private] |
| void lineEditSHASetText | ( | SCRef | text | ) | [private] |
| void updateCommitMenu | ( | bool | isStGITStack | ) | [private] |
| void updateRecentRepoMenu | ( | SCRef | newEntry = "" |
) | [private] |
| void doUpdateRecentRepoMenu | ( | SCRef | newEntry | ) | [private] |
| void doUpdateCustomActionMenu | ( | const QStringList & | list | ) | [private] |
Definition at line 1418 of file mainimpl.cpp.
Referenced by MainImpl(), and on_customActionListChanged().
| void ActCommit_setEnabled | ( | bool | b | ) | [private] |
| void doContexPopup | ( | SCRef | sha | ) | [private] |
| void doFileContexPopup | ( | SCRef | fileName, | |
| int | type | |||
| ) | [private] |
| void adjustFontSize | ( | int | delta | ) | [private] |
| void scrollTextEdit | ( | int | delta | ) | [private] |
| void scrollListView | ( | int | delta | ) | [private] |
| void goMatch | ( | int | delta | ) | [private] |
| bool askApplyPatchParameters | ( | bool * | commit, | |
| bool * | fold | |||
| ) | [private] |
| QTextEdit * getCurrentTextEdit | ( | ) | [private] |
Definition at line 925 of file mainimpl.cpp.
Referenced by ActFind_activated(), ActFindNext_activated(), and scrollTextEdit().
| QPtrList< X > * getTabs | ( | int | tabPos = -1 |
) | [inline, private] |
Definition at line 755 of file mainimpl.cpp.
| X * firstTab | ( | int | startPos = -1 |
) | [inline, private] |
Definition at line 770 of file mainimpl.cpp.
| void openFileTab | ( | FileView * | fv = NULL |
) | [private] |
Definition at line 453 of file mainimpl.cpp.
Referenced by ActViewFile_activated(), and ActViewFileNewTab_activated().
| EM_DECLARE | ( | exExiting | ) | [private] |
friend class FileView [friend] |
friend class RevsView [friend] |
friend class PatchView [friend] |
Definition at line 110 of file mainimpl.h.
friend class setRepoDelayed [friend] |
Definition at line 143 of file mainimpl.h.
Referenced by ActCommit_activated(), ActMailApplyPatch_activated(), ActMailFormatPatch_activated(), ActPop_activated(), ActPush_activated(), ActSaveFile_activated(), ActSettings_activated(), ActTag_activated(), ActTagDelete_activated(), askApplyPatchParameters(), closeEvent(), doContexPopup(), filterList(), getExternalDiffArgs(), initWithEventLoopActive(), MainImpl(), on_customAction_activated(), on_goRef_activated(), on_newRevsAdded(), openFileTab(), passFilter(), setRepository(), and updateContextActions().
Definition at line 144 of file mainimpl.h.
Referenced by accelActivated(), ActCheckWorkDir_toggled(), ActFilterTree_toggled(), ActMailFormatPatch_activated(), ActPop_activated(), ActPush_activated(), ActSaveFile_activated(), ActShowTree_toggled(), ActSplitView_activated(), ActTag_activated(), ActViewDiff_activated(), ActViewDiffNewTab_activated(), ActViewRev_activated(), closeEvent(), currentTabType(), doFileContexPopup(), filterList(), getExternalDiffArgs(), goMatch(), lineEditSHA_returnPressed(), MainImpl(), on_customAction_activated(), on_fileList_doubleClicked(), on_goRef_activated(), openFileTab(), setRepository(), and updateGlobalActions().
QString curDir [private] |
Definition at line 150 of file mainimpl.h.
Referenced by ActExternalDiff_activated(), ActFilterTree_toggled(), ActMailApplyPatch_activated(), ActMailFormatPatch_activated(), ActOpenRepo_activated(), ActOpenRepoNewWindow_activated(), curWorkDir(), getExternalDiffArgs(), refreshRepo(), and setRepository().
QRegExp shortLogRE [private] |
Definition at line 151 of file mainimpl.h.
Referenced by filterList(), MainImpl(), RevsView::on_updateRevDesc(), and PatchView::on_updateRevDesc().
QRegExp longLogRE [private] |
Definition at line 152 of file mainimpl.h.
Referenced by filterList(), MainImpl(), RevsView::on_updateRevDesc(), and PatchView::on_updateRevDesc().
QGuardedPtr<QPopupMenu> contextMenu [private] |
Definition at line 153 of file mainimpl.h.
Referenced by doContexPopup(), doFileContexPopup(), and on_goRef_activated().
QGuardedPtr<QPopupMenu> contextSubMenu [private] |
QGuardedPtr<QPopupMenu> contextRmtMenu [private] |
QString startUpDir [private] |
Definition at line 156 of file mainimpl.h.
Referenced by initWithEventLoopActive(), MainImpl(), and setRepository().
QString textToFind [private] |
Definition at line 157 of file mainimpl.h.
Referenced by ActFind_activated(), and ActFindNext_activated().
QFont listViewFont [private] |
bool setRepositoryBusy [private] |
int recentRepoMenuPos [private] |
1.5.3