Changeset a2c7c3
- Timestamp:
- Nov 3, 2025, 7:52:35 AM (2 months ago)
- Branches:
- Candidate_v1.7.1, stable
- Children:
- b6f2d2
- Parents:
- 49719b
- Location:
- src/UIElements
- Files:
-
- 5 edited
-
Qt4/QtMainWindow.cpp (modified) (1 diff)
-
Views/Qt4/Qt3D/GLWorldScene.cpp (modified) (3 diffs)
-
Views/Qt4/Qt3D/GLWorldScene.hpp (modified) (1 diff)
-
Views/Qt4/Qt3D/GLWorldView.cpp (modified) (1 diff)
-
Views/Qt4/Qt3D/GLWorldView.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/QtMainWindow.cpp
r49719b ra2c7c3 203 203 void QtMainWindow::slotContextMenuRequested(const QPoint &pos) 204 204 { 205 // pick the atoms menu 206 QtMenu<QMenu_tooltip> * atoms_submenu = MainMenu->findSubmenu("atom"); 205 // switch to atoms or molecule depending on selection mode 206 const string menu_name = 207 glWorldView->getSelectionMode() == GLWorldScene::SelectAtom ? "atom" : "molecule"; 208 QtMenu<QMenu_tooltip> * atoms_submenu = MainMenu->findSubmenu(menu_name); 207 209 // and show it 208 210 if (atoms_submenu != NULL) { 209 211 atoms_submenu->popup(glWorldView->mapToGlobal(pos)); 210 212 } else { 211 ELOG(1, "Could not find atomsubmenu.");213 ELOG(1, "Could not find " << menu_name << " submenu."); 212 214 } 213 215 } -
src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp
r49719b ra2c7c3 334 334 +" to stored observed value."); 335 335 QObject * sender = iter->second; 336 #ifndef NDEBUG 336 337 const size_t erased = _ObservedValues.erase(sender); 337 338 ASSERT( erased == 1, … … 339 340 +toString(_id)); 340 341 _ObservedValueIndexLookup.erase(iter); 342 #endif 341 343 } 342 344 … … 943 945 } 944 946 947 GLWorldScene::SelectionModeType GLWorldScene::getSelectionMode() const 948 { 949 return selectionMode; 950 } 951 945 952 void GLWorldScene::setSelectionModeAtom() 946 953 { -
src/UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp
r49719b ra2c7c3 74 74 }; 75 75 void setSelectionMode(SelectionModeType mode); 76 SelectionModeType getSelectionMode() const; 76 77 77 78 signals: -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp
r49719b ra2c7c3 139 139 } 140 140 141 GLWorldScene::SelectionModeType GLWorldView::getSelectionMode() const 142 { 143 return worldscene->getSelectionMode(); 144 } 141 145 142 146 /** -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp
r49719b ra2c7c3 32 32 33 33 #include "UIElements/Qt4/InstanceBoard/ObservedValue_types.hpp" 34 #include "UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp" 34 35 35 36 /** This class is the view on the 3D representation of the World, i.e. the whole … … 54 55 void subjectKilled(Observable *publisher); 55 56 void recieveNotification(Observable *publisher, Notification_ptr notification); 57 58 GLWorldScene::SelectionModeType getSelectionMode() const; 56 59 57 60 public slots:
Note:
See TracChangeset
for help on using the changeset viewer.
