MCPcopy Create free account
hub / github.com/audacity/audacity / Populate

Method Populate

src/toolbars/ControlToolBar.cpp:177–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void ControlToolBar::Populate()
178{
179 SetBackgroundColour( theTheme.Colour( clrMedium ) );
180 MakeButtonBackgroundsLarge();
181
182 mPause = MakeControlToolBarButton(
183 this,
184 ID_PAUSE_BUTTON,
185 XO("Pause"),
186 theTheme.Image(bmpPause),
187 wxNullImage,
188 theTheme.Image(bmpPauseDisabled));
189 mPause->SetButtonToggles(true);
190
191 mPlay = MakeControlToolBarButton(
192 this,
193 ID_PLAY_BUTTON,
194 XO("Play"),
195 theTheme.Image(bmpPlay),
196 wxNullImage,
197 theTheme.Image(bmpPlayDisabled));
198 mPlay->SetButtonToggles(true);
199 mPlay->FollowModifierKeys();
200 // 3.1.0 abandoned distinct images for Shift
201 mPlay->SetAlternateIcons(2,
202 theTheme.Image(bmpCutPreview),
203 wxNullImage,
204 theTheme.Image(bmpCutPreviewDisabled));
205 mPlay->SetAlternateIcons(3,
206 theTheme.Image(bmpScrub),
207 wxNullImage,
208 theTheme.Image(bmpScrubDisabled));
209 mPlay->SetAlternateIcons(4,
210 theTheme.Image(bmpSeek),
211 wxNullImage,
212 theTheme.Image(bmpSeekDisabled));
213
214
215 mStop = MakeControlToolBarButton(this,
216 ID_STOP_BUTTON,
217 XO("Stop"),
218 theTheme.Image(bmpStop),
219 wxNullImage,
220 theTheme.Image(bmpStopDisabled));
221
222 mRewind = MakeControlToolBarButton(this,
223 ID_REW_BUTTON,
224 XO("Skip to Start"),
225 theTheme.Image(bmpRewind),
226 wxNullImage,
227 theTheme.Image(bmpRewindDisabled));
228
229 mFF = MakeControlToolBarButton(this,
230 ID_FF_BUTTON,
231 XO("Skip to End"),
232 theTheme.Image(bmpFFwd),
233 wxNullImage,
234 theTheme.Image(bmpFFwdDisabled));

Callers

nothing calls this directly

Calls 5

MakeControlToolBarButtonFunction · 0.85
FollowModifierKeysMethod · 0.80
SetAlternateIconsMethod · 0.80
StrippedMethod · 0.80
ReadMethod · 0.45

Tested by

no test coverage detected