Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
4d6317fb
Commit
4d6317fb
authored
10 years ago
by
Ronny Eichler
Browse files
Options
Downloads
Patches
Plain Diff
GraphViewer nodes use editor color
parent
d0113186
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Processors/Editors/GenericEditor.h
+11
-1
11 additions, 1 deletion
Source/Processors/Editors/GenericEditor.h
Source/UI/GraphViewer.cpp
+2
-2
2 additions, 2 deletions
Source/UI/GraphViewer.cpp
with
13 additions
and
3 deletions
Source/Processors/Editors/GenericEditor.h
+
11
−
1
View file @
4d6317fb
...
...
@@ -231,6 +231,16 @@ public:
/** Called when an editor's processor updates its settings (mainly to update channel count).*/
virtual
void
update
();
/** Allows other UI elements to use background color of editor. */
Colour
getBackgroundColor
()
{
return
backgroundColor
;
}
/** Allows other elements to use background gradient of editor. */
ColourGradient
getBackgroundGradient
()
{
return
backgroundGradient
;
}
/** Called by the update() method to allow the editor to update its custom settings.*/
virtual
void
updateSettings
()
{}
...
...
@@ -344,7 +354,7 @@ private:
bool
isEnabled
;
bool
isCollapsed
;
/**Used to determine if an editor is a splitter or Merger to avoid calling on C
H
annelSelector*/
/**Used to determine if an editor is a splitter or Merger to avoid calling on C
h
annelSelector*/
bool
isSplitOrMerge
;
int
tNum
;
...
...
This diff is collapsed.
Click to expand it.
Source/UI/GraphViewer.cpp
+
2
−
2
View file @
4d6317fb
...
...
@@ -468,11 +468,11 @@ void GraphNode::paint(Graphics& g)
}
else
{
g
.
setColour
(
Colours
::
lightgrey
);
g
.
setColour
(
editor
->
getBackgroundColor
()
);
g
.
fillEllipse
(
2
,
2
,
16
,
16
);
}
g
.
drawText
(
getName
(),
25
,
0
,
getWidth
()
-
25
,
20
,
Justification
::
left
,
true
);
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment