Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
schwede
openstructure
Commits
450a9eb7
Commit
450a9eb7
authored
14 years ago
by
Marco Biasini
Browse files
Options
Downloads
Patches
Plain Diff
added RenameAtom method to EditorBase
parent
9a64ec3d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/base/src/editor_base.cc
+7
-1
7 additions, 1 deletion
modules/mol/base/src/editor_base.cc
modules/mol/base/src/editor_base.hh
+3
-0
3 additions, 0 deletions
modules/mol/base/src/editor_base.hh
with
10 additions
and
1 deletion
modules/mol/base/src/editor_base.cc
+
7
−
1
View file @
450a9eb7
...
...
@@ -22,7 +22,7 @@
#include
"impl/entity_impl.hh"
#include
"impl/chain_impl.hh"
#include
"impl/residue_impl.hh"
#include
"impl/atom_impl.hh"
#include
"mol.hh"
/*
...
...
@@ -125,6 +125,12 @@ void EditorBase::DeleteResidue(const ResidueHandle& residue_handle)
residue_handle
.
GetChain
().
Impl
()
->
DeleteResidue
(
residue_handle
.
Impl
());
}
void
EditorBase
::
RenameAtom
(
AtomHandle
atom
,
const
String
&
new_name
)
{
CheckHandleValidity
(
atom
);
atom
.
Impl
()
->
SetName
(
new_name
);
}
BondHandle
EditorBase
::
Connect
(
const
AtomHandle
&
first
,
const
AtomHandle
&
second
)
{
CheckHandleValidity
(
first
);
...
...
This diff is collapsed.
Click to expand it.
modules/mol/base/src/editor_base.hh
+
3
−
0
View file @
450a9eb7
...
...
@@ -187,6 +187,9 @@ public:
/// \brief Get edit mode of editor
EditMode
GetMode
()
const
;
/// \brief change the name of the atom to the new name
void
RenameAtom
(
AtomHandle
atom
,
const
String
&
new_name
);
protected:
EditorBase
(
const
EntityHandle
&
ent
,
EditMode
mode
);
void
UpdateTrace
();
...
...
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