QGit Namespace Reference


Enumerations

enum  KeyType {
  KEY_UP, KEY_DOWN, SHIFT_KEY_UP, SHIFT_KEY_DOWN,
  KEY_LEFT, KEY_RIGHT, CTRL_PLUS, CTRL_MINUS,
  KEY_U, KEY_D, KEY_DELETE, KEY_B,
  KEY_BCKSPC, KEY_SPACE, KEY_R, KEY_P,
  KEY_F
}
enum  TabType { TAB_REV, TAB_PATCH, TAB_FILE }
enum  LaneType {
  EMPTY, ACTIVE, NOT_ACTIVE, MERGE_FORK,
  MERGE_FORK_R, MERGE_FORK_L, JOIN, JOIN_R,
  JOIN_L, HEAD, HEAD_R, HEAD_L,
  TAIL, TAIL_R, TAIL_L, CROSS,
  CROSS_EMPTY, INITIAL, BRANCH, UNAPPLIED,
  APPLIED, BOUNDARY, BOUNDARY_C, BOUNDARY_R,
  BOUNDARY_L, LANE_TYPES_NUM
}
enum  EventType {
  ERROR_EV = 65432, POPUP_LIST_EV = 65433, POPUP_FILE_EV = 65434, POPUP_TREE_EV = 65435,
  MSG_EV = 65436, ANN_PRG_EV = 65437, UPD_DM_EV = 65438, UPD_DM_MST_EV = 65439
}
enum  ColumnType {
  GRAPH_COL = 0, ANN_ID_COL = 1, LOG_COL = 2, AUTH_COL = 3,
  TIME_COL = 4, COMMIT_COL = 97, LOG_MSG_COL = 98, SHA_MAP_COL = 99
}
enum  FlagType {
  MCR_REFRESH_F = 2, NUMBERS_F = 4, MCR_CMD_LINE_F = 16, DIFF_INDEX_F = 32,
  SIGN_PATCH_F = 64, SIGN_CMT_F = 128, VERIFY_CMT_F = 256, REL_DATE_F = 1024,
  ALL_BRANCHES_F = 2048, WHOLE_HISTORY_F = 4096, RANGE_SELECT_F = 8192
}

Functions

bool isHead (int x)
bool isTail (int x)
bool isJoin (int x)
bool isFreeLane (int x)
bool isBoundary (int x)
bool isMerge (int x)
bool isInfoCol (int x)
uint flags (SCRef group="")
bool testFlag (uint f, SCRef group="")
void setFlag (uint f, bool b, SCRef group="")
void writeSetting (SCRef key, SCRef value, SCRef group="")
bool stripPartialParaghraps (const QByteArray &src, QString *dst, QString *prev)
bool writeToFile (SCRef fileName, SCRef data, bool setExecutable=false)
bool writeToFile (SCRef fileName, const QByteArray &data, bool setExecutable=false)
bool readFromFile (SCRef fileName, QString &data)
void baAppend (QByteArray **src, const char *ascii, int len)
void baAppend (QByteArray &ba, const QByteArray &data)
QFont TYPE_WRITER_FONT ("Helvetica")

Variables

