#include <qstringlist.h>
#include <qvaluevector.h>
#include <qdict.h>
#include <qmap.h>
#include <qevent.h>
#include <qcolor.h>
#include <qfont.h>
#include <qvariant.h>
Go to the source code of this file.
Namespaces | |
namespace | QGit |
Classes | |
class | Rev |
class | RevFile |
class | FileAnnotation |
class | BaseEvent |
class | DeferredPopupEvent |
class | MainExecErrorEvent |
Defines | |
#define | dbg(x) qDebug(#x " is <%s>", _valueOf(x).latin1()) |
#define | dbs(x) qDebug(_valueOf(x)) |
#define | dbp(s, x) qDebug(QString(s).arg(_valueOf(x))) |
#define | db1 qDebug("Mark Nr. 1") |
#define | db2 qDebug("Mark Nr. 2") |
#define | db3 qDebug("Mark Nr. 3") |
#define | db4 qDebug("Mark Nr. 4") |
#define | dbStart dbs("Starting timer..."); QTime _t; _t.start() |
#define | dbRestart dbp("Elapsed time is %1 ms", _t.restart()) |
#define | FOREACH(type, i, c) |
#define | FOREACH_SL(i, c) FOREACH(QStringList, i, c) |
#define | DEF_EVENT(X, T) |
Typedefs | |
typedef const QString & | SCRef |
typedef QStringList & | SList |
typedef const QStringList & | SCList |
typedef QValueVector < QString > | StrVect |
typedef QDict< Rev > | RevMap |
typedef QDict< RevFile > | RevFileMap |
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 | |
template<typename T> | |
const QString | _valueOf (const T &x) |
const QString & | _valueOf (const QString &x) |
const QString | _valueOf (size_t x) |
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) |
DEF_EVENT (MessageEvent, QGit::MSG_EV) | |
DEF_EVENT (AnnotateProgressEvent, QGit::ANN_PRG_EV) | |
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 = "$" |
#define dbg | ( | x | ) | qDebug(#x " is <%s>", _valueOf(x).latin1()) |
#define dbp | ( | s, | |||
x | ) | qDebug(QString(s).arg(_valueOf(x))) |
Definition at line 34 of file common.h.
Referenced by Git::addChunk(), Git::checkEnvironment(), Annotate::computeRanges(), MainImpl::customEvent(), Annotate::doAnnotate(), Annotate::getAncestor(), Git::getDefCommitMsg(), Annotate::getFileAnnotation(), Annotate::getNextPatch(), FileContent::lookupAnnotation(), FileContent::on_annotateReady(), MainImpl::on_customAction_activated(), Git::on_procDataReady(), Git::parseStGitPatches(), QGit::readFromFile(), Annotate::setAnnotation(), Git::setExtStatus(), Annotate::setInitialAnnotation(), Git::setStatus(), SettingsImpl::setupCodecsCombo(), Git::stgPop(), Git::stgPush(), Git::updateDescMap(), and QGit::writeToFile().
#define dbRestart dbp("Elapsed time is %1 ms", _t.restart()) |
#define dbs | ( | x | ) | qDebug(_valueOf(x)) |
Definition at line 33 of file common.h.
Referenced by MainImpl::ActFilterTree_toggled(), MainImpl::ActSplitView_activated(), DataLoader::addSplittedChunks(), Git::copyDiffIndex(), MainImpl::currentTabType(), Annotate::getAncestor(), Git::getFiles(), Git::getHighlightedFile(), ListView::getLaneParentsChilds(), Git::getTagMsg(), Git::init(), Git::loadFileNames(), FileContent::lookupAnnotation(), ListBoxFiles::mouseMoved(), DataLoader::on_eof(), MyProcess::on_readyReadStderr(), DataLoader::on_timeout(), FileView::on_toolButtonRangeFilter_toggled(), FileContent::processData(), MainImpl::pushButtonCloseTab_clicked(), FileContent::rangeFilter(), Cache::save(), FileContent::setHighlightSource(), MainImpl::setRepository(), MyProcess::splitArgList(), DataLoader::start(), Git::stop(), MainImpl::tabWdg_currentChanged(), Domain::update(), and SettingsImpl::userInfo().
#define dbStart dbs("Starting timer..."); QTime _t; _t.start() |
#define DEF_EVENT | ( | X, | |||
T | ) |
#define FOREACH | ( | type, | |||
i, | |||||
c | ) |
Value:
for (type::const_iterator i((c).constBegin()), \
_e##i##_((c).constEnd()); i != _e##i##_; ++i)
Definition at line 43 of file common.h.
Referenced by Git::getAllRefNames(), Git::getAllRefSha(), Git::getFileFilter(), Git::getPatchFilter(), Git::getRefSha(), Git::loadFileNames(), and RangeSelectImpl::orderTags().
#define FOREACH_SL | ( | i, | |||
c | ) | FOREACH(QStringList, i, c) |
Definition at line 46 of file common.h.
Referenced by ListViewItem::addBranchPixmap(), ListViewItem::addRefPixmap(), FileContent::annotateLength(), Git::appendNamesWithId(), Git::commitFiles(), CustomActionImpl::CustomActionImpl(), DataLoader::doStart(), MainImpl::doUpdateCustomActionMenu(), Git::fakeWorkDirRevFile(), Git::formatPatch(), Git::getPatchFilter(), Git::getRefs(), Git::getTree(), FileContent::goToAnnotation(), MainImpl::on_customAction_activated(), Git::on_getHighlightedFile_eof(), RevsView::on_lanesContextMenuRequested(), RangeSelectImpl::orderTags(), Git::parseStGitPatches(), PatchView::processData(), FileContent::processData(), Git::removeDeleted(), Git::removeFiles(), Git::restoreFiles(), Git::stgCommit(), TreeView::update(), and SettingsImpl::userInfo().
typedef QDict<RevFile> RevFileMap |
DEF_EVENT | ( | AnnotateProgressEvent | , | |
QGit::ANN_PRG_EV | ||||
) |
DEF_EVENT | ( | MessageEvent | , | |
QGit::MSG_EV | ||||
) |