Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
David Cazier
CGoGN
Commits
99686812
Commit
99686812
authored
Sep 25, 2014
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add slot for selecting map from python console
parent
9a03f38e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
SCHNApps/include/controlDock_mapTab.h
SCHNApps/include/controlDock_mapTab.h
+2
-0
SCHNApps/include/schnapps.h
SCHNApps/include/schnapps.h
+1
-0
SCHNApps/src/controlDock_mapTab.cpp
SCHNApps/src/controlDock_mapTab.cpp
+11
-0
SCHNApps/src/schnapps.cpp
SCHNApps/src/schnapps.cpp
+5
-0
No files found.
SCHNApps/include/controlDock_mapTab.h
View file @
99686812
...
...
@@ -31,6 +31,8 @@ public:
unsigned
int
getCurrentOrbit
();
CellSelectorGen
*
getSelectedSelector
(
unsigned
int
orbit
)
{
return
m_selectedSelector
[
orbit
];
}
void
setSelectedMap
(
const
QString
&
mapName
);
private
slots
:
// slots called from UI actions
void
selectedMapChanged
();
...
...
SCHNApps/include/schnapps.h
View file @
99686812
...
...
@@ -90,6 +90,7 @@ private slots:
public
slots
:
MapHandlerGen
*
addMap
(
const
QString
&
name
,
unsigned
int
dim
);
void
removeMap
(
const
QString
&
name
);
void
setSelectedMap
(
const
QString
&
mapName
);
MapHandlerGen
*
getMap
(
const
QString
&
name
)
const
;
const
MapSet
&
getMapSet
()
const
{
return
m_maps
;
}
...
...
SCHNApps/src/controlDock_mapTab.cpp
View file @
99686812
...
...
@@ -447,6 +447,17 @@ void ControlDock_MapTab::updateSelectedMapInfo()
b_updatingUI
=
false
;
}
void
ControlDock_MapTab
::
setSelectedMap
(
const
QString
&
mapName
)
{
QList
<
QListWidgetItem
*>
lm
=
list_maps
->
findItems
(
mapName
,
Qt
::
MatchExactly
);
if
(
!
lm
.
empty
())
{
lm
[
0
]
->
setSelected
(
true
);
}
}
}
// namespace SCHNApps
}
// namespace CGoGN
SCHNApps/src/schnapps.cpp
View file @
99686812
...
...
@@ -520,6 +520,11 @@ void SCHNApps::removeMap(const QString& name)
}
}
void
SCHNApps
::
setSelectedMap
(
const
QString
&
mapName
)
{
m_controlMapTab
->
setSelectedMap
(
mapName
);
}
MapHandlerGen
*
SCHNApps
::
getMap
(
const
QString
&
name
)
const
{
if
(
m_maps
.
contains
(
name
))
...
...
Write
Preview
Markdown
is supported
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