Ignore:
Timestamp:
Nov 3, 2025, 7:52:35 AM (2 months ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
b6f2d2
Parents:
49719b
Message:

Right-click context menu depends on selection mode.

  • if atoms are being selected, we show the atom menu. If molecules are being selected, then we show the molecule menu.
Location:
src/UIElements/Views/Qt4/Qt3D
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp

    r49719b ra2c7c3  
    334334      +" to stored observed value.");
    335335  QObject * sender = iter->second;
     336#ifndef NDEBUG
    336337  const size_t erased = _ObservedValues.erase(sender);
    337338  ASSERT( erased == 1,
     
    339340      +toString(_id));
    340341  _ObservedValueIndexLookup.erase(iter);
     342#endif
    341343}
    342344
     
    943945}
    944946
     947GLWorldScene::SelectionModeType GLWorldScene::getSelectionMode() const
     948{
     949        return selectionMode;
     950}
     951
    945952void GLWorldScene::setSelectionModeAtom()
    946953{
  • src/UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp

    r49719b ra2c7c3  
    7474  };
    7575  void setSelectionMode(SelectionModeType mode);
     76  SelectionModeType getSelectionMode() const;
    7677
    7778signals:
  • src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp

    r49719b ra2c7c3  
    139139}
    140140
     141GLWorldScene::SelectionModeType GLWorldView::getSelectionMode() const
     142{
     143        return worldscene->getSelectionMode();
     144}
    141145
    142146/**
  • src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp

    r49719b ra2c7c3  
    3232
    3333#include "UIElements/Qt4/InstanceBoard/ObservedValue_types.hpp"
     34#include "UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp"
    3435
    3536/** This class is the view on the 3D representation of the World, i.e. the whole
     
    5455  void subjectKilled(Observable *publisher);
    5556  void recieveNotification(Observable *publisher, Notification_ptr notification);
     57 
     58  GLWorldScene::SelectionModeType getSelectionMode() const;
    5659
    5760public slots:
Note: See TracChangeset for help on using the changeset viewer.