const QString GIT_VERSION = "1.4.4"
const int COLORS_NUM = 8
const int DEF_GRAPH_COL_WIDTH = 80
const int DEF_LOG_COL_WIDTH = 500
const int DEF_AUTH_COL_WIDTH = 230
const int DEF_TIME_COL_WIDTH = 130
const QColor BROWN = QColor(150, 75, 0)
const QColor ORANGE = QColor(255, 160, 50)
const QColor DARK_ORANGE = QColor(216, 144, 0)
const QColor LIGHT_ORANGE = QColor(255, 221, 170)
const QColor LIGHT_BLUE = QColor(85, 255, 255)
const QColor PURPLE = QColor(221, 221, 255)
const QColor DARK_GREEN = QColor(0, 205, 0)
QColor ODD_LINE_COL
QColor EVEN_LINE_COL
QFont TYPE_WRITER_FONT
const QString PATCHES_DIR = "/.qgit_patches_copy"
const QString PATCHES_NAME = "qgit_import"
const QString ZERO_SHA = "0000000000000000000000000000000000000000"
const QString CUSTOM_SHA = "CUSTOM"
const QString ALL_MERGE_FILES = "ALL_MERGE_FILES"
const QString APP_KEY = "/qgit/"
const QString FP_DIR_KEY = "format_patch_last_dir"
const QString FPATCH_ARGS_KEY = "format_patch_args"
const QString FLAGS_KEY = "patch_flags"
const QString CMT_GEOM_KEY = "commit_viewer_geometry"
const QString CMT_SPLIT_KEY = "commit_viewer_splitter_sizes"
const QString CMT_TEMPL_KEY = "commit_template_file_path"
const QString CMT_ARGS_KEY = "commit_args"
const QString EX_KEY = "exclude_file_path"
const QString EX_PER_DIR_KEY = "exclude_per_directory_file_name"
const QString EXT_DIFF_KEY = "external_diff_viewer"
const QString REC_REP_KEY = "recent_open_repos"
const QString MCR_NAME_KEY = "macro_name"
const QString MCR_TEXT_KEY = "commands"
const QString MCR_LIST_KEY = "macro_list"
const QString FONT_KEY = "typewriter_font"
const QString CMT_GEOM_DEF = "290,140,495,540"
const QString CMT_SPLIT_DEF = "155,342"
const QString CMT_TEMPL_DEF = ".git/commit-template"
const QString EX_DEF = ".git/info/exclude"
const QString EX_PER_DIR_DEF = ".gitignore"
const QString EXT_DIFF_DEF = "kompare"
const QString MCR_NAME_DEF = "New macro"
const int FLAGS_DEF = 8512
const uint C_MAGIC = 0xA0B0C0D0
const int C_VERSION = 13
const QString BAK_EXT = ".bak"
const QString C_DAT_FILE = "/qgit_cache.dat"
const int MAX_DICT_SIZE = 100003
const int MAX_MENU_ENTRIES = 15
const int MAX_RECENT_REPOS = 7
const QString QUOTE_CHAR = "$"


Enumeration Type Documentation

enum ColumnType

Enumerator:
GRAPH_COL 
ANN_ID_COL 
LOG_COL 
AUTH_COL 
TIME_COL 
COMMIT_COL 
LOG_MSG_COL 
SHA_MAP_COL 

Definition at line 141 of file common.h.

enum EventType

Enumerator:
ERROR_EV 
POPUP_LIST_EV 
POPUP_FILE_EV 
POPUP_TREE_EV 
MSG_EV 
ANN_PRG_EV 
UPD_DM_EV 
UPD_DM_MST_EV 

Definition at line 129 of file common.h.

enum FlagType

Enumerator:
MCR_REFRESH_F 
NUMBERS_F 
MCR_CMD_LINE_F 
DIFF_INDEX_F 
SIGN_PATCH_F 
SIGN_CMT_F 
VERIFY_CMT_F 
REL_DATE_F 
ALL_BRANCHES_F 
WHOLE_HISTORY_F 
RANGE_SELECT_F 

Definition at line 211 of file common.h.

enum KeyType

Enumerator:
KEY_UP 
KEY_DOWN 
SHIFT_KEY_UP 
SHIFT_KEY_DOWN 
KEY_LEFT 
KEY_RIGHT 
CTRL_PLUS 
CTRL_MINUS 
KEY_U 
KEY_D 
KEY_DELETE 
KEY_B 
KEY_BCKSPC 
KEY_SPACE 
KEY_R 
KEY_P 
KEY_F 

Definition at line 60 of file common.h.

enum LaneType

Enumerator:
EMPTY 
ACTIVE 
NOT_ACTIVE 
MERGE_FORK 
MERGE_FORK_R 
MERGE_FORK_L 
JOIN 
JOIN_R 
JOIN_L 
HEAD 
HEAD_R 
HEAD_L 
TAIL 
TAIL_R 
TAIL_L 
CROSS 
CROSS_EMPTY 
INITIAL 
BRANCH 
UNAPPLIED 
APPLIED 
BOUNDARY 
BOUNDARY_C 
BOUNDARY_R 
BOUNDARY_L 
LANE_TYPES_NUM 

Definition at line 88 of file common.h.

enum TabType

Enumerator:
TAB_REV 
TAB_PATCH 
TAB_FILE 

Definition at line 81 of file common.h.


Function Documentation

void baAppend ( QByteArray &  ba,
const QByteArray &  data 
)

Definition at line 202 of file namespace_def.cpp.

void baAppend ( QByteArray **  src,
const char *  ascii,
int  len 
)

Definition at line 187 of file namespace_def.cpp.

Referenced by baAppend(), PatchView::on_procDataReady(), FileContent::on_procDataReady(), MyProcess::on_readyReadStdout(), and DataLoader::parseSingleBuffer().

uint flags ( SCRef  group = ""  ) 

Definition at line 90 of file namespace_def.cpp.

Referenced by RangeSelectImpl::RangeSelectImpl(), setFlag(), SettingsImpl::SettingsImpl(), and testFlag().

bool QGit::isBoundary ( int  x  )  [inline]

Definition at line 124 of file common.h.

Referenced by Lanes::changeActiveLane(), and isMerge().

bool QGit::isFreeLane ( int  x  )  [inline]

Definition at line 123 of file common.h.

Referenced by Git::getLaneParent(), and ListView::getLaneParentsChilds().

bool QGit::isHead ( int  x  )  [inline]

Definition at line 120 of file common.h.

Referenced by Lanes::afterMerge(), Git::getLaneParent(), and ListViewItem::paintGraph().

bool QGit::isInfoCol ( int  x  )  [inline]

Definition at line 152 of file common.h.

Referenced by ListViewItem::paintCell().

bool QGit::isJoin ( int  x  )  [inline]

Definition at line 122 of file common.h.

Referenced by Lanes::afterMerge(), isFreeLane(), and ListViewItem::paintGraph().

bool QGit::isMerge ( int  x  )  [inline]

Definition at line 126 of file common.h.

Referenced by Git::getLaneParent(), ListViewItem::paintGraph(), and Git::updateLanes().

bool QGit::isTail ( int  x  )  [inline]

Definition at line 121 of file common.h.

Referenced by Lanes::afterFork(), and ListViewItem::paintGraph().

bool readFromFile ( SCRef  fileName,
QString &  data 
)

Definition at line 173 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl().

void setFlag ( uint  f,
bool  b,
SCRef  group = "" 
)

Definition at line 101 of file namespace_def.cpp.

Referenced by MainImpl::ActCheckWorkDir_toggled(), CustomActionImpl::checkBoxAskArgs_toggled(), SettingsImpl::checkBoxCommitSign_toggled(), SettingsImpl::checkBoxCommitVerify_toggled(), SettingsImpl::checkBoxDiffCache_toggled(), RangeSelectImpl::checkBoxDiffCache_toggled(), SettingsImpl::checkBoxNumbers_toggled(), SettingsImpl::checkBoxRangeSelectDialog_toggled(), CustomActionImpl::checkBoxRefreshAfterAction_toggled(), SettingsImpl::checkBoxRelativeDate_toggled(), RangeSelectImpl::checkBoxShowAll_toggled(), RangeSelectImpl::checkBoxShowDialog_toggled(), RangeSelectImpl::checkBoxShowWholeHistory_toggled(), and SettingsImpl::checkBoxSign_toggled().

bool stripPartialParaghraps ( const QByteArray &  src,
QString *  dst,
QString *  prev 
)

Definition at line 116 of file namespace_def.cpp.

Referenced by ConsoleImpl::on_procDataReady(), PatchView::processData(), and FileContent::processData().

bool testFlag ( uint  f,
SCRef  group = "" 
)

Definition at line 96 of file namespace_def.cpp.

Referenced by MainImpl::ActSettings_activated(), Git::applyPatchFile(), ListView::clear(), Git::commitFiles(), Git::formatPatch(), Git::getArgs(), Git::init(), CustomActionImpl::loadAction(), MainImpl::on_customAction_activated(), MainImpl::on_customAction_exited(), and MainImpl::setRepository().

QFont QGit::TYPE_WRITER_FONT ( "Helvetica"   ) 

Referenced by CommitImpl::CommitImpl(), SettingsImpl::pushButtonFont_clicked(), and SettingsImpl::SettingsImpl().

void writeSetting ( SCRef  key,
SCRef  value,
SCRef  group = "" 
)

Definition at line 109 of file namespace_def.cpp.

Referenced by SettingsImpl::lineEditCommitExtraOptions_textChanged(), SettingsImpl::lineEditExcludeFile_textChanged(), SettingsImpl::lineEditExcludePerDir_textChanged(), SettingsImpl::lineEditExternalDiffViewer_textChanged(), SettingsImpl::lineEditExtraOptions_textChanged(), SettingsImpl::lineEditTemplate_textChanged(), SettingsImpl::pushButtonFont_clicked(), CustomActionImpl::textEditAction_textChanged(), and CustomActionImpl::updateActionList().

bool writeToFile ( SCRef  fileName,
const QByteArray &  data,
bool  setExecutable = false 
)

Definition at line 158 of file namespace_def.cpp.

Referenced by Git::commitFiles(), MainImpl::getExternalDiffArgs(), Git::mkPatchFromIndex(), Git::runAsScript(), and Git::saveFile().

bool writeToFile ( SCRef  fileName,
SCRef  data,
bool  setExecutable = false 
)

Definition at line 137 of file namespace_def.cpp.

Referenced by DataLoader::doStart().


Variable Documentation

const QString ALL_MERGE_FILES = "ALL_MERGE_FILES"

Definition at line 51 of file namespace_def.cpp.

Referenced by Git::getAllMergeFiles().

const QString APP_KEY = "/qgit/"

Definition at line 54 of file namespace_def.cpp.

Referenced by MainImpl::ActMailApplyPatch_activated(), MainImpl::ActMailFormatPatch_activated(), Git::commitFiles(), CommitImpl::CommitImpl(), CustomActionImpl::CustomActionImpl(), MainImpl::doUpdateRecentRepoMenu(), flags(), Git::formatPatch(), MainImpl::getExternalDiffArgs(), Git::getOthersFiles(), CustomActionImpl::loadAction(), MainImpl::MainImpl(), MainImpl::on_customAction_activated(), CustomActionImpl::removeAction(), setFlag(), SettingsImpl::SettingsImpl(), writeSetting(), and CommitImpl::~CommitImpl().

const QString BAK_EXT = ".bak"

Definition at line 81 of file namespace_def.cpp.

Referenced by Cache::save().

const QColor BROWN = QColor(150, 75, 0)

Definition at line 25 of file namespace_def.cpp.

Referenced by ListViewItem::paintGraph().

const QString C_DAT_FILE = "/qgit_cache.dat"

Definition at line 82 of file namespace_def.cpp.

Referenced by Cache::load(), and Cache::save().

const uint C_MAGIC = 0xA0B0C0D0

Definition at line 244 of file common.h.

Referenced by Cache::load(), and Cache::save().

const int C_VERSION = 13

Definition at line 245 of file common.h.

Referenced by Cache::load(), and Cache::save().

const QString CMT_ARGS_KEY = "commit_args"

Definition at line 61 of file namespace_def.cpp.

Referenced by Git::commitFiles(), SettingsImpl::lineEditCommitExtraOptions_textChanged(), and SettingsImpl::SettingsImpl().

const QString CMT_GEOM_DEF = "290,140,495,540"

Definition at line 72 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl().

const QString CMT_GEOM_KEY = "commit_viewer_geometry"

Definition at line 58 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl(), and CommitImpl::~CommitImpl().

const QString CMT_SPLIT_DEF = "155,342"

Definition at line 73 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl().

const QString CMT_SPLIT_KEY = "commit_viewer_splitter_sizes"

Definition at line 59 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl(), and CommitImpl::~CommitImpl().

const QString CMT_TEMPL_DEF = ".git/commit-template"

Definition at line 74 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl(), and SettingsImpl::SettingsImpl().

const QString CMT_TEMPL_KEY = "commit_template_file_path"

Definition at line 60 of file namespace_def.cpp.

Referenced by CommitImpl::CommitImpl(), SettingsImpl::lineEditTemplate_textChanged(), and SettingsImpl::SettingsImpl().

const int COLORS_NUM = 8

Definition at line 117 of file common.h.

Referenced by ListViewItem::paintGraph().

const QString CUSTOM_SHA = "CUSTOM"

Definition at line 50 of file namespace_def.cpp.

Referenced by Git::getFiles(), and Cache::save().

const QColor DARK_GREEN = QColor(0, 205, 0)

Definition at line 31 of file namespace_def.cpp.

Referenced by ListViewItem::addBranchPixmap(), ListViewItem::paintGraph(), and ListViewItem::paintGraphLane().

const QColor DARK_ORANGE = QColor(216, 144, 0)

Definition at line 27 of file namespace_def.cpp.

Referenced by ListViewItem::paintCell().

const int DEF_AUTH_COL_WIDTH = 230

Definition at line 157 of file common.h.

Referenced by ListView::setupListView().

const int DEF_GRAPH_COL_WIDTH = 80

Definition at line 155 of file common.h.

Referenced by ListView::setupListView().

const int DEF_LOG_COL_WIDTH = 500

Definition at line 156 of file common.h.

Referenced by ListView::setupListView().

const int DEF_TIME_COL_WIDTH = 130

Definition at line 158 of file common.h.

Referenced by ListView::setupListView().

QColor EVEN_LINE_COL

Definition at line 35 of file namespace_def.cpp.

Referenced by ListViewItem::addTextPixmap(), MainImpl::MainImpl(), and ListViewItem::paintCell().

const QString EX_DEF = ".git/info/exclude"

Definition at line 75 of file namespace_def.cpp.

Referenced by Git::getOthersFiles(), and SettingsImpl::SettingsImpl().

const QString EX_KEY = "exclude_file_path"

Definition at line 62 of file namespace_def.cpp.

Referenced by Git::getOthersFiles(), SettingsImpl::lineEditExcludeFile_textChanged(), and SettingsImpl::SettingsImpl().

const QString EX_PER_DIR_DEF = ".gitignore"

Definition at line 76 of file namespace_def.cpp.

Referenced by Git::getOthersFiles(), and SettingsImpl::SettingsImpl().

const QString EX_PER_DIR_KEY = "exclude_per_directory_file_name"

Definition at line 63 of file namespace_def.cpp.

Referenced by Git::getOthersFiles(), SettingsImpl::lineEditExcludePerDir_textChanged(), and SettingsImpl::SettingsImpl().

const QString EXT_DIFF_DEF = "kompare"

Definition at line 77 of file namespace_def.cpp.

Referenced by MainImpl::getExternalDiffArgs(), and SettingsImpl::SettingsImpl().

const QString EXT_DIFF_KEY = "external_diff_viewer"

Definition at line 64 of file namespace_def.cpp.

Referenced by MainImpl::getExternalDiffArgs(), SettingsImpl::lineEditExternalDiffViewer_textChanged(), and SettingsImpl::SettingsImpl().

const int FLAGS_DEF = 8512

Definition at line 227 of file common.h.

Referenced by flags(), and setFlag().

const QString FLAGS_KEY = "patch_flags"

Definition at line 57 of file namespace_def.cpp.

Referenced by flags(), CustomActionImpl::removeAction(), and setFlag().

const QString FONT_KEY = "typewriter_font"

Definition at line 69 of file namespace_def.cpp.

Referenced by MainImpl::MainImpl(), and SettingsImpl::pushButtonFont_clicked().

const QString FP_DIR_KEY = "format_patch_last_dir"

Definition at line 55 of file namespace_def.cpp.

Referenced by MainImpl::ActMailApplyPatch_activated(), and MainImpl::ActMailFormatPatch_activated().

const QString FPATCH_ARGS_KEY = "format_patch_args"

Definition at line 56 of file namespace_def.cpp.

Referenced by Git::formatPatch(), SettingsImpl::lineEditExtraOptions_textChanged(), and SettingsImpl::SettingsImpl().

const QString GIT_VERSION = "1.4.4"

Definition at line 22 of file namespace_def.cpp.

Referenced by Git::checkEnvironment().

const QColor LIGHT_BLUE = QColor(85, 255, 255)

Definition at line 29 of file namespace_def.cpp.

Referenced by ListViewItem::paintCell(), and ListBoxFiles::update().

const QColor LIGHT_ORANGE = QColor(255, 221, 170)

Definition at line 28 of file namespace_def.cpp.

Referenced by ListViewItem::paintTagMarks().

const int MAX_DICT_SIZE = 100003

Definition at line 251 of file common.h.

Referenced by FileHistory::FileHistory(), and Git::Git().

const int MAX_MENU_ENTRIES = 15

Definition at line 252 of file common.h.

Referenced by MainImpl::doContexPopup().

const int MAX_RECENT_REPOS = 7

Definition at line 253 of file common.h.

Referenced by MainImpl::doUpdateRecentRepoMenu().

const QString MCR_LIST_KEY = "macro_list"

Definition at line 68 of file namespace_def.cpp.

Referenced by CustomActionImpl::CustomActionImpl(), MainImpl::MainImpl(), MainImpl::on_customAction_activated(), and CustomActionImpl::updateActionList().

const QString MCR_NAME_DEF = "New macro"

Definition at line 78 of file namespace_def.cpp.

const QString MCR_NAME_KEY = "macro_name"

Definition at line 66 of file namespace_def.cpp.

const QString MCR_TEXT_KEY = "commands"

Definition at line 67 of file namespace_def.cpp.

Referenced by CustomActionImpl::loadAction(), MainImpl::on_customAction_activated(), CustomActionImpl::removeAction(), and CustomActionImpl::textEditAction_textChanged().

QColor ODD_LINE_COL

Definition at line 34 of file namespace_def.cpp.

Referenced by ListViewItem::addTextPixmap(), MainImpl::MainImpl(), and ListViewItem::paintCell().

const QColor ORANGE = QColor(255, 160, 50)

Definition at line 26 of file namespace_def.cpp.

Referenced by ListViewItem::paintCell(), and ListViewItem::paintGraph().

const QString PATCHES_DIR = "/.qgit_patches_copy"

Definition at line 45 of file namespace_def.cpp.

Referenced by RevsView::on_droppedRevisions().

const QString PATCHES_NAME = "qgit_import"

Definition at line 46 of file namespace_def.cpp.

const QColor PURPLE = QColor(221, 221, 255)

Definition at line 30 of file namespace_def.cpp.

Referenced by ListViewItem::paintTagMarks().

const QString QUOTE_CHAR = "$"

Definition at line 85 of file namespace_def.cpp.

Referenced by Annotate::getNextPatch(), Git::quote(), MyProcess::restoreSpaces(), and MyProcess::splitArgList().

const QString REC_REP_KEY = "recent_open_repos"

Definition at line 65 of file namespace_def.cpp.

Referenced by MainImpl::doUpdateRecentRepoMenu().

QFont TYPE_WRITER_FONT

Referenced by ConsoleImpl::ConsoleImpl(), FileContent::FileContent(), MainImpl::MainImpl(), and PatchView::PatchView().

const QString ZERO_SHA = "0000000000000000000000000000000000000000"

Definition at line 49 of file namespace_def.cpp.

Referenced by MainImpl::ActCheckWorkDir_toggled(), MainImpl::ActMailFormatPatch_activated(), Git::clearRevs(), Git::commitFiles(), CommitImpl::CommitImpl(), Git::copyDiffIndex(), MainImpl::doContexPopup(), Git::fakeWorkDirRev(), ListView::filterRightButtonPressed(), Git::getDefCommitMsg(), Git::getDiff(), Git::getDiffIndex(), Git::getFile(), Git::getFiles(), Git::getFileSha(), Annotate::getNextPatch(), Git::getOtherFiles(), Git::getPatchFilter(), Git::getTree(), Git::getWorkDirFiles(), Git::isNothingToCommit(), Git::loadFileNames(), PatchView::on_buttonGroupDiff_clicked(), ListView::on_onItem(), ListViewItem::paintCell(), Git::removeDeleted(), Cache::save(), ListView::setHighlight(), ListViewItem::setupData(), TreeView::update(), MainImpl::updateContextActions(), and Annotate::updatePatchScript().


Generated on Fri Dec 7 21:57:41 2007 for QGit by  doxygen 1.5.3