Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Aron Helser
SMTK
Commits
8c56bc7d
Commit
8c56bc7d
authored
Apr 27, 2022
by
Aron Helser
Browse files
Allow creation of Signal op.
parent
040c31e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
smtk/view/ComponentPhraseContent.cxx
View file @
8c56bc7d
...
...
@@ -49,10 +49,14 @@ ComponentPhraseContent::Ptr ComponentPhraseContent::setup(
{
m_component
=
component
;
m_rawComponent
=
component
.
get
();
if
(
!
m_rawComponent
)
if
(
m_rawComponent
)
{
m_rawResource
=
m_rawComponent
->
resource
().
get
();
}
else
{
m_rawResource
=
nullptr
;
}
m_mutability
=
mutability
;
return
shared_from_this
();
}
...
...
smtk/view/testing/cxx/unitBadge.cxx
View file @
8c56bc7d
...
...
@@ -195,7 +195,7 @@ int unitBadge(int argc, char* argv[])
// create a Signal operation that will let Observers know that an
// attribute was created, modified, or removed.
//smtk::plugin::addToManagers<
smtk::attribute::Registrar
>
(operationManager);
smtk
::
attribute
::
Registrar
::
registerTo
(
operationManager
);
smtk
::
operation
::
InternalGroup
(
operationManager
).
registerOperation
<
smtk
::
attribute
::
Signal
>
();
auto
signalOp
=
operationManager
->
create
<
smtk
::
attribute
::
Signal
>
();
if
(
signalOp
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment