comparison framework/MainWindowBase.h @ 354:4969e7921931 tonioni

Fix single-key menu shortcuts on OS/X (for #890)
author Chris Cannam
date Mon, 02 Jun 2014 17:32:08 +0100
parents b3609adae921
children 337cdb5e5b06 0876ea394902
comparison
equal deleted inserted replaced
353:5a66f4e5a3dc 354:4969e7921931
282 282
283 virtual void closeSession() = 0; 283 virtual void closeSession() = 0;
284 284
285 virtual void newerVersionAvailable(QString) { } 285 virtual void newerVersionAvailable(QString) { }
286 286
287 virtual void menuActionMapperInvoked(QObject *);
288
287 protected: 289 protected:
288 QString m_sessionFile; 290 QString m_sessionFile;
289 QString m_audioFile; 291 QString m_audioFile;
290 Document *m_document; 292 Document *m_document;
291 293
410 412
411 virtual void setupMenus() = 0; 413 virtual void setupMenus() = 0;
412 virtual void updateVisibleRangeDisplay(Pane *p) const = 0; 414 virtual void updateVisibleRangeDisplay(Pane *p) const = 0;
413 virtual void updatePositionStatusDisplays() const = 0; 415 virtual void updatePositionStatusDisplays() const = 0;
414 416
417 // Call this after setting up the menu bar, to fix up single-key
418 // shortcuts on OS/X
419 virtual void finaliseMenus();
420 virtual void finaliseMenu(QMenu *);
421
415 virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; } 422 virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; }
416 423
417 virtual void connectLayerEditDialog(ModelDataTableDialog *dialog); 424 virtual void connectLayerEditDialog(ModelDataTableDialog *dialog);
418 425
419 virtual void toXml(QTextStream &stream, bool asTemplate); 426 virtual void toXml(QTextStream &stream, bool asTemplate);