Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#5127: Move common tree view item formatting code to wxutil.
Remove wxutil namespace specifies from EntityClassChooser, it's part of wxutil
- Loading branch information
1 parent
bd2a1b4
commit 2864d59
Showing
6 changed files
with
66 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include <wx/dataview.h> | ||
|
||
namespace wxutil | ||
{ | ||
|
||
class TreeViewItemStyle | ||
{ | ||
public: | ||
// Get the item format for favourites / non-favourites item in a declaration tree | ||
static wxDataViewItemAttr Declaration(bool isFavourite) | ||
{ | ||
if (isFavourite) | ||
{ | ||
wxDataViewItemAttr blueBold; | ||
blueBold.SetColour(wxColor(0, 0, 255)); | ||
blueBold.SetBold(true); | ||
|
||
return blueBold; | ||
} | ||
|
||
return wxDataViewItemAttr(); | ||
} | ||
}; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters