Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F623557
BranchLabel.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
794 B
Referenced Files
None
Subscribers
None
BranchLabel.h
View Options
#ifndef BRANCHLABEL_H
#define BRANCHLABEL_H
#include
<QColor>
#include
"ApplicationGlobal.h"
/**
* @brief ログテーブルウィジェットのブランチ名ラベル
*/
class
BranchLabel
{
public
:
enum
Type
{
Head
,
LocalBranch
,
RemoteBranch
,
Tag
,
};
Type
kind
;
QString
text
;
QString
info
;
BranchLabel
(
Type
kind
=
LocalBranch
)
:
kind
(
kind
)
{
}
static
QColor
color
(
Type
type
)
{
switch
(
type
)
{
case
Head
:
return
global
->
appsettings
.
branch_label_color
.
head
;
case
LocalBranch
:
return
global
->
appsettings
.
branch_label_color
.
local
;
case
RemoteBranch
:
return
global
->
appsettings
.
branch_label_color
.
remote
;
case
Tag
:
return
global
->
appsettings
.
branch_label_color
.
tag
;
}
return
QColor
(
224
,
224
,
224
);
// gray
}
};
#endif
// BRANCHLABEL_H
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Nov 14, 9:22 PM (1 d, 3 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
115250
Default Alt Text
BranchLabel.h (794 B)
Attached To
Mode
R77 Guitar
Attached
Detach File
Event Timeline