Ignore:
Timestamp:
Dec 26, 2025, 9:40:14 PM (6 days ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.1, stable
Children:
c8cb0d
Parents:
bdd1d0
git-author:
Frederik Heber <frederik.heber@…> (12/10/25 10:20:56)
git-committer:
Frederik Heber <frederik.heber@…> (12/26/25 21:40:14)
Message:

QtTimeLine no longers queries WorldTime directly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/QtTimeLine.hpp

    rbdd1d0 rf2d5ce  
    2020#include <boost/thread/recursive_mutex.hpp>
    2121
    22 #include "CodePatterns/Observer/Observer.hpp"
     22class QtObservedInstanceBoard;
    2323
    24 class QtTimeLine : public QWidget, public Observer
     24class QtTimeLine : public QWidget
    2525{
    2626  Q_OBJECT
    2727
    2828public:
    29   QtTimeLine(QWidget * _parent=0);
     29  QtTimeLine(QtObservedInstanceBoard *_instanceBoard, QWidget * _parent=0);
    3030  virtual ~QtTimeLine();
    3131
    3232protected:
    33   virtual void update(Observable *publisher);
    34   virtual void recieveNotification(Observable *publisher, Notification_ptr notification);
    35   virtual void subjectKilled(Observable *publisher);
    3633  virtual void paintEvent(QPaintEvent * event);
    3734
     
    3936  void StepUpdate(int position);
    4037
     38public slots:
     39  void WorldTimeChanged();
     40  void MaximumAtomTrajectoryChanged();
     41
    4142private:
    42   //!> whether AtomObserver knows about us or not
    43   bool atomobserver_enlisted;
    44   //!> whether WorldTime knows about us or not
    45   bool worldtime_enlisted;
    46 
    4743  QSlider *slider;
    4844  QSpinBox *spinbox;
    4945  QHBoxLayout *layout;
     46
     47  //!> instance board with observed world time
     48  QtObservedInstanceBoard *instanceBoard;
    5049
    5150  //!> states whether we are expecting a notification from the worldtime
Note: See TracChangeset for help on using the changeset viewer.