Mercurial > hg > sonic-visualiser
comparison main/MainWindow.h @ 2125:124de219669f fix-static-analysis
Use override throughout, + include guards
author | Chris Cannam |
---|---|
date | Mon, 26 Nov 2018 13:56:48 +0000 |
parents | 6e3ef3aa341e |
children | b0e8217719ed |
comparison
equal
deleted
inserted
replaced
2123:7c30a7f20c6a | 2125:124de219669f |
---|---|
38 signals: | 38 signals: |
39 void canChangeSolo(bool); | 39 void canChangeSolo(bool); |
40 void canAlign(bool); | 40 void canAlign(bool); |
41 | 41 |
42 public slots: | 42 public slots: |
43 virtual void preferenceChanged(PropertyContainer::PropertyName); | 43 void preferenceChanged(PropertyContainer::PropertyName) override; |
44 virtual void coloursChanged(); | 44 virtual void coloursChanged(); |
45 | 45 |
46 virtual bool commitData(bool mayAskUser); | 46 virtual bool commitData(bool mayAskUser); |
47 | 47 |
48 void goFullScreen(); | 48 void goFullScreen(); |
67 virtual void exportSVG(); | 67 virtual void exportSVG(); |
68 virtual void browseRecordedAudio(); | 68 virtual void browseRecordedAudio(); |
69 virtual void saveSession(); | 69 virtual void saveSession(); |
70 virtual void saveSessionAs(); | 70 virtual void saveSessionAs(); |
71 virtual void newSession(); | 71 virtual void newSession(); |
72 virtual void closeSession(); | 72 void closeSession() override; |
73 virtual void preferences(); | 73 virtual void preferences(); |
74 | 74 |
75 virtual void sampleRateMismatch(sv_samplerate_t, sv_samplerate_t, bool); | 75 void sampleRateMismatch(sv_samplerate_t, sv_samplerate_t, bool) override; |
76 virtual void audioOverloadPluginDisabled(); | 76 void audioOverloadPluginDisabled() override; |
77 virtual void audioTimeStretchMultiChannelDisabled(); | 77 void audioTimeStretchMultiChannelDisabled() override; |
78 | 78 |
79 virtual void toolNavigateSelected(); | 79 virtual void toolNavigateSelected(); |
80 virtual void toolSelectSelected(); | 80 virtual void toolSelectSelected(); |
81 virtual void toolEditSelected(); | 81 virtual void toolEditSelected(); |
82 virtual void toolDrawSelected(); | 82 virtual void toolDrawSelected(); |
83 virtual void toolEraseSelected(); | 83 virtual void toolEraseSelected(); |
84 virtual void toolMeasureSelected(); | 84 virtual void toolMeasureSelected(); |
85 | 85 |
86 virtual void documentModified(); | 86 void documentModified() override; |
87 virtual void documentRestored(); | 87 void documentRestored() override; |
88 virtual void documentReplaced(); | 88 virtual void documentReplaced(); |
89 | 89 |
90 virtual void updateMenuStates(); | 90 void updateMenuStates() override; |
91 virtual void updateDescriptionLabel(); | 91 void updateDescriptionLabel() override; |
92 | 92 |
93 virtual void setInstantsNumbering(); | 93 virtual void setInstantsNumbering(); |
94 virtual void setInstantsCounterCycle(); | 94 virtual void setInstantsCounterCycle(); |
95 virtual void setInstantsCounters(); | 95 virtual void setInstantsCounters(); |
96 virtual void resetInstantsCounters(); | 96 virtual void resetInstantsCounters(); |
97 virtual void subdivideInstants(); | 97 virtual void subdivideInstants(); |
98 virtual void winnowInstants(); | 98 virtual void winnowInstants(); |
99 | 99 |
100 virtual void modelGenerationFailed(QString, QString); | 100 void modelGenerationFailed(QString, QString) override; |
101 virtual void modelGenerationWarning(QString, QString); | 101 void modelGenerationWarning(QString, QString) override; |
102 virtual void modelRegenerationFailed(QString, QString, QString); | 102 void modelRegenerationFailed(QString, QString, QString) override; |
103 virtual void modelRegenerationWarning(QString, QString, QString); | 103 void modelRegenerationWarning(QString, QString, QString) override; |
104 virtual void alignmentFailed(QString); | 104 void alignmentFailed(QString) override; |
105 | 105 |
106 virtual void rightButtonMenuRequested(Pane *, QPoint point); | 106 void rightButtonMenuRequested(Pane *, QPoint point) override; |
107 | 107 |
108 virtual void propertyStacksResized(int); | 108 virtual void propertyStacksResized(int); |
109 | 109 |
110 virtual void addPane(); | 110 virtual void addPane(); |
111 virtual void addLayer(); | 111 virtual void addLayer(); |
112 virtual void addLayer(QString transformId); | 112 virtual void addLayer(QString transformId); |
113 virtual void renameCurrentLayer(); | 113 virtual void renameCurrentLayer(); |
114 | 114 |
115 virtual void findTransform(); | 115 virtual void findTransform(); |
116 | 116 |
117 virtual void paneAdded(Pane *); | 117 void paneAdded(Pane *) override; |
118 virtual void paneHidden(Pane *); | 118 void paneHidden(Pane *) override; |
119 virtual void paneAboutToBeDeleted(Pane *); | 119 void paneAboutToBeDeleted(Pane *) override; |
120 virtual void paneDropAccepted(Pane *, QStringList); | 120 void paneDropAccepted(Pane *, QStringList) override; |
121 virtual void paneDropAccepted(Pane *, QString); | 121 void paneDropAccepted(Pane *, QString) override; |
122 | 122 |
123 virtual void setupRecentFilesMenu(); | 123 virtual void setupRecentFilesMenu(); |
124 virtual void setupRecentTransformsMenu(); | 124 virtual void setupRecentTransformsMenu(); |
125 virtual void setupTemplatesMenu(); | 125 virtual void setupTemplatesMenu(); |
126 | 126 |
127 virtual void playSpeedChanged(int); | 127 virtual void playSpeedChanged(int); |
128 virtual void playSoloToggled(); | 128 void playSoloToggled() override; |
129 virtual void alignToggled(); | 129 virtual void alignToggled(); |
130 | 130 |
131 virtual void currentPaneChanged(Pane *); | 131 void currentPaneChanged(Pane *) override; |
132 | 132 |
133 virtual void speedUpPlayback(); | 133 virtual void speedUpPlayback(); |
134 virtual void slowDownPlayback(); | 134 virtual void slowDownPlayback(); |
135 virtual void restoreNormalPlayback(); | 135 virtual void restoreNormalPlayback(); |
136 | 136 |
137 virtual void monitoringLevelsChanged(float, float); | 137 void monitoringLevelsChanged(float, float) override; |
138 | 138 |
139 virtual void layerRemoved(Layer *); | 139 void layerRemoved(Layer *) override; |
140 virtual void layerInAView(Layer *, bool); | 140 void layerInAView(Layer *, bool) override; |
141 | 141 |
142 virtual void mainModelChanged(WaveFileModel *); | 142 void mainModelChanged(WaveFileModel *) override; |
143 virtual void mainModelGainChanged(float); | 143 virtual void mainModelGainChanged(float); |
144 virtual void mainModelPanChanged(float); | 144 virtual void mainModelPanChanged(float); |
145 virtual void modelAdded(Model *); | 145 void modelAdded(Model *) override; |
146 virtual void modelAboutToBeDeleted(Model *); | 146 void modelAboutToBeDeleted(Model *) override; |
147 | 147 |
148 virtual void showLayerTree(); | 148 virtual void showLayerTree(); |
149 virtual void showActivityLog(); | 149 virtual void showActivityLog(); |
150 virtual void showUnitConverter(); | 150 virtual void showUnitConverter(); |
151 | 151 |
152 virtual void mouseEnteredWidget(); | 152 virtual void mouseEnteredWidget(); |
153 virtual void mouseLeftWidget(); | 153 virtual void mouseLeftWidget(); |
154 | 154 |
155 virtual void handleOSCMessage(const OSCMessage &); | 155 void handleOSCMessage(const OSCMessage &) override; |
156 virtual void midiEventsAvailable(); | 156 virtual void midiEventsAvailable(); |
157 virtual void playStatusChanged(bool); | 157 virtual void playStatusChanged(bool); |
158 | 158 |
159 /* | 159 /* |
160 virtual void betaReleaseWarning(); | 160 virtual void betaReleaseWarning(); |
167 virtual void website(); | 167 virtual void website(); |
168 virtual void help(); | 168 virtual void help(); |
169 virtual void about(); | 169 virtual void about(); |
170 virtual void whatsNew(); | 170 virtual void whatsNew(); |
171 virtual void keyReference(); | 171 virtual void keyReference(); |
172 virtual void newerVersionAvailable(QString); | 172 void newerVersionAvailable(QString) override; |
173 | 173 |
174 protected: | 174 protected: |
175 Overview *m_overview; | 175 Overview *m_overview; |
176 LevelPanToolButton *m_mainLevelPan; | 176 LevelPanToolButton *m_mainLevelPan; |
177 AudioDial *m_playSpeed; | 177 AudioDial *m_playSpeed; |
282 typedef std::map<TransformId, QAction *> TransformActionReverseMap; | 282 typedef std::map<TransformId, QAction *> TransformActionReverseMap; |
283 TransformActionReverseMap m_transformActionsReverse; | 283 TransformActionReverseMap m_transformActionsReverse; |
284 | 284 |
285 QString getReleaseText() const; | 285 QString getReleaseText() const; |
286 | 286 |
287 virtual void setupMenus(); | 287 void setupMenus() override; |
288 virtual void setupFileMenu(); | 288 virtual void setupFileMenu(); |
289 virtual void setupEditMenu(); | 289 virtual void setupEditMenu(); |
290 virtual void setupViewMenu(); | 290 virtual void setupViewMenu(); |
291 virtual void setupPaneAndLayerMenus(); | 291 virtual void setupPaneAndLayerMenus(); |
292 virtual void setupTransformsMenu(); | 292 virtual void setupTransformsMenu(); |
294 virtual void setupExistingLayersMenus(); | 294 virtual void setupExistingLayersMenus(); |
295 virtual void setupToolbars(); | 295 virtual void setupToolbars(); |
296 | 296 |
297 virtual void addPane(const LayerConfiguration &configuration, QString text); | 297 virtual void addPane(const LayerConfiguration &configuration, QString text); |
298 | 298 |
299 virtual void closeEvent(QCloseEvent *e); | 299 void closeEvent(QCloseEvent *e) override; |
300 virtual bool checkSaveModified(); | 300 bool checkSaveModified() override; |
301 | 301 |
302 virtual void exportAudio(bool asData); | 302 virtual void exportAudio(bool asData); |
303 | 303 |
304 virtual void updateVisibleRangeDisplay(Pane *p) const; | 304 void updateVisibleRangeDisplay(Pane *p) const override; |
305 virtual void updatePositionStatusDisplays() const; | 305 void updatePositionStatusDisplays() const override; |
306 | 306 |
307 virtual bool shouldCreateNewSessionForRDFAudio(bool *cancel); | 307 bool shouldCreateNewSessionForRDFAudio(bool *cancel) override; |
308 | 308 |
309 virtual void connectLayerEditDialog(ModelDataTableDialog *); | 309 void connectLayerEditDialog(ModelDataTableDialog *) override; |
310 }; | 310 }; |
311 | 311 |
312 | 312 |
313 #endif | 313 #endif |