comparison framework/MainWindowBase.h @ 426:03fd6990ab52 alignment_view

Open to show/hide icons in menus
author Chris Cannam
date Fri, 21 Nov 2014 10:36:44 +0000
parents 662aef012679
children a67245dce0d4
comparison
equal deleted inserted replaced
425:5882462fa747 426:03fd6990ab52
424 virtual void setupMenus() = 0; 424 virtual void setupMenus() = 0;
425 virtual void updateVisibleRangeDisplay(Pane *p) const = 0; 425 virtual void updateVisibleRangeDisplay(Pane *p) const = 0;
426 virtual void updatePositionStatusDisplays() const = 0; 426 virtual void updatePositionStatusDisplays() const = 0;
427 427
428 // Call this after setting up the menu bar, to fix up single-key 428 // Call this after setting up the menu bar, to fix up single-key
429 // shortcuts on OS/X 429 // shortcuts on OS/X and do any other platform-specific tidying
430 virtual void finaliseMenus(); 430 virtual void finaliseMenus();
431 virtual void finaliseMenu(QMenu *); 431 virtual void finaliseMenu(QMenu *);
432 432
433 // Call before finaliseMenus if you wish to have a say in this question
434 void setIconsVisibleInMenus(bool visible) { m_iconsVisibleInMenus = visible; }
435 bool m_iconsVisibleInMenus;
436
433 // Only used on OS/X to work around a Qt/Cocoa bug, see finaliseMenus 437 // Only used on OS/X to work around a Qt/Cocoa bug, see finaliseMenus
434 QSignalMapper *m_menuShortcutMapper; 438 QSignalMapper *m_menuShortcutMapper;
435 QList<QShortcut *> m_appShortcuts; 439 QList<QShortcut *> m_appShortcuts;
436 440
437 virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; } 441 virtual bool shouldCreateNewSessionForRDFAudio(bool *) { return true; }