Commit 6b7addde authored by Jan Möbius's avatar Jan Möbius

Don't explicitly add groups to ini files.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13958 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 7594208b
...@@ -1452,7 +1452,7 @@ void MeshObjectSelectionPlugin::saveIniFile(INIFile& _ini, int _id) { ...@@ -1452,7 +1452,7 @@ void MeshObjectSelectionPlugin::saveIniFile(INIFile& _ini, int _id) {
} }
} }
void MeshObjectSelectionPlugin::slotLoadSelection(const INIFile& _file) { void MeshObjectSelectionPlugin::slotLoadSelection(INIFile& _file) {
// Iterate over all mesh objects in the scene and save // Iterate over all mesh objects in the scene and save
// the selections for all supported entity types // the selections for all supported entity types
...@@ -1507,11 +1507,7 @@ void MeshObjectSelectionPlugin::slotSaveSelection(INIFile& _file) { ...@@ -1507,11 +1507,7 @@ void MeshObjectSelectionPlugin::slotSaveSelection(INIFile& _file) {
// Create section for each object // Create section for each object
// Append object name to section identifier // Append object name to section identifier
QString section = QString("MeshObjectSelection") + "//" + o_it->name(); QString section = QString("MeshObjectSelection") + "//" + o_it->name();
if(!_file.section_exists(section)) {
_file.add_section(section);
} else {
continue;
}
// Store vertex selection: // Store vertex selection:
_file.add_entry(section, "VertexSelection", getVertexSelection(o_it->id())); _file.add_entry(section, "VertexSelection", getVertexSelection(o_it->id()));
// Store edge selection: // Store edge selection:
......
...@@ -158,7 +158,7 @@ private slots: ...@@ -158,7 +158,7 @@ private slots:
void slotFloodFillSelection(QMouseEvent* _event, double _maxAngle, SelectionInterface::PrimitiveType _currentType, bool _deselect); void slotFloodFillSelection(QMouseEvent* _event, double _maxAngle, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotComponentsSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect); void slotComponentsSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotLoadSelection(const INIFile& _file); void slotLoadSelection(INIFile& _file);
void slotSaveSelection(INIFile& _file); void slotSaveSelection(INIFile& _file);
void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers); void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers);
......
...@@ -273,7 +273,7 @@ void ObjectSelectionPlugin::saveIniFile(INIFile& _ini, int _id) { ...@@ -273,7 +273,7 @@ void ObjectSelectionPlugin::saveIniFile(INIFile& _ini, int _id) {
//============================================================================================== //==============================================================================================
void ObjectSelectionPlugin::slotLoadSelection(const INIFile& _file) { void ObjectSelectionPlugin::slotLoadSelection(INIFile& _file) {
// Iterate over all polyline objects in the scene and save // Iterate over all polyline objects in the scene and save
// the selections for all supported entity types // the selections for all supported entity types
...@@ -309,11 +309,6 @@ void ObjectSelectionPlugin::slotSaveSelection(INIFile& _file) { ...@@ -309,11 +309,6 @@ void ObjectSelectionPlugin::slotSaveSelection(INIFile& _file) {
// Create section for each object // Create section for each object
// Append object name to section identifier // Append object name to section identifier
QString section = QString("ObjectSelection") + "//" + o_it->name(); QString section = QString("ObjectSelection") + "//" + o_it->name();
if(!_file.section_exists(section)) {
_file.add_section(section);
} else {
continue;
}
// Store vertex selection: // Store vertex selection:
_file.add_entry(section, "Target", getObjectSelection()); _file.add_entry(section, "Target", getObjectSelection());
......
...@@ -129,7 +129,7 @@ private slots: ...@@ -129,7 +129,7 @@ private slots:
void slotToggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect); void slotToggleSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotVolumeLassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect); void slotVolumeLassoSelection(QMouseEvent* _event, SelectionInterface::PrimitiveType _currentType, bool _deselect);
void slotLoadSelection(const INIFile& _file); void slotLoadSelection(INIFile& _file);
void slotSaveSelection(INIFile& _file); void slotSaveSelection(INIFile& _file);
void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers); void slotKeyShortcutEvent(int _key, Qt::KeyboardModifiers _modifiers);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment