comparison common.h @ 0:a9098eba2ee5

Initial commit.
author Jari Korhonen <jtkorhonen@gmail.com>
date Thu, 22 Apr 2010 03:15:35 +0300
parents
children c19a4f858aab
comparison
equal deleted inserted replaced
-1:000000000000 0:a9098eba2ee5
1 #ifndef COMMON_H
2 #define COMMON_H
3
4 //** Copyright (C) Jari Korhonen, 2010 (under lgpl)
5
6 #include <QtCore>
7
8 #define APPNAME "HgExplorer"
9 #define APPVERSION "0.3.6"
10 #define MY_ICON_SIZE 32
11 #define REPOMENU_TITLE "Repository actions"
12 #define WORKFOLDERMENU_TITLE "Workfolder actions"
13 #define EXITOK(x) ((x)==0)
14 #define CHGSET "changeset: "
15 #define REQUIRED_CHGSET_DIFF_COUNT 2
16
17 #define WORKTAB 0
18 #define HISTORYTAB 1
19 #define HEADSTAB 2
20
21 #define HGSTAT_M_BIT 1U
22 #define HGSTAT_A_BIT 2U
23 #define HGSTAT_R_BIT 4U
24 #define HGSTAT_D_BIT 8U
25 #define HGSTAT_U_BIT 16U
26 #define HGSTAT_C_BIT 32U
27 #define HGSTAT_I_BIT 64U
28
29 #define DEFAULT_HG_STAT_BITS (HGSTAT_M_BIT | HGSTAT_A_BIT | HGSTAT_R_BIT | HGSTAT_D_BIT | HGSTAT_U_BIT)
30
31
32
33 extern QString getSystem();
34 extern QString getHgBinaryName();
35 extern QString getDiffMergeDefaultPath();
36 extern QString getHgDirName();
37
38 #endif //COMMON_H
39
40