Ignore:
File:
1 edited

Legend:

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

    r8859b5 rc01fec  
    2727
    2828
    29 class QtToolBar : public QToolBar
     29class QtToolBar : public QToolBar, public Observer
    3030{
    3131  Q_OBJECT
     
    3939   * @param description description to appear as tooltip
    4040   * @param icon_name name of icon
     41   * @return ref to newly created action
    4142   */
    42   void addActionItem(const std::string &token, const std::string &description, const std::string &icon_name);
     43  QAction * addActionItem(
     44      const std::string &token,
     45      const std::string &description,
     46      const std::string &icon_name);
    4347
    4448  /** Function to add a set of favorite actions.
     
    5761  const present_actions_t & getPresentActions() const
    5862  { return present_actions; }
     63
     64  void update(Observable *publisher);
     65  void subjectKilled(Observable *publisher);
     66  void recieveNotification(Observable *publisher, Notification_ptr notification);
    5967
    6068private:
     
    105113  //!> set of already present action icons
    106114  present_actions_t present_actions;
     115
     116  //!> sign in to ActionQueue?
     117  bool ActionQueue_observing;
     118  //!> ref to undoaction to gray out
     119  QAction *undoaction;
     120  //!> ref to redoaction to gray out
     121  QAction *redoaction;
    107122};
    108123
Note: See TracChangeset for help on using the changeset viewer